@arcgis/coding-components 4.33.0-next.74 → 4.33.0-next.76

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.
Files changed (111) hide show
  1. package/dist/arcgis-coding-components/{5525TVLI.js → 342NLOE4.js} +2 -2
  2. package/dist/arcgis-coding-components/{IWFZL3W2.js → 3BXNPW5F.js} +2 -2
  3. package/dist/arcgis-coding-components/{5GHS32DP.js.LEGAL.txt → 3BXNPW5F.js.LEGAL.txt} +1 -1
  4. package/dist/arcgis-coding-components/{TQE4VYOX.js → 3FETLQIP.js} +2 -2
  5. package/dist/arcgis-coding-components/{TQE4VYOX.js.LEGAL.txt → 3FETLQIP.js.LEGAL.txt} +1 -1
  6. package/dist/arcgis-coding-components/{GIPPKVCI.js → 4HKZ3TQJ.js} +2 -2
  7. package/dist/arcgis-coding-components/{3DQVNKKO.js → 4VVG3WKG.js} +2 -2
  8. package/dist/arcgis-coding-components/{5KFVDEEV.js.LEGAL.txt → 4VVG3WKG.js.LEGAL.txt} +1 -1
  9. package/dist/arcgis-coding-components/{PNWMM6QM.js → 7CECRXJA.js} +1 -1
  10. package/dist/arcgis-coding-components/{S2H3D2DX.js → 7DHAT676.js} +2 -2
  11. package/dist/arcgis-coding-components/{RZLHWMNU.js → CJ6YEE7I.js} +2 -2
  12. package/dist/arcgis-coding-components/{5GHS32DP.js → DOPVA4YP.js} +2 -2
  13. package/dist/arcgis-coding-components/{AZYGJSMF.js.LEGAL.txt → DOPVA4YP.js.LEGAL.txt} +1 -1
  14. package/dist/arcgis-coding-components/{VKLJCZWI.js → ESSNWZTY.js} +2 -2
  15. package/dist/arcgis-coding-components/{OLMCQG73.js → FPF2C35K.js} +2 -2
  16. package/dist/arcgis-coding-components/{QBSA2GCR.js → FV2GPYN6.js} +2 -2
  17. package/dist/arcgis-coding-components/{FT7Z65RJ.js → GG4ET4QB.js} +2 -2
  18. package/dist/arcgis-coding-components/{S374A4NC.js → GKYYYIMQ.js} +2 -2
  19. package/dist/arcgis-coding-components/{NIBH67GE.js → GWG6ISZ7.js} +2 -2
  20. package/dist/arcgis-coding-components/{UZPOCTMZ.js → IA4I57FY.js} +2 -2
  21. package/dist/arcgis-coding-components/{3CBW2VEP.js → JBY6ACAI.js} +3 -3
  22. package/dist/arcgis-coding-components/{3CBW2VEP.js.LEGAL.txt → JBY6ACAI.js.LEGAL.txt} +1 -1
  23. package/dist/arcgis-coding-components/{3KNOXMMF.js → JY7ZLNIM.js} +1 -1
  24. package/dist/arcgis-coding-components/{PYEV7SUQ.js → K2IVEQE5.js} +2 -2
  25. package/dist/arcgis-coding-components/{3DQVNKKO.js.LEGAL.txt → K2IVEQE5.js.LEGAL.txt} +1 -1
  26. package/dist/arcgis-coding-components/{YQ3E4XRK.js → LQL74H5T.js} +2 -2
  27. package/dist/arcgis-coding-components/LQL74H5T.js.LEGAL.txt +3 -0
  28. package/dist/arcgis-coding-components/{AZYGJSMF.js → LY4YCZAV.js} +2 -2
  29. package/dist/arcgis-coding-components/LY4YCZAV.js.LEGAL.txt +3 -0
  30. package/dist/arcgis-coding-components/{6MYFLVGY.js → N6D2M65S.js} +2 -2
  31. package/dist/arcgis-coding-components/{BHWDK64C.js → NDNDJ2JJ.js} +1 -1
  32. package/dist/arcgis-coding-components/{GKQYZUS6.js → OKOC7LFV.js} +2 -2
  33. package/dist/arcgis-coding-components/OKOC7LFV.js.LEGAL.txt +3 -0
  34. package/dist/arcgis-coding-components/{Y2WQTKL6.js → Q3NYSEHX.js} +2 -2
  35. package/dist/arcgis-coding-components/Q3NYSEHX.js.LEGAL.txt +3 -0
  36. package/dist/arcgis-coding-components/{NU4EV62Z.js → QEY4O2FB.js} +2 -2
  37. package/dist/arcgis-coding-components/{B4G5WQKS.js → QJWWKQZM.js} +2 -2
  38. package/dist/arcgis-coding-components/QJWWKQZM.js.LEGAL.txt +3 -0
  39. package/dist/arcgis-coding-components/{GJOV5ZD7.js → QOVT3RPP.js} +1 -1
  40. package/dist/arcgis-coding-components/QOVT3RPP.js.LEGAL.txt +3 -0
  41. package/dist/arcgis-coding-components/{EEY6XK4Z.js → QWNGGA63.js} +2 -2
  42. package/dist/arcgis-coding-components/QWNGGA63.js.LEGAL.txt +3 -0
  43. package/dist/arcgis-coding-components/{FW5OYVPI.js → ROVNQGRZ.js} +2 -2
  44. package/dist/arcgis-coding-components/ROVNQGRZ.js.LEGAL.txt +3 -0
  45. package/dist/arcgis-coding-components/{PPSKD4XC.js → UGR2JQRN.js} +2 -2
  46. package/dist/arcgis-coding-components/UGR2JQRN.js.LEGAL.txt +3 -0
  47. package/dist/arcgis-coding-components/{5KFVDEEV.js → XENMJDDB.js} +2 -2
  48. package/dist/arcgis-coding-components/XENMJDDB.js.LEGAL.txt +3 -0
  49. package/dist/arcgis-coding-components/{U74MDVEL.js → XEUTOLXY.js} +2 -2
  50. package/dist/arcgis-coding-components/{U74MDVEL.js.LEGAL.txt → XEUTOLXY.js.LEGAL.txt} +1 -1
  51. package/dist/arcgis-coding-components/{VBBU6KLA.js → YQSJ3GXL.js} +2 -2
  52. package/dist/arcgis-coding-components/YQSJ3GXL.js.LEGAL.txt +3 -0
  53. package/dist/arcgis-coding-components/{TCAWMH3O.js → YQW7CW6V.js} +2 -2
  54. package/dist/arcgis-coding-components/YQW7CW6V.js.LEGAL.txt +3 -0
  55. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  56. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js.LEGAL.txt +1 -1
  57. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +3 -3
  58. package/dist/chunks/arcade-defaults.js +1 -1
  59. package/dist/chunks/arcade-executor.js +1 -1
  60. package/dist/chunks/arcade-mode.js +1 -1
  61. package/dist/chunks/arcade-service-accessors.js +1 -1
  62. package/dist/chunks/fields.js +1 -1
  63. package/dist/chunks/language-defaults-base.js +1 -1
  64. package/dist/chunks/markdown.js +1 -1
  65. package/dist/chunks/monaco-importer.js +1 -1
  66. package/dist/chunks/runtime.js +1 -1
  67. package/dist/chunks/sql-expr-defaults.js +1 -1
  68. package/dist/chunks/sql-expr-mode.js +1 -1
  69. package/dist/chunks/useT9n.js +1 -1
  70. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  71. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  72. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  73. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  74. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  75. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  76. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  77. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  78. package/dist/docs/api.json +2 -2
  79. package/dist/docs/docs.json +2 -2
  80. package/dist/docs/web-types.json +1 -1
  81. package/dist/index.js +1 -1
  82. package/dist/loader.js +1 -1
  83. package/package.json +7 -7
  84. package/dist/arcgis-coding-components/B4G5WQKS.js.LEGAL.txt +0 -3
  85. package/dist/arcgis-coding-components/EEY6XK4Z.js.LEGAL.txt +0 -3
  86. package/dist/arcgis-coding-components/FW5OYVPI.js.LEGAL.txt +0 -3
  87. package/dist/arcgis-coding-components/GJOV5ZD7.js.LEGAL.txt +0 -3
  88. package/dist/arcgis-coding-components/GKQYZUS6.js.LEGAL.txt +0 -3
  89. package/dist/arcgis-coding-components/IWFZL3W2.js.LEGAL.txt +0 -3
  90. package/dist/arcgis-coding-components/PPSKD4XC.js.LEGAL.txt +0 -3
  91. package/dist/arcgis-coding-components/PYEV7SUQ.js.LEGAL.txt +0 -3
  92. package/dist/arcgis-coding-components/TCAWMH3O.js.LEGAL.txt +0 -3
  93. package/dist/arcgis-coding-components/VBBU6KLA.js.LEGAL.txt +0 -3
  94. package/dist/arcgis-coding-components/Y2WQTKL6.js.LEGAL.txt +0 -3
  95. package/dist/arcgis-coding-components/YQ3E4XRK.js.LEGAL.txt +0 -3
  96. /package/dist/arcgis-coding-components/{5525TVLI.js.LEGAL.txt → 342NLOE4.js.LEGAL.txt} +0 -0
  97. /package/dist/arcgis-coding-components/{GIPPKVCI.js.LEGAL.txt → 4HKZ3TQJ.js.LEGAL.txt} +0 -0
  98. /package/dist/arcgis-coding-components/{3KNOXMMF.js.LEGAL.txt → 7CECRXJA.js.LEGAL.txt} +0 -0
  99. /package/dist/arcgis-coding-components/{S2H3D2DX.js.LEGAL.txt → 7DHAT676.js.LEGAL.txt} +0 -0
  100. /package/dist/arcgis-coding-components/{RZLHWMNU.js.LEGAL.txt → CJ6YEE7I.js.LEGAL.txt} +0 -0
  101. /package/dist/arcgis-coding-components/{6MYFLVGY.js.LEGAL.txt → ESSNWZTY.js.LEGAL.txt} +0 -0
  102. /package/dist/arcgis-coding-components/{OLMCQG73.js.LEGAL.txt → FPF2C35K.js.LEGAL.txt} +0 -0
  103. /package/dist/arcgis-coding-components/{QBSA2GCR.js.LEGAL.txt → FV2GPYN6.js.LEGAL.txt} +0 -0
  104. /package/dist/arcgis-coding-components/{FT7Z65RJ.js.LEGAL.txt → GG4ET4QB.js.LEGAL.txt} +0 -0
  105. /package/dist/arcgis-coding-components/{S374A4NC.js.LEGAL.txt → GKYYYIMQ.js.LEGAL.txt} +0 -0
  106. /package/dist/arcgis-coding-components/{NIBH67GE.js.LEGAL.txt → GWG6ISZ7.js.LEGAL.txt} +0 -0
  107. /package/dist/arcgis-coding-components/{UZPOCTMZ.js.LEGAL.txt → IA4I57FY.js.LEGAL.txt} +0 -0
  108. /package/dist/arcgis-coding-components/{BHWDK64C.js.LEGAL.txt → JY7ZLNIM.js.LEGAL.txt} +0 -0
  109. /package/dist/arcgis-coding-components/{PNWMM6QM.js.LEGAL.txt → N6D2M65S.js.LEGAL.txt} +0 -0
  110. /package/dist/arcgis-coding-components/{VKLJCZWI.js.LEGAL.txt → NDNDJ2JJ.js.LEGAL.txt} +0 -0
  111. /package/dist/arcgis-coding-components/{NU4EV62Z.js.LEGAL.txt → QEY4O2FB.js.LEGAL.txt} +0 -0
@@ -1,16 +1,16 @@
1
- "use strict";(()=>{var BF=Object.defineProperty;var T3=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var N=(t,e)=>()=>(t&&(e=t(t=0)),e);var P3=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Lo=(t,e)=>{for(var r in e)BF(t,r,{get:e[r],enumerable:!0})};function zV(t,e){let r=t;for(;r;){if(r===e)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function gT(t,e,r){let{subscribe:n}=WV(e);return n(i=>{i.some(s=>zV(t,s.target))&&r()})}function WV(t){let e=t.join(","),r=K_[e];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(c=>c(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let o={subscribe(s){return n.add(s),()=>{n.delete(s),n.size===0&&(i.disconnect(),K_[e]=void 0)}}};return K_[e]=o,o}function BV(t,e){let r=t;for(;r;){let n=r.closest?.(e);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function wT(t,e,r){return BV(t,`[${e}]`)?.getAttribute(e)??r}function Ut(t,e,...r){try{return t?.call(e,...r)}catch(n){console.error(n,t)}}async function hm(t,e,...r){try{let n=t?.call(e,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,t)}}async function HV(t,e,r=""){let n=`${e}/${r}`,i=`${n}${t}.json`;return e2[i]??(e2[i]=yT(t,n)),await e2[i]}async function yT(t,e){let r=`${e}${t}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return t===l0?{}:await yT(l0,e)}function t2(t){let e=wT(t,"lang",globalThis.navigator?.language||l0);return{lang:e,t9nLocale:bT(e)}}function bT(t){let[e,r]=t.split("-"),n=e.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=qV[i]??i,jV.has(i)?i:r?bT(n):l0}function vT(t,e,r,n){let i,o=()=>void YV(t,e(),n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return queueMicrotask(o),gT(t,["lang"],o)}async function YV(t,e,r=t.localName.split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=t2(t),o=`${e}/${r}/t9n`,c=r===null?{}:await HV(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function _T(t,e){let r=e>XV?JV:e/QV,n=0,i=setInterval(()=>{n+=r,n>=e&&(clearInterval(i),t())},r);return i}function ST(t){return t!==void 0}var ni,K_,GV,jV,l0,qV,e2,u0,ZV,XV,JV,QV,Qd=N(()=>{"use strict";ni=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}};K_={};GV=["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"],jV=new Set(GV),l0="en",qV={pt:"pt-PT",nb:"no",zh:"zh-CN"};e2={};u0=t=>t.replace(ZV,(e,r)=>`${r===0?"":"-"}${e.toLowerCase()}`),ZV=/[A-Z]+(?![a-z])|[A-Z]/gu;XV=4e3,JV=2e3,QV=4});var ws,p0,n2,r2,xT=N(()=>{(function(t){t[t.ALL=0]="ALL",t[t.SOME=1]="SOME"})(ws||(ws={}));p0=class{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,r){return this._db.get(e.id+r)?.size??0}put(e,r,n,i,o){r=e.id+r;let s=this._db.get(r);if(s&&(this._size-=s.size,e.size-=s.size,this._db.delete(r),s.entry!==n&&this._notifyRemove(r,s.entry,s.size,ws.ALL)),i>this._maxSize)return void this._notifyRemove(r,n,i,ws.ALL);if(n===void 0)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return console.warn(`Refusing to cache entry with size ${i} for key ${r}`),void this._notifyRemove(r,n,0,ws.ALL);let c=1+Math.max(o,-4)- -3;this._db.set(r,new n2(n,i,c)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,r,n,i){r=e.id+r;let o=this._db.get(r);if(o&&o.entry===n){for(this._size-=o.size,e.size-=o.size;i>this._maxSize;){let s=this._notifyRemove(r,n,i,ws.SOME);if(!(s!=null&&s>0))return void this._db.delete(r);i=s}o.size=i,this._size+=i,e.size+=i,this._checkSize()}}pop(e,r){r=e.id+r;let n=this._db.get(r);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(r),++this._hit,n.entry;++this._miss}get(e,r){r=e.id+r;let n=this._db.get(r);if(n!==void 0)return this._db.delete(r),n.lives=n.lifetime,this._db.set(r,n),++this._hit,n.entry;++this._miss}peek(e,r){let n=this._db.get(e.id+r);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},r={},n=new Array;this._db.forEach((s,c)=>{let a=s.lifetime;n[a]=(n[a]||0)+s.size,this._users.forEach(d=>{let{id:h,name:g}=d;if(c.startsWith(h)){let v=r[g]||0;r[g]=v+s.size}})});let i={};this._users.forEach(s=>{let c=s.name;if("hitRate"in s&&typeof s.hitRate=="number"&&!isNaN(s.hitRate)&&s.hitRate>0){let a=r[c]||0;r[c]=a,i[c]=Math.round(100*s.hitRate)+"%"}else i[c]="0%"});let o=Object.keys(r);o.sort((s,c)=>r[c]-r[s]),o.forEach(s=>e[s]=Math.round(r[s]/2**20)+"MB / "+i[s]);for(let s=n.length-1;s>=0;--s){let c=n[s];c&&(e["Priority "+(s+-3-1)]=Math.round(c/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){let r=e.id;this._db.forEach((n,i)=>{i.startsWith(r)&&(this._size-=n.size,this._db.delete(i),this._notifyRemove(i,n.entry,n.size,ws.ALL))}),e.size=0}clearAll(){this._db.forEach((e,r)=>this._notifyRemove(r,e.entry,e.size,ws.ALL)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,r,n,i){let o=this._users.get(e.split(r2)[0])?.removeFunc,s=o?.(r,i,n);return typeof s=="number"?s:null}_checkSize(){this._sizeLimits.forEach((e,r)=>this._checkSizeLimits(e,r)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,r){r==null||r<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,r)}_checkSizeLimits(e,r){let n=r??this;if(n.size<=e)return;let i=r?.id,o=!0;for(;o;){o=!1;for(let[s,c]of this._db)if(c.lifetime===0&&(!i||s.startsWith(i))){let a=r??this._users.get(s.split(r2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return;o||=this._db.has(s)}}for(let[s,c]of this._db)if(!i||s.startsWith(i)){let a=r??this._users.get(s.split(r2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return}}_purgeItem(e,r,n){if(this._db.delete(e),r.lives<=1){this._size-=r.size,n&&(n.size-=r.size);let i=this._notifyRemove(e,r.entry,r.size,ws.SOME);i!=null&&i>0&&(this._size+=i,n&&(n.size+=i),r.lives=r.lifetime,r.size=i,this._db.set(e,r))}else--r.lives,this._db.set(e,r)}},n2=class{constructor(e,r,n){this.entry=e,this.size=r,this.lifetime=n,this.lives=n}},r2=":"});var gm,ET=N(()=>{xT();gm=class{constructor(e,r){this.removeFunc=r,this._storage=new p0,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,r,n=1){this._storage.put(this,e,r,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}});function pe(t){return typeof _a[t]=="function"?_a[t]=_a[t](globalThis):_a[t]}var _a,St=N(()=>{_a=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},pe.add=(t,e,r,n)=>{(n||_a[t]===void 0)&&(_a[t]=e),r&&pe(t)},pe.cache=_a,pe.add("big-integer-warning-enabled",!0),pe.add("esri-deprecation-warnings",!0),pe.add("esri-tests-disable-screenshots",!1),pe.add("esri-tests-use-full-window",!1),pe.add("esri-tests-post-to-influx",!0),pe.add("esri-cim-animations-enable-status","enabled"),pe.add("esri-cim-animations-spotlight",!1),pe.add("esri-cim-animations-freeze-time",!1),(()=>{pe.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let t=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(pe.add("host-browser",t),pe.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),pe.add("dom",t),pe("host-browser")){let e=navigator,r=e.userAgent,n=e.appVersion,i=parseFloat(n);if(pe.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),pe.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),pe.add("khtml",n.includes("Konqueror")?i:void 0),pe.add("edge",parseFloat(r.split("Edge/")[1])||void 0),pe.add("opr",parseFloat(r.split("OPR/")[1])||void 0),pe.add("webkit",!pe("wp")&&!pe("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),pe.add("chrome",!pe("edge")&&!pe("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),pe.add("android",!pe("wp")&&parseFloat(r.split("Android ")[1])||void 0),pe.add("safari",!n.includes("Safari")||pe("wp")||pe("chrome")||pe("android")||pe("edge")||pe("opr")?void 0:parseFloat(n.split("Version/")[1])),pe.add("mac",n.includes("Macintosh")),!pe("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));pe.add(o,c),pe.add("ios",c)}pe("webkit")||(!r.includes("Gecko")||pe("wp")||pe("khtml")||pe("edge")||pe.add("mozilla",i),pe("mozilla")&&pe.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let t=navigator.userAgent,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(t),r=/iPhone/i.test(t);e&&pe.add("esri-mobile",e),r&&pe.add("esri-iPhone",r),pe.add("esri-geolocation",!!navigator.geolocation)}pe.add("esri-wasm","WebAssembly"in globalThis),pe.add("esri-performance-mode-frames-between-render",20),pe.add("esri-force-performance-mode",!1),pe.add("esri-shared-array-buffer",()=>{let t="SharedArrayBuffer"in globalThis,e=globalThis.crossOriginIsolated===!1;return t&&!e}),pe.add("wasm-simd",()=>{let t=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(t))}),pe.add("esri-atomics","Atomics"in globalThis),pe.add("esri-workers","Worker"in globalThis),pe.add("web-feat:cache","caches"in globalThis),pe.add("esri-workers-arraybuffer-transfer",!pe("safari")||Number(pe("safari"))>=12),pe.add("workers-pool-size",8),pe.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),pe.add("featurelayer-simplify-payload-size-factors",[1,1,4]),pe.add("featurelayer-fast-triangulation-enabled",!0),pe.add("featurelayer-animation-enabled",!0),pe.add("featurelayer-snapshot-enabled",!0),pe.add("featurelayer-snapshot-point-min-threshold",8e4),pe.add("featurelayer-snapshot-point-max-threshold",4e5),pe.add("featurelayer-snapshot-point-coverage",.1),pe.add("featurelayer-query-max-depth",4),pe.add("featurelayer-query-pausing-enabled",!1),pe.add("featurelayer-advanced-symbols",!1),pe.add("featurelayer-pbf",!0),pe.add("featurelayer-pbf-statistics",!1),pe.add("feature-layers-workers",!0),pe.add("feature-polyline-generalization-factor",1),pe.add("mapview-transitions-duration",200),pe.add("mapview-essential-goto-duration",200),pe.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),pe.add("mapserver-pbf-version-support",10.81),pe.add("mapservice-popup-identify-max-tolerance",20),pe.add("request-queue-concurrency-hosted",16),pe.add("request-queue-concurrency-non-hosted",4),pe.add("curve-densification-coarse-segments",128),pe.add("curve-densification-max-segments",2e3),pe.add("curve-densification-min-segments",3),pe.add("curve-densification-pixel-deviation",.5),pe.add("view-readyState-waiting-delay",1e3),pe.add("gradient-depth-bias",.01),pe.add("gradient-depth-epsilon",1e-8),pe.add("enable-feature:esri-compress-textures",!0),pe("host-webworker")||pe("host-browser")&&(pe.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),pe.add("esri-image-decode",()=>{if("decode"in new Image){let t=new Image;return t.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void t.decode().then(()=>{pe.add("esri-image-decode",!0,!0,!0)}).catch(()=>{pe.add("esri-image-decode",!1,!0,!0)})}return!1}),pe.add("esri-url-encodes-apostrophe",()=>{let t=window.document.createElement("a");return t.href="?'",t.href.includes("?%27")}))})()});var i2=N(()=>{St()});var f0,Sa=N(()=>{f0=class t{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*t._m}getInt(){return this._seed=(t._a*this._seed+t._c)%t._m,this._seed}getFloat(){return this.getInt()/(t._m-1)}getIntRange(e,r){return Math.round(this.getFloatRange(e,r))}getFloatRange(e,r){let n=r-e;return e+this.getInt()/t._m*n}}});function m0(t,e,r){if(t==null&&e==null)return!0;if(t==null||e==null||t.length!==e.length)return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function o2(t,e,r,n){n=n||CT;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(t[s]===e)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(t[s]===e)return n.last=s,s;return-1}function TT(t,e,r=t.length,n=e.length,i,o){if(n===0||r===0)return r;Yi.clear();for(let c=0;c<n;++c)Yi.add(e[c]);i=i||CT;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;for(let c=0;c<s;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;return Yi.clear(),r}function PT(t,e){let r=t.indexOf(e);return r!==-1?(t.splice(r,1),e):null}function MT(t,e){return t!=null}var ez,Doe,wm,CT,Yi,$oe,Kd=N(()=>{i2();Sa();ez=1.5,Doe=1/ez;wm=class{constructor(){this.last=0}},CT=new wm;Yi=new Set;$oe=new f0});function AT(t){return t?.constructor?.name==="Int8Array"}function IT(t){return t?.constructor?.name==="Uint8Array"}function LT(t){return t?.constructor?.name==="Uint8ClampedArray"}function kT(t){return t?.constructor?.name==="Int16Array"}function OT(t){return t?.constructor?.name==="Uint16Array"}function NT(t){return t?.constructor?.name==="Int32Array"}function RT(t){return t?.constructor?.name==="Uint32Array"}function DT(t){return t?.constructor?.name==="Float32Array"}function $T(t){return t?.constructor?.name==="Float64Array"}var Voe,FT=N(()=>{St();Voe=2**32-1});function h0(t,e){let r;if(e)for(r in t)t.hasOwnProperty(r)&&(t[r]===void 0?delete t[r]:t[r]instanceof Object&&h0(t[r],!0));else for(r in t)t.hasOwnProperty(r)&&t[r]===void 0&&delete t[r];return t}function Ht(t){if(!t||typeof t!="object"||typeof t=="function")return t;let e=iz(t);if(e!=null)return e;if(tz(t))return t.clone();if(rz(t))return t.map(Ht);if(nz(t))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=Ht(t[n]);return r}function tz(t){return typeof t.clone=="function"}function rz(t){return typeof t.map=="function"&&typeof t.forEach=="function"}function nz(t){return typeof t.notifyChange=="function"&&typeof t.watch=="function"}function UT(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function iz(t){if(AT(t)||IT(t)||LT(t)||kT(t)||OT(t)||NT(t)||RT(t)||DT(t)||$T(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer)return t.slice(0,t.byteLength);if(t instanceof Map){let e=new Map;for(let[r,n]of t)e.set(r,Ht(n));return e}if(t instanceof Set){let e=new Set;for(let r of t)e.add(Ht(r));return e}return null}function ym(t,e){return t===e||typeof t=="number"&&isNaN(t)&&typeof e=="number"&&isNaN(e)||typeof t?.getTime=="function"&&typeof e?.getTime=="function"&&t.getTime()===e.getTime()||!1}function g0(t,e){return t===e||(t==null||typeof t=="string"?t===e:typeof t=="number"?t===e||typeof e=="number"&&isNaN(t)&&isNaN(e):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Array.isArray(t)?Array.isArray(e)&&m0(t,e):t instanceof Set?e instanceof Set&&sz(t,e):t instanceof Map?e instanceof Map&&az(t,e):!!UT(t)&&UT(e)&&oz(t,e))}function oz(t,e){if(t===null||e===null)return!1;let r=Object.keys(t);if(e===null||Object.keys(e).length!==r.length)return!1;for(let n of r)if(t[n]!==e[n]||!Object.prototype.hasOwnProperty.call(e,n))return!1;return!0}function sz(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function az(t,e){if(t.size!==e.size)return!1;for(let[r,n]of t){let i=e.get(r);if(i!==n||i===void 0&&!e.has(r))return!1}return!0}var Mn=N(()=>{Kd();FT()});function VT(t,e,r=!1){return WT(t,e,r)}function Ci(t,e){if(e!=null)return e[t]||zT(t.split("."),!1,e)}function ys(t,e,r){let n=t.split("."),i=n.pop(),o=zT(n,!0,r);o&&i&&(o[i]=e)}function zT(t,e,r){let n=r;for(let i of t){if(n==null)return;if(!(i in n)){if(!e)return;n[i]={}}n=n[i]}return n}function WT(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=n[i],s=e[i];return o===s?n:o===void 0?(n[i]=Ht(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=WT(o,s,r):n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[i]=s),n)},t||{}):t}var $o=N(()=>{Mn()});function BT(t){return t??""}function Fo(t,e){return e?t.replaceAll(cz,typeof e=="object"?(r,n)=>BT(Ci(n,e)):(r,n)=>BT(e(n))):t}function GT(t,e){return t.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>e?.includes(r)?r:`\\${r}`)}function jT(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}var cz,xa=N(()=>{$o();cz=/\{([^}]+)\}/g});var bs,w0,y0,b0,Zi,ep,ar,Xi,Ea=N(()=>{bs=class extends Error{},w0=class extends bs{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},y0=class extends bs{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},b0=class extends bs{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Zi=class extends bs{},ep=class extends bs{constructor(e){super(`Invalid unit ${e}`)}},ar=class extends bs{},Xi=class extends bs{constructor(){super("Zone is an abstract class")}}});var Ie,Ji,ii,Ca,bm,s2,vm,_m,Sm,xm,Em,Cm,Tm,Pm,Mm,Am,Im,Lm,km,Om,a2,Nm,Rm,Dm,$m,Fm=N(()=>{Ie="numeric",Ji="short",ii="long",Ca={year:Ie,month:Ie,day:Ie},bm={year:Ie,month:Ji,day:Ie},s2={year:Ie,month:Ji,day:Ie,weekday:Ji},vm={year:Ie,month:ii,day:Ie},_m={year:Ie,month:ii,day:Ie,weekday:ii},Sm={hour:Ie,minute:Ie},xm={hour:Ie,minute:Ie,second:Ie},Em={hour:Ie,minute:Ie,second:Ie,timeZoneName:Ji},Cm={hour:Ie,minute:Ie,second:Ie,timeZoneName:ii},Tm={hour:Ie,minute:Ie,hourCycle:"h23"},Pm={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23"},Mm={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:Ji},Am={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:ii},Im={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie},Lm={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie,second:Ie},km={year:Ie,month:Ji,day:Ie,hour:Ie,minute:Ie},Om={year:Ie,month:Ji,day:Ie,hour:Ie,minute:Ie,second:Ie},a2={year:Ie,month:Ji,day:Ie,weekday:Ji,hour:Ie,minute:Ie},Nm={year:Ie,month:ii,day:Ie,hour:Ie,minute:Ie,timeZoneName:Ji},Rm={year:Ie,month:ii,day:Ie,hour:Ie,minute:Ie,second:Ie,timeZoneName:Ji},Dm={year:Ie,month:ii,day:Ie,weekday:ii,hour:Ie,minute:Ie,timeZoneName:ii},$m={year:Ie,month:ii,day:Ie,weekday:ii,hour:Ie,minute:Ie,second:Ie,timeZoneName:ii}});var _r,vl=N(()=>{Ea();_r=class{get type(){throw new Xi}get name(){throw new Xi}get ianaName(){return this.name}get isUniversal(){throw new Xi}offsetName(e,r){throw new Xi}formatOffset(e,r){throw new Xi}offset(e){throw new Xi}equals(e){throw new Xi}get isValid(){throw new Xi}}});var c2,Ta,_0=N(()=>{An();vl();c2=null,Ta=class t extends _r{static get instance(){return c2===null&&(c2=new t),c2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}});function lz(t){let e=u2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),u2.set(t,e)),e}function dz(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function pz(t,e){let r=t.formatToParts(e),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=uz[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var u2,uz,l2,cr,Ma=N(()=>{An();vl();u2=new Map;uz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};l2=new Map,cr=class t extends _r{static create(e){let r=l2.get(e);return r===void 0&&l2.set(e,r=new t(e)),r}static resetCache(){l2.clear(),u2.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n,this.name)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let n=lz(this.name),[i,o,s,c,a,d,h]=n.formatToParts?pz(n,r):dz(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=tp({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),E=+r,M=E%1e3;return E-=M>=0?M:1e3+M,(v-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}});function fz(t,e={}){let r=JSON.stringify([t,e]),n=qT[r];return n||(n=new Intl.ListFormat(t,e),qT[r]=n),n}function p2(t,e={}){let r=JSON.stringify([t,e]),n=d2.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),d2.set(r,n)),n}function mz(t,e={}){let r=JSON.stringify([t,e]),n=f2.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),f2.set(r,n)),n}function hz(t,e={}){let{base:r,...n}=e,i=JSON.stringify([t,n]),o=m2.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),m2.set(i,o)),o}function gz(){return Um||(Um=new Intl.DateTimeFormat().resolvedOptions().locale,Um)}function HT(t){let e=h2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),h2.set(t,e)),e}function wz(t){let e=g2.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...YT,...e}),g2.set(t,e)}return e}function yz(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,i;try{n=p2(t).resolvedOptions(),i=t}catch{let a=t.substring(0,r);n=p2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function bz(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function vz(t){let e=[];for(let r=1;r<=12;r++){let n=Te.utc(2009,r,1);e.push(t(n))}return e}function _z(t){let e=[];for(let r=1;r<=7;r++){let n=Te.utc(2016,11,13+r);e.push(t(n))}return e}function x0(t,e,r,n){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function Sz(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||HT(t.locale).numberingSystem==="latn"}var qT,d2,f2,m2,Um,h2,g2,w2,y2,b2,YT,pt,zm=N(()=>{An();T0();Aa();Ia();Ma();qT={};d2=new Map;f2=new Map;m2=new Map;Um=null;h2=new Map;g2=new Map;w2=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=mz(e,c)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):rp(e,3);return rr(r,this.padTo)}}},y2=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&cr.create(c).valid?(i=c,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=p2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},b2=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&E0()&&(this.rtf=hz(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):ZT(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},YT={firstDay:1,minimalDays:4,weekend:[6,7]},pt=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,i,o=!1){let s=e||dt.defaultLocale,c=s||(o?"en-US":gz()),a=r||dt.defaultNumberingSystem,d=n||dt.defaultOutputCalendar,h=Vm(i)||dt.defaultWeekSettings;return new t(c,a,d,h,s)}static resetCache(){Um=null,d2.clear(),f2.clear(),m2.clear(),h2.clear(),g2.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return t.create(e,r,n,i)}constructor(e,r,n,i,o){let[s,c,a]=yz(e);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=bz(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Sz(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Vm(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return x0(this,e,v2,()=>{let n=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=vz(o=>this.extract(o,n,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1){return x0(this,e,_2,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=_z(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return x0(this,void 0,()=>S2,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return x0(this,e,x2,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let i=this.dtFormatter(e,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(e={}){return new w2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new y2(e,this.intl,r)}relFormatter(e={}){return new b2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return fz(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||HT(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:C0()?wz(this.locale):YT}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var C2,xt,np=N(()=>{An();vl();C2=null,xt=class t extends _r{static get utcInstance(){return C2===null&&(C2=new t(0)),C2}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(_l(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Pa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Pa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Pa(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}});var ip,T2=N(()=>{vl();ip=class extends _r{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function Qi(t,e){let r;if(Ge(t)||t===null)return e;if(t instanceof _r)return t;if(XT(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Ta.instance:n==="utc"||n==="gmt"?xt.utcInstance:xt.parseSpecifier(n)||cr.create(t)}else return Ki(t)?xt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new ip(t)}var P0=N(()=>{vl();Ma();np();T2();An();_0()});function QT(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(M2.hanidec)!==-1)e+=xz.indexOf(t[r]);else for(let i in JT){let[o,s]=JT[i];n>=o&&n<=s&&(e+=n-o)}}return parseInt(e,10)}else return e}function KT(){P2.clear()}function Ti({numberingSystem:t},e=""){let r=t||"latn",n=P2.get(r);n===void 0&&(n=new Map,P2.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${M2[r]}${e}`),n.set(e,i)),i}var M2,JT,xz,P2,A2=N(()=>{M2={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},JT={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},xz=M2.hanidec.replace(/[\[|\]]/g,"").split("");P2=new Map});var e6,t6,r6,n6,i6,o6,s6,a6,dt,Aa=N(()=>{_0();Ma();zm();Ia();P0();An();A2();e6=()=>Date.now(),t6="system",r6=null,n6=null,i6=null,o6=60,a6=null,dt=class{static get now(){return e6}static set now(e){e6=e}static set defaultZone(e){t6=e}static get defaultZone(){return Qi(t6,Ta.instance)}static get defaultLocale(){return r6}static set defaultLocale(e){r6=e}static get defaultNumberingSystem(){return n6}static set defaultNumberingSystem(e){n6=e}static get defaultOutputCalendar(){return i6}static set defaultOutputCalendar(e){i6=e}static get defaultWeekSettings(){return a6}static set defaultWeekSettings(e){a6=Vm(e)}static get twoDigitCutoffYear(){return o6}static set twoDigitCutoffYear(e){o6=e%100}static get throwOnInvalid(){return s6}static set throwOnInvalid(e){s6=e}static resetCaches(){pt.resetCache(),cr.resetCache(),Te.resetCache(),KT()}}});var Gr,Wm=N(()=>{Gr=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Pi(t,e){return new Gr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function M0(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function u6(t,e,r){return r+(xl(t)?l6:c6)[e-1]}function d6(t,e){let r=xl(t)?l6:c6,n=r.findIndex(o=>o<e),i=e-r[n];return{month:n+1,day:i}}function A0(t,e){return(t-e+7)%7+1}function Bm(t,e=4,r=1){let{year:n,month:i,day:o}=t,s=u6(n,i,o),c=A0(M0(n,i,o),r),a=Math.floor((s-c+14-e)/7),d;return a<1?(d=n-1,a=Sl(d,e,r)):a>Sl(n,e,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...jm(t)}}function I2(t,e=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=t,s=A0(M0(n,1,e),r),c=La(n),a=i*7+o-s-7+e,d;a<1?(d=n-1,a+=La(d)):a>c?(d=n+1,a-=La(n)):d=n;let{month:h,day:g}=d6(d,a);return{year:d,month:h,day:g,...jm(t)}}function I0(t){let{year:e,month:r,day:n}=t,i=u6(e,r,n);return{year:e,ordinal:i,...jm(t)}}function L2(t){let{year:e,ordinal:r}=t,{month:n,day:i}=d6(e,r);return{year:e,month:n,day:i,...jm(t)}}function k2(t,e){if(!Ge(t.localWeekday)||!Ge(t.localWeekNumber)||!Ge(t.localWeekYear)){if(!Ge(t.weekday)||!Ge(t.weekNumber)||!Ge(t.weekYear))throw new Zi("Cannot mix locale-based week fields with ISO-based week fields");return Ge(t.localWeekday)||(t.weekday=t.localWeekday),Ge(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ge(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function p6(t,e=4,r=1){let n=Gm(t.weekYear),i=oi(t.weekNumber,1,Sl(t.weekYear,e,r)),o=oi(t.weekday,1,7);return n?i?o?!1:Pi("weekday",t.weekday):Pi("week",t.weekNumber):Pi("weekYear",t.weekYear)}function f6(t){let e=Gm(t.year),r=oi(t.ordinal,1,La(t.year));return e?r?!1:Pi("ordinal",t.ordinal):Pi("year",t.year)}function O2(t){let e=Gm(t.year),r=oi(t.month,1,12),n=oi(t.day,1,op(t.year,t.month));return e?r?n?!1:Pi("day",t.day):Pi("month",t.month):Pi("year",t.year)}function N2(t){let{hour:e,minute:r,second:n,millisecond:i}=t,o=oi(e,0,23)||e===24&&r===0&&n===0&&i===0,s=oi(r,0,59),c=oi(n,0,59),a=oi(i,0,999);return o?s?c?a?!1:Pi("millisecond",i):Pi("second",n):Pi("minute",r):Pi("hour",e)}var c6,l6,R2=N(()=>{An();Wm();Ea();c6=[0,31,59,90,120,151,181,212,243,273,304,334],l6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(t){return typeof t>"u"}function Ki(t){return typeof t=="number"}function Gm(t){return typeof t=="number"&&t%1===0}function XT(t){return typeof t=="string"}function h6(t){return Object.prototype.toString.call(t)==="[object Date]"}function E0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function C0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function g6(t){return Array.isArray(t)?t:[t]}function D2(t,e,r){if(t.length!==0)return t.reduce((n,i)=>{let o=[e(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function w6(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ka(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Vm(t){if(t==null)return null;if(typeof t!="object")throw new ar("Week settings must be an object");if(!oi(t.firstDay,1,7)||!oi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!oi(e,1,7)))throw new ar("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function oi(t,e,r){return Gm(t)&&t>=e&&t<=r}function Ez(t,e){return t-e*Math.floor(t/e)}function rr(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function vs(t){if(!(Ge(t)||t===null||t===""))return parseInt(t,10)}function Oa(t){if(!(Ge(t)||t===null||t===""))return parseFloat(t)}function qm(t){if(!(Ge(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function rp(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function xl(t){return t%4===0&&(t%100!==0||t%400===0)}function La(t){return xl(t)?366:365}function op(t,e){let r=Ez(e-1,12)+1,n=t+(e-r)/12;return r===2?xl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function tp(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function m6(t,e,r){return-A0(M0(t,1,e),r)+e-1}function Sl(t,e=4,r=1){let n=m6(t,e,r),i=m6(t+1,e,r);return(La(t)-n+i)/7}function Hm(t){return t>99?t:t>dt.twoDigitCutoffYear?1900+t:2e3+t}function S0(t,e,r,n=null){let i=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:e,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function _l(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function $2(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new ar(`Invalid unit value ${t}`);return e}function sp(t,e){let r={};for(let n in t)if(ka(t,n)){let i=t[n];if(i==null)continue;r[e(n)]=$2(i)}return r}function Pa(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${rr(r,2)}:${rr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${rr(r,2)}${rr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function jm(t){return w6(t,["hour","minute","second","millisecond"])}var An=N(()=>{Ea();Aa();R2()});function v2(t){switch(t){case"narrow":return[...Tz];case"short":return[...F2];case"long":return[...Cz];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function _2(t){switch(t){case"narrow":return[...Pz];case"short":return[...V2];case"long":return[...U2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function x2(t){switch(t){case"narrow":return[...Iz];case"short":return[...Az];case"long":return[...Mz];default:return null}}function y6(t){return S2[t.hour<12?0:1]}function b6(t,e){return _2(e)[t.weekday-1]}function v6(t,e){return v2(e)[t.month-1]}function _6(t,e){return x2(e)[t.year<0?0:1]}function ZT(t,e,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&o){let g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${i[t][0]}`;case-1:return g?"yesterday":`last ${i[t][0]}`;case 0:return g?"today":`this ${i[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,c=Math.abs(e),a=c===1,d=i[t],h=n?a?d[1]:d[2]||d[1]:a?i[t][0]:t;return s?`${c} ${h} ago`:`in ${c} ${h}`}var Cz,F2,Tz,U2,V2,Pz,S2,Mz,Az,Iz,T0=N(()=>{Fm();An();Cz=["January","February","March","April","May","June","July","August","September","October","November","December"],F2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tz=["J","F","M","A","M","J","J","A","S","O","N","D"];U2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],V2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Pz=["M","T","W","T","F","S","S"];S2=["AM","PM"],Mz=["Before Christ","Anno Domini"],Az=["BC","AD"],Iz=["B","A"]});function S6(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Lz,jr,Ym=N(()=>{T0();Fm();An();Lz={D:Ca,DD:bm,DDD:vm,DDDD:_m,t:Sm,tt:xm,ttt:Em,tttt:Cm,T:Tm,TT:Pm,TTT:Mm,TTTT:Am,f:Im,ff:km,fff:Nm,ffff:Dm,F:Lm,FF:Om,FFF:Rm,FFFF:$m},jr=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",i=!1,o=[];for(let s=0;s<e.length;s++){let c=e.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Lz[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return rr(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(E,M)=>this.loc.extract(e,E,M),s=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",c=()=>n?y6(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,M)=>n?v6(e,E):o(M?{month:E}:{month:E,day:"numeric"},"month"),d=(E,M)=>n?b6(e,E):o(M?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),h=E=>{let M=t.macroTokenToFormatOpts(E);return M?this.formatWithSystemDefault(e,M):E},g=E=>n?_6(e,E):o({era:E},"era"),v=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(e.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(e.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(e.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(E)}};return S6(t.parseFormat(r),v)}formatDurationFromString(e,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=t.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=e.shiftTo(...s.map(n).filter(a=>a));return S6(o,i(c))}}});function cp(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function lp(...t){return e=>t.reduce(([r,n,i],o)=>{let[s,c,a]=o(e,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function up(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let i=r.exec(t);if(i)return n(i)}return[null,null]}function C6(...t){return(e,r)=>{let n={},i;for(i=0;i<t.length;i++)n[t[i]]=vs(e[r+i]);return[n,null,r+i]}}function ap(t,e,r){let n=t[e];return Ge(n)?r:vs(n)}function Vz(t,e){return[{year:ap(t,e),month:ap(t,e+1,1),day:ap(t,e+2,1)},null,e+3]}function dp(t,e){return[{hours:ap(t,e,0),minutes:ap(t,e+1,0),seconds:ap(t,e+2,0),milliseconds:qm(t[e+3])},null,e+4]}function Zm(t,e){let r=!t[e]&&!t[e+1],n=_l(t[e+1],t[e+2]),i=r?null:xt.instance(n);return[{},i,e+3]}function Xm(t,e){let r=t[e]?cr.create(t[e]):null;return[{},r,e+1]}function Bz(t){let[e,r,n,i,o,s,c,a,d]=t,h=e[0]==="-",g=a&&a[0]==="-",v=(E,M=!1)=>E!==void 0&&(M||E&&h)?-E:E;return[{years:v(Oa(r)),months:v(Oa(n)),weeks:v(Oa(i)),days:v(Oa(o)),hours:v(Oa(s)),minutes:v(Oa(c)),seconds:v(Oa(a),a==="-0"),milliseconds:v(qm(d),g)}]}function B2(t,e,r,n,i,o,s){let c={year:e.length===2?Hm(vs(e)):vs(e),month:F2.indexOf(r)+1,day:vs(n),hour:vs(i),minute:vs(o)};return s&&(c.second=vs(s)),t&&(c.weekday=t.length>3?U2.indexOf(t)+1:V2.indexOf(t)+1),c}function qz(t){let[,e,r,n,i,o,s,c,a,d,h,g]=t,v=B2(e,i,n,r,o,s,c),E;return a?E=Gz[a]:d?E=0:E=_l(h,g),[v,new xt(E)]}function Hz(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function x6(t){let[,e,r,n,i,o,s,c]=t;return[B2(e,i,n,r,o,s,c),xt.utcInstance]}function Jz(t){let[,e,r,n,i,o,s,c]=t;return[B2(e,c,r,n,i,o,s),xt.utcInstance]}function I6(t){return up(t,[Qz,A6],[Kz,rW],[eW,nW],[tW,iW])}function L6(t){return up(Hz(t),[jz,qz])}function k6(t){return up(t,[Yz,x6],[Zz,x6],[Xz,Jz])}function O6(t){return up(t,[Wz,Bz])}function N6(t){return up(t,[zz,oW])}function R6(t){return up(t,[sW,A6],[aW,cW])}var E6,T6,kz,z2,P6,W2,Oz,Nz,Rz,Dz,$z,Fz,M6,Uz,zz,Wz,Gz,jz,Yz,Zz,Xz,Qz,Kz,eW,tW,A6,rW,nW,iW,oW,sW,aW,cW,G2=N(()=>{An();T0();np();Ma();E6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;T6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,kz=`(?:${T6.source}?(?:\\[(${E6.source})\\])?)?`,z2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,P6=RegExp(`${z2.source}${kz}`),W2=RegExp(`(?:T${P6.source})?`),Oz=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Nz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Rz=/(\d{4})-?(\d{3})/,Dz=C6("weekYear","weekNumber","weekDay"),$z=C6("year","ordinal"),Fz=/(\d{4})-(\d\d)-(\d\d)/,M6=RegExp(`${z2.source} ?(?:${T6.source}|(${E6.source}))?`),Uz=RegExp(`(?: ${M6.source})?`);zz=RegExp(`^T?${z2.source}$`),Wz=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;Gz={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};jz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;Yz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Zz=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Xz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;Qz=cp(Oz,W2),Kz=cp(Nz,W2),eW=cp(Rz,W2),tW=cp(P6),A6=lp(Vz,dp,Zm,Xm),rW=lp(Dz,dp,Zm,Xm),nW=lp($z,dp,Zm,Xm),iW=lp(dp,Zm,Xm);oW=lp(dp);sW=cp(Fz,Uz),aW=cp(M6),cW=lp(dp,Zm,Xm)});function Na(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new nr(n)}function U6(t,e){let r=e.milliseconds??0;for(let n of dW.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function $6(t,e){let r=U6(t,e)<0?-1:1;El.reduceRight((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]*r,s=t[i][n],c=Math.floor(o/s);e[i]+=c*r,e[n]-=c*s*r}return i},null),El.reduce((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]%1;e[n]-=o,e[i]+=o*t[n][i]}return i},null)}function pW(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var D6,F6,lW,Mi,pp,uW,El,dW,nr,Jm=N(()=>{Ea();Ym();Wm();zm();G2();An();Aa();Ia();D6="Invalid Duration",F6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},lW={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...F6},Mi=146097/400,pp=146097/4800,uW={years:{quarters:4,months:12,weeks:Mi/7,days:Mi,hours:Mi*24,minutes:Mi*24*60,seconds:Mi*24*60*60,milliseconds:Mi*24*60*60*1e3},quarters:{months:3,weeks:Mi/28,days:Mi/4,hours:Mi*24/4,minutes:Mi*24*60/4,seconds:Mi*24*60*60/4,milliseconds:Mi*24*60*60*1e3/4},months:{weeks:pp/7,days:pp,hours:pp*24,minutes:pp*24*60,seconds:pp*24*60*60,milliseconds:pp*24*60*60*1e3},...F6},El=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],dW=El.slice(0).reverse();nr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?uW:lW;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||pt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new ar(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:sp(e,t.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Ki(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new ar(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=O6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=N6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new ar("need to specify a reason the Duration is invalid");let n=e instanceof Gr?e:new Gr(e,r);if(dt.throwOnInvalid)throw new b0(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new ep(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?jr.create(this.loc,n).formatDurationFromString(this,e):D6}toHuman(e={}){if(!this.isValid)return D6;let r=El.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=rp(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Te.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?U6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let i of El)(ka(r.values,i)||ka(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Na(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=$2(e(this.values[n],n));return Na(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...sp(e,t.normalizeUnit)};return Na(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:n};return Na(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return $6(this.matrix,e),Na(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=pW(this.normalize().shiftToAll().toObject());return Na(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of El)if(e.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Ki(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Ki(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return $6(this.matrix,r),Na(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Na(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of El)if(!r(this.values[n],e.values[n]))return!1;return!0}}});function fW(t,e){return!t||!t.isValid?_s.invalid("missing or invalid start"):!e||!e.isValid?_s.invalid("missing or invalid end"):e<t?_s.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var fp,_s,j2=N(()=>{Ia();Jm();Aa();Ea();Wm();Ym();Fm();fp="Invalid Interval";_s=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new ar("need to specify a reason the Interval is invalid");let n=e instanceof Gr?e:new Gr(e,r);if(dt.throwOnInvalid)throw new y0(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=mp(e),i=mp(r),o=fW(n,i);return o??new t({start:n,end:i})}static after(e,r){let n=nr.fromDurationLike(r),i=mp(e);return t.fromDateTimes(i,i.plus(n))}static before(e,r){let n=nr.fromDurationLike(r),i=mp(e);return t.fromDateTimes(i.minus(n),i)}static fromISO(e,r){let[n,i]=(e||"").split("/",2);if(n&&i){let o,s;try{o=Te.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Te.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return t.fromDateTimes(o,c);if(s){let d=nr.fromISO(i,r);if(d.isValid)return t.after(o,d)}else if(a){let d=nr.fromISO(n,r);if(d.isValid)return t.before(c,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(mp).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(t.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(e){let r=nr.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(t.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,i=[],o=e.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(t.fromDateTimes(r,a.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:fp}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ca,r={}){return this.isValid?jr.create(this.s.loc.clone(r),e).formatInterval(this):fp}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:fp}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:fp}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:fp}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:fp}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):nr.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}}});var Ss,q2=N(()=>{Ia();Aa();zm();Ma();P0();An();Ss=class{static hasDST(e=dt.defaultZone){let r=Te.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return cr.isValidZone(e)}static normalizeZone(e){return Qi(e,dt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return pt.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return pt.create(r,null,"gregory").eras(e)}static features(){return{relative:E0(),localeWeek:C0()}}}});function V6(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(nr.fromMillis(n).as("days"))}function mW(t,e,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=V6(a,d);return(h-h%7)/7}],["days",V6]],i={},o=t,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(t,e),c=o.plus(i),c>e?(i[a]--,t=o.plus(i),t>e&&(c=t,i[a]--,t=o.plus(i))):t=c);return[t,i,c,s]}function z6(t,e,r,n){let[i,o,s,c]=mW(t,e,r),a=e-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<e&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=nr.fromObject(o,n);return d.length>0?nr.fromMillis(a,n).shiftTo(...d).plus(h):h}var W6=N(()=>{Jm()});function ht(t,e=r=>r){return{regex:t,deser:([r])=>e(QT(r))}}function wW(t){return t.replace(/\./g,"\\.?").replace(q6,j6)}function B6(t){return t.replace(/\./g,"").replace(q6," ").toLowerCase()}function eo(t,e){return t===null?null:{regex:RegExp(t.map(wW).join("|")),deser:([r])=>t.findIndex(n=>B6(r)===B6(n))+e}}function G6(t,e){return{regex:t,deser:([,r,n])=>_l(r,n),groups:e}}function L0(t){return{regex:t,deser:([e])=>e}}function yW(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function bW(t,e){let r=Ti(e),n=Ti(e,"{2}"),i=Ti(e,"{3}"),o=Ti(e,"{4}"),s=Ti(e,"{6}"),c=Ti(e,"{1,2}"),a=Ti(e,"{1,3}"),d=Ti(e,"{1,6}"),h=Ti(e,"{1,9}"),g=Ti(e,"{2,4}"),v=Ti(e,"{4,6}"),E=$=>({regex:RegExp(yW($.val)),deser:([z])=>z,literal:!0}),k=($=>{if(t.literal)return E($);switch($.val){case"G":return eo(e.eras("short"),0);case"GG":return eo(e.eras("long"),0);case"y":return ht(d);case"yy":return ht(g,Hm);case"yyyy":return ht(o);case"yyyyy":return ht(v);case"yyyyyy":return ht(s);case"M":return ht(c);case"MM":return ht(n);case"MMM":return eo(e.months("short",!0),1);case"MMMM":return eo(e.months("long",!0),1);case"L":return ht(c);case"LL":return ht(n);case"LLL":return eo(e.months("short",!1),1);case"LLLL":return eo(e.months("long",!1),1);case"d":return ht(c);case"dd":return ht(n);case"o":return ht(a);case"ooo":return ht(i);case"HH":return ht(n);case"H":return ht(c);case"hh":return ht(n);case"h":return ht(c);case"mm":return ht(n);case"m":return ht(c);case"q":return ht(c);case"qq":return ht(n);case"s":return ht(c);case"ss":return ht(n);case"S":return ht(a);case"SSS":return ht(i);case"u":return L0(h);case"uu":return L0(c);case"uuu":return ht(r);case"a":return eo(e.meridiems(),0);case"kkkk":return ht(o);case"kk":return ht(g,Hm);case"W":return ht(c);case"WW":return ht(n);case"E":case"c":return ht(r);case"EEE":return eo(e.weekdays("short",!1),1);case"EEEE":return eo(e.weekdays("long",!1),1);case"ccc":return eo(e.weekdays("short",!0),1);case"cccc":return eo(e.weekdays("long",!0),1);case"Z":case"ZZ":return G6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return G6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return L0(/[a-z_+-/]{1,256}?/i);case" ":return L0(/[^\S\n\r]/);default:return E($)}})(t)||{invalidReason:hW};return k.token=t,k}function _W(t,e,r){let{type:n,value:i}=t;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=e[n],s=n;n==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=vW[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function SW(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function xW(t,e,r){let n=t.match(e);if(n){let i={},o=1;for(let s in r)if(ka(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function EW(t){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return Ge(t.z)||(r=cr.create(t.z)),Ge(t.Z)||(r||(r=new xt(t.Z)),n=t.Z),Ge(t.q)||(t.M=(t.q-1)*3+1),Ge(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ge(t.u)||(t.S=qm(t.u)),[Object.keys(t).reduce((o,s)=>{let c=e(s);return c&&(o[c]=t[s]),o},{}),r,n]}function CW(){return H2||(H2=Te.fromMillis(1555555555555)),H2}function TW(t,e){if(t.literal)return t;let r=jr.macroTokenToFormatOpts(t.val),n=X2(r,e);return n==null||n.includes(void 0)?t:n}function Y2(t,e){return Array.prototype.concat(...t.map(r=>TW(r,e)))}function Z2(t,e,r){return new Qm(t,r).explainFromTokens(e)}function H6(t,e,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=Z2(t,e,r);return[n,i,o,s]}function X2(t,e){if(!t)return null;let n=jr.create(e,t).dtFormatter(CW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>_W(s,t,o))}var hW,gW,j6,q6,vW,H2,Qm,Y6=N(()=>{An();Ym();np();Ma();Ia();A2();Ea();hW="missing Intl.DateTimeFormat.formatToParts support";gW="\xA0",j6=`[ ${gW}]`,q6=new RegExp(j6,"g");vW={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};H2=null;Qm=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Y2(jr.parseFormat(r),e),this.units=this.tokens.map(n=>bW(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=SW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,n]=xW(e,this.regex,this.handlers),[i,o,s]=n?EW(n):[null,null,void 0];if(ka(n,"a")&&ka(n,"H"))throw new Zi("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Km(t){return new Gr("unsupported zone",`the zone "${t.name}" is not supported`)}function Q2(t){return t.weekData===null&&(t.weekData=Bm(t.c)),t.weekData}function K2(t){return t.localWeekData===null&&(t.localWeekData=Bm(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Cl(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Te({...r,...e,old:r})}function r8(t,e,r){let n=t-e*60*1e3,i=r.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[t-Math.min(i,o)*60*1e3,Math.max(i,o)]}function k0(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function N0(t,e,r){return r8(tp(t),e,r)}function X6(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:n,month:i,day:Math.min(t.c.day,op(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=nr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=tp(o),[a,d]=r8(c,r,t.zone);return s!==0&&(a+=s,d=t.zone.offset(a)),{ts:a,o:d}}function hp(t,e,r,n,i,o){let{setZone:s,zone:c}=r;if(t&&Object.keys(t).length!==0||e){let a=e||c,d=Te.fromObject(t,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Te.invalid(new Gr("unparsable",`the input "${i}" can't be parsed as ${n}`))}function O0(t,e,r=!0){return t.isValid?jr.create(pt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function eS(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=rr(t.c.year,r?6:4),e?(n+="-",n+=rr(t.c.month),n+="-",n+=rr(t.c.day)):(n+=rr(t.c.month),n+=rr(t.c.day)),n}function J6(t,e,r,n,i,o){let s=rr(t.c.hour);return e?(s+=":",s+=rr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=":")):s+=rr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=rr(t.c.second),(t.c.millisecond!==0||!n)&&(s+=".",s+=rr(t.c.millisecond,3))),i&&(t.isOffsetFixed&&t.offset===0&&!o?s+="Z":t.o<0?(s+="-",s+=rr(Math.trunc(-t.o/60)),s+=":",s+=rr(Math.trunc(-t.o%60))):(s+="+",s+=rr(Math.trunc(t.o/60)),s+=":",s+=rr(Math.trunc(t.o%60)))),o&&(s+="["+t.zone.ianaName+"]"),s}function LW(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new ep(t);return e}function Q6(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return LW(t)}}function kW(t){if(eh===void 0&&(eh=dt.now()),t.type!=="iana")return t.offset(eh);let e=t.name,r=tS.get(e);return r===void 0&&(r=t.offset(eh),tS.set(e,r)),r}function K6(t,e){let r=Qi(e.zone,dt.defaultZone);if(!r.isValid)return Te.invalid(Km(r));let n=pt.fromObject(e),i,o;if(Ge(t.year))i=dt.now();else{for(let a of i8)Ge(t[a])&&(t[a]=n8[a]);let s=O2(t)||N2(t);if(s)return Te.invalid(s);let c=kW(r);[i,o]=N0(t,c,r)}return new Te({ts:i,zone:r,loc:n,o})}function e8(t,e,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=rp(s,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(t>e?-0:0,r.units[r.units.length-1])}function t8(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}function mp(t){if(Te.isDateTime(t))return t;if(t&&t.valueOf&&Ki(t.valueOf()))return Te.fromJSDate(t);if(t&&typeof t=="object")return Te.fromObject(t);throw new ar(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var J2,Z6,n8,PW,MW,i8,AW,IW,eh,tS,Te,Ia=N(()=>{Jm();j2();Aa();q2();Ym();np();zm();An();P0();W6();G2();Y6();R2();Fm();Ea();Wm();J2="Invalid DateTime",Z6=864e13;n8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},PW={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},MW={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i8=["year","month","day","hour","minute","second","millisecond"],AW=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],IW=["year","ordinal","hour","minute","second","millisecond"];tS=new Map,Te=class t{constructor(e){let r=e.zone||dt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Gr("invalid input"):null)||(r.isValid?null:Km(r));this.ts=Ge(e.ts)?dt.now():e.ts;let i=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,o]=[e.old.c,e.old.o];else{let c=Ki(e.o)&&!e.old?e.o:r.offset(this.ts);i=k0(this.ts,c),n=Number.isNaN(i.year)?new Gr("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=e.loc||pt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=t8(arguments),[n,i,o,s,c,a,d]=r;return K6({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static utc(){let[e,r]=t8(arguments),[n,i,o,s,c,a,d]=r;return e.zone=xt.utcInstance,K6({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static fromJSDate(e,r={}){let n=h6(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let i=Qi(r.zone,dt.defaultZone);return i.isValid?new t({ts:n,zone:i,loc:pt.fromObject(r)}):t.invalid(Km(i))}static fromMillis(e,r={}){if(Ki(e))return e<-Z6||e>Z6?t.invalid("Timestamp out of range"):new t({ts:e,zone:Qi(r.zone,dt.defaultZone),loc:pt.fromObject(r)});throw new ar(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Ki(e))return new t({ts:e*1e3,zone:Qi(r.zone,dt.defaultZone),loc:pt.fromObject(r)});throw new ar("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=Qi(r.zone,dt.defaultZone);if(!n.isValid)return t.invalid(Km(n));let i=pt.fromObject(r),o=sp(e,Q6),{minDaysInFirstWeek:s,startOfWeek:c}=k2(o,i),a=dt.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),E=g||v,M=o.weekYear||o.weekNumber;if((E||h)&&M)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Zi("Can't mix ordinal dates with month/day");let k=M||o.weekday&&!E,$,z,B=k0(a,d);k?($=AW,z=PW,B=Bm(B,s,c)):h?($=IW,z=MW,B=I0(B)):($=i8,z=n8);let q=!1;for(let Ce of $){let Ne=o[Ce];Ge(Ne)?q?o[Ce]=z[Ce]:o[Ce]=B[Ce]:q=!0}let V=k?p6(o,s,c):h?f6(o):O2(o),X=V||N2(o);if(X)return t.invalid(X);let te=k?I2(o,s,c):h?L2(o):o,[F,me]=N0(te,d,n),Le=new t({ts:F,zone:n,o:me,loc:i});return o.weekday&&E&&e.weekday!==Le.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Le.toISO()}`):Le.isValid?Le:t.invalid(Le.invalid)}static fromISO(e,r={}){let[n,i]=I6(e);return hp(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,i]=L6(e);return hp(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,i]=k6(e);return hp(n,i,r,"HTTP",r)}static fromFormat(e,r,n={}){if(Ge(e)||Ge(r))throw new ar("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=H6(s,e,r);return h?t.invalid(h):hp(c,a,n,`format ${r}`,e,d)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,i]=R6(e);return hp(n,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new ar("need to specify a reason the DateTime is invalid");let n=e instanceof Gr?e:new Gr(e,r);if(dt.throwOnInvalid)throw new w0(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=X2(e,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Y2(jr.parseFormat(e),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){eh=void 0,tS.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Q2(this).weekYear:NaN}get weekNumber(){return this.isValid?Q2(this).weekNumber:NaN}get weekday(){return this.isValid?Q2(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?K2(this).weekday:NaN}get localWeekNumber(){return this.isValid?K2(this).weekNumber:NaN}get localWeekYear(){return this.isValid?K2(this).weekYear:NaN}get ordinal(){return this.isValid?I0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ss.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ss.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ss.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ss.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=tp(this.c),i=this.zone.offset(n-e),o=this.zone.offset(n+e),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=k0(a,s),g=k0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Cl(this,{ts:a}),Cl(this,{ts:d})]:[this]}get isInLeapYear(){return xl(this.year)}get daysInMonth(){return op(this.year,this.month)}get daysInYear(){return this.isValid?La(this.year):NaN}get weeksInWeekYear(){return this.isValid?Sl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Sl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:i}=jr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(xt.instance(e),r)}toLocal(){return this.setZone(dt.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Qi(e,dt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||n){let o=e.offset(this.ts),s=this.toObject();[i]=N0(s,o,e)}return Cl(this,{ts:i,zone:e})}else return t.invalid(Km(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return Cl(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=sp(e,Q6),{minDaysInFirstWeek:n,startOfWeek:i}=k2(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Zi("Can't mix ordinal dates with month/day");let g;o?g=I2({...Bm(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(op(g.year,g.month),g.day))):g=L2({...I0(this.c),...r});let[v,E]=N0(g,this.o,this.zone);return Cl(this,{ts:v,o:E})}plus(e){if(!this.isValid)return this;let r=nr.fromDurationLike(e);return Cl(this,X6(this,r))}minus(e){if(!this.isValid)return this;let r=nr.fromDurationLike(e).negate();return Cl(this,X6(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=nr.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?jr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):J2}toLocaleString(e=Ca,r={}){return this.isValid?jr.create(this.loc.clone(r),e).formatDateTime(this):J2}toLocaleParts(e={}){return this.isValid?jr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=e==="extended",c=eS(this,s);return c+="T",c+=J6(this,s,r,n,i,o),c}toISODate({format:e="extended"}={}){return this.isValid?eS(this,e==="extended"):null}toISOWeekDate(){return O0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+J6(this,s==="extended",r,e,n,o):null}toRFC2822(){return O0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return O0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?eS(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(n&&(i+=" "),r?i+="z":e&&(i+="ZZ")),O0(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():J2}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return nr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=g6(r).map(nr.normalizeUnit),s=e.valueOf()>this.valueOf(),c=s?this:e,a=s?e:this,d=z6(c,a,o,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?_s.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let i=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=void 0),e8(r,this.plus(n),{...e,numeric:"always",units:i,unit:o})}toRelativeCalendar(e={}){return this.isValid?e8(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new ar("min requires all arguments be DateTimes");return D2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new ar("max requires all arguments be DateTimes");return D2(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return Z2(s,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=pt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Qm(o,e)}static fromFormatParser(e,r,n={}){if(Ge(e)||Ge(r))throw new ar("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new ar(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(e);return h?t.invalid(h):hp(c,a,n,`format ${r.format}`,e,d)}static get DATE_SHORT(){return Ca}static get DATE_MED(){return bm}static get DATE_MED_WITH_WEEKDAY(){return s2}static get DATE_FULL(){return vm}static get DATE_HUGE(){return _m}static get TIME_SIMPLE(){return Sm}static get TIME_WITH_SECONDS(){return xm}static get TIME_WITH_SHORT_OFFSET(){return Em}static get TIME_WITH_LONG_OFFSET(){return Cm}static get TIME_24_SIMPLE(){return Tm}static get TIME_24_WITH_SECONDS(){return Pm}static get TIME_24_WITH_SHORT_OFFSET(){return Mm}static get TIME_24_WITH_LONG_OFFSET(){return Am}static get DATETIME_SHORT(){return Im}static get DATETIME_SHORT_WITH_SECONDS(){return Lm}static get DATETIME_MED(){return km}static get DATETIME_MED_WITH_SECONDS(){return Om}static get DATETIME_MED_WITH_WEEKDAY(){return a2}static get DATETIME_FULL(){return Nm}static get DATETIME_FULL_WITH_SECONDS(){return Rm}static get DATETIME_HUGE(){return Dm}static get DATETIME_HUGE_WITH_SECONDS(){return $m}}});var In=N(()=>{Ia();Jm();j2();q2();vl();np();Ma();T2();_0();Aa()});function Tl(t){return t instanceof _r?t===qr.instance:t?.toString().toLowerCase()==="unknown"}function R0(t){return Tl(t)?qr.instance:t}var qr,th=N(()=>{In();qr=class{static{this.instance=new cr("Etc/UTC")}}});function gp(t,e,r){return t<e?t-e:t>r?t-r:0}function wp(t,e,r){return t<e?e:t>r?r:t}function to(t,e=!0){if(t instanceof _r)return t;if(t.toLowerCase()==="system")return"system";if(t.toLowerCase()==="utc")return"UTC";if(t.toLowerCase()==="unknown")return qr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(t)){let n=xt.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(n)return n}let r=cr.create(t);if(!r.isValid){if(e)throw new rS(D0.TimeZoneNotRecognized);return null}return r}var D0,OW,rS,rh,o8=N(()=>{xa();th();In();(function(t){t.TimeZoneNotRecognized="TimeZoneNotRecognized"})(D0||(D0={}));OW={[D0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},rS=class t extends Error{constructor(e,r){super(Fo(OW[e],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}};rh=class t{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Te.local(e,r).daysInMonth,h=Te.fromObject({day:wp(n,1,d),year:e,month:wp(r,1,12),hour:wp(i,0,23),minute:wp(o,0,59),second:wp(s,0,59),millisecond:wp(c,0,999)},{zone:to(a)});return h=h.plus({months:gp(r,1,12),days:gp(n,1,d),hours:gp(i,0,23),minutes:gp(o,0,59),seconds:gp(s,0,59),milliseconds:gp(c,0,999)}),new t(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,r){let n=to(r);return e.isUnknownTimeZone||n===qr.instance?t.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e._date.setZone(n))}static dateJSToArcadeDate(e){return new t(Te.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new t(Te.fromMillis(e,{zone:qr.instance}))}static unknownDateJSToArcadeDate(e){return new t(Te.fromMillis(e.getTime(),{zone:qr.instance}))}static epochToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new t(e)}clone(){return new t(this._date)}changeTimeZone(e){let r=to(e);return t.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(e,r){let n=to(r);return e.zone===qr.instance||n===qr.instance?t.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e.setZone(n))}static nowToArcadeDate(e){let r=to(e);return new t(Te.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new t(Te.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===t.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===qr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let e=this.zone;return e.type==="fixed"?e.fixed===0?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new t(this._date.plus(e))}diff(e,r="milliseconds"){return this._date.diff(e._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,r){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(e,r){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new t(this._date.toUTC())}toLocal(){return new t(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;let r=Te.fromISO(e,{setZone:!0});return new t(r)}}});function yt(t){return t?{remove(){t&&(t(),t=void 0)}}:NW}function RW(t){t.forEach(e=>e?.remove())}function Pl(t){return yt(()=>RW(t))}var NW,jn=N(()=>{NW={remove:()=>{}}});function a8(){let t=nS?.getAttribute("lang"),e=globalThis.navigator?.language;return $W??t??e??"en"}function si(){return nh===void 0&&(nh=a8()),nh}function c8(t=si()){return FW.exec(t)?.groups}function iS(t){return $0.push(t),yt(()=>{$0.splice($0.indexOf(t),1)})}function yp(t){return F0.push(t),yt(()=>F0.splice(F0.indexOf(t),1))}function s8(){let t=DW??a8();nh!==t&&([...F0].forEach(e=>e(t)),nh=t,[...$0].forEach(e=>e(t)))}var DW,nh,$W,nS,FW,$0,F0,Ra=N(()=>{jn();St();$W=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,nS=globalThis.document?.documentElement;FW=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;$0=[];F0=[];globalThis.addEventListener?.("languagechange",s8),nS&&new MutationObserver(()=>{s8()}).observe(nS,{attributeFilter:["lang"]})});function l8(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}var u8,Hr,ih=N(()=>{o8();Ra();In();u8="esri.core.sql.dateonly",Hr=class t{constructor(e,r,n){this._year=e,this._month=r,this._day=n,this.declaredRootClass=u8}static isDateOnly(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===u8}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return t.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new t(this._year,this._month,this._day)}toDateTime(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toDateTimeLuxon(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,r=!0){if(e===null||e==="")return this.toString();if(r&&(e=l8(e)),!e)return"";let n=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(n).toFormat(e,{locale:si(),numberingSystem:"latn"})}toArcadeDate(){let e=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,r){return t.fromDateTime(this.toUTCDateTime().plus({[e]:r}))}toUTCDateTime(){return Te.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){let r=Te.fromMillis(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromSeconds(e){let r=Te.fromSeconds(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromReader(e){if(!e)return null;let r=e.split("-");return r.length!==3?null:new t(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(e,r,n){let i=new t(e,r,n);return i.isValid===!1?null:i}static fromDateJS(e){return t.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return t.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,r=null){if(e===""||e===null)return null;let n=[];if(r)(r=l8(r))&&n.push(r);else if(r===null||r===""){let i=Te.fromISO(e,{setZone:!0});return i.isValid?t.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Te.fromFormat(e,r??i);if(o.isValid)return new t(o.year,o.month,o.day)}return null}static fromNow(e="system"){let r=Te.fromJSDate(new Date).setZone(to(e));return new t(r.year,r.month,r.day)}}});var J,UW,ne,Da=N(()=>{xa();(function(t){t.InvalidFunctionParameters="InvalidFunctionParameters",t.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",t.UnsupportedSqlFunction="UnsupportedSqlFunction",t.UnsupportedOperator="UnsupportedOperator",t.UnsupportedSyntax="UnsupportedSyntax",t.UnsupportedIsRhs="UnsupportedIsRhs",t.UnsupportedIsLhs="UnsupportedIsLhs",t.InvalidDataType="InvalidDataType",t.CannotCastValue="CannotCastValue",t.FunctionNotRecognized="FunctionNotRecognized",t.InvalidTime="InvalidTime",t.InvalidParameterCount="InvalidParameterCount",t.InvalidTimeStamp="InvalidTimeStamp",t.InvalidDate="InvalidDate",t.InvalidOperator="InvalidOperator",t.IllegalInterval="IllegalInterval",t.YearMonthIntervals="YearMonthIntervals",t.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",t.MissingStatisticParameters="MissingStatisticParameters"})(J||(J={}));UW={[J.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[J.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[J.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[J.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[J.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[J.UnsupportedOperator]:"Unsupported operator - {operator}",[J.UnsupportedSyntax]:"Unsupported syntax - {node}",[J.UnsupportedSqlFunction]:"Sql function not found = {function}",[J.InvalidDataType]:"Invalid sql data type",[J.InvalidDate]:"Invalid date encountered",[J.InvalidOperator]:"Invalid operator encountered",[J.InvalidTime]:"Invalid time encountered",[J.IllegalInterval]:"Illegal interval",[J.FunctionNotRecognized]:"Function not recognized",[J.InvalidTimeStamp]:"Invalid timestamp encountered",[J.InvalidParameterCount]:"Invalid parameter count for call to {name}",[J.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[J.YearMonthIntervals]:"Year-Month Intervals not supported",[J.CannotCastValue]:"Cannot cast value to the required data type"},ne=class t extends Error{constructor(e,r){super(Fo(UW[e],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}});function d8(t){return Number.isNaN(t)||t===0?t:Math.trunc(t)}var p8,sn,oh=N(()=>{In();p8="esri.core.sql.SqlTimeStampOffset",sn=class t{constructor(e){this._timeStampOffset=e,this.declaredRootClass=p8,this._date=null}static isTimestampOffset(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===p8}toDateTime(){return this._date??=Te.fromISO(this._timeStampOffset,{setZone:!0}),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return d8(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return d8(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return t.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(e){return new t(Te.fromJSDate(e).toISO({includeOffset:!0}))}static fromDateTime(e){return new t(e.toISO({includeOffset:!0}))}static fromParts(e,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${e.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let E=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(E+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new t(g+"T"+E+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let e=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return e&&(e=e.replace(".000","")),e}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(e){let r=this.toDateTime().plus(e);return t.fromDateTime(r)}}});function ae(t,e,r,n){var i,o=arguments.length,s=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}var ai=N(()=>{});var U0,V0=N(()=>{U0="20250407"});var bt,$a=N(()=>{St();$o();V0();bt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(VT(bt,globalThis.esriConfig,!0),delete bt.has),!bt.assetsPath){{let t="4.33.0";bt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${t}-next.${U0}/assets`}bt.defaultAssetsPath=bt.assetsPath}});function VW(t,e,...r){console[t](`[${e}]`,...r)}function zW(...t){return jT(JSON.stringify(t,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var f8,nt,Vt=N(()=>{$a();St();xa();f8={info:0,warn:1,error:2,none:3},nt=class t{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},e.level!=null&&(this.level=e.level),e.writer!=null&&(this.writer=e.writer),this._module=e.module,t._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=t.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e=typeof e!="string"?e.declaredClass:e,t._loggers.get(e)||new t({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,r,...n){if(this._matchLevel(e)){if(r!=="always"&&!t._throttlingDisabled){let i=zW(n),o=this._loggedMessages[e].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=t._tickCounter)return;this._loggedMessages[e].set(i,t._tickCounter),t._scheduleTickCounterIncrement()}for(let i of bt.log.interceptors)if(i(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,r){let n=this;for(;n!=null;){let i=n[e];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",VW)}_matchLevel(e){let r=bt.log.level||"warn";return f8[this._parentWithMember("level",r)]<=f8[e]}static _scheduleTickCounterIncrement(){t._tickCounterScheduled||(t._tickCounterScheduled=!0,Promise.resolve().then(()=>{t._tickCounter++,t._tickCounterScheduled=!1}))}}});function bp(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=r();return t.set(e,i),i}var z0=N(()=>{});function WW(t){return t==null?t:new Date(t)}function BW(t){return t==null?t:!!t}function GW(t){return t==null?t:t.toString()}function cS(t,e=0){return t==null?t:(t=parseFloat(t),isNaN(t)?e:t)}function jW(t){return t==null?t:Math.round(parseFloat(t))}function qW(t){return null}function h8(t,e){return r=>{let n=t(r);return e.step!=null&&(n=Math.round(n/e.step)*e.step),e.min!=null&&(n=Math.max(e.min,n)),e.max!=null&&(n=Math.min(e.max,n)),n}}function g8(t){return t?.constructor&&t.constructor.__accessorMetadata__!==void 0}function W0(t,e){return e!=null&&t&&!(e instanceof t)}function w8(t){return t&&"isCollection"in t}function m8(t){return t?.Type?typeof t.Type=="function"?t.Type:t.Type.base:null}function HW(t,e){if(!e?.constructor||!w8(e.constructor))return oS(t,e)?e:new t(e);let r=m8(t.prototype.itemType),n=m8(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(oS(t,e),e):new t(e):e}function oS(t,e){return!!g8(e)&&(vp().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+B0(t)+"'"),!0)}function YW(t,e){return e==null?e:w8(t)?HW(t,e):W0(t,e)?oS(t,e)?e:new t(e):e}function B0(t){return t?.prototype?.declaredClass||"unknown"}function XW(t){switch(t){case Number:return e=>cS(e);case Vo:return jW;case Boolean:return BW;case String:return GW;case Date:return WW;case ah:return qW;default:return bp(ZW,t,()=>YW.bind(null,t))}}function Uo(t,e){let r=XW(t);return arguments.length===1?r:r(e)}function _p(t,e,r){return arguments.length===1?_p.bind(null,t):e&&(Array.isArray(e)?e.map(n=>t(n,r)):[t(e,r)])}function y8(t,e){return arguments.length===1?_p(r=>Uo(t,r)):_p(r=>Uo(t,r),e)}function b8(t,e,r){return e!==0&&Array.isArray(r)?r.map(n=>b8(t,e-1,n)):t(r)}function sh(t,e,r){if(arguments.length===2)return o=>sh(t,e,o);if(!r)return r;r=b8(t,e,r);let n=e,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function v8(t,e,r){return arguments.length===2?sh(n=>Uo(t,n),e):sh(n=>Uo(t,n),e,r)}function G0(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!(r==="string"||r==="number"||r==="function"&&t.length>1)})}function j0(t,e){if(arguments.length===2)return j0(t).call(null,e);let r=new Set,n=t.filter(c=>typeof c!="function"),i=t.filter(c=>typeof c=="function");for(let c of t)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!W0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),vp().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>B0(g)).join(", ")),vp().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):vp().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function q0(t,e){if(arguments.length===2)return q0(t).call(null,e);let r={},n=[],i=[];for(let a in t.typeMap){let d=t.typeMap[a];r[a]=Uo(d),n.push(B0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof t.key=="string"?a=>a[t.key]:t.key;return a=>{if(t.base&&!W0(t.base,a)||a==null)return a;let d=c(a)||t.defaultKeyValue,h=r[d];if(!h)return vp().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!W0(t.typeMap[d],a))return a;if(typeof t.key=="string"&&!g8(a)){let g={};for(let v in a)v!==t.key&&(g[v]=a[v]);return h(g)}return h(a)}}function _8(t){if(!t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function lS(t){switch(t.type){case"native":return Uo(t.value);case"array":return _p(lS(t.value));case"one-of":return JW(t);default:return null}}function JW(t){let e=null;return(r,n)=>aS(r,t)?r:(e==null&&(e=sS(t)),vp().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}function sS(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case Vo:return"integer";case Date:return"date";case ah:return"null";default:return B0(t.value)}case"array":return`array of ${sS(t.value)}`;case"one-of":{let e=t.values.map(r=>sS(r));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function aS(t,e){if(t==null)return!0;switch(e.type){case"native":switch(e.value){case Number:case Vo:return typeof t=="number";case Boolean:return typeof t=="boolean";case String:return typeof t=="string";case ah:return t===null}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(r=>!aS(r,e.value));case"one-of":return e.values.some(r=>aS(t,r))}}var vp,ZW,Vo,ah,Sp=N(()=>{St();Vt();z0();vp=()=>nt.getLogger("esri.core.accessorSupport.ensureTypes");ZW=new WeakMap;Vo=class{},ah=class{}});function zo(t){return t.__accessor__??null}function x8(t,e){return t?.metadata?.[e]!=null}function xp(t,e,r){return r?H0(t,e,{policy:r,path:""}):H0(t,e,null)}function H0(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=e[o],n;if(n[o]===void 0)return n[o]=Ht(e[o]),n;let a=n[o],d=e[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=H0(a,d,r),r.path=h}else n[o]=H0(a,d,null);else n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[o]=d);return n},t||{}):t}function Y0(t){return Array.isArray(t)?t:t.split(".")}function S8(t){return t.includes(",")?t.split(",").map(e=>e.trim()):[t.trim()]}function QW(t){if(Array.isArray(t)){let e=[];for(let r of t)e.push(...S8(r));return e}return S8(t)}function uS(t,e,r,n){let i=QW(e);if(i.length!==1){let o=i.map(s=>n(t,s,r));return Pl(o)}return n(t,i[0],r)}var Fa=N(()=>{jn();Mn()});function E8(t,e){let r=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(e)?e[i]:e.at(i)}let n=zo(e);return x8(n,r)?n.get(r):e[r]}function C8(t,e,r){if(t==null)return t;let n=E8(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:C8(n,e,r+1)}function Ml(t,e,r=0){return typeof e!="string"||e.includes(".")?C8(t,Y0(e),r):E8(e,t)}function Wo(t,e){return Ml(t,e)}function dS(t,e){return Ml(e,t)!==void 0}var Al=N(()=>{Fa()});function Ua(t){let e=t.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(let n in e)e[n]=Ht(e[n]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function Ep(t,e){let r=Ua(t),n=r[e];return n||(n=r[e]={}),n}function T8(t,e){return xp(t,e,eB)}function eB(t){return KW.test(t)?"replace":"merge"}var KW,Cp=N(()=>{Mn();Fa();KW=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function tB(t,e){return t.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Ci(n,e)??"").toString())}var Tp,pS=N(()=>{$o();Tp=class{constructor(e,r,n=void 0){this.name=e,this.details=n,this.message=(r&&tB(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,Ln=N(()=>{Mn();Vt();pS();We=class t extends Tp{constructor(e,r,n){super(e,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Ht(r)}catch{return"[object]"}}))}}catch(e){throw nt.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new t(e.name,e.message,e.details)}};We.prototype.type="error"});function Pp(t,e,r){if(t&&e)if(typeof e=="object")for(let n of Object.getOwnPropertyNames(e))Pp(t,n,e[n]);else{if(e.includes(".")){let i=e.split("."),o=i.splice(-1,1)[0];return void Pp(Wo(t,i),o,r)}let n=t.__accessor__;n!=null&&rB(e,n),t[e]=r}}function rB(t,e){if(pe("esri-unknown-property-errors")&&!nB(t,e))throw new We("set:unknown-property",iB(t,e))}function nB(t,e){return e.metadata[t]!=null}function iB(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}var fS=N(()=>{Ln();St();Vt();Al()});function fe(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(e,r),i=Ep(e,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in t&&nt.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),i.value=t.value=n.value)),t.readOnly!=null&&(i.readOnly=t.readOnly);let o=t.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=Wo(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=Wo(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Pp(this,a,g)})}let s=t.type,c=t.types;if(!i.cast){let a;s?a=oB(s):c&&(a=Array.isArray(c)?_p(q0(c[0])):q0(c)),t.cast=sB(t.cast,a)}T8(i,t),t.range&&(i.cast=h8(i.cast,t.range))}}function Z0(t,e,r){let n=Ep(t,r);n.json||(n.json={});let i=n.json;return e!==void 0&&(i.origins||(i.origins={}),i.origins[e]||(i.origins[e]={}),i=i.origins[e]),i}function oB(t){let e=0,r=t;if(_8(t))return lS(t);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],e++;let n=r;if(G0(n))return e===0?j0(n):sh(j0(n),e);if(e===1)return y8(n);if(e>1)return v8(n,e);let i=t;return i.from?i.from:Uo(i)}function sB(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}var ci=N(()=>{Vt();Sp();Al();Cp();fS()});var X0,mS=N(()=>{X0=Symbol("Accessor-beforeDestroy")});var Sr,ch=N(()=>{(function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CONSTRUCTING=1]="CONSTRUCTING",t[t.CONSTRUCTED=2]="CONSTRUCTED",t[t.DESTROYING=3]="DESTROYING",t[t.DESTROYED=4]="DESTROYED"})(Sr||(Sr={}))});var at,J0=N(()=>{(function(t){t[t.Dirty=1]="Dirty",t[t.Overridden=2]="Overridden",t[t.Computing=4]="Computing",t[t.NonNullable=8]="NonNullable",t[t.HasDefaultValue=16]="HasDefaultValue",t[t.DepTrackingInitialized=32]="DepTrackingInitialized",t[t.AutoTracked=64]="AutoTracked",t[t.ExplicitlyTracking=128]="ExplicitlyTracking"})(at||(at={}))});var Bo,lh=N(()=>{Bo=class{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.accessed?.clear(),this.clear()}onAccessed(e){this._observer!=null&&e!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(e))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let e=0;e<this._handles.length;++e)this._handles[e].remove();this._handles.length=0}}}});function lr(t){dh.onAccessed(t)}function ro(t,e,r){if(Q0)return hS(t,e,r);let n=null;return A8(t),n=e.call(r),I8(),n}function M8(t,e){return ro(ew,t,e)}function hS(t,e,r){let n=Q0;Q0=!0,A8(t);let i=null;try{i=e.call(r)}catch(o){K0&&nt.getLogger("esri.core.accessorSupport.tracking").error(o)}return I8(),Q0=n,i}function A8(t){dh=t,uh.push(t)}function I8(){let t=uh.length;if(t>1){let e=uh.pop();dh=uh[t-2],e.onTrackingEnd()}else if(t===1){let e=uh.pop();dh=ew,e.onTrackingEnd()}else dh=ew}function gS(t,e){if(e.flags&at.DepTrackingInitialized)return;e.flags|=at.DepTrackingInitialized;let r=K0;K0=!1,e.flags&at.AutoTracked?hS(e.trackingTarget,e.metadata.get,t):wS(t,e),K0=r}function wS(t,e){e.flags&at.ExplicitlyTracking||(e.flags|=at.ExplicitlyTracking,hS(e.trackingTarget,()=>{let r=e.metadata.dependsOn||aB;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Y0(n);for(let o=0,s=t;o<i.length&&s!=null&&typeof s=="object";++o)s=P8(s,i[o],o!==i.length-1)}else P8(t,n,!1)}),e.flags&=~at.ExplicitlyTracking)}function P8(t,e,r){let n=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(t)?t[o]:t.at(o)}let i=zo(t);if(i){let o=i.propertiesByName.get(n);o&&(lr(o),gS(t,o))}return r?t[n]:void 0}var ew,uh,dh,Q0,K0,aB,xs=N(()=>{St();Vt();Fa();J0();lh();ew=new Bo,uh=[],dh=ew;Q0=!1,K0=!1;aB=[]});function L8(t){if(t.json&&t.json.origins){let e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(e[n]){let i=e[n];r[n].forEach(o=>{e[o]=i}),delete e[n]}}}var k8=N(()=>{});var ph,O8=N(()=>{pS();ph=class extends Tp{constructor(e,r,n){super(e,r,n)}};ph.prototype.type="warning"});function tw(t){return!!t&&t.prototype?.declaredClass&&t.prototype.declaredClass.indexOf("esri.core.Collection")===0}var yS=N(()=>{});function vS(t,e,r){t&&(!r&&!e.read||e.read?.reader||e.read?.enabled===!1||dB(t)&&ys("read.reader",cB(t),e))}function cB(t){let e=t.ndimArray??0;if(e>1)return uB(t);if(e===1)return N8(t);if("type"in t&&D8(t.type)){let r=t.type.prototype?.itemType?.Type,n=N8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new t.type(c)}}return _S(t)}function _S(t){return"type"in t?lB(t.type):pB(t.types)}function lB(t){return t.prototype.read?(e,r,n)=>{if(e==null)return e;let i=typeof e;if(i!=="object")return void bS().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${i}'`);let o=new t;return o.read(e,n),o}:t.fromJSON}function R8(t,e,r,n){return n!==0&&Array.isArray(e)?e.map(i=>R8(t,i,r,n-1)):t(e,void 0,r)}function uB(t){let e=_S(t),r=R8.bind(null,e),n=t.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function N8(t){let e=_S(t);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=e(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=e(r,void 0,i);return o!==void 0?[o]:void 0}}function D8(t){if(!tw(t))return!1;let e=t.prototype.itemType;return!(!e||!e.Type)&&(typeof e.Type=="function"?SS(e.Type):$8(e.Type))}function dB(t){return"types"in t?$8(t.types):SS(t.type)}function SS(t){return!Array.isArray(t)&&!!t&&t.prototype&&("read"in t.prototype||"fromJSON"in t||D8(t))}function $8(t){for(let e in t.typeMap)if(!SS(t.typeMap[e]))return!1;return!0}function pB(t){let e=null,r=t.errorContext??"type",n=t.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void bS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);e||(e=fB(t));let a=t.key;if(typeof a!="string")return;let d=i[a],h=d?e[d]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new ph(`${r}:unsupported`,v,{definition:i,context:s})),void bS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function fB(t){let e={};for(let r in t.typeMap){let n=t.typeMap[r],i=Ua(n.prototype);if(typeof t.key=="function")continue;let o=i[t.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){e[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){e[r]=n;continue}let c=s.target,a=typeof c=="string"?c:t.key,d={};s.writer(r,d,a),d[a]&&(e[d[a]]=n)}return e}var bS,F8=N(()=>{Vt();$o();O8();Cp();yS();bS=()=>nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function W8(t){if(t.json||(t.json={}),V8(t.json),z8(t.json),U8(t.json),t.json.origins)for(let e in t.json.origins)V8(t.json.origins[e]),z8(t.json.origins[e]),U8(t.json.origins[e]);return!0}function U8(t){t.name&&(t.read&&typeof t.read=="object"?t.read.source===void 0&&(t.read.source=t.name):t.read={source:t.name},t.write&&typeof t.write=="object"?t.write.target===void 0&&(t.write.target=t.name):t.write={target:t.name})}function V8(t){typeof t.read=="boolean"?t.read={enabled:t.read}:typeof t.read=="function"?t.read={enabled:!0,reader:t.read}:t.read&&typeof t.read=="object"&&t.read.enabled===void 0&&(t.read.enabled=!0)}function z8(t){typeof t.write=="boolean"?t.write={enabled:t.write}:typeof t.write=="function"?t.write={enabled:!0,writer:t.write}:t.write&&typeof t.write=="object"&&t.write.enabled===void 0&&(t.write.enabled=!0)}var B8=N(()=>{});function xS(t,e){if(!e.write||e.write.writer||e.write.enabled===!1&&!e.write.overridePolicy)return;let r=t?.ndimArray??0;t&&(r===1||"type"in t&&tw(t.type))?e.write.writer=wB:r>1?e.write.writer=yB(r):e.types?Array.isArray(e.types)?e.write.writer=hB(e.types[0]):e.write.writer=mB(e.types):e.write.writer=fh}function mB(t){return(e,r,n,i)=>e?G8(e,t,i)?fh(e,r,n,i):void 0:fh(e,r,n,i)}function G8(t,e,r){for(let n in e.typeMap)if(t instanceof e.typeMap[n])return!0;if(r?.messages){let n=e.errorContext??"type",i=`Values of type '${(typeof e.key!="function"?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&r.messages.push(new We(`${n}:unsupported`,i,{definition:t,context:r})),nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function hB(t){return(e,r,n,i)=>!e||!Array.isArray(e)?fh(e,r,n,i):fh(e.filter(o=>G8(o,t,i)),r,n,i)}function fh(t,e,r,n){ys(r,rw(t,n),e)}function rw(t,e){return t&&typeof t.write=="function"?t.write({},e):t&&typeof t.toJSON=="function"?t.toJSON():typeof t=="number"?gB(t):t}function gB(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function wB(t,e,r,n){let i;t===null?i=null:t&&typeof t.map=="function"?(i=t.map(o=>rw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[rw(t,n)],ys(r,i,e)}function j8(t,e,r){return r!==0&&Array.isArray(t)?t.map(n=>j8(n,e,r-1)):rw(t,e)}function yB(t){return(e,r,n,i)=>{let o;if(e===null)o=null;else{o=j8(e,i,t);let s=t,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}ys(n,o,r)}}var q8=N(()=>{Ln();Vt();$o();yS()});function H8(t,e){return CS(t,"any",e?.origin)}function nw(t,e){return CS(t,"read",e?.origin)}function Y8(t,e){return CS(t,"write",e?.origin)}function CS(t,e,r){let n=t?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(e==="any"||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(e==="any"||e in i)&&(n=i)}return n}function bB(t){let e=vB(t);if(t.json.origins)for(let r in t.json.origins){let n=t.json.origins[r],i=n.types?_B(n):e;vS(i,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),xS(i,n)}vS(e,t.json,!0),xS(e,t.json)}function vB(t){return t.json.types?ES(t.json):t.type?Z8(t):ES(t)}function _B(t){return t.type?Z8(t):ES(t)}function Z8(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!G0(r);)r=r[0],e++;return{type:r,ndimArray:e}}function ES(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function X8(t){W8(t)&&(L8(t),bB(t))}var iw=N(()=>{Sp();k8();F8();B8();q8()});function Et(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,xB(e);let r=[],n=[],i=e.prototype;for(;i;)i.hasOwnProperty("initialize")&&!TS.has(i.initialize)&&(TS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!PS.has(i.destroy)&&(PS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);TS.clear(),PS.clear();let o=class extends e{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[X0];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){this.__accessor__.lifecycle=Sr.DESTROYING,a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=Ua(e.prototype),o.prototype.declaredClass=t;let s=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function SB(t,e){return e.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n===void 0)return;r.mutable&&lr(n);let i=r.store;return i.has(t)?i.get(t):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n!==void 0)return n.getComputed(r)}}function xB(t){let e=t.prototype,r=Ua(e),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];X8(o),n[i]={enumerable:!0,configurable:!0,get:SB(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?J8("read-only",i):c.lifecycle===Sr.CONSTRUCTED&&o.constructOnly?J8("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(t.prototype,n)}var TS,PS,J8,qn=N(()=>{St();Vt();mS();ch();Cp();xs();iw();TS=new Set,PS=new Set;J8=(t,e)=>{nt.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}});function EB(t,e,r=!1){let n=`\u{1F6D1} DEPRECATED - ${e}`;if(!r)return void t.warn(n);let i=Q8.get(t);i||(i=new Set,Q8.set(t,i)),i.has(e)||(i.add(e),t.warn(n))}function K8(t,e,r={}){if(pe("esri-deprecation-warnings")){let{moduleName:n}=r;CB(t,`Function: ${(n?n+"::":"")+e+"()"}`,r)}}function CB(t,e,r={}){if(pe("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=e;if(n&&(c+=`
1
+ "use strict";(()=>{var BF=Object.defineProperty;var T3=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var N=(t,e)=>()=>(t&&(e=t(t=0)),e);var P3=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Lo=(t,e)=>{for(var r in e)BF(t,r,{get:e[r],enumerable:!0})};function zV(t,e){let r=t;for(;r;){if(r===e)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function gT(t,e,r){let{subscribe:n}=WV(e);return n(i=>{i.some(s=>zV(t,s.target))&&r()})}function WV(t){let e=t.join(","),r=K_[e];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(c=>c(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:t,subtree:!0});let o={subscribe(s){return n.add(s),()=>{n.delete(s),n.size===0&&(i.disconnect(),K_[e]=void 0)}}};return K_[e]=o,o}function BV(t,e){let r=t;for(;r;){let n=r.closest?.(e);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function wT(t,e,r){return BV(t,`[${e}]`)?.getAttribute(e)??r}function Ut(t,e,...r){try{return t?.call(e,...r)}catch(n){console.error(n,t)}}async function hm(t,e,...r){try{let n=t?.call(e,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,t)}}async function HV(t,e,r=""){let n=`${e}/${r}`,i=`${n}${t}.json`;return e2[i]??(e2[i]=yT(t,n)),await e2[i]}async function yT(t,e){let r=`${e}${t}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return t===l0?{}:await yT(l0,e)}function t2(t){let e=wT(t,"lang",globalThis.navigator?.language||l0);return{lang:e,t9nLocale:bT(e)}}function bT(t){let[e,r]=t.split("-"),n=e.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=qV[i]??i,jV.has(i)?i:r?bT(n):l0}function vT(t,e,r,n){let i,o=()=>void YV(t,e(),n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return queueMicrotask(o),gT(t,["lang"],o)}async function YV(t,e,r=t.localName.split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=t2(t),o=`${e}/${r}/t9n`,c=r===null?{}:await HV(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:c}}function _T(t,e){let r=e>XV?JV:e/QV,n=0,i=setInterval(()=>{n+=r,n>=e&&(clearInterval(i),t())},r);return i}function ST(t){return t!==void 0}var ni,K_,GV,jV,l0,qV,e2,u0,ZV,XV,JV,QV,Qd=N(()=>{"use strict";ni=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,r)=>{this.resolve=e,this.reject=r})}};K_={};GV=["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"],jV=new Set(GV),l0="en",qV={pt:"pt-PT",nb:"no",zh:"zh-CN"};e2={};u0=t=>t.replace(ZV,(e,r)=>`${r===0?"":"-"}${e.toLowerCase()}`),ZV=/[A-Z]+(?![a-z])|[A-Z]/gu;XV=4e3,JV=2e3,QV=4});var ws,p0,n2,r2,xT=N(()=>{(function(t){t[t.ALL=0]="ALL",t[t.SOME=1]="SOME"})(ws||(ws={}));p0=class{get size(){return this._size}constructor(e=10485760){this._maxSize=e,this._db=new Map,this._size=0,this._hit=0,this._miss=0,this._users=new Map,this._sizeLimits=new Map}destroy(){this.clearAll(),this._sizeLimits.clear(),this._users.clear()}register(e){this._users.set(e.id.slice(0,-1),e)}deregister(e){this.clear(e),this._sizeLimits.delete(e),this._users.delete(e.id.slice(0,-1))}get maxSize(){return this._maxSize}set maxSize(e){this._maxSize=Math.max(e,-1),this._checkSize()}getSize(e,r){return this._db.get(e.id+r)?.size??0}put(e,r,n,i,o){r=e.id+r;let s=this._db.get(r);if(s&&(this._size-=s.size,e.size-=s.size,this._db.delete(r),s.entry!==n&&this._notifyRemove(r,s.entry,s.size,ws.ALL)),i>this._maxSize)return void this._notifyRemove(r,n,i,ws.ALL);if(n===void 0)return void console.warn("Refusing to cache undefined entry ");if(!i||i<0)return console.warn(`Refusing to cache entry with size ${i} for key ${r}`),void this._notifyRemove(r,n,0,ws.ALL);let c=1+Math.max(o,-4)- -3;this._db.set(r,new n2(n,i,c)),this._size+=i,e.size+=i,this._checkSize()}updateSize(e,r,n,i){r=e.id+r;let o=this._db.get(r);if(o&&o.entry===n){for(this._size-=o.size,e.size-=o.size;i>this._maxSize;){let s=this._notifyRemove(r,n,i,ws.SOME);if(!(s!=null&&s>0))return void this._db.delete(r);i=s}o.size=i,this._size+=i,e.size+=i,this._checkSize()}}pop(e,r){r=e.id+r;let n=this._db.get(r);if(n)return this._size-=n.size,e.size-=n.size,this._db.delete(r),++this._hit,n.entry;++this._miss}get(e,r){r=e.id+r;let n=this._db.get(r);if(n!==void 0)return this._db.delete(r),n.lives=n.lifetime,this._db.set(r,n),++this._hit,n.entry;++this._miss}peek(e,r){let n=this._db.get(e.id+r);return n?++this._hit:++this._miss,n?.entry}get performanceInfo(){let e={Size:Math.round(this._size/1048576)+"/"+Math.round(this._maxSize/1048576)+"MB","Hit rate":Math.round(100*this._getHitRate())+"%",Entries:this._db.size.toString()},r={},n=new Array;this._db.forEach((s,c)=>{let a=s.lifetime;n[a]=(n[a]||0)+s.size,this._users.forEach(d=>{let{id:h,name:g}=d;if(c.startsWith(h)){let v=r[g]||0;r[g]=v+s.size}})});let i={};this._users.forEach(s=>{let c=s.name;if("hitRate"in s&&typeof s.hitRate=="number"&&!isNaN(s.hitRate)&&s.hitRate>0){let a=r[c]||0;r[c]=a,i[c]=Math.round(100*s.hitRate)+"%"}else i[c]="0%"});let o=Object.keys(r);o.sort((s,c)=>r[c]-r[s]),o.forEach(s=>e[s]=Math.round(r[s]/2**20)+"MB / "+i[s]);for(let s=n.length-1;s>=0;--s){let c=n[s];c&&(e["Priority "+(s+-3-1)]=Math.round(c/this._size*100)+"%")}return e}resetStats(){this._hit=this._miss=0,this._users.forEach(e=>e.resetHitRate())}clear(e){let r=e.id;this._db.forEach((n,i)=>{i.startsWith(r)&&(this._size-=n.size,this._db.delete(i),this._notifyRemove(i,n.entry,n.size,ws.ALL))}),e.size=0}clearAll(){this._db.forEach((e,r)=>this._notifyRemove(r,e.entry,e.size,ws.ALL)),this._users.forEach(e=>e.size=0),this._size=0,this._db.clear()}_getHitRate(){return this._hit/(this._hit+this._miss)}_notifyRemove(e,r,n,i){let o=this._users.get(e.split(r2)[0])?.removeFunc,s=o?.(r,i,n);return typeof s=="number"?s:null}_checkSize(){this._sizeLimits.forEach((e,r)=>this._checkSizeLimits(e,r)),this._checkSizeLimits(this.maxSize)}setMaxSize(e,r){r==null||r<=0?this._sizeLimits.delete(e):this._sizeLimits.set(e,r)}_checkSizeLimits(e,r){let n=r??this;if(n.size<=e)return;let i=r?.id,o=!0;for(;o;){o=!1;for(let[s,c]of this._db)if(c.lifetime===0&&(!i||s.startsWith(i))){let a=r??this._users.get(s.split(r2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return;o||=this._db.has(s)}}for(let[s,c]of this._db)if(!i||s.startsWith(i)){let a=r??this._users.get(s.split(r2)[0]);if(this._purgeItem(s,c,a),n.size<=.9*e)return}}_purgeItem(e,r,n){if(this._db.delete(e),r.lives<=1){this._size-=r.size,n&&(n.size-=r.size);let i=this._notifyRemove(e,r.entry,r.size,ws.SOME);i!=null&&i>0&&(this._size+=i,n&&(n.size+=i),r.lives=r.lifetime,r.size=i,this._db.set(e,r))}else--r.lives,this._db.set(e,r)}},n2=class{constructor(e,r,n){this.entry=e,this.size=r,this.lifetime=n,this.lives=n}},r2=":"});var gm,ET=N(()=>{xT();gm=class{constructor(e,r){this.removeFunc=r,this._storage=new p0,this.id="",this.name="",this.size=0,this._storage.maxSize=e,this._storage.register(this)}destroy(){this._storage.deregister(this),this._storage.destroy()}put(e,r,n=1){this._storage.put(this,e,r,n,1)}pop(e){return this._storage.pop(this,e)}get(e){return this._storage.get(this,e)}clear(){this._storage.clearAll()}get maxSize(){return this._storage.maxSize}set maxSize(e){this._storage.maxSize=e}resetHitRate(){}}});function pe(t){return typeof _a[t]=="function"?_a[t]=_a[t](globalThis):_a[t]}var _a,St=N(()=>{_a=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},pe.add=(t,e,r,n)=>{(n||_a[t]===void 0)&&(_a[t]=e),r&&pe(t)},pe.cache=_a,pe.add("big-integer-warning-enabled",!0),pe.add("esri-deprecation-warnings",!0),pe.add("esri-tests-disable-screenshots",!1),pe.add("esri-tests-use-full-window",!1),pe.add("esri-tests-post-to-influx",!0),pe.add("esri-cim-animations-enable-status","enabled"),pe.add("esri-cim-animations-spotlight",!1),pe.add("esri-cim-animations-freeze-time",!1),(()=>{pe.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let t=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(pe.add("host-browser",t),pe.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),pe.add("dom",t),pe("host-browser")){let e=navigator,r=e.userAgent,n=e.appVersion,i=parseFloat(n);if(pe.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),pe.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),pe.add("khtml",n.includes("Konqueror")?i:void 0),pe.add("edge",parseFloat(r.split("Edge/")[1])||void 0),pe.add("opr",parseFloat(r.split("OPR/")[1])||void 0),pe.add("webkit",!pe("wp")&&!pe("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),pe.add("chrome",!pe("edge")&&!pe("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),pe.add("android",!pe("wp")&&parseFloat(r.split("Android ")[1])||void 0),pe.add("safari",!n.includes("Safari")||pe("wp")||pe("chrome")||pe("android")||pe("edge")||pe("opr")?void 0:parseFloat(n.split("Version/")[1])),pe.add("mac",n.includes("Macintosh")),!pe("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",c=parseFloat(s.replace(/_/,".").replaceAll("_",""));pe.add(o,c),pe.add("ios",c)}pe("webkit")||(!r.includes("Gecko")||pe("wp")||pe("khtml")||pe("edge")||pe.add("mozilla",i),pe("mozilla")&&pe.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let t=navigator.userAgent,e=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(t),r=/iPhone/i.test(t);e&&pe.add("esri-mobile",e),r&&pe.add("esri-iPhone",r),pe.add("esri-geolocation",!!navigator.geolocation)}pe.add("esri-wasm","WebAssembly"in globalThis),pe.add("esri-performance-mode-frames-between-render",20),pe.add("esri-force-performance-mode",!1),pe.add("esri-shared-array-buffer",()=>{let t="SharedArrayBuffer"in globalThis,e=globalThis.crossOriginIsolated===!1;return t&&!e}),pe.add("wasm-simd",()=>{let t=[0,97,115,109,1,0,0,0,1,5,1,96,0,1,123,3,2,1,0,10,10,1,8,0,65,0,253,15,253,98,11];return WebAssembly.validate(new Uint8Array(t))}),pe.add("esri-atomics","Atomics"in globalThis),pe.add("esri-workers","Worker"in globalThis),pe.add("web-feat:cache","caches"in globalThis),pe.add("esri-workers-arraybuffer-transfer",!pe("safari")||Number(pe("safari"))>=12),pe.add("workers-pool-size",8),pe.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),pe.add("featurelayer-simplify-payload-size-factors",[1,1,4]),pe.add("featurelayer-fast-triangulation-enabled",!0),pe.add("featurelayer-animation-enabled",!0),pe.add("featurelayer-snapshot-enabled",!0),pe.add("featurelayer-snapshot-point-min-threshold",8e4),pe.add("featurelayer-snapshot-point-max-threshold",4e5),pe.add("featurelayer-snapshot-point-coverage",.1),pe.add("featurelayer-query-max-depth",4),pe.add("featurelayer-query-pausing-enabled",!1),pe.add("featurelayer-advanced-symbols",!1),pe.add("featurelayer-pbf",!0),pe.add("featurelayer-pbf-statistics",!1),pe.add("feature-layers-workers",!0),pe.add("feature-polyline-generalization-factor",1),pe.add("mapview-transitions-duration",200),pe.add("mapview-essential-goto-duration",200),pe.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),pe.add("mapserver-pbf-version-support",10.81),pe.add("mapservice-popup-identify-max-tolerance",20),pe.add("request-queue-concurrency-hosted",16),pe.add("request-queue-concurrency-non-hosted",4),pe.add("curve-densification-coarse-segments",128),pe.add("curve-densification-max-segments",2e3),pe.add("curve-densification-min-segments",3),pe.add("curve-densification-pixel-deviation",.5),pe.add("view-readyState-waiting-delay",1e3),pe.add("gradient-depth-bias",.01),pe.add("gradient-depth-epsilon",1e-8),pe.add("enable-feature:esri-compress-textures",!0),pe("host-webworker")||pe("host-browser")&&(pe.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),pe.add("esri-image-decode",()=>{if("decode"in new Image){let t=new Image;return t.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void t.decode().then(()=>{pe.add("esri-image-decode",!0,!0,!0)}).catch(()=>{pe.add("esri-image-decode",!1,!0,!0)})}return!1}),pe.add("esri-url-encodes-apostrophe",()=>{let t=window.document.createElement("a");return t.href="?'",t.href.includes("?%27")}))})()});var i2=N(()=>{St()});var f0,Sa=N(()=>{f0=class t{static{this._m=2147483647}static{this._a=48271}static{this._c=0}constructor(e=1){this._seed=e}set seed(e){this._seed=e??Math.random()*t._m}getInt(){return this._seed=(t._a*this._seed+t._c)%t._m,this._seed}getFloat(){return this.getInt()/(t._m-1)}getIntRange(e,r){return Math.round(this.getFloatRange(e,r))}getFloatRange(e,r){let n=r-e;return e+this.getInt()/t._m*n}}});function m0(t,e,r){if(t==null&&e==null)return!0;if(t==null||e==null||t.length!==e.length)return!1;if(r){for(let n=0;n<t.length;n++)if(!r(t[n],e[n]))return!1}else for(let n=0;n<t.length;n++)if(t[n]!==e[n])return!1;return!0}function o2(t,e,r,n){n=n||CT;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(t[s]===e)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(t[s]===e)return n.last=s,s;return-1}function TT(t,e,r=t.length,n=e.length,i,o){if(n===0||r===0)return r;Yi.clear();for(let c=0;c<n;++c)Yi.add(e[c]);i=i||CT;let s=Math.max(0,i.last-10);for(let c=s;c<r;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;for(let c=0;c<s;++c)if(Yi.has(t[c])&&(o?.push(t[c]),Yi.delete(t[c]),t[c]=t[r-1],--r,--c,Yi.size===0||r===0))return Yi.clear(),r;return Yi.clear(),r}function PT(t,e){let r=t.indexOf(e);return r!==-1?(t.splice(r,1),e):null}function MT(t,e){return t!=null}var ez,Doe,wm,CT,Yi,$oe,Kd=N(()=>{i2();Sa();ez=1.5,Doe=1/ez;wm=class{constructor(){this.last=0}},CT=new wm;Yi=new Set;$oe=new f0});function AT(t){return t?.constructor?.name==="Int8Array"}function IT(t){return t?.constructor?.name==="Uint8Array"}function LT(t){return t?.constructor?.name==="Uint8ClampedArray"}function kT(t){return t?.constructor?.name==="Int16Array"}function OT(t){return t?.constructor?.name==="Uint16Array"}function NT(t){return t?.constructor?.name==="Int32Array"}function RT(t){return t?.constructor?.name==="Uint32Array"}function DT(t){return t?.constructor?.name==="Float32Array"}function $T(t){return t?.constructor?.name==="Float64Array"}var Voe,FT=N(()=>{St();Voe=2**32-1});function h0(t,e){let r;if(e)for(r in t)t.hasOwnProperty(r)&&(t[r]===void 0?delete t[r]:t[r]instanceof Object&&h0(t[r],!0));else for(r in t)t.hasOwnProperty(r)&&t[r]===void 0&&delete t[r];return t}function Ht(t){if(!t||typeof t!="object"||typeof t=="function")return t;let e=iz(t);if(e!=null)return e;if(tz(t))return t.clone();if(rz(t))return t.map(Ht);if(nz(t))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(t))r[n]=Ht(t[n]);return r}function tz(t){return typeof t.clone=="function"}function rz(t){return typeof t.map=="function"&&typeof t.forEach=="function"}function nz(t){return typeof t.notifyChange=="function"&&typeof t.watch=="function"}function UT(t){if(Object.prototype.toString.call(t)!=="[object Object]")return!1;let e=Object.getPrototypeOf(t);return e===null||e===Object.prototype}function iz(t){if(AT(t)||IT(t)||LT(t)||kT(t)||OT(t)||NT(t)||RT(t)||DT(t)||$T(t))return t.slice();if(t instanceof Date)return new Date(t.getTime());if(t instanceof ArrayBuffer)return t.slice(0,t.byteLength);if(t instanceof Map){let e=new Map;for(let[r,n]of t)e.set(r,Ht(n));return e}if(t instanceof Set){let e=new Set;for(let r of t)e.add(Ht(r));return e}return null}function ym(t,e){return t===e||typeof t=="number"&&isNaN(t)&&typeof e=="number"&&isNaN(e)||typeof t?.getTime=="function"&&typeof e?.getTime=="function"&&t.getTime()===e.getTime()||!1}function g0(t,e){return t===e||(t==null||typeof t=="string"?t===e:typeof t=="number"?t===e||typeof e=="number"&&isNaN(t)&&isNaN(e):t instanceof Date?e instanceof Date&&t.getTime()===e.getTime():Array.isArray(t)?Array.isArray(e)&&m0(t,e):t instanceof Set?e instanceof Set&&sz(t,e):t instanceof Map?e instanceof Map&&az(t,e):!!UT(t)&&UT(e)&&oz(t,e))}function oz(t,e){if(t===null||e===null)return!1;let r=Object.keys(t);if(e===null||Object.keys(e).length!==r.length)return!1;for(let n of r)if(t[n]!==e[n]||!Object.prototype.hasOwnProperty.call(e,n))return!1;return!0}function sz(t,e){if(t.size!==e.size)return!1;for(let r of t)if(!e.has(r))return!1;return!0}function az(t,e){if(t.size!==e.size)return!1;for(let[r,n]of t){let i=e.get(r);if(i!==n||i===void 0&&!e.has(r))return!1}return!0}var Mn=N(()=>{Kd();FT()});function VT(t,e,r=!1){return WT(t,e,r)}function Ci(t,e){if(e!=null)return e[t]||zT(t.split("."),!1,e)}function ys(t,e,r){let n=t.split("."),i=n.pop(),o=zT(n,!0,r);o&&i&&(o[i]=e)}function zT(t,e,r){let n=r;for(let i of t){if(n==null)return;if(!(i in n)){if(!e)return;n[i]={}}n=n[i]}return n}function WT(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=n[i],s=e[i];return o===s?n:o===void 0?(n[i]=Ht(s),n):(Array.isArray(s)||Array.isArray(n)?(o=o?Array.isArray(o)?n[i]=o.slice():n[i]=[o]:n[i]=[],s&&(Array.isArray(s)||(s=[s]),r?s.forEach(c=>{o.includes(c)||o.push(c)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=WT(o,s,r):n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[i]=s),n)},t||{}):t}var $o=N(()=>{Mn()});function BT(t){return t??""}function Fo(t,e){return e?t.replaceAll(cz,typeof e=="object"?(r,n)=>BT(Ci(n,e)):(r,n)=>BT(e(n))):t}function GT(t,e){return t.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>e?.includes(r)?r:`\\${r}`)}function jT(t){let e=0;for(let r=0;r<t.length;r++)e=(e<<5)-e+t.charCodeAt(r),e|=0;return e}var cz,xa=N(()=>{$o();cz=/\{([^}]+)\}/g});var bs,w0,y0,b0,Zi,ep,ar,Xi,Ea=N(()=>{bs=class extends Error{},w0=class extends bs{constructor(e){super(`Invalid DateTime: ${e.toMessage()}`)}},y0=class extends bs{constructor(e){super(`Invalid Interval: ${e.toMessage()}`)}},b0=class extends bs{constructor(e){super(`Invalid Duration: ${e.toMessage()}`)}},Zi=class extends bs{},ep=class extends bs{constructor(e){super(`Invalid unit ${e}`)}},ar=class extends bs{},Xi=class extends bs{constructor(){super("Zone is an abstract class")}}});var Ie,Ji,ii,Ca,bm,s2,vm,_m,Sm,xm,Em,Cm,Tm,Pm,Mm,Am,Im,Lm,km,Om,a2,Nm,Rm,Dm,$m,Fm=N(()=>{Ie="numeric",Ji="short",ii="long",Ca={year:Ie,month:Ie,day:Ie},bm={year:Ie,month:Ji,day:Ie},s2={year:Ie,month:Ji,day:Ie,weekday:Ji},vm={year:Ie,month:ii,day:Ie},_m={year:Ie,month:ii,day:Ie,weekday:ii},Sm={hour:Ie,minute:Ie},xm={hour:Ie,minute:Ie,second:Ie},Em={hour:Ie,minute:Ie,second:Ie,timeZoneName:Ji},Cm={hour:Ie,minute:Ie,second:Ie,timeZoneName:ii},Tm={hour:Ie,minute:Ie,hourCycle:"h23"},Pm={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23"},Mm={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:Ji},Am={hour:Ie,minute:Ie,second:Ie,hourCycle:"h23",timeZoneName:ii},Im={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie},Lm={year:Ie,month:Ie,day:Ie,hour:Ie,minute:Ie,second:Ie},km={year:Ie,month:Ji,day:Ie,hour:Ie,minute:Ie},Om={year:Ie,month:Ji,day:Ie,hour:Ie,minute:Ie,second:Ie},a2={year:Ie,month:Ji,day:Ie,weekday:Ji,hour:Ie,minute:Ie},Nm={year:Ie,month:ii,day:Ie,hour:Ie,minute:Ie,timeZoneName:Ji},Rm={year:Ie,month:ii,day:Ie,hour:Ie,minute:Ie,second:Ie,timeZoneName:Ji},Dm={year:Ie,month:ii,day:Ie,weekday:ii,hour:Ie,minute:Ie,timeZoneName:ii},$m={year:Ie,month:ii,day:Ie,weekday:ii,hour:Ie,minute:Ie,second:Ie,timeZoneName:ii}});var _r,vl=N(()=>{Ea();_r=class{get type(){throw new Xi}get name(){throw new Xi}get ianaName(){return this.name}get isUniversal(){throw new Xi}offsetName(e,r){throw new Xi}formatOffset(e,r){throw new Xi}offset(e){throw new Xi}equals(e){throw new Xi}get isValid(){throw new Xi}}});var c2,Ta,_0=N(()=>{An();vl();c2=null,Ta=class t extends _r{static get instance(){return c2===null&&(c2=new t),c2}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){return-new Date(e).getTimezoneOffset()}equals(e){return e.type==="system"}get isValid(){return!0}}});function lz(t){let e=u2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"}),u2.set(t,e)),e}function dz(t,e){let r=t.format(e).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,c,a,d,h]=n;return[s,i,o,c,a,d,h]}function pz(t,e){let r=t.formatToParts(e),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],c=uz[o];o==="era"?n[c]=s:Ge(c)||(n[c]=parseInt(s,10))}return n}var u2,uz,l2,cr,Ma=N(()=>{An();vl();u2=new Map;uz={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};l2=new Map,cr=class t extends _r{static create(e){let r=l2.get(e);return r===void 0&&l2.set(e,r=new t(e)),r}static resetCache(){l2.clear(),u2.clear()}static isValidSpecifier(e){return this.isValidZone(e)}static isValidZone(e){if(!e)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:e}).format(),!0}catch{return!1}}constructor(e){super(),this.zoneName=e,this.valid=t.isValidZone(e)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(e,{format:r,locale:n}){return S0(e,r,n,this.name)}formatOffset(e,r){return Pa(this.offset(e),r)}offset(e){if(!this.valid)return NaN;let r=new Date(e);if(isNaN(r))return NaN;let n=lz(this.name),[i,o,s,c,a,d,h]=n.formatToParts?pz(n,r):dz(n,r);c==="BC"&&(i=-Math.abs(i)+1);let v=tp({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),E=+r,M=E%1e3;return E-=M>=0?M:1e3+M,(v-E)/(60*1e3)}equals(e){return e.type==="iana"&&e.name===this.name}get isValid(){return this.valid}}});function fz(t,e={}){let r=JSON.stringify([t,e]),n=qT[r];return n||(n=new Intl.ListFormat(t,e),qT[r]=n),n}function p2(t,e={}){let r=JSON.stringify([t,e]),n=d2.get(r);return n===void 0&&(n=new Intl.DateTimeFormat(t,e),d2.set(r,n)),n}function mz(t,e={}){let r=JSON.stringify([t,e]),n=f2.get(r);return n===void 0&&(n=new Intl.NumberFormat(t,e),f2.set(r,n)),n}function hz(t,e={}){let{base:r,...n}=e,i=JSON.stringify([t,n]),o=m2.get(i);return o===void 0&&(o=new Intl.RelativeTimeFormat(t,e),m2.set(i,o)),o}function gz(){return Um||(Um=new Intl.DateTimeFormat().resolvedOptions().locale,Um)}function HT(t){let e=h2.get(t);return e===void 0&&(e=new Intl.DateTimeFormat(t).resolvedOptions(),h2.set(t,e)),e}function wz(t){let e=g2.get(t);if(!e){let r=new Intl.Locale(t);e="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,"minimalDays"in e||(e={...YT,...e}),g2.set(t,e)}return e}function yz(t){let e=t.indexOf("-x-");e!==-1&&(t=t.substring(0,e));let r=t.indexOf("-u-");if(r===-1)return[t];{let n,i;try{n=p2(t).resolvedOptions(),i=t}catch{let a=t.substring(0,r);n=p2(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function bz(t,e,r){return(r||e)&&(t.includes("-u-")||(t+="-u"),r&&(t+=`-ca-${r}`),e&&(t+=`-nu-${e}`)),t}function vz(t){let e=[];for(let r=1;r<=12;r++){let n=Te.utc(2009,r,1);e.push(t(n))}return e}function _z(t){let e=[];for(let r=1;r<=7;r++){let n=Te.utc(2016,11,13+r);e.push(t(n))}return e}function x0(t,e,r,n){let i=t.listingMode();return i==="error"?null:i==="en"?r(e):n(e)}function Sz(t){return t.numberingSystem&&t.numberingSystem!=="latn"?!1:t.numberingSystem==="latn"||!t.locale||t.locale.startsWith("en")||HT(t.locale).numberingSystem==="latn"}var qT,d2,f2,m2,Um,h2,g2,w2,y2,b2,YT,pt,zm=N(()=>{An();T0();Aa();Ia();Ma();qT={};d2=new Map;f2=new Map;m2=new Map;Um=null;h2=new Map;g2=new Map;w2=class{constructor(e,r,n){this.padTo=n.padTo||0,this.floor=n.floor||!1;let{padTo:i,floor:o,...s}=n;if(!r||Object.keys(s).length>0){let c={useGrouping:!1,...n};n.padTo>0&&(c.minimumIntegerDigits=n.padTo),this.inf=mz(e,c)}}format(e){if(this.inf){let r=this.floor?Math.floor(e):e;return this.inf.format(r)}else{let r=this.floor?Math.floor(e):rp(e,3);return rr(r,this.padTo)}}},y2=class{constructor(e,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=e;else if(e.zone.type==="fixed"){let s=-1*(e.offset/60),c=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;e.offset!==0&&cr.create(c).valid?(i=c,this.dt=e):(i="UTC",this.dt=e.offset===0?e:e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone)}else e.zone.type==="system"?this.dt=e:e.zone.type==="iana"?(this.dt=e,i=e.zone.name):(i="UTC",this.dt=e.setZone("UTC").plus({minutes:e.offset}),this.originalZone=e.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=p2(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:e})=>e).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let e=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?e.map(r=>{if(r.type==="timeZoneName"){let n=this.originalZone.offsetName(this.dt.ts,{locale:this.dt.locale,format:this.opts.timeZoneName});return{...r,value:n}}else return r}):e}resolvedOptions(){return this.dtf.resolvedOptions()}},b2=class{constructor(e,r,n){this.opts={style:"long",...n},!r&&E0()&&(this.rtf=hz(e,n))}format(e,r){return this.rtf?this.rtf.format(e,r):ZT(r,e,this.opts.numeric,this.opts.style!=="long")}formatToParts(e,r){return this.rtf?this.rtf.formatToParts(e,r):[]}},YT={firstDay:1,minimalDays:4,weekend:[6,7]},pt=class t{static fromOpts(e){return t.create(e.locale,e.numberingSystem,e.outputCalendar,e.weekSettings,e.defaultToEN)}static create(e,r,n,i,o=!1){let s=e||dt.defaultLocale,c=s||(o?"en-US":gz()),a=r||dt.defaultNumberingSystem,d=n||dt.defaultOutputCalendar,h=Vm(i)||dt.defaultWeekSettings;return new t(c,a,d,h,s)}static resetCache(){Um=null,d2.clear(),f2.clear(),m2.clear(),h2.clear(),g2.clear()}static fromObject({locale:e,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return t.create(e,r,n,i)}constructor(e,r,n,i,o){let[s,c,a]=yz(e);this.locale=s,this.numberingSystem=r||c||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=bz(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=o,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=Sz(this)),this.fastNumbersCached}listingMode(){let e=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return e&&r?"en":"intl"}clone(e){return!e||Object.getOwnPropertyNames(e).length===0?this:t.create(e.locale||this.specifiedLocale,e.numberingSystem||this.numberingSystem,e.outputCalendar||this.outputCalendar,Vm(e.weekSettings)||this.weekSettings,e.defaultToEN||!1)}redefaultToEN(e={}){return this.clone({...e,defaultToEN:!0})}redefaultToSystem(e={}){return this.clone({...e,defaultToEN:!1})}months(e,r=!1){return x0(this,e,v2,()=>{let n=r?{month:e,day:"numeric"}:{month:e},i=r?"format":"standalone";return this.monthsCache[i][e]||(this.monthsCache[i][e]=vz(o=>this.extract(o,n,"month"))),this.monthsCache[i][e]})}weekdays(e,r=!1){return x0(this,e,_2,()=>{let n=r?{weekday:e,year:"numeric",month:"long",day:"numeric"}:{weekday:e},i=r?"format":"standalone";return this.weekdaysCache[i][e]||(this.weekdaysCache[i][e]=_z(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][e]})}meridiems(){return x0(this,void 0,()=>S2,()=>{if(!this.meridiemCache){let e={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Te.utc(2016,11,13,9),Te.utc(2016,11,13,19)].map(r=>this.extract(r,e,"dayperiod"))}return this.meridiemCache})}eras(e){return x0(this,e,x2,()=>{let r={era:e};return this.eraCache[e]||(this.eraCache[e]=[Te.utc(-40,1,1),Te.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[e]})}extract(e,r,n){let i=this.dtFormatter(e,r),o=i.formatToParts(),s=o.find(c=>c.type.toLowerCase()===n);return s?s.value:null}numberFormatter(e={}){return new w2(this.intl,e.forceSimple||this.fastNumbers,e)}dtFormatter(e,r={}){return new y2(e,this.intl,r)}relFormatter(e={}){return new b2(this.intl,this.isEnglish(),e)}listFormatter(e={}){return fz(this.intl,e)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||HT(this.intl).locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:C0()?wz(this.locale):YT}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(e){return this.locale===e.locale&&this.numberingSystem===e.numberingSystem&&this.outputCalendar===e.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var C2,xt,np=N(()=>{An();vl();C2=null,xt=class t extends _r{static get utcInstance(){return C2===null&&(C2=new t(0)),C2}static instance(e){return e===0?t.utcInstance:new t(e)}static parseSpecifier(e){if(e){let r=e.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new t(_l(r[1],r[2]))}return null}constructor(e){super(),this.fixed=e}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Pa(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Pa(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(e,r){return Pa(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(e){return e.type==="fixed"&&e.fixed===this.fixed}get isValid(){return!0}}});var ip,T2=N(()=>{vl();ip=class extends _r{constructor(e){super(),this.zoneName=e}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}});function Qi(t,e){let r;if(Ge(t)||t===null)return e;if(t instanceof _r)return t;if(XT(t)){let n=t.toLowerCase();return n==="default"?e:n==="local"||n==="system"?Ta.instance:n==="utc"||n==="gmt"?xt.utcInstance:xt.parseSpecifier(n)||cr.create(t)}else return Ki(t)?xt.instance(t):typeof t=="object"&&"offset"in t&&typeof t.offset=="function"?t:new ip(t)}var P0=N(()=>{vl();Ma();np();T2();An();_0()});function QT(t){let e=parseInt(t,10);if(isNaN(e)){e="";for(let r=0;r<t.length;r++){let n=t.charCodeAt(r);if(t[r].search(M2.hanidec)!==-1)e+=xz.indexOf(t[r]);else for(let i in JT){let[o,s]=JT[i];n>=o&&n<=s&&(e+=n-o)}}return parseInt(e,10)}else return e}function KT(){P2.clear()}function Ti({numberingSystem:t},e=""){let r=t||"latn",n=P2.get(r);n===void 0&&(n=new Map,P2.set(r,n));let i=n.get(e);return i===void 0&&(i=new RegExp(`${M2[r]}${e}`),n.set(e,i)),i}var M2,JT,xz,P2,A2=N(()=>{M2={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},JT={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},xz=M2.hanidec.replace(/[\[|\]]/g,"").split("");P2=new Map});var e6,t6,r6,n6,i6,o6,s6,a6,dt,Aa=N(()=>{_0();Ma();zm();Ia();P0();An();A2();e6=()=>Date.now(),t6="system",r6=null,n6=null,i6=null,o6=60,a6=null,dt=class{static get now(){return e6}static set now(e){e6=e}static set defaultZone(e){t6=e}static get defaultZone(){return Qi(t6,Ta.instance)}static get defaultLocale(){return r6}static set defaultLocale(e){r6=e}static get defaultNumberingSystem(){return n6}static set defaultNumberingSystem(e){n6=e}static get defaultOutputCalendar(){return i6}static set defaultOutputCalendar(e){i6=e}static get defaultWeekSettings(){return a6}static set defaultWeekSettings(e){a6=Vm(e)}static get twoDigitCutoffYear(){return o6}static set twoDigitCutoffYear(e){o6=e%100}static get throwOnInvalid(){return s6}static set throwOnInvalid(e){s6=e}static resetCaches(){pt.resetCache(),cr.resetCache(),Te.resetCache(),KT()}}});var Gr,Wm=N(()=>{Gr=class{constructor(e,r){this.reason=e,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Pi(t,e){return new Gr("unit out of range",`you specified ${e} (of type ${typeof e}) as a ${t}, which is invalid`)}function M0(t,e,r){let n=new Date(Date.UTC(t,e-1,r));t<100&&t>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function u6(t,e,r){return r+(xl(t)?l6:c6)[e-1]}function d6(t,e){let r=xl(t)?l6:c6,n=r.findIndex(o=>o<e),i=e-r[n];return{month:n+1,day:i}}function A0(t,e){return(t-e+7)%7+1}function Bm(t,e=4,r=1){let{year:n,month:i,day:o}=t,s=u6(n,i,o),c=A0(M0(n,i,o),r),a=Math.floor((s-c+14-e)/7),d;return a<1?(d=n-1,a=Sl(d,e,r)):a>Sl(n,e,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:c,...jm(t)}}function I2(t,e=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=t,s=A0(M0(n,1,e),r),c=La(n),a=i*7+o-s-7+e,d;a<1?(d=n-1,a+=La(d)):a>c?(d=n+1,a-=La(n)):d=n;let{month:h,day:g}=d6(d,a);return{year:d,month:h,day:g,...jm(t)}}function I0(t){let{year:e,month:r,day:n}=t,i=u6(e,r,n);return{year:e,ordinal:i,...jm(t)}}function L2(t){let{year:e,ordinal:r}=t,{month:n,day:i}=d6(e,r);return{year:e,month:n,day:i,...jm(t)}}function k2(t,e){if(!Ge(t.localWeekday)||!Ge(t.localWeekNumber)||!Ge(t.localWeekYear)){if(!Ge(t.weekday)||!Ge(t.weekNumber)||!Ge(t.weekYear))throw new Zi("Cannot mix locale-based week fields with ISO-based week fields");return Ge(t.localWeekday)||(t.weekday=t.localWeekday),Ge(t.localWeekNumber)||(t.weekNumber=t.localWeekNumber),Ge(t.localWeekYear)||(t.weekYear=t.localWeekYear),delete t.localWeekday,delete t.localWeekNumber,delete t.localWeekYear,{minDaysInFirstWeek:e.getMinDaysInFirstWeek(),startOfWeek:e.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function p6(t,e=4,r=1){let n=Gm(t.weekYear),i=oi(t.weekNumber,1,Sl(t.weekYear,e,r)),o=oi(t.weekday,1,7);return n?i?o?!1:Pi("weekday",t.weekday):Pi("week",t.weekNumber):Pi("weekYear",t.weekYear)}function f6(t){let e=Gm(t.year),r=oi(t.ordinal,1,La(t.year));return e?r?!1:Pi("ordinal",t.ordinal):Pi("year",t.year)}function O2(t){let e=Gm(t.year),r=oi(t.month,1,12),n=oi(t.day,1,op(t.year,t.month));return e?r?n?!1:Pi("day",t.day):Pi("month",t.month):Pi("year",t.year)}function N2(t){let{hour:e,minute:r,second:n,millisecond:i}=t,o=oi(e,0,23)||e===24&&r===0&&n===0&&i===0,s=oi(r,0,59),c=oi(n,0,59),a=oi(i,0,999);return o?s?c?a?!1:Pi("millisecond",i):Pi("second",n):Pi("minute",r):Pi("hour",e)}var c6,l6,R2=N(()=>{An();Wm();Ea();c6=[0,31,59,90,120,151,181,212,243,273,304,334],l6=[0,31,60,91,121,152,182,213,244,274,305,335]});function Ge(t){return typeof t>"u"}function Ki(t){return typeof t=="number"}function Gm(t){return typeof t=="number"&&t%1===0}function XT(t){return typeof t=="string"}function h6(t){return Object.prototype.toString.call(t)==="[object Date]"}function E0(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function C0(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function g6(t){return Array.isArray(t)?t:[t]}function D2(t,e,r){if(t.length!==0)return t.reduce((n,i)=>{let o=[e(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function w6(t,e){return e.reduce((r,n)=>(r[n]=t[n],r),{})}function ka(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function Vm(t){if(t==null)return null;if(typeof t!="object")throw new ar("Week settings must be an object");if(!oi(t.firstDay,1,7)||!oi(t.minimalDays,1,7)||!Array.isArray(t.weekend)||t.weekend.some(e=>!oi(e,1,7)))throw new ar("Invalid week settings");return{firstDay:t.firstDay,minimalDays:t.minimalDays,weekend:Array.from(t.weekend)}}function oi(t,e,r){return Gm(t)&&t>=e&&t<=r}function Ez(t,e){return t-e*Math.floor(t/e)}function rr(t,e=2){let r=t<0,n;return r?n="-"+(""+-t).padStart(e,"0"):n=(""+t).padStart(e,"0"),n}function vs(t){if(!(Ge(t)||t===null||t===""))return parseInt(t,10)}function Oa(t){if(!(Ge(t)||t===null||t===""))return parseFloat(t)}function qm(t){if(!(Ge(t)||t===null||t==="")){let e=parseFloat("0."+t)*1e3;return Math.floor(e)}}function rp(t,e,r=!1){let n=10**e;return(r?Math.trunc:Math.round)(t*n)/n}function xl(t){return t%4===0&&(t%100!==0||t%400===0)}function La(t){return xl(t)?366:365}function op(t,e){let r=Ez(e-1,12)+1,n=t+(e-r)/12;return r===2?xl(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function tp(t){let e=Date.UTC(t.year,t.month-1,t.day,t.hour,t.minute,t.second,t.millisecond);return t.year<100&&t.year>=0&&(e=new Date(e),e.setUTCFullYear(t.year,t.month-1,t.day)),+e}function m6(t,e,r){return-A0(M0(t,1,e),r)+e-1}function Sl(t,e=4,r=1){let n=m6(t,e,r),i=m6(t+1,e,r);return(La(t)-n+i)/7}function Hm(t){return t>99?t:t>dt.twoDigitCutoffYear?1900+t:2e3+t}function S0(t,e,r,n=null){let i=new Date(t),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:e,...o},c=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return c?c.value:null}function _l(t,e){let r=parseInt(t,10);Number.isNaN(r)&&(r=0);let n=parseInt(e,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function $2(t){let e=Number(t);if(typeof t=="boolean"||t===""||Number.isNaN(e))throw new ar(`Invalid unit value ${t}`);return e}function sp(t,e){let r={};for(let n in t)if(ka(t,n)){let i=t[n];if(i==null)continue;r[e(n)]=$2(i)}return r}function Pa(t,e){let r=Math.trunc(Math.abs(t/60)),n=Math.trunc(Math.abs(t%60)),i=t>=0?"+":"-";switch(e){case"short":return`${i}${rr(r,2)}:${rr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${rr(r,2)}${rr(n,2)}`;default:throw new RangeError(`Value format ${e} is out of range for property format`)}}function jm(t){return w6(t,["hour","minute","second","millisecond"])}var An=N(()=>{Ea();Aa();R2()});function v2(t){switch(t){case"narrow":return[...Tz];case"short":return[...F2];case"long":return[...Cz];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}function _2(t){switch(t){case"narrow":return[...Pz];case"short":return[...V2];case"long":return[...U2];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function x2(t){switch(t){case"narrow":return[...Iz];case"short":return[...Az];case"long":return[...Mz];default:return null}}function y6(t){return S2[t.hour<12?0:1]}function b6(t,e){return _2(e)[t.weekday-1]}function v6(t,e){return v2(e)[t.month-1]}function _6(t,e){return x2(e)[t.year<0?0:1]}function ZT(t,e,r="always",n=!1){let i={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(t)===-1;if(r==="auto"&&o){let g=t==="days";switch(e){case 1:return g?"tomorrow":`next ${i[t][0]}`;case-1:return g?"yesterday":`last ${i[t][0]}`;case 0:return g?"today":`this ${i[t][0]}`;default:}}let s=Object.is(e,-0)||e<0,c=Math.abs(e),a=c===1,d=i[t],h=n?a?d[1]:d[2]||d[1]:a?i[t][0]:t;return s?`${c} ${h} ago`:`in ${c} ${h}`}var Cz,F2,Tz,U2,V2,Pz,S2,Mz,Az,Iz,T0=N(()=>{Fm();An();Cz=["January","February","March","April","May","June","July","August","September","October","November","December"],F2=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Tz=["J","F","M","A","M","J","J","A","S","O","N","D"];U2=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],V2=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Pz=["M","T","W","T","F","S","S"];S2=["AM","PM"],Mz=["Before Christ","Anno Domini"],Az=["BC","AD"],Iz=["B","A"]});function S6(t,e){let r="";for(let n of t)n.literal?r+=n.val:r+=e(n.val);return r}var Lz,jr,Ym=N(()=>{T0();Fm();An();Lz={D:Ca,DD:bm,DDD:vm,DDDD:_m,t:Sm,tt:xm,ttt:Em,tttt:Cm,T:Tm,TT:Pm,TTT:Mm,TTTT:Am,f:Im,ff:km,fff:Nm,ffff:Dm,F:Lm,FF:Om,FFF:Rm,FFFF:$m},jr=class t{static create(e,r={}){return new t(e,r)}static parseFormat(e){let r=null,n="",i=!1,o=[];for(let s=0;s<e.length;s++){let c=e.charAt(s);c==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||c===r?n+=c:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=c,r=c)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(e){return Lz[e]}constructor(e,r){this.opts=r,this.loc=e,this.systemLoc=null}formatWithSystemDefault(e,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(e,{...this.opts,...r}).format()}dtFormatter(e,r={}){return this.loc.dtFormatter(e,{...this.opts,...r})}formatDateTime(e,r){return this.dtFormatter(e,r).format()}formatDateTimeParts(e,r){return this.dtFormatter(e,r).formatToParts()}formatInterval(e,r){return this.dtFormatter(e.start,r).dtf.formatRange(e.start.toJSDate(),e.end.toJSDate())}resolvedOptions(e,r){return this.dtFormatter(e,r).resolvedOptions()}num(e,r=0){if(this.opts.forceSimple)return rr(e,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(e)}formatDateTimeFromString(e,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(E,M)=>this.loc.extract(e,E,M),s=E=>e.isOffsetFixed&&e.offset===0&&E.allowZ?"Z":e.isValid?e.zone.formatOffset(e.ts,E.format):"",c=()=>n?y6(e):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(E,M)=>n?v6(e,E):o(M?{month:E}:{month:E,day:"numeric"},"month"),d=(E,M)=>n?b6(e,E):o(M?{weekday:E}:{weekday:E,month:"long",day:"numeric"},"weekday"),h=E=>{let M=t.macroTokenToFormatOpts(E);return M?this.formatWithSystemDefault(e,M):E},g=E=>n?_6(e,E):o({era:E},"era"),v=E=>{switch(E){case"S":return this.num(e.millisecond);case"u":case"SSS":return this.num(e.millisecond,3);case"s":return this.num(e.second);case"ss":return this.num(e.second,2);case"uu":return this.num(Math.floor(e.millisecond/10),2);case"uuu":return this.num(Math.floor(e.millisecond/100));case"m":return this.num(e.minute);case"mm":return this.num(e.minute,2);case"h":return this.num(e.hour%12===0?12:e.hour%12);case"hh":return this.num(e.hour%12===0?12:e.hour%12,2);case"H":return this.num(e.hour);case"HH":return this.num(e.hour,2);case"Z":return s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return e.zone.offsetName(e.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return e.zone.offsetName(e.ts,{format:"long",locale:this.loc.locale});case"z":return e.zoneName;case"a":return c();case"d":return i?o({day:"numeric"},"day"):this.num(e.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(e.day,2);case"c":return this.num(e.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(e.weekday);case"EEE":return d("short",!1);case"EEEE":return d("long",!1);case"EEEEE":return d("narrow",!1);case"L":return i?o({month:"numeric",day:"numeric"},"month"):this.num(e.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(e.month,2);case"LLL":return a("short",!0);case"LLLL":return a("long",!0);case"LLLLL":return a("narrow",!0);case"M":return i?o({month:"numeric"},"month"):this.num(e.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(e.month,2);case"MMM":return a("short",!1);case"MMMM":return a("long",!1);case"MMMMM":return a("narrow",!1);case"y":return i?o({year:"numeric"},"year"):this.num(e.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(e.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(e.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(e.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(e.weekYear.toString().slice(-2),2);case"kkkk":return this.num(e.weekYear,4);case"W":return this.num(e.weekNumber);case"WW":return this.num(e.weekNumber,2);case"n":return this.num(e.localWeekNumber);case"nn":return this.num(e.localWeekNumber,2);case"ii":return this.num(e.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(e.localWeekYear,4);case"o":return this.num(e.ordinal);case"ooo":return this.num(e.ordinal,3);case"q":return this.num(e.quarter);case"qq":return this.num(e.quarter,2);case"X":return this.num(Math.floor(e.ts/1e3));case"x":return this.num(e.ts);default:return h(E)}};return S6(t.parseFormat(r),v)}formatDurationFromString(e,r){let n=a=>{switch(a[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},i=a=>d=>{let h=n(d);return h?this.num(a.get(h),d.length):d},o=t.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),c=e.shiftTo(...s.map(n).filter(a=>a));return S6(o,i(c))}}});function cp(...t){let e=t.reduce((r,n)=>r+n.source,"");return RegExp(`^${e}$`)}function lp(...t){return e=>t.reduce(([r,n,i],o)=>{let[s,c,a]=o(e,i);return[{...r,...s},c||n,a]},[{},null,1]).slice(0,2)}function up(t,...e){if(t==null)return[null,null];for(let[r,n]of e){let i=r.exec(t);if(i)return n(i)}return[null,null]}function C6(...t){return(e,r)=>{let n={},i;for(i=0;i<t.length;i++)n[t[i]]=vs(e[r+i]);return[n,null,r+i]}}function ap(t,e,r){let n=t[e];return Ge(n)?r:vs(n)}function Vz(t,e){return[{year:ap(t,e),month:ap(t,e+1,1),day:ap(t,e+2,1)},null,e+3]}function dp(t,e){return[{hours:ap(t,e,0),minutes:ap(t,e+1,0),seconds:ap(t,e+2,0),milliseconds:qm(t[e+3])},null,e+4]}function Zm(t,e){let r=!t[e]&&!t[e+1],n=_l(t[e+1],t[e+2]),i=r?null:xt.instance(n);return[{},i,e+3]}function Xm(t,e){let r=t[e]?cr.create(t[e]):null;return[{},r,e+1]}function Bz(t){let[e,r,n,i,o,s,c,a,d]=t,h=e[0]==="-",g=a&&a[0]==="-",v=(E,M=!1)=>E!==void 0&&(M||E&&h)?-E:E;return[{years:v(Oa(r)),months:v(Oa(n)),weeks:v(Oa(i)),days:v(Oa(o)),hours:v(Oa(s)),minutes:v(Oa(c)),seconds:v(Oa(a),a==="-0"),milliseconds:v(qm(d),g)}]}function B2(t,e,r,n,i,o,s){let c={year:e.length===2?Hm(vs(e)):vs(e),month:F2.indexOf(r)+1,day:vs(n),hour:vs(i),minute:vs(o)};return s&&(c.second=vs(s)),t&&(c.weekday=t.length>3?U2.indexOf(t)+1:V2.indexOf(t)+1),c}function qz(t){let[,e,r,n,i,o,s,c,a,d,h,g]=t,v=B2(e,i,n,r,o,s,c),E;return a?E=Gz[a]:d?E=0:E=_l(h,g),[v,new xt(E)]}function Hz(t){return t.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function x6(t){let[,e,r,n,i,o,s,c]=t;return[B2(e,i,n,r,o,s,c),xt.utcInstance]}function Jz(t){let[,e,r,n,i,o,s,c]=t;return[B2(e,c,r,n,i,o,s),xt.utcInstance]}function I6(t){return up(t,[Qz,A6],[Kz,rW],[eW,nW],[tW,iW])}function L6(t){return up(Hz(t),[jz,qz])}function k6(t){return up(t,[Yz,x6],[Zz,x6],[Xz,Jz])}function O6(t){return up(t,[Wz,Bz])}function N6(t){return up(t,[zz,oW])}function R6(t){return up(t,[sW,A6],[aW,cW])}var E6,T6,kz,z2,P6,W2,Oz,Nz,Rz,Dz,$z,Fz,M6,Uz,zz,Wz,Gz,jz,Yz,Zz,Xz,Qz,Kz,eW,tW,A6,rW,nW,iW,oW,sW,aW,cW,G2=N(()=>{An();T0();np();Ma();E6=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;T6=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,kz=`(?:${T6.source}?(?:\\[(${E6.source})\\])?)?`,z2=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,P6=RegExp(`${z2.source}${kz}`),W2=RegExp(`(?:T${P6.source})?`),Oz=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,Nz=/(\d{4})-?W(\d\d)(?:-?(\d))?/,Rz=/(\d{4})-?(\d{3})/,Dz=C6("weekYear","weekNumber","weekDay"),$z=C6("year","ordinal"),Fz=/(\d{4})-(\d\d)-(\d\d)/,M6=RegExp(`${z2.source} ?(?:${T6.source}|(${E6.source}))?`),Uz=RegExp(`(?: ${M6.source})?`);zz=RegExp(`^T?${z2.source}$`),Wz=/^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;Gz={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};jz=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;Yz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,Zz=/^(Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,Xz=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;Qz=cp(Oz,W2),Kz=cp(Nz,W2),eW=cp(Rz,W2),tW=cp(P6),A6=lp(Vz,dp,Zm,Xm),rW=lp(Dz,dp,Zm,Xm),nW=lp($z,dp,Zm,Xm),iW=lp(dp,Zm,Xm);oW=lp(dp);sW=cp(Fz,Uz),aW=cp(M6),cW=lp(dp,Zm,Xm)});function Na(t,e,r=!1){let n={values:r?e.values:{...t.values,...e.values||{}},loc:t.loc.clone(e.loc),conversionAccuracy:e.conversionAccuracy||t.conversionAccuracy,matrix:e.matrix||t.matrix};return new nr(n)}function U6(t,e){let r=e.milliseconds??0;for(let n of dW.slice(1))e[n]&&(r+=e[n]*t[n].milliseconds);return r}function $6(t,e){let r=U6(t,e)<0?-1:1;El.reduceRight((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]*r,s=t[i][n],c=Math.floor(o/s);e[i]+=c*r,e[n]-=c*s*r}return i},null),El.reduce((n,i)=>{if(Ge(e[i]))return n;if(n){let o=e[n]%1;e[n]-=o,e[i]+=o*t[n][i]}return i},null)}function pW(t){let e={};for(let[r,n]of Object.entries(t))n!==0&&(e[r]=n);return e}var D6,F6,lW,Mi,pp,uW,El,dW,nr,Jm=N(()=>{Ea();Ym();Wm();zm();G2();An();Aa();Ia();D6="Invalid Duration",F6={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},lW={years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3},...F6},Mi=146097/400,pp=146097/4800,uW={years:{quarters:4,months:12,weeks:Mi/7,days:Mi,hours:Mi*24,minutes:Mi*24*60,seconds:Mi*24*60*60,milliseconds:Mi*24*60*60*1e3},quarters:{months:3,weeks:Mi/28,days:Mi/4,hours:Mi*24/4,minutes:Mi*24*60/4,seconds:Mi*24*60*60/4,milliseconds:Mi*24*60*60*1e3/4},months:{weeks:pp/7,days:pp,hours:pp*24,minutes:pp*24*60,seconds:pp*24*60*60,milliseconds:pp*24*60*60*1e3},...F6},El=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],dW=El.slice(0).reverse();nr=class t{constructor(e){let r=e.conversionAccuracy==="longterm"||!1,n=r?uW:lW;e.matrix&&(n=e.matrix),this.values=e.values,this.loc=e.loc||pt.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=e.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(e,r){return t.fromObject({milliseconds:e},r)}static fromObject(e,r={}){if(e==null||typeof e!="object")throw new ar(`Duration.fromObject: argument expected to be an object, got ${e===null?"null":typeof e}`);return new t({values:sp(e,t.normalizeUnit),loc:pt.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(e){if(Ki(e))return t.fromMillis(e);if(t.isDuration(e))return e;if(typeof e=="object")return t.fromObject(e);throw new ar(`Unknown duration argument ${e} of type ${typeof e}`)}static fromISO(e,r){let[n]=O6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static fromISOTime(e,r){let[n]=N6(e);return n?t.fromObject(n,r):t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static invalid(e,r=null){if(!e)throw new ar("need to specify a reason the Duration is invalid");let n=e instanceof Gr?e:new Gr(e,r);if(dt.throwOnInvalid)throw new b0(n);return new t({invalid:n})}static normalizeUnit(e){let r={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[e&&e.toLowerCase()];if(!r)throw new ep(e);return r}static isDuration(e){return e&&e.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(e,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?jr.create(this.loc,n).formatDurationFromString(this,e):D6}toHuman(e={}){if(!this.isValid)return D6;let r=El.map(n=>{let i=this.values[n];return Ge(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...e,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:e.listStyle||"narrow",...e}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let e="P";return this.years!==0&&(e+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(e+=this.months+this.quarters*3+"M"),this.weeks!==0&&(e+=this.weeks+"W"),this.days!==0&&(e+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(e+="T"),this.hours!==0&&(e+=this.hours+"H"),this.minutes!==0&&(e+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(e+=rp(this.seconds+this.milliseconds/1e3,3)+"S"),e==="P"&&(e+="T0S"),e}toISOTime(e={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(e={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...e,includeOffset:!1},Te.fromMillis(r,{zone:"UTC"}).toISOTime(e))}toJSON(){return this.toISO()}toString(){return this.toISO()}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Duration { values: ${JSON.stringify(this.values)} }`:`Duration { Invalid, reason: ${this.invalidReason} }`}toMillis(){return this.isValid?U6(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e),n={};for(let i of El)(ka(r.values,i)||ka(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Na(this,{values:n},!0)}minus(e){if(!this.isValid)return this;let r=t.fromDurationLike(e);return this.plus(r.negate())}mapUnits(e){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=$2(e(this.values[n],n));return Na(this,{values:r},!0)}get(e){return this[t.normalizeUnit(e)]}set(e){if(!this.isValid)return this;let r={...this.values,...sp(e,t.normalizeUnit)};return Na(this,{values:r})}reconfigure({locale:e,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:e,numberingSystem:r}),matrix:i,conversionAccuracy:n};return Na(this,s)}as(e){return this.isValid?this.shiftTo(e).get(e):NaN}normalize(){if(!this.isValid)return this;let e=this.toObject();return $6(this.matrix,e),Na(this,{values:e},!0)}rescale(){if(!this.isValid)return this;let e=pW(this.normalize().shiftToAll().toObject());return Na(this,{values:e},!0)}shiftTo(...e){if(!this.isValid)return this;if(e.length===0)return this;e=e.map(s=>t.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of El)if(e.indexOf(s)>=0){o=s;let c=0;for(let d in n)c+=this.matrix[d][s]*n[d],n[d]=0;Ki(i[s])&&(c+=i[s]);let a=Math.trunc(c);r[s]=a,n[s]=(c*1e3-a*1e3)/1e3}else Ki(i[s])&&(n[s]=i[s]);for(let s in n)n[s]!==0&&(r[o]+=s===o?n[s]:n[s]/this.matrix[o][s]);return $6(this.matrix,r),Na(this,{values:r},!0)}shiftToAll(){return this.isValid?this.shiftTo("years","months","weeks","days","hours","minutes","seconds","milliseconds"):this}negate(){if(!this.isValid)return this;let e={};for(let r of Object.keys(this.values))e[r]=this.values[r]===0?0:-this.values[r];return Na(this,{values:e},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(e){if(!this.isValid||!e.isValid||!this.loc.equals(e.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of El)if(!r(this.values[n],e.values[n]))return!1;return!0}}});function fW(t,e){return!t||!t.isValid?_s.invalid("missing or invalid start"):!e||!e.isValid?_s.invalid("missing or invalid end"):e<t?_s.invalid("end before start",`The end of an interval must be after its start, but you had start=${t.toISO()} and end=${e.toISO()}`):null}var fp,_s,j2=N(()=>{Ia();Jm();Aa();Ea();Wm();Ym();Fm();fp="Invalid Interval";_s=class t{constructor(e){this.s=e.start,this.e=e.end,this.invalid=e.invalid||null,this.isLuxonInterval=!0}static invalid(e,r=null){if(!e)throw new ar("need to specify a reason the Interval is invalid");let n=e instanceof Gr?e:new Gr(e,r);if(dt.throwOnInvalid)throw new y0(n);return new t({invalid:n})}static fromDateTimes(e,r){let n=mp(e),i=mp(r),o=fW(n,i);return o??new t({start:n,end:i})}static after(e,r){let n=nr.fromDurationLike(r),i=mp(e);return t.fromDateTimes(i,i.plus(n))}static before(e,r){let n=nr.fromDurationLike(r),i=mp(e);return t.fromDateTimes(i.minus(n),i)}static fromISO(e,r){let[n,i]=(e||"").split("/",2);if(n&&i){let o,s;try{o=Te.fromISO(n,r),s=o.isValid}catch{s=!1}let c,a;try{c=Te.fromISO(i,r),a=c.isValid}catch{a=!1}if(s&&a)return t.fromDateTimes(o,c);if(s){let d=nr.fromISO(i,r);if(d.isValid)return t.after(o,d)}else if(a){let d=nr.fromISO(n,r);if(d.isValid)return t.before(c,d)}}return t.invalid("unparsable",`the input "${e}" can't be parsed as ISO 8601`)}static isInterval(e){return e&&e.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get lastDateTime(){return this.isValid&&this.e?this.e.minus(1):null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(e="milliseconds"){return this.isValid?this.toDuration(e).get(e):NaN}count(e="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(e,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(e,r),Math.floor(i.diff(n,e).get(e))+(i.valueOf()!==this.end.valueOf())}hasSame(e){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,e):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(e){return this.isValid?this.s>e:!1}isBefore(e){return this.isValid?this.e<=e:!1}contains(e){return this.isValid?this.s<=e&&this.e>e:!1}set({start:e,end:r}={}){return this.isValid?t.fromDateTimes(e||this.s,r||this.e):this}splitAt(...e){if(!this.isValid)return[];let r=e.map(mp).filter(s=>this.contains(s)).sort((s,c)=>s.toMillis()-c.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,c=+s>+this.e?this.e:s;n.push(t.fromDateTimes(i,c)),i=c,o+=1}return n}splitBy(e){let r=nr.fromDurationLike(e);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let c=this.start.plus(r.mapUnits(a=>a*i));o=+c>+this.e?this.e:c,s.push(t.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(e){return this.isValid?this.splitBy(this.length()/e).slice(0,e):[]}overlaps(e){return this.e>e.s&&this.s<e.e}abutsStart(e){return this.isValid?+this.e==+e.s:!1}abutsEnd(e){return this.isValid?+e.e==+this.s:!1}engulfs(e){return this.isValid?this.s<=e.s&&this.e>=e.e:!1}equals(e){return!this.isValid||!e.isValid?!1:this.s.equals(e.s)&&this.e.equals(e.e)}intersection(e){if(!this.isValid)return this;let r=this.s>e.s?this.s:e.s,n=this.e<e.e?this.e:e.e;return r>=n?null:t.fromDateTimes(r,n)}union(e){if(!this.isValid)return this;let r=this.s<e.s?this.s:e.s,n=this.e>e.e?this.e:e.e;return t.fromDateTimes(r,n)}static merge(e){let[r,n]=e.sort((i,o)=>i.s-o.s).reduce(([i,o],s)=>o?o.overlaps(s)||o.abutsStart(s)?[i,o.union(s)]:[i.concat([o]),s]:[i,s],[[],null]);return n&&r.push(n),r}static xor(e){let r=null,n=0,i=[],o=e.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),c=s.sort((a,d)=>a.time-d.time);for(let a of c)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(t.fromDateTimes(r,a.time)),r=null);return t.merge(i)}difference(...e){return t.xor([this].concat(e)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:fp}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(e=Ca,r={}){return this.isValid?jr.create(this.s.loc.clone(r),e).formatInterval(this):fp}toISO(e){return this.isValid?`${this.s.toISO(e)}/${this.e.toISO(e)}`:fp}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:fp}toISOTime(e){return this.isValid?`${this.s.toISOTime(e)}/${this.e.toISOTime(e)}`:fp}toFormat(e,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(e)}${r}${this.e.toFormat(e)}`:fp}toDuration(e,r){return this.isValid?this.e.diff(this.s,e,r):nr.invalid(this.invalidReason)}mapEndpoints(e){return t.fromDateTimes(e(this.s),e(this.e))}}});var Ss,q2=N(()=>{Ia();Aa();zm();Ma();P0();An();Ss=class{static hasDST(e=dt.defaultZone){let r=Te.now().setZone(e).set({month:12});return!e.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(e){return cr.isValidZone(e)}static normalizeZone(e){return Qi(e,dt.defaultZone)}static getStartOfWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:e=null,locObj:r=null}={}){return(r||pt.create(e)).getWeekendDays().slice()}static months(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e)}static monthsFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||pt.create(r,n,o)).months(e,!0)}static weekdays(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e)}static weekdaysFormat(e="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||pt.create(r,n,null)).weekdays(e,!0)}static meridiems({locale:e=null}={}){return pt.create(e).meridiems()}static eras(e="short",{locale:r=null}={}){return pt.create(r,null,"gregory").eras(e)}static features(){return{relative:E0(),localeWeek:C0()}}}});function V6(t,e){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(e)-r(t);return Math.floor(nr.fromMillis(n).as("days"))}function mW(t,e,r){let n=[["years",(a,d)=>d.year-a.year],["quarters",(a,d)=>d.quarter-a.quarter+(d.year-a.year)*4],["months",(a,d)=>d.month-a.month+(d.year-a.year)*12],["weeks",(a,d)=>{let h=V6(a,d);return(h-h%7)/7}],["days",V6]],i={},o=t,s,c;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(t,e),c=o.plus(i),c>e?(i[a]--,t=o.plus(i),t>e&&(c=t,i[a]--,t=o.plus(i))):t=c);return[t,i,c,s]}function z6(t,e,r,n){let[i,o,s,c]=mW(t,e,r),a=e-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<e&&(s=i.plus({[c]:1})),s!==i&&(o[c]=(o[c]||0)+a/(s-i)));let h=nr.fromObject(o,n);return d.length>0?nr.fromMillis(a,n).shiftTo(...d).plus(h):h}var W6=N(()=>{Jm()});function ht(t,e=r=>r){return{regex:t,deser:([r])=>e(QT(r))}}function wW(t){return t.replace(/\./g,"\\.?").replace(q6,j6)}function B6(t){return t.replace(/\./g,"").replace(q6," ").toLowerCase()}function eo(t,e){return t===null?null:{regex:RegExp(t.map(wW).join("|")),deser:([r])=>t.findIndex(n=>B6(r)===B6(n))+e}}function G6(t,e){return{regex:t,deser:([,r,n])=>_l(r,n),groups:e}}function L0(t){return{regex:t,deser:([e])=>e}}function yW(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function bW(t,e){let r=Ti(e),n=Ti(e,"{2}"),i=Ti(e,"{3}"),o=Ti(e,"{4}"),s=Ti(e,"{6}"),c=Ti(e,"{1,2}"),a=Ti(e,"{1,3}"),d=Ti(e,"{1,6}"),h=Ti(e,"{1,9}"),g=Ti(e,"{2,4}"),v=Ti(e,"{4,6}"),E=$=>({regex:RegExp(yW($.val)),deser:([z])=>z,literal:!0}),k=($=>{if(t.literal)return E($);switch($.val){case"G":return eo(e.eras("short"),0);case"GG":return eo(e.eras("long"),0);case"y":return ht(d);case"yy":return ht(g,Hm);case"yyyy":return ht(o);case"yyyyy":return ht(v);case"yyyyyy":return ht(s);case"M":return ht(c);case"MM":return ht(n);case"MMM":return eo(e.months("short",!0),1);case"MMMM":return eo(e.months("long",!0),1);case"L":return ht(c);case"LL":return ht(n);case"LLL":return eo(e.months("short",!1),1);case"LLLL":return eo(e.months("long",!1),1);case"d":return ht(c);case"dd":return ht(n);case"o":return ht(a);case"ooo":return ht(i);case"HH":return ht(n);case"H":return ht(c);case"hh":return ht(n);case"h":return ht(c);case"mm":return ht(n);case"m":return ht(c);case"q":return ht(c);case"qq":return ht(n);case"s":return ht(c);case"ss":return ht(n);case"S":return ht(a);case"SSS":return ht(i);case"u":return L0(h);case"uu":return L0(c);case"uuu":return ht(r);case"a":return eo(e.meridiems(),0);case"kkkk":return ht(o);case"kk":return ht(g,Hm);case"W":return ht(c);case"WW":return ht(n);case"E":case"c":return ht(r);case"EEE":return eo(e.weekdays("short",!1),1);case"EEEE":return eo(e.weekdays("long",!1),1);case"ccc":return eo(e.weekdays("short",!0),1);case"cccc":return eo(e.weekdays("long",!0),1);case"Z":case"ZZ":return G6(new RegExp(`([+-]${c.source})(?::(${n.source}))?`),2);case"ZZZ":return G6(new RegExp(`([+-]${c.source})(${n.source})?`),2);case"z":return L0(/[a-z_+-/]{1,256}?/i);case" ":return L0(/[^\S\n\r]/);default:return E($)}})(t)||{invalidReason:hW};return k.token=t,k}function _W(t,e,r){let{type:n,value:i}=t;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=e[n],s=n;n==="hour"&&(e.hour12!=null?s=e.hour12?"hour12":"hour24":e.hourCycle!=null?e.hourCycle==="h11"||e.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let c=vW[s];if(typeof c=="object"&&(c=c[o]),c)return{literal:!1,val:c}}function SW(t){return[`^${t.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,t]}function xW(t,e,r){let n=t.match(e);if(n){let i={},o=1;for(let s in r)if(ka(r,s)){let c=r[s],a=c.groups?c.groups+1:1;!c.literal&&c.token&&(i[c.token.val[0]]=c.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function EW(t){let e=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}},r=null,n;return Ge(t.z)||(r=cr.create(t.z)),Ge(t.Z)||(r||(r=new xt(t.Z)),n=t.Z),Ge(t.q)||(t.M=(t.q-1)*3+1),Ge(t.h)||(t.h<12&&t.a===1?t.h+=12:t.h===12&&t.a===0&&(t.h=0)),t.G===0&&t.y&&(t.y=-t.y),Ge(t.u)||(t.S=qm(t.u)),[Object.keys(t).reduce((o,s)=>{let c=e(s);return c&&(o[c]=t[s]),o},{}),r,n]}function CW(){return H2||(H2=Te.fromMillis(1555555555555)),H2}function TW(t,e){if(t.literal)return t;let r=jr.macroTokenToFormatOpts(t.val),n=X2(r,e);return n==null||n.includes(void 0)?t:n}function Y2(t,e){return Array.prototype.concat(...t.map(r=>TW(r,e)))}function Z2(t,e,r){return new Qm(t,r).explainFromTokens(e)}function H6(t,e,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=Z2(t,e,r);return[n,i,o,s]}function X2(t,e){if(!t)return null;let n=jr.create(e,t).dtFormatter(CW()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>_W(s,t,o))}var hW,gW,j6,q6,vW,H2,Qm,Y6=N(()=>{An();Ym();np();Ma();Ia();A2();Ea();hW="missing Intl.DateTimeFormat.formatToParts support";gW="\xA0",j6=`[ ${gW}]`,q6=new RegExp(j6,"g");vW={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour12:{numeric:"h","2-digit":"hh"},hour24:{numeric:"H","2-digit":"HH"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"},timeZoneName:{long:"ZZZZZ",short:"ZZZ"}};H2=null;Qm=class{constructor(e,r){if(this.locale=e,this.format=r,this.tokens=Y2(jr.parseFormat(r),e),this.units=this.tokens.map(n=>bW(n,e)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=SW(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(e){if(this.isValid){let[r,n]=xW(e,this.regex,this.handlers),[i,o,s]=n?EW(n):[null,null,void 0];if(ka(n,"a")&&ka(n,"H"))throw new Zi("Can't include meridiem when specifying 24-hour format");return{input:e,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:e,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function Km(t){return new Gr("unsupported zone",`the zone "${t.name}" is not supported`)}function Q2(t){return t.weekData===null&&(t.weekData=Bm(t.c)),t.weekData}function K2(t){return t.localWeekData===null&&(t.localWeekData=Bm(t.c,t.loc.getMinDaysInFirstWeek(),t.loc.getStartOfWeek())),t.localWeekData}function Cl(t,e){let r={ts:t.ts,zone:t.zone,c:t.c,o:t.o,loc:t.loc,invalid:t.invalid};return new Te({...r,...e,old:r})}function r8(t,e,r){let n=t-e*60*1e3,i=r.offset(n);if(e===i)return[n,e];n-=(i-e)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[t-Math.min(i,o)*60*1e3,Math.max(i,o)]}function k0(t,e){t+=e*60*1e3;let r=new Date(t);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function N0(t,e,r){return r8(tp(t),e,r)}function X6(t,e){let r=t.o,n=t.c.year+Math.trunc(e.years),i=t.c.month+Math.trunc(e.months)+Math.trunc(e.quarters)*3,o={...t.c,year:n,month:i,day:Math.min(t.c.day,op(n,i))+Math.trunc(e.days)+Math.trunc(e.weeks)*7},s=nr.fromObject({years:e.years-Math.trunc(e.years),quarters:e.quarters-Math.trunc(e.quarters),months:e.months-Math.trunc(e.months),weeks:e.weeks-Math.trunc(e.weeks),days:e.days-Math.trunc(e.days),hours:e.hours,minutes:e.minutes,seconds:e.seconds,milliseconds:e.milliseconds}).as("milliseconds"),c=tp(o),[a,d]=r8(c,r,t.zone);return s!==0&&(a+=s,d=t.zone.offset(a)),{ts:a,o:d}}function hp(t,e,r,n,i,o){let{setZone:s,zone:c}=r;if(t&&Object.keys(t).length!==0||e){let a=e||c,d=Te.fromObject(t,{...r,zone:a,specificOffset:o});return s?d:d.setZone(c)}else return Te.invalid(new Gr("unparsable",`the input "${i}" can't be parsed as ${n}`))}function O0(t,e,r=!0){return t.isValid?jr.create(pt.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(t,e):null}function eS(t,e){let r=t.c.year>9999||t.c.year<0,n="";return r&&t.c.year>=0&&(n+="+"),n+=rr(t.c.year,r?6:4),e?(n+="-",n+=rr(t.c.month),n+="-",n+=rr(t.c.day)):(n+=rr(t.c.month),n+=rr(t.c.day)),n}function J6(t,e,r,n,i,o){let s=rr(t.c.hour);return e?(s+=":",s+=rr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=":")):s+=rr(t.c.minute),(t.c.millisecond!==0||t.c.second!==0||!r)&&(s+=rr(t.c.second),(t.c.millisecond!==0||!n)&&(s+=".",s+=rr(t.c.millisecond,3))),i&&(t.isOffsetFixed&&t.offset===0&&!o?s+="Z":t.o<0?(s+="-",s+=rr(Math.trunc(-t.o/60)),s+=":",s+=rr(Math.trunc(-t.o%60))):(s+="+",s+=rr(Math.trunc(t.o/60)),s+=":",s+=rr(Math.trunc(t.o%60)))),o&&(s+="["+t.zone.ianaName+"]"),s}function LW(t){let e={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[t.toLowerCase()];if(!e)throw new ep(t);return e}function Q6(t){switch(t.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return LW(t)}}function kW(t){if(eh===void 0&&(eh=dt.now()),t.type!=="iana")return t.offset(eh);let e=t.name,r=tS.get(e);return r===void 0&&(r=t.offset(eh),tS.set(e,r)),r}function K6(t,e){let r=Qi(e.zone,dt.defaultZone);if(!r.isValid)return Te.invalid(Km(r));let n=pt.fromObject(e),i,o;if(Ge(t.year))i=dt.now();else{for(let a of i8)Ge(t[a])&&(t[a]=n8[a]);let s=O2(t)||N2(t);if(s)return Te.invalid(s);let c=kW(r);[i,o]=N0(t,c,r)}return new Te({ts:i,zone:r,loc:n,o})}function e8(t,e,r){let n=Ge(r.round)?!0:r.round,i=(s,c)=>(s=rp(s,n||r.calendary?0:2,!0),e.loc.clone(r).relFormatter(r).format(s,c)),o=s=>r.calendary?e.hasSame(t,s)?0:e.startOf(s).diff(t.startOf(s),s).get(s):e.diff(t,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let c=o(s);if(Math.abs(c)>=1)return i(c,s)}return i(t>e?-0:0,r.units[r.units.length-1])}function t8(t){let e={},r;return t.length>0&&typeof t[t.length-1]=="object"?(e=t[t.length-1],r=Array.from(t).slice(0,t.length-1)):r=Array.from(t),[e,r]}function mp(t){if(Te.isDateTime(t))return t;if(t&&t.valueOf&&Ki(t.valueOf()))return Te.fromJSDate(t);if(t&&typeof t=="object")return Te.fromObject(t);throw new ar(`Unknown datetime argument: ${t}, of type ${typeof t}`)}var J2,Z6,n8,PW,MW,i8,AW,IW,eh,tS,Te,Ia=N(()=>{Jm();j2();Aa();q2();Ym();np();zm();An();P0();W6();G2();Y6();R2();Fm();Ea();Wm();J2="Invalid DateTime",Z6=864e13;n8={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},PW={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},MW={ordinal:1,hour:0,minute:0,second:0,millisecond:0},i8=["year","month","day","hour","minute","second","millisecond"],AW=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],IW=["year","ordinal","hour","minute","second","millisecond"];tS=new Map,Te=class t{constructor(e){let r=e.zone||dt.defaultZone,n=e.invalid||(Number.isNaN(e.ts)?new Gr("invalid input"):null)||(r.isValid?null:Km(r));this.ts=Ge(e.ts)?dt.now():e.ts;let i=null,o=null;if(!n)if(e.old&&e.old.ts===this.ts&&e.old.zone.equals(r))[i,o]=[e.old.c,e.old.o];else{let c=Ki(e.o)&&!e.old?e.o:r.offset(this.ts);i=k0(this.ts,c),n=Number.isNaN(i.year)?new Gr("invalid input"):null,i=n?null:i,o=n?null:c}this._zone=r,this.loc=e.loc||pt.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new t({})}static local(){let[e,r]=t8(arguments),[n,i,o,s,c,a,d]=r;return K6({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static utc(){let[e,r]=t8(arguments),[n,i,o,s,c,a,d]=r;return e.zone=xt.utcInstance,K6({year:n,month:i,day:o,hour:s,minute:c,second:a,millisecond:d},e)}static fromJSDate(e,r={}){let n=h6(e)?e.valueOf():NaN;if(Number.isNaN(n))return t.invalid("invalid input");let i=Qi(r.zone,dt.defaultZone);return i.isValid?new t({ts:n,zone:i,loc:pt.fromObject(r)}):t.invalid(Km(i))}static fromMillis(e,r={}){if(Ki(e))return e<-Z6||e>Z6?t.invalid("Timestamp out of range"):new t({ts:e,zone:Qi(r.zone,dt.defaultZone),loc:pt.fromObject(r)});throw new ar(`fromMillis requires a numerical input, but received a ${typeof e} with value ${e}`)}static fromSeconds(e,r={}){if(Ki(e))return new t({ts:e*1e3,zone:Qi(r.zone,dt.defaultZone),loc:pt.fromObject(r)});throw new ar("fromSeconds requires a numerical input")}static fromObject(e,r={}){e=e||{};let n=Qi(r.zone,dt.defaultZone);if(!n.isValid)return t.invalid(Km(n));let i=pt.fromObject(r),o=sp(e,Q6),{minDaysInFirstWeek:s,startOfWeek:c}=k2(o,i),a=dt.now(),d=Ge(r.specificOffset)?n.offset(a):r.specificOffset,h=!Ge(o.ordinal),g=!Ge(o.year),v=!Ge(o.month)||!Ge(o.day),E=g||v,M=o.weekYear||o.weekNumber;if((E||h)&&M)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(v&&h)throw new Zi("Can't mix ordinal dates with month/day");let k=M||o.weekday&&!E,$,z,B=k0(a,d);k?($=AW,z=PW,B=Bm(B,s,c)):h?($=IW,z=MW,B=I0(B)):($=i8,z=n8);let q=!1;for(let Ce of $){let Ne=o[Ce];Ge(Ne)?q?o[Ce]=z[Ce]:o[Ce]=B[Ce]:q=!0}let V=k?p6(o,s,c):h?f6(o):O2(o),X=V||N2(o);if(X)return t.invalid(X);let te=k?I2(o,s,c):h?L2(o):o,[F,me]=N0(te,d,n),Le=new t({ts:F,zone:n,o:me,loc:i});return o.weekday&&E&&e.weekday!==Le.weekday?t.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Le.toISO()}`):Le.isValid?Le:t.invalid(Le.invalid)}static fromISO(e,r={}){let[n,i]=I6(e);return hp(n,i,r,"ISO 8601",e)}static fromRFC2822(e,r={}){let[n,i]=L6(e);return hp(n,i,r,"RFC 2822",e)}static fromHTTP(e,r={}){let[n,i]=k6(e);return hp(n,i,r,"HTTP",r)}static fromFormat(e,r,n={}){if(Ge(e)||Ge(r))throw new ar("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[c,a,d,h]=H6(s,e,r);return h?t.invalid(h):hp(c,a,n,`format ${r}`,e,d)}static fromString(e,r,n={}){return t.fromFormat(e,r,n)}static fromSQL(e,r={}){let[n,i]=R6(e);return hp(n,i,r,"SQL",e)}static invalid(e,r=null){if(!e)throw new ar("need to specify a reason the DateTime is invalid");let n=e instanceof Gr?e:new Gr(e,r);if(dt.throwOnInvalid)throw new w0(n);return new t({invalid:n})}static isDateTime(e){return e&&e.isLuxonDateTime||!1}static parseFormatForOpts(e,r={}){let n=X2(e,pt.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(e,r={}){return Y2(jr.parseFormat(e),pt.fromObject(r)).map(i=>i.val).join("")}static resetCache(){eh=void 0,tS.clear()}get(e){return this[e]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?Q2(this).weekYear:NaN}get weekNumber(){return this.isValid?Q2(this).weekNumber:NaN}get weekday(){return this.isValid?Q2(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?K2(this).weekday:NaN}get localWeekNumber(){return this.isValid?K2(this).weekNumber:NaN}get localWeekYear(){return this.isValid?K2(this).weekYear:NaN}get ordinal(){return this.isValid?I0(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ss.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ss.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ss.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ss.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1,day:1}).offset||this.offset>this.set({month:5}).offset}getPossibleOffsets(){if(!this.isValid||this.isOffsetFixed)return[this];let e=864e5,r=6e4,n=tp(this.c),i=this.zone.offset(n-e),o=this.zone.offset(n+e),s=this.zone.offset(n-i*r),c=this.zone.offset(n-o*r);if(s===c)return[this];let a=n-s*r,d=n-c*r,h=k0(a,s),g=k0(d,c);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Cl(this,{ts:a}),Cl(this,{ts:d})]:[this]}get isInLeapYear(){return xl(this.year)}get daysInMonth(){return op(this.year,this.month)}get daysInYear(){return this.isValid?La(this.year):NaN}get weeksInWeekYear(){return this.isValid?Sl(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Sl(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(e={}){let{locale:r,numberingSystem:n,calendar:i}=jr.create(this.loc.clone(e),e).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(e=0,r={}){return this.setZone(xt.instance(e),r)}toLocal(){return this.setZone(dt.defaultZone)}setZone(e,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(e=Qi(e,dt.defaultZone),e.equals(this.zone))return this;if(e.isValid){let i=this.ts;if(r||n){let o=e.offset(this.ts),s=this.toObject();[i]=N0(s,o,e)}return Cl(this,{ts:i,zone:e})}else return t.invalid(Km(e))}reconfigure({locale:e,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:e,numberingSystem:r,outputCalendar:n});return Cl(this,{loc:i})}setLocale(e){return this.reconfigure({locale:e})}set(e){if(!this.isValid)return this;let r=sp(e,Q6),{minDaysInFirstWeek:n,startOfWeek:i}=k2(r,this.loc),o=!Ge(r.weekYear)||!Ge(r.weekNumber)||!Ge(r.weekday),s=!Ge(r.ordinal),c=!Ge(r.year),a=!Ge(r.month)||!Ge(r.day),d=c||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Zi("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Zi("Can't mix ordinal dates with month/day");let g;o?g=I2({...Bm(this.c,n,i),...r},n,i):Ge(r.ordinal)?(g={...this.toObject(),...r},Ge(r.day)&&(g.day=Math.min(op(g.year,g.month),g.day))):g=L2({...I0(this.c),...r});let[v,E]=N0(g,this.o,this.zone);return Cl(this,{ts:v,o:E})}plus(e){if(!this.isValid)return this;let r=nr.fromDurationLike(e);return Cl(this,X6(this,r))}minus(e){if(!this.isValid)return this;let r=nr.fromDurationLike(e).negate();return Cl(this,X6(this,r))}startOf(e,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=nr.normalizeUnit(e);switch(i){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break;case"milliseconds":break}if(i==="weeks")if(r){let o=this.loc.getStartOfWeek(),{weekday:s}=this;s<o&&(n.weekNumber=this.weekNumber-1),n.weekday=o}else n.weekday=1;if(i==="quarters"){let o=Math.ceil(this.month/3);n.month=(o-1)*3+1}return this.set(n)}endOf(e,r){return this.isValid?this.plus({[e]:1}).startOf(e,r).minus(1):this}toFormat(e,r={}){return this.isValid?jr.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,e):J2}toLocaleString(e=Ca,r={}){return this.isValid?jr.create(this.loc.clone(r),e).formatDateTime(this):J2}toLocaleParts(e={}){return this.isValid?jr.create(this.loc.clone(e),e).formatDateTimeParts(this):[]}toISO({format:e="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=e==="extended",c=eS(this,s);return c+="T",c+=J6(this,s,r,n,i,o),c}toISODate({format:e="extended"}={}){return this.isValid?eS(this,e==="extended"):null}toISOWeekDate(){return O0(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:e=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+J6(this,s==="extended",r,e,n,o):null}toRFC2822(){return O0(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return O0(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?eS(this,!0):null}toSQLTime({includeOffset:e=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||e)&&(n&&(i+=" "),r?i+="z":e&&(i+="ZZ")),O0(this,i,!0)}toSQL(e={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(e)}`:null}toString(){return this.isValid?this.toISO():J2}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`DateTime { ts: ${this.toISO()}, zone: ${this.zone.name}, locale: ${this.locale} }`:`DateTime { Invalid, reason: ${this.invalidReason} }`}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(e={}){if(!this.isValid)return{};let r={...this.c};return e.includeConfig&&(r.outputCalendar=this.outputCalendar,r.numberingSystem=this.loc.numberingSystem,r.locale=this.loc.locale),r}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(e,r="milliseconds",n={}){if(!this.isValid||!e.isValid)return nr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=g6(r).map(nr.normalizeUnit),s=e.valueOf()>this.valueOf(),c=s?this:e,a=s?e:this,d=z6(c,a,o,i);return s?d.negate():d}diffNow(e="milliseconds",r={}){return this.diff(t.now(),e,r)}until(e){return this.isValid?_s.fromDateTimes(this,e):this}hasSame(e,r,n){if(!this.isValid)return!1;let i=e.valueOf(),o=this.setZone(e.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(e){return this.isValid&&e.isValid&&this.valueOf()===e.valueOf()&&this.zone.equals(e.zone)&&this.loc.equals(e.loc)}toRelative(e={}){if(!this.isValid)return null;let r=e.base||t.fromObject({},{zone:this.zone}),n=e.padding?this<r?-e.padding:e.padding:0,i=["years","months","days","hours","minutes","seconds"],o=e.unit;return Array.isArray(e.unit)&&(i=e.unit,o=void 0),e8(r,this.plus(n),{...e,numeric:"always",units:i,unit:o})}toRelativeCalendar(e={}){return this.isValid?e8(e.base||t.fromObject({},{zone:this.zone}),this,{...e,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...e){if(!e.every(t.isDateTime))throw new ar("min requires all arguments be DateTimes");return D2(e,r=>r.valueOf(),Math.min)}static max(...e){if(!e.every(t.isDateTime))throw new ar("max requires all arguments be DateTimes");return D2(e,r=>r.valueOf(),Math.max)}static fromFormatExplain(e,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return Z2(s,e,r)}static fromStringExplain(e,r,n={}){return t.fromFormatExplain(e,r,n)}static buildFormatParser(e,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=pt.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new Qm(o,e)}static fromFormatParser(e,r,n={}){if(Ge(e)||Ge(r))throw new ar("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=pt.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new ar(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:c,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(e);return h?t.invalid(h):hp(c,a,n,`format ${r.format}`,e,d)}static get DATE_SHORT(){return Ca}static get DATE_MED(){return bm}static get DATE_MED_WITH_WEEKDAY(){return s2}static get DATE_FULL(){return vm}static get DATE_HUGE(){return _m}static get TIME_SIMPLE(){return Sm}static get TIME_WITH_SECONDS(){return xm}static get TIME_WITH_SHORT_OFFSET(){return Em}static get TIME_WITH_LONG_OFFSET(){return Cm}static get TIME_24_SIMPLE(){return Tm}static get TIME_24_WITH_SECONDS(){return Pm}static get TIME_24_WITH_SHORT_OFFSET(){return Mm}static get TIME_24_WITH_LONG_OFFSET(){return Am}static get DATETIME_SHORT(){return Im}static get DATETIME_SHORT_WITH_SECONDS(){return Lm}static get DATETIME_MED(){return km}static get DATETIME_MED_WITH_SECONDS(){return Om}static get DATETIME_MED_WITH_WEEKDAY(){return a2}static get DATETIME_FULL(){return Nm}static get DATETIME_FULL_WITH_SECONDS(){return Rm}static get DATETIME_HUGE(){return Dm}static get DATETIME_HUGE_WITH_SECONDS(){return $m}}});var In=N(()=>{Ia();Jm();j2();q2();vl();np();Ma();T2();_0();Aa()});function Tl(t){return t instanceof _r?t===qr.instance:t?.toString().toLowerCase()==="unknown"}function R0(t){return Tl(t)?qr.instance:t}var qr,th=N(()=>{In();qr=class{static{this.instance=new cr("Etc/UTC")}}});function gp(t,e,r){return t<e?t-e:t>r?t-r:0}function wp(t,e,r){return t<e?e:t>r?r:t}function to(t,e=!0){if(t instanceof _r)return t;if(t.toLowerCase()==="system")return"system";if(t.toLowerCase()==="utc")return"UTC";if(t.toLowerCase()==="unknown")return qr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(t)){let n=xt.parseSpecifier("UTC"+(t.startsWith("+")||t.startsWith("-")?"":"+")+t);if(n)return n}let r=cr.create(t);if(!r.isValid){if(e)throw new rS(D0.TimeZoneNotRecognized);return null}return r}var D0,OW,rS,rh,o8=N(()=>{xa();th();In();(function(t){t.TimeZoneNotRecognized="TimeZoneNotRecognized"})(D0||(D0={}));OW={[D0.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},rS=class t extends Error{constructor(e,r){super(Fo(OW[e],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}};rh=class t{constructor(e){this._date=e,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(e=0,r=1,n=1,i=0,o=0,s=0,c=0,a){if(isNaN(e)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(c))return null;let d=Te.local(e,r).daysInMonth,h=Te.fromObject({day:wp(n,1,d),year:e,month:wp(r,1,12),hour:wp(i,0,23),minute:wp(o,0,59),second:wp(s,0,59),millisecond:wp(c,0,999)},{zone:to(a)});return h=h.plus({months:gp(r,1,12),days:gp(n,1,d),hours:gp(i,0,23),minutes:gp(o,0,59),seconds:gp(s,0,59),milliseconds:gp(c,0,999)}),new t(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(e,r){let n=to(r);return e.isUnknownTimeZone||n===qr.instance?t.fromParts(e.year,e.monthJS+1,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e._date.setZone(n))}static dateJSToArcadeDate(e){return new t(Te.fromJSDate(e,{zone:"system"}))}static dateJSAndZoneToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromJSDate(e,{zone:n}))}static unknownEpochToArcadeDate(e){return new t(Te.fromMillis(e,{zone:qr.instance}))}static unknownDateJSToArcadeDate(e){return new t(Te.fromMillis(e.getTime(),{zone:qr.instance}))}static epochToArcadeDate(e,r="system"){let n=to(r);return new t(Te.fromMillis(e,{zone:n}))}static dateTimeToArcadeDate(e){return new t(e)}clone(){return new t(this._date)}changeTimeZone(e){let r=to(e);return t.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(e,r){let n=to(r);return e.zone===qr.instance||n===qr.instance?t.fromParts(e.year,e.month,e.day,e.hour,e.minute,e.second,e.millisecond,n):new t(e.setZone(n))}static nowToArcadeDate(e){let r=to(e);return new t(Te.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new t(Te.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===t.systemTimeZoneCanonicalName}equals(e){return this.isSystem&&e.isSystem?this.toNumber()===e.toNumber():this.isUnknownTimeZone===e.isUnknownTimeZone&&this._date.equals(e._date)}get isUnknownTimeZone(){return this._date.zone===qr.instance}get isValid(){return this._date.isValid}get hour(){return this._date.hour}get second(){return this._date.second}get day(){return this._date.day}get dayOfWeekISO(){return this._date.weekday}get dayOfWeekJS(){let e=this._date.weekday;return e>6&&(e=0),e}get millisecond(){return this._date.millisecond}get monthISO(){return this._date.month}get weekISO(){return this._date.weekNumber}get yearISO(){return this._date.weekYear}get monthJS(){return this._date.month-1}get year(){return this._date.year}get minute(){return this._date.minute}get zone(){return this._date.zone}get timeZoneOffset(){return this.isUnknownTimeZone?0:this._date.offset}get timeZone(){if(this.isUnknownTimeZone)return"unknown";if(this._date.zone.type==="system")return"system";let e=this.zone;return e.type==="fixed"?e.fixed===0?"UTC":e.formatOffset(0,"short"):e.name}stringify(){return JSON.stringify(this.toJSDate())}plus(e){return new t(this._date.plus(e))}diff(e,r="milliseconds"){return this._date.diff(e._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(e){return e?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(e,r){return this._date.toISOTime({suppressMilliseconds:e,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(e,r){return this.isUnknownTimeZone&&(e=e.replaceAll("Z","")),this._date.toFormat(e,r)}toJSDate(){return this._date.toJSDate()}toSQLValue(){return this._date.toFormat("yyyy-LL-dd HH:mm:ss")}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}toDateTime(){return this._date}toNumber(){return this._date.toMillis()}getTime(){return this._date.toMillis()}toUTC(){return new t(this._date.toUTC())}toLocal(){return new t(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(e){if(!e)return null;let r=Te.fromISO(e,{setZone:!0});return new t(r)}}});function yt(t){return t?{remove(){t&&(t(),t=void 0)}}:NW}function RW(t){t.forEach(e=>e?.remove())}function Pl(t){return yt(()=>RW(t))}var NW,jn=N(()=>{NW={remove:()=>{}}});function a8(){let t=nS?.getAttribute("lang"),e=globalThis.navigator?.language;return $W??t??e??"en"}function si(){return nh===void 0&&(nh=a8()),nh}function c8(t=si()){return FW.exec(t)?.groups}function iS(t){return $0.push(t),yt(()=>{$0.splice($0.indexOf(t),1)})}function yp(t){return F0.push(t),yt(()=>F0.splice(F0.indexOf(t),1))}function s8(){let t=DW??a8();nh!==t&&([...F0].forEach(e=>e(t)),nh=t,[...$0].forEach(e=>e(t)))}var DW,nh,$W,nS,FW,$0,F0,Ra=N(()=>{jn();St();$W=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,nS=globalThis.document?.documentElement;FW=/^(?<language>[a-z]{2,3})(?:-[a-z]{3})?(?:-[A-Z][a-z]{3})?(?:-(?<region>[A-Z]{2}|\d{3}))?(?:-.*)?$/;$0=[];F0=[];globalThis.addEventListener?.("languagechange",s8),nS&&new MutationObserver(()=>{s8()}).observe(nS,{attributeFilter:["lang"]})});function l8(t){t=t.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let e="",r=/(\[[^[]*\])|(\\)?([Hh]mm(ss)?|Mo|M{1,4}|Do|DDDo|D{1,4}|d{2,4}|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g;for(let n of t.match(r)||[])switch(n){case"D":e+="d";break;case"DD":e+="dd";break;case"DDD":e+="o";break;case"d":e+="c";break;case"ddd":e+="ccc";break;case"dddd":e+="cccc";break;case"M":e+="L";break;case"MM":e+="LL";break;case"MMM":e+="LLL";break;case"MMMM":e+="LLLL";break;case"YY":e+="yy";break;case"Y":case"YYYY":e+="yyyy";break;case"Q":e+="q";break;case"X":case"x":e+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?e+=`'${n.slice(1,-1)}'`:e+=`'${n}'`}return e}var u8,Hr,ih=N(()=>{o8();Ra();In();u8="esri.core.sql.dateonly",Hr=class t{constructor(e,r,n){this._year=e,this._month=r,this._day=n,this.declaredRootClass=u8}static isDateOnly(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===u8}get month(){return this._month}get monthJS(){return this._month-1}get year(){return this._year}get day(){return this._day}get isValid(){return this.toDateTime("unknown").isValid}equals(e){return t.isDateOnly(e)&&e.day===this.day&&e.month===this.month&&e.year===this.year}clone(){return new t(this._year,this._month,this._day)}toDateTime(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toDateTimeLuxon(e){return Te.fromObject({day:this.day,month:this.month,year:this.year},{zone:to(e)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(e=null,r=!0){if(e===null||e==="")return this.toString();if(r&&(e=l8(e)),!e)return"";let n=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(n).toFormat(e,{locale:si(),numberingSystem:"latn"})}toArcadeDate(){let e=this.toDateTime("unknown");return rh.dateTimeToArcadeDate(e)}toNumber(){return this.toDateTime("unknown").toMillis()}toJSDate(){return this.toDateTime("unknown").toJSDate()}toStorageFormat(){return this.toFormat("yyyy-LL-dd",!1)}toSQLValue(){return this.toFormat("yyyy-LL-dd",!1)}toSQLWithKeyword(){return"date '"+this.toFormat("yyyy-LL-dd",!1)+"'"}plus(e,r){return t.fromDateTime(this.toUTCDateTime().plus({[e]:r}))}toUTCDateTime(){return Te.utc(this.year,this.month,this.day,0,0,0,0)}difference(e,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(e.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(e.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(e.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(e.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(e.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(e.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(e.toUTCDateTime(),"years").years}}static fromMilliseconds(e){let r=Te.fromMillis(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromSeconds(e){let r=Te.fromSeconds(e,{zone:xt.utcInstance});return r.isValid?t.fromParts(r.year,r.month,r.day):null}static fromReader(e){if(!e)return null;let r=e.split("-");return r.length!==3?null:new t(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(e,r,n){let i=new t(e,r,n);return i.isValid===!1?null:i}static fromDateJS(e){return t.fromParts(e.getFullYear(),e.getMonth()+1,e.getDay())}static fromDateTime(e){return t.fromParts(e.year,e.month,e.day)}static fromSqlTimeStampOffset(e){return this.fromDateTime(e.toDateTime())}static fromString(e,r=null){if(e===""||e===null)return null;let n=[];if(r)(r=l8(r))&&n.push(r);else if(r===null||r===""){let i=Te.fromISO(e,{setZone:!0});return i.isValid?t.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Te.fromFormat(e,r??i);if(o.isValid)return new t(o.year,o.month,o.day)}return null}static fromNow(e="system"){let r=Te.fromJSDate(new Date).setZone(to(e));return new t(r.year,r.month,r.day)}}});var J,UW,ne,Da=N(()=>{xa();(function(t){t.InvalidFunctionParameters="InvalidFunctionParameters",t.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",t.UnsupportedSqlFunction="UnsupportedSqlFunction",t.UnsupportedOperator="UnsupportedOperator",t.UnsupportedSyntax="UnsupportedSyntax",t.UnsupportedIsRhs="UnsupportedIsRhs",t.UnsupportedIsLhs="UnsupportedIsLhs",t.InvalidDataType="InvalidDataType",t.CannotCastValue="CannotCastValue",t.FunctionNotRecognized="FunctionNotRecognized",t.InvalidTime="InvalidTime",t.InvalidParameterCount="InvalidParameterCount",t.InvalidTimeStamp="InvalidTimeStamp",t.InvalidDate="InvalidDate",t.InvalidOperator="InvalidOperator",t.IllegalInterval="IllegalInterval",t.YearMonthIntervals="YearMonthIntervals",t.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",t.MissingStatisticParameters="MissingStatisticParameters"})(J||(J={}));UW={[J.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[J.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[J.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[J.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[J.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[J.UnsupportedOperator]:"Unsupported operator - {operator}",[J.UnsupportedSyntax]:"Unsupported syntax - {node}",[J.UnsupportedSqlFunction]:"Sql function not found = {function}",[J.InvalidDataType]:"Invalid sql data type",[J.InvalidDate]:"Invalid date encountered",[J.InvalidOperator]:"Invalid operator encountered",[J.InvalidTime]:"Invalid time encountered",[J.IllegalInterval]:"Illegal interval",[J.FunctionNotRecognized]:"Function not recognized",[J.InvalidTimeStamp]:"Invalid timestamp encountered",[J.InvalidParameterCount]:"Invalid parameter count for call to {name}",[J.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[J.YearMonthIntervals]:"Year-Month Intervals not supported",[J.CannotCastValue]:"Cannot cast value to the required data type"},ne=class t extends Error{constructor(e,r){super(Fo(UW[e],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,t)}}});function d8(t){return Number.isNaN(t)||t===0?t:Math.trunc(t)}var p8,sn,oh=N(()=>{In();p8="esri.core.sql.SqlTimeStampOffset",sn=class t{constructor(e){this._timeStampOffset=e,this.declaredRootClass=p8,this._date=null}static isTimestampOffset(e){return typeof e=="object"&&e!=null&&"declaredRootClass"in e&&e.declaredRootClass===p8}toDateTime(){return this._date??=Te.fromISO(this._timeStampOffset,{setZone:!0}),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return d8(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return d8(this.toDateTime().offset%60)}toMilliseconds(){return this.toDateTime().toMillis()}get hour(){return this.toDateTime().hour}get minute(){return this.toDateTime().minute}get second(){return this.toDateTime().second}get day(){return this.toDateTime().day}get month(){return this.toDateTime().month}get year(){return this.toDateTime().year}startOfDay(){return t.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(e){return new t(Te.fromJSDate(e).toISO({includeOffset:!0}))}static fromDateTime(e){return new t(e.toISO({includeOffset:!0}))}static fromParts(e,r,n=0,i=0,o=0,s=0,c=0,a=!1,d=0,h=0){let g=`${e.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,v="";s<10&&(v="0");let E=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${v+s.toString()}`;c!==0&&(E+="."+c.toString().padStart(3,"0"));let M=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new t(g+"T"+E+M)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let e=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return e&&(e=e.replace(".000","")),e}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(e){let r=this.toDateTime().plus(e);return t.fromDateTime(r)}}});function ae(t,e,r,n){var i,o=arguments.length,s=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,n);else for(var c=t.length-1;c>=0;c--)(i=t[c])&&(s=(o<3?i(s):o>3?i(e,r,s):i(e,r))||s);return o>3&&s&&Object.defineProperty(e,r,s),s}var ai=N(()=>{});var U0,V0=N(()=>{U0="20250409"});var bt,$a=N(()=>{St();$o();V0();bt={apiKey:void 0,applicationName:"",applicationUrl:globalThis.location?.href,assetsPath:"",fontsUrl:"https://static.arcgis.com/fonts",geometryServiceUrl:"https://utility.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer",geoRSSServiceUrl:"https://utility.arcgis.com/sharing/rss",kmlServiceUrl:"https://utility.arcgis.com/sharing/kml",userPrivilegesApplied:!0,portalUrl:"https://www.arcgis.com",respectPrefersReducedMotion:!0,routeServiceUrl:"https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World",workers:{loaderConfig:{has:{},paths:{},map:{},packages:[]}},request:{crossOriginNoCorsDomains:null,httpsDomains:["arcgis.com","arcgisonline.com","esrikr.com","premiumservices.blackbridge.com","esripremium.accuweather.com","gbm.digitalglobe.com","firstlook.digitalglobe.com","msi.digitalglobe.com"],interceptors:[],internalInterceptors:[],maxUrlLength:2e3,priority:"high",proxyRules:[],proxyUrl:null,timeout:62e3,trustedServers:[],useIdentity:!0},log:{interceptors:[],level:null}};if(globalThis.esriConfig&&(VT(bt,globalThis.esriConfig,!0),delete bt.has),!bt.assetsPath){{let t="4.33.0";bt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${t}-next.${U0}/assets`}bt.defaultAssetsPath=bt.assetsPath}});function VW(t,e,...r){console[t](`[${e}]`,...r)}function zW(...t){return jT(JSON.stringify(t,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var f8,nt,Vt=N(()=>{$a();St();xa();f8={info:0,warn:1,error:2,none:3},nt=class t{constructor(e){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},e.level!=null&&(this.level=e.level),e.writer!=null&&(this.writer=e.writer),this._module=e.module,t._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=t.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...e){this._log("error","always",...e)}warn(...e){this._log("warn","always",...e)}info(...e){this._log("info","always",...e)}errorOnce(...e){this._log("error","once",...e)}warnOnce(...e){this._log("warn","once",...e)}infoOnce(...e){this._log("info","once",...e)}errorOncePerTick(...e){this._log("error","oncePerTick",...e)}warnOncePerTick(...e){this._log("warn","oncePerTick",...e)}infoOncePerTick(...e){this._log("info","oncePerTick",...e)}get test(){}static get test(){}static getLogger(e){return e=typeof e!="string"?e.declaredClass:e,t._loggers.get(e)||new t({module:e})}static{this._loggers=new Map}static{this._tickCounter=0}static{this._tickCounterScheduled=!1}static{this._throttlingDisabled=!1}_log(e,r,...n){if(this._matchLevel(e)){if(r!=="always"&&!t._throttlingDisabled){let i=zW(n),o=this._loggedMessages[e].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=t._tickCounter)return;this._loggedMessages[e].set(i,t._tickCounter),t._scheduleTickCounterIncrement()}for(let i of bt.log.interceptors)if(i(e,this.module,...n))return;this._inheritedWriter()(e,this.module,...n)}}_parentWithMember(e,r){let n=this;for(;n!=null;){let i=n[e];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",VW)}_matchLevel(e){let r=bt.log.level||"warn";return f8[this._parentWithMember("level",r)]<=f8[e]}static _scheduleTickCounterIncrement(){t._tickCounterScheduled||(t._tickCounterScheduled=!0,Promise.resolve().then(()=>{t._tickCounter++,t._tickCounterScheduled=!1}))}}});function bp(t,e,r){let n=t.get(e);if(n!==void 0)return n;let i=r();return t.set(e,i),i}var z0=N(()=>{});function WW(t){return t==null?t:new Date(t)}function BW(t){return t==null?t:!!t}function GW(t){return t==null?t:t.toString()}function cS(t,e=0){return t==null?t:(t=parseFloat(t),isNaN(t)?e:t)}function jW(t){return t==null?t:Math.round(parseFloat(t))}function qW(t){return null}function h8(t,e){return r=>{let n=t(r);return e.step!=null&&(n=Math.round(n/e.step)*e.step),e.min!=null&&(n=Math.max(e.min,n)),e.max!=null&&(n=Math.min(e.max,n)),n}}function g8(t){return t?.constructor&&t.constructor.__accessorMetadata__!==void 0}function W0(t,e){return e!=null&&t&&!(e instanceof t)}function w8(t){return t&&"isCollection"in t}function m8(t){return t?.Type?typeof t.Type=="function"?t.Type:t.Type.base:null}function HW(t,e){if(!e?.constructor||!w8(e.constructor))return oS(t,e)?e:new t(e);let r=m8(t.prototype.itemType),n=m8(e.constructor.prototype.itemType);return r?n?r===n?e:r.prototype.isPrototypeOf(n.prototype)?new t(e):(oS(t,e),e):new t(e):e}function oS(t,e){return!!g8(e)&&(vp().error("Accessor#set","Assigning an instance of '"+(e.declaredClass||"unknown")+"' which is not a subclass of '"+B0(t)+"'"),!0)}function YW(t,e){return e==null?e:w8(t)?HW(t,e):W0(t,e)?oS(t,e)?e:new t(e):e}function B0(t){return t?.prototype?.declaredClass||"unknown"}function XW(t){switch(t){case Number:return e=>cS(e);case Vo:return jW;case Boolean:return BW;case String:return GW;case Date:return WW;case ah:return qW;default:return bp(ZW,t,()=>YW.bind(null,t))}}function Uo(t,e){let r=XW(t);return arguments.length===1?r:r(e)}function _p(t,e,r){return arguments.length===1?_p.bind(null,t):e&&(Array.isArray(e)?e.map(n=>t(n,r)):[t(e,r)])}function y8(t,e){return arguments.length===1?_p(r=>Uo(t,r)):_p(r=>Uo(t,r),e)}function b8(t,e,r){return e!==0&&Array.isArray(r)?r.map(n=>b8(t,e-1,n)):t(r)}function sh(t,e,r){if(arguments.length===2)return o=>sh(t,e,o);if(!r)return r;r=b8(t,e,r);let n=e,i=r;for(;n>0&&Array.isArray(i);)n--,i=i[0];if(i!==void 0)for(let o=0;o<n;o++)r=[r];return r}function v8(t,e,r){return arguments.length===2?sh(n=>Uo(t,n),e):sh(n=>Uo(t,n),e,r)}function G0(t){return!!Array.isArray(t)&&!t.some(e=>{let r=typeof e;return!(r==="string"||r==="number"||r==="function"&&t.length>1)})}function j0(t,e){if(arguments.length===2)return j0(t).call(null,e);let r=new Set,n=t.filter(c=>typeof c!="function"),i=t.filter(c=>typeof c=="function");for(let c of t)typeof c!="string"&&typeof c!="number"||r.add(c);let o=null,s=null;return(c,a)=>{if(c==null)return c;let d=typeof c,h=d==="string"||d==="number";return h&&(r.has(c)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!W0(c,g))?c:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),vp().error("Accessor#set",`'${c}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof c=="object"&&i.length?(s||(s=i.map(g=>B0(g)).join(", ")),vp().error("Accessor#set",`'${c}' is not a valid value for this property, value must be one of ${s}`)):vp().error("Accessor#set",`'${c}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function q0(t,e){if(arguments.length===2)return q0(t).call(null,e);let r={},n=[],i=[];for(let a in t.typeMap){let d=t.typeMap[a];r[a]=Uo(d),n.push(B0(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,c=typeof t.key=="string"?a=>a[t.key]:t.key;return a=>{if(t.base&&!W0(t.base,a)||a==null)return a;let d=c(a)||t.defaultKeyValue,h=r[d];if(!h)return vp().error("Accessor#set",`Invalid property value, value needs to be one of ${o()}, or a plain object that can autocast (having .type = ${s()})`),null;if(!W0(t.typeMap[d],a))return a;if(typeof t.key=="string"&&!g8(a)){let g={};for(let v in a)v!==t.key&&(g[v]=a[v]);return h(g)}return h(a)}}function _8(t){if(!t||!("type"in t))return!1;switch(t.type){case"native":case"array":case"one-of":return!0}return!1}function lS(t){switch(t.type){case"native":return Uo(t.value);case"array":return _p(lS(t.value));case"one-of":return JW(t);default:return null}}function JW(t){let e=null;return(r,n)=>aS(r,t)?r:(e==null&&(e=sS(t)),vp().error("Accessor#set",`Invalid property value, value needs to be of type ${e}`),n&&(n.valid=!1),null)}function sS(t){switch(t.type){case"native":switch(t.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case Vo:return"integer";case Date:return"date";case ah:return"null";default:return B0(t.value)}case"array":return`array of ${sS(t.value)}`;case"one-of":{let e=t.values.map(r=>sS(r));return`one of ${e.slice(0,-1)} or ${e[e.length-1]}`}}return"unknown"}function aS(t,e){if(t==null)return!0;switch(e.type){case"native":switch(e.value){case Number:case Vo:return typeof t=="number";case Boolean:return typeof t=="boolean";case String:return typeof t=="string";case ah:return t===null}return t instanceof e.value;case"array":return!!Array.isArray(t)&&!t.some(r=>!aS(r,e.value));case"one-of":return e.values.some(r=>aS(t,r))}}var vp,ZW,Vo,ah,Sp=N(()=>{St();Vt();z0();vp=()=>nt.getLogger("esri.core.accessorSupport.ensureTypes");ZW=new WeakMap;Vo=class{},ah=class{}});function zo(t){return t.__accessor__??null}function x8(t,e){return t?.metadata?.[e]!=null}function xp(t,e,r){return r?H0(t,e,{policy:r,path:""}):H0(t,e,null)}function H0(t,e,r){return e?Object.keys(e).reduce((n,i)=>{let o=i,s=null,c="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,c=r.policy(s)),c==="replace"||c==="replace-arrays"&&Array.isArray(n[o]))return n[o]=e[o],n;if(n[o]===void 0)return n[o]=Ht(e[o]),n;let a=n[o],d=e[o];if(a===d)return n;if(Array.isArray(d)||Array.isArray(n))a=a?Array.isArray(a)?n[o]=a.slice():n[o]=[a]:n[o]=[],d&&(Array.isArray(d)||(d=[d]),d.forEach(h=>{a.includes(h)||a.push(h)}));else if(d&&typeof d=="object")if(r){let h=r.path;r.path=s,n[o]=H0(a,d,r),r.path=h}else n[o]=H0(a,d,null);else n.hasOwnProperty(i)&&!e.hasOwnProperty(i)||(n[o]=d);return n},t||{}):t}function Y0(t){return Array.isArray(t)?t:t.split(".")}function S8(t){return t.includes(",")?t.split(",").map(e=>e.trim()):[t.trim()]}function QW(t){if(Array.isArray(t)){let e=[];for(let r of t)e.push(...S8(r));return e}return S8(t)}function uS(t,e,r,n){let i=QW(e);if(i.length!==1){let o=i.map(s=>n(t,s,r));return Pl(o)}return n(t,i[0],r)}var Fa=N(()=>{jn();Mn()});function E8(t,e){let r=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(e)?e[i]:e.at(i)}let n=zo(e);return x8(n,r)?n.get(r):e[r]}function C8(t,e,r){if(t==null)return t;let n=E8(e[r],t);return!n&&r<e.length-1?void 0:r===e.length-1?n:C8(n,e,r+1)}function Ml(t,e,r=0){return typeof e!="string"||e.includes(".")?C8(t,Y0(e),r):E8(e,t)}function Wo(t,e){return Ml(t,e)}function dS(t,e){return Ml(e,t)!==void 0}var Al=N(()=>{Fa()});function Ua(t){let e=t.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(t.constructor,"__accessorMetadata__");if(e){if(!r){e=Object.create(e);for(let n in e)e[n]=Ht(e[n]);Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0})}}else e={},Object.defineProperty(t.constructor,"__accessorMetadata__",{value:e,enumerable:!1,configurable:!0,writable:!0});return t.constructor.__accessorMetadata__}function Ep(t,e){let r=Ua(t),n=r[e];return n||(n=r[e]={}),n}function T8(t,e){return xp(t,e,eB)}function eB(t){return KW.test(t)?"replace":"merge"}var KW,Cp=N(()=>{Mn();Fa();KW=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function tB(t,e){return t.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(Ci(n,e)??"").toString())}var Tp,pS=N(()=>{$o();Tp=class{constructor(e,r,n=void 0){this.name=e,this.details=n,this.message=(r&&tB(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var We,Ln=N(()=>{Mn();Vt();pS();We=class t extends Tp{constructor(e,r,n){super(e,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(e,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Ht(r)}catch{return"[object]"}}))}}catch(e){throw nt.getLogger("esri.core.Error").error(e),e}return{name:this.name,message:this.message,details:this.details}}static fromJSON(e){return new t(e.name,e.message,e.details)}};We.prototype.type="error"});function Pp(t,e,r){if(t&&e)if(typeof e=="object")for(let n of Object.getOwnPropertyNames(e))Pp(t,n,e[n]);else{if(e.includes(".")){let i=e.split("."),o=i.splice(-1,1)[0];return void Pp(Wo(t,i),o,r)}let n=t.__accessor__;n!=null&&rB(e,n),t[e]=r}}function rB(t,e){if(pe("esri-unknown-property-errors")&&!nB(t,e))throw new We("set:unknown-property",iB(t,e))}function nB(t,e){return e.metadata[t]!=null}function iB(t,e){return"setting unknown property '"+t+"' on instance of "+e.host.declaredClass}var fS=N(()=>{Ln();St();Vt();Al()});function fe(t={}){return(e,r)=>{if(e===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${e.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(e,r),i=Ep(e,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in t&&nt.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${e.constructor.name}" already defined in the metadata`,t),i.value=t.value=n.value)),t.readOnly!=null&&(i.readOnly=t.readOnly);let o=t.aliasOf;if(o){let a=typeof o=="string"?o:o.source,d=typeof o=="string"?null:o.overridable===!0,h;i.dependsOn=[a],i.get=function(){let g=Wo(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let v=Wo(this,h);v&&(g=g.bind(v))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Pp(this,a,g)})}let s=t.type,c=t.types;if(!i.cast){let a;s?a=oB(s):c&&(a=Array.isArray(c)?_p(q0(c[0])):q0(c)),t.cast=sB(t.cast,a)}T8(i,t),t.range&&(i.cast=h8(i.cast,t.range))}}function Z0(t,e,r){let n=Ep(t,r);n.json||(n.json={});let i=n.json;return e!==void 0&&(i.origins||(i.origins={}),i.origins[e]||(i.origins[e]={}),i=i.origins[e]),i}function oB(t){let e=0,r=t;if(_8(t))return lS(t);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],e++;let n=r;if(G0(n))return e===0?j0(n):sh(j0(n),e);if(e===1)return y8(n);if(e>1)return v8(n,e);let i=t;return i.from?i.from:Uo(i)}function sB(t,e){if(t||e)return t?e?(r,n)=>e(t(r,n),n):t:e}var ci=N(()=>{Vt();Sp();Al();Cp();fS()});var X0,mS=N(()=>{X0=Symbol("Accessor-beforeDestroy")});var Sr,ch=N(()=>{(function(t){t[t.INITIALIZING=0]="INITIALIZING",t[t.CONSTRUCTING=1]="CONSTRUCTING",t[t.CONSTRUCTED=2]="CONSTRUCTED",t[t.DESTROYING=3]="DESTROYING",t[t.DESTROYED=4]="DESTROYED"})(Sr||(Sr={}))});var at,J0=N(()=>{(function(t){t[t.Dirty=1]="Dirty",t[t.Overridden=2]="Overridden",t[t.Computing=4]="Computing",t[t.NonNullable=8]="NonNullable",t[t.HasDefaultValue=16]="HasDefaultValue",t[t.DepTrackingInitialized=32]="DepTrackingInitialized",t[t.AutoTracked=64]="AutoTracked",t[t.ExplicitlyTracking=128]="ExplicitlyTracking"})(at||(at={}))});var Bo,lh=N(()=>{Bo=class{constructor(e){this.accessed=void 0,this._handles=void 0,this._observer=e}destroy(){this.accessed?.clear(),this.clear()}onAccessed(e){this._observer!=null&&e!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(e))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(e=>{this._handles.push(e.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let e=0;e<this._handles.length;++e)this._handles[e].remove();this._handles.length=0}}}});function lr(t){dh.onAccessed(t)}function ro(t,e,r){if(Q0)return hS(t,e,r);let n=null;return A8(t),n=e.call(r),I8(),n}function M8(t,e){return ro(ew,t,e)}function hS(t,e,r){let n=Q0;Q0=!0,A8(t);let i=null;try{i=e.call(r)}catch(o){K0&&nt.getLogger("esri.core.accessorSupport.tracking").error(o)}return I8(),Q0=n,i}function A8(t){dh=t,uh.push(t)}function I8(){let t=uh.length;if(t>1){let e=uh.pop();dh=uh[t-2],e.onTrackingEnd()}else if(t===1){let e=uh.pop();dh=ew,e.onTrackingEnd()}else dh=ew}function gS(t,e){if(e.flags&at.DepTrackingInitialized)return;e.flags|=at.DepTrackingInitialized;let r=K0;K0=!1,e.flags&at.AutoTracked?hS(e.trackingTarget,e.metadata.get,t):wS(t,e),K0=r}function wS(t,e){e.flags&at.ExplicitlyTracking||(e.flags|=at.ExplicitlyTracking,hS(e.trackingTarget,()=>{let r=e.metadata.dependsOn||aB;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Y0(n);for(let o=0,s=t;o<i.length&&s!=null&&typeof s=="object";++o)s=P8(s,i[o],o!==i.length-1)}else P8(t,n,!1)}),e.flags&=~at.ExplicitlyTracking)}function P8(t,e,r){let n=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(t)?t[o]:t.at(o)}let i=zo(t);if(i){let o=i.propertiesByName.get(n);o&&(lr(o),gS(t,o))}return r?t[n]:void 0}var ew,uh,dh,Q0,K0,aB,xs=N(()=>{St();Vt();Fa();J0();lh();ew=new Bo,uh=[],dh=ew;Q0=!1,K0=!1;aB=[]});function L8(t){if(t.json&&t.json.origins){let e=t.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(e[n]){let i=e[n];r[n].forEach(o=>{e[o]=i}),delete e[n]}}}var k8=N(()=>{});var ph,O8=N(()=>{pS();ph=class extends Tp{constructor(e,r,n){super(e,r,n)}};ph.prototype.type="warning"});function tw(t){return!!t&&t.prototype?.declaredClass&&t.prototype.declaredClass.indexOf("esri.core.Collection")===0}var yS=N(()=>{});function vS(t,e,r){t&&(!r&&!e.read||e.read?.reader||e.read?.enabled===!1||dB(t)&&ys("read.reader",cB(t),e))}function cB(t){let e=t.ndimArray??0;if(e>1)return uB(t);if(e===1)return N8(t);if("type"in t&&D8(t.type)){let r=t.type.prototype?.itemType?.Type,n=N8(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let c=n(i,o,s);return c&&new t.type(c)}}return _S(t)}function _S(t){return"type"in t?lB(t.type):pB(t.types)}function lB(t){return t.prototype.read?(e,r,n)=>{if(e==null)return e;let i=typeof e;if(i!=="object")return void bS().error(`Expected JSON value of type 'object' to deserialize type '${t.prototype.declaredClass}', but got '${i}'`);let o=new t;return o.read(e,n),o}:t.fromJSON}function R8(t,e,r,n){return n!==0&&Array.isArray(e)?e.map(i=>R8(t,i,r,n-1)):t(e,void 0,r)}function uB(t){let e=_S(t),r=R8.bind(null,e),n=t.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let c=n,a=i;for(;c>0&&Array.isArray(a);)c--,a=a[0];if(a!==void 0)for(let d=0;d<c;d++)i=[i];return i}}function N8(t){let e=_S(t);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let c of r){let a=e(c,void 0,i);a!==void 0&&s.push(a)}return s}let o=e(r,void 0,i);return o!==void 0?[o]:void 0}}function D8(t){if(!tw(t))return!1;let e=t.prototype.itemType;return!(!e||!e.Type)&&(typeof e.Type=="function"?SS(e.Type):$8(e.Type))}function dB(t){return"types"in t?$8(t.types):SS(t.type)}function SS(t){return!Array.isArray(t)&&!!t&&t.prototype&&("read"in t.prototype||"fromJSON"in t||D8(t))}function $8(t){for(let e in t.typeMap)if(!SS(t.typeMap[e]))return!1;return!0}function pB(t){let e=null,r=t.errorContext??"type",n=t.validate;return(i,o,s)=>{if(i==null)return i;let c=typeof i;if(c!=="object")return void bS().error(`Expected JSON value of type 'object' to deserialize, but got '${c}'`);e||(e=fB(t));let a=t.key;if(typeof a!="string")return;let d=i[a],h=d?e[d]:t.defaultKeyValue?t.typeMap[t.defaultKeyValue]:void 0;if(!h){let v=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new ph(`${r}:unsupported`,v,{definition:i,context:s})),void bS().error(v)}let g=new h;return g.read(i,s),n?n(g):g}}function fB(t){let e={};for(let r in t.typeMap){let n=t.typeMap[r],i=Ua(n.prototype);if(typeof t.key=="function")continue;let o=i[t.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){e[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){e[r]=n;continue}let c=s.target,a=typeof c=="string"?c:t.key,d={};s.writer(r,d,a),d[a]&&(e[d[a]]=n)}return e}var bS,F8=N(()=>{Vt();$o();O8();Cp();yS();bS=()=>nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function W8(t){if(t.json||(t.json={}),V8(t.json),z8(t.json),U8(t.json),t.json.origins)for(let e in t.json.origins)V8(t.json.origins[e]),z8(t.json.origins[e]),U8(t.json.origins[e]);return!0}function U8(t){t.name&&(t.read&&typeof t.read=="object"?t.read.source===void 0&&(t.read.source=t.name):t.read={source:t.name},t.write&&typeof t.write=="object"?t.write.target===void 0&&(t.write.target=t.name):t.write={target:t.name})}function V8(t){typeof t.read=="boolean"?t.read={enabled:t.read}:typeof t.read=="function"?t.read={enabled:!0,reader:t.read}:t.read&&typeof t.read=="object"&&t.read.enabled===void 0&&(t.read.enabled=!0)}function z8(t){typeof t.write=="boolean"?t.write={enabled:t.write}:typeof t.write=="function"?t.write={enabled:!0,writer:t.write}:t.write&&typeof t.write=="object"&&t.write.enabled===void 0&&(t.write.enabled=!0)}var B8=N(()=>{});function xS(t,e){if(!e.write||e.write.writer||e.write.enabled===!1&&!e.write.overridePolicy)return;let r=t?.ndimArray??0;t&&(r===1||"type"in t&&tw(t.type))?e.write.writer=wB:r>1?e.write.writer=yB(r):e.types?Array.isArray(e.types)?e.write.writer=hB(e.types[0]):e.write.writer=mB(e.types):e.write.writer=fh}function mB(t){return(e,r,n,i)=>e?G8(e,t,i)?fh(e,r,n,i):void 0:fh(e,r,n,i)}function G8(t,e,r){for(let n in e.typeMap)if(t instanceof e.typeMap[n])return!0;if(r?.messages){let n=e.errorContext??"type",i=`Values of type '${(typeof e.key!="function"?t[e.key]:t.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&t&&r.messages.push(new We(`${n}:unsupported`,i,{definition:t,context:r})),nt.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function hB(t){return(e,r,n,i)=>!e||!Array.isArray(e)?fh(e,r,n,i):fh(e.filter(o=>G8(o,t,i)),r,n,i)}function fh(t,e,r,n){ys(r,rw(t,n),e)}function rw(t,e){return t&&typeof t.write=="function"?t.write({},e):t&&typeof t.toJSON=="function"?t.toJSON():typeof t=="number"?gB(t):t}function gB(t){return t===-1/0?-Number.MAX_VALUE:t===1/0?Number.MAX_VALUE:isNaN(t)?null:t}function wB(t,e,r,n){let i;t===null?i=null:t&&typeof t.map=="function"?(i=t.map(o=>rw(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[rw(t,n)],ys(r,i,e)}function j8(t,e,r){return r!==0&&Array.isArray(t)?t.map(n=>j8(n,e,r-1)):rw(t,e)}function yB(t){return(e,r,n,i)=>{let o;if(e===null)o=null;else{o=j8(e,i,t);let s=t,c=o;for(;s>0&&Array.isArray(c);)s--,c=c[0];if(c!==void 0)for(let a=0;a<s;a++)o=[o]}ys(n,o,r)}}var q8=N(()=>{Ln();Vt();$o();yS()});function H8(t,e){return CS(t,"any",e?.origin)}function nw(t,e){return CS(t,"read",e?.origin)}function Y8(t,e){return CS(t,"write",e?.origin)}function CS(t,e,r){let n=t?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(e==="any"||e in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(e==="any"||e in i)&&(n=i)}return n}function bB(t){let e=vB(t);if(t.json.origins)for(let r in t.json.origins){let n=t.json.origins[r],i=n.types?_B(n):e;vS(i,n,!1),n.types&&!n.write&&t.json.write?.enabled&&(n.write={...t.json.write}),xS(i,n)}vS(e,t.json,!0),xS(e,t.json)}function vB(t){return t.json.types?ES(t.json):t.type?Z8(t):ES(t)}function _B(t){return t.type?Z8(t):ES(t)}function Z8(t){if(!t.type)return;let e=0,r=t.type;for(;Array.isArray(r)&&!G0(r);)r=r[0],e++;return{type:r,ndimArray:e}}function ES(t){if(!t.types)return;let e=0,r=t.types;for(;Array.isArray(r);)r=r[0],e++;return{types:r,ndimArray:e}}function X8(t){W8(t)&&(L8(t),bB(t))}var iw=N(()=>{Sp();k8();F8();B8();q8()});function Et(t){return e=>{t??="esri.core.Accessor",e.prototype.declaredClass=t,xB(e);let r=[],n=[],i=e.prototype;for(;i;)i.hasOwnProperty("initialize")&&!TS.has(i.initialize)&&(TS.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!PS.has(i.destroy)&&(PS.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);TS.clear(),PS.clear();let o=class extends e{constructor(...c){if(super(...c),this.constructor===o&&typeof this.postscript=="function"){if(r.length&&Object.defineProperty(this,"initialize",{enumerable:!1,configurable:!0,value(){for(let a=r.length-1;a>=0;a--)r[a].call(this)}}),n.length){let a=!1,d=this[X0];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){this.__accessor__.lifecycle=Sr.DESTROYING,a=!0,d.call(this);for(let h=0;h<n.length;h++)n[h].call(this)}}})}Object.defineProperty(this,Symbol.dispose,{enumerable:!1,configurable:!0,value(){this.destroy()}}),this.postscript()}}};o.__accessorMetadata__=Ua(e.prototype),o.prototype.declaredClass=t;let s=(t||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function SB(t,e){return e.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n===void 0)return;r.mutable&&lr(n);let i=r.store;return i.has(t)?i.get(t):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(t);if(n!==void 0)return n.getComputed(r)}}function xB(t){let e=t.prototype,r=Ua(e),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];X8(o),n[i]={enumerable:!0,configurable:!0,get:SB(i,o),set(s){let c=this.__accessor__;if(c!==void 0){if(c.mutable)return c.initialized&&o.readOnly?J8("read-only",i):c.lifecycle===Sr.CONSTRUCTED&&o.constructOnly?J8("construct-only",i):void c.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(t.prototype,n)}var TS,PS,J8,qn=N(()=>{St();Vt();mS();ch();Cp();xs();iw();TS=new Set,PS=new Set;J8=(t,e)=>{nt.getLogger("esri.core.Accessor").error(`cannot assign to ${t} property '${e}'`)}});function EB(t,e,r=!1){let n=`\u{1F6D1} DEPRECATED - ${e}`;if(!r)return void t.warn(n);let i=Q8.get(t);i||(i=new Set,Q8.set(t,i)),i.has(e)||(i.add(e),t.warn(n))}function K8(t,e,r={}){if(pe("esri-deprecation-warnings")){let{moduleName:n}=r;CB(t,`Function: ${(n?n+"::":"")+e+"()"}`,r)}}function CB(t,e,r={}){if(pe("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,c=e;if(n&&(c+=`
2
2
  \u{1F6E0}\uFE0F Replacement: ${n}`),i&&(c+=`
3
3
  \u2699\uFE0F Version: ${i}`),o)if(Array.isArray(o)){c+=`
4
4
  \u{1F517} See for more details:`;for(let a of o)c+=`
5
5
  ${a}`}else c+=`
6
6
  \u{1F517} See ${o} for more details.`;EB(t,c,s)}}var Q8,eP=N(()=>{St();Q8=new WeakMap});function MS(t){return t!=null&&typeof t[Symbol.iterator]=="function"}var tP=N(()=>{});function ow(t){return t||"_default_"}function rP(t){for(let e of t)e instanceof Mp?e.removeAll():e.remove()}function nP(t){return t!=null&&(!!t.remove||t instanceof Mp)}var Mp,iP=N(()=>{tP();Mp=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let e=0;return this._groups.forEach(r=>{e+=r.length}),e}add(e,r){if(MS(e)){let n=this._getOrCreateGroup(r);for(let i of e)nP(i)&&n.push(i)}else nP(e)&&this._getOrCreateGroup(r).push(e);return this}forEach(e,r){if(typeof e=="function")this._groups.forEach(n=>n.forEach(e));else{let n=this._getGroup(e);n&&r&&n.forEach(r)}}has(e){return this._groups.has(ow(e))}remove(e){if(typeof e!="string"&&MS(e)){for(let r of e)this.remove(r);return this}return this.has(e)?(rP(this._getGroup(e)),this._groups.delete(ow(e)),this):this}removeAll(){return this._groups.forEach(rP),this._groups.clear(),this}removeReference(e){return this._groups.delete(e),this}_getOrCreateGroup(e){if(this.has(e))return this._getGroup(e);let r=[];return this._groups.set(ow(e),r),r}_getGroup(e){return this._groups.get(ow(e))}}});function mh(t){return t?.destroy(),null}function hh(t){return t?.remove(),null}var Il=N(()=>{});function TB(t){return t?.release&&typeof t.release=="function"}function PB(t){return t?.acquire&&typeof t.acquire=="function"}var Va,sw=N(()=>{Va=class t{constructor(e,r,n,i=1,o=0){this._ctor=e,this._acquireFunction=r,this._releaseFunction=n,this.allocationSize=i,this._pool=new Array(o),this._initialSize=o;for(let s=0;s<o;s++)this._pool[s]=new this._ctor;this.allocationSize=Math.max(i,1)}destroy(){this.prune(0)}acquire(...e){let r;if(t.test.disabled)r=new this._ctor;else{if(this._pool.length===0){let n=this.allocationSize;for(let i=0;i<n;i++)this._pool[i]=new this._ctor}r=this._pool.pop()}return this._acquireFunction?this._acquireFunction(r,...e):PB(r)&&r.acquire(...e),r}release(e){e&&!t.test.disabled&&(this._releaseFunction?this._releaseFunction(e):TB(e)&&e.release(),this._pool.push(e))}prune(e=this._initialSize){if(!(e>=this._pool.length)){for(let r=e;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=e}}_dispose(e){e.dispose&&typeof e.dispose=="function"&&e.dispose()}static{this.test={disabled:!1}}}});var aw,oP=N(()=>{Kd();aw=class{constructor(e,r){this._observers=e,this._observer=r}remove(){PT(this._observers,this._observer)}}});var Ap,MB,AS=N(()=>{jn();oP();Ap=class{constructor(){this._observers=null,this.destroyed=!1}observe(e){if(this.destroyed||e.destroyed)return MB;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let c=r[s];if(c.destroyed)i=!0;else if(c===e){n=!0;break}}return n||(r.push(e),i&&this._removeDestroyedObservers()),new aw(r,e)}_removeDestroyedObservers(){let e=this._observers;if(!e||e.length===0)return;let r=e.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&e[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;e[i]=e[i+n]}}e.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let e=this._observers;if(e!=null){for(let r of e)r.onCommitted();this._observers=null}}},MB=yt()});function cw(t){switch(t){case"defaults":return lt.DEFAULTS;case"service":return lt.SERVICE;case"portal-item":return lt.PORTAL_ITEM;case"web-scene":return lt.WEB_SCENE;case"web-map":return lt.WEB_MAP;case"link-chart":return lt.LINK_CHART;case"user":return lt.USER;default:return null}}function lw(t){switch(t){case lt.DEFAULTS:return"defaults";case lt.SERVICE:return"service";case lt.PORTAL_ITEM:return"portal-item";case lt.WEB_SCENE:return"web-scene";case lt.WEB_MAP:return"web-map";case lt.LINK_CHART:return"link-chart";case lt.USER:return"user"}}function sP(t){return lw(t)}var lt,rue,Ll=N(()=>{(function(t){t[t.DEFAULTS=0]="DEFAULTS",t[t.COMPUTED=1]="COMPUTED",t[t.SERVICE=2]="SERVICE",t[t.PORTAL_ITEM=3]="PORTAL_ITEM",t[t.WEB_SCENE=4]="WEB_SCENE",t[t.WEB_MAP=5]="WEB_MAP",t[t.LINK_CHART=6]="LINK_CHART",t[t.USER=7]="USER"})(lt||(lt={}));rue=lt.USER+1});var gh,aP=N(()=>{AS();Ll();xs();J0();lh();gh=class extends Ap{constructor(e,r){super(),this.propertyName=e,this.metadata=r,this.trackingTarget=new Bo(this),this.flags=0,this.flags=at.Dirty|(r.nonNullable?at.NonNullable:0)|(r.hasOwnProperty("value")?at.HasDefaultValue:0)|(r.get===void 0?at.DepTrackingInitialized:0)|(r.dependsOn===void 0?at.AutoTracked:0)}destroy(){this.flags&at.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(e){e.mutable&&lr(this);let r=e.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&at.Computing||~i&at.Dirty&&r.has(n))return o;this.flags|=at.Computing;let s=e.host,c;i&at.AutoTracked?c=ro(this.trackingTarget,this.metadata.get,s):(wS(s,this),c=this.metadata.get.call(s)),this.flags|=at.DepTrackingInitialized,r.set(n,c,lt.COMPUTED);let a=r.get(n);return a===o?this.flags&=~at.Dirty:M8(this.commit,this),this.flags&=~at.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~at.Dirty,this.onCommitted()}onInvalidated(){~this.flags&at.Overridden&&(this.flags|=at.Dirty);let e=this._observers;if(e&&e.length>0)for(let r of e)r.onInvalidated()}onCommitted(){let e=this._observers;if(e&&e.length>0){let r=e.slice();for(let n of r)n.onCommitted()}}}});var uw,cP=N(()=>{Mn();Ll();uw=class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let r=new t;return this._values.forEach((n,i)=>{e&&e.has(i)||r.set(i,Ht(n))}),r}get(e){return this._values.get(e)}originOf(){return lt.USER}keys(){return[...this._values.keys()]}set(e,r){this._values.set(e,r)}delete(e){this._values.delete(e)}has(e){return this._values.has(e)}isAtOrigin(e,r){return this.has(e)}isBelowOrigin(e,r){return!this.has(e)}forEach(e){this._values.forEach(e)}}});function Ip(t,e,r){return t!==void 0}function lP(t,e,r,n){return t!==void 0&&(!(r==null&&t.flags&at.NonNullable)||(n.lifecycle,Sr.INITIALIZING,!1))}var dw,LS,IS,uP=N(()=>{St();Mn();Vt();sw();ch();aP();Ll();cP();xs();J0();lh();dw=class{constructor(e){this.host=e,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=Sr.INITIALIZING,this.store=new uw,this.mutable=!0,this._origin=lt.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new gh(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=Sr.CONSTRUCTING}constructed(){this.lifecycle=Sr.CONSTRUCTED}destroy(){this.lifecycle=Sr.DESTROYED,this.propertiesByName.forEach(e=>e.destroy())}get initialized(){return this.lifecycle!==Sr.INITIALIZING}get(e){let r=this.propertiesByName.get(e);if(!Ip(r))return;if(r.metadata.get)return r.getComputed(this);this.mutable&&lr(r);let n=this.store;return n.has(e)?n.get(e):r.metadata.value}originOf(e){let r=this.store.originOf(e);if(r===void 0){let n=this.propertiesByName.get(e);if(n!==void 0&&n.flags&at.HasDefaultValue)return"defaults"}return lw(r)}has(e){return this.propertiesByName.has(e)&&this.store.has(e)}keys(){return[...this.propertiesByName.keys()]}internalGet(e){let r=this.propertiesByName.get(e);if(Ip(r))return this.store.has(e)?this.store.get(e):r.metadata.value}internalSet(e,r){let n=this.propertiesByName.get(e);Ip(n)&&this._internalSet(n,r)}getDependsInfo(e,r,n){let i=this.propertiesByName.get(r);if(!Ip(i))return"";let o=new Bo,s=ro(o,()=>i.metadata.get?.call(e)),c=`${n}${e.declaredClass.split(".").pop()}.${r}: ${s}
7
7
  `,a=o.accessed??new Set;if(a.size===0)return c;n+=" ";for(let d of a)d instanceof gh&&(c+=`${n}${d.propertyName}: undefined
8
- `);return c}setAtOrigin(e,r,n){let i=this.propertiesByName.get(e);if(Ip(i))return this._setAtOrigin(i,r,n)}isOverridden(e){let r=this.propertiesByName.get(e);return r!==void 0&&!!(r.flags&at.Overridden)}clearOrigin(e,r){let n=this.store,i=this.propertiesByName.get(e);if(!Ip(i))return;let o=n.isAtOrigin(e,r)&&!(i.flags&at.Overridden);n.delete(e,r),o&&i.notifyChange()}clearOverride(e){let r=this.propertiesByName.get(e);r&&r.flags&at.Overridden&&(r.flags&=~at.Overridden,r.notifyChange())}override(e,r){let n=this.propertiesByName.get(e);if(!lP(n,e,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(IS.release(o),!s)return;r=c}n.flags|=at.Overridden,this._internalSet(n,r)}set(e,r){let n=this.propertiesByName.get(e);if(!lP(n,e,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(IS.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(e){this._origin=cw(e)}getDefaultOrigin(){return lw(this._origin)}notifyChange(e){let r=this.propertiesByName.get(e);r!==void 0&&r.notifyChange()}invalidate(e){let r=this.propertiesByName.get(e);r!==void 0&&r.invalidate()}commit(e){let r=this.propertiesByName.get(e);r!==void 0&&r.commit()}_internalSet(e,r){let n=this.lifecycle!==Sr.INITIALIZING?this._origin:lt.DEFAULTS;this._setAtOrigin(e,r,n)}_setAtOrigin(e,r,n){let i=this.store,o=e.propertyName;if(i.isAtOrigin(o,n)&&ym(r,i.get(o))&&~e.flags&at.Overridden)return;let s=i.isBelowOrigin(o,n)||i.isAtOrigin(o,n);s&&e.invalidate(),i.set(o,r,n),s&&e.commit(),gS(this.host,e)}_cast(e,r){let n=IS.acquire();return n.valid=!0,n.value=r,e&&(n.value=e.call(this.host,r,n)),n}},LS=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},IS=new Va(LS)});function kS(){return AB}var AB,dP,pP=N(()=>{(function(t){t[t.Ignore=0]="Ignore",t[t.Destroy=1]="Destroy",t[t.ThrowError=2]="ThrowError"})(dP||(dP={}))});function IB(t){t.length=0}var za,OS,NS=N(()=>{sw();za=class{constructor(e=50,r=50){this._pool=new Va(Array,void 0,IB,r,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return OS.acquire()}static release(e){return OS.release(e)}static prune(){OS.prune()}},OS=new za(100)});var pw,fP=N(()=>{sw();pw=class extends Va{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let r=super.acquire(...e);return this._set.delete(r),r}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}});function RS(t){fw.push(t),fw.length===1&&queueMicrotask(()=>{let e=fw.slice();fw.length=0;for(let r of e)r()})}var fw,mP=N(()=>{fw=[]});var wh,hP=N(()=>{wh=class{constructor(e,r=30){this.name=e,this._counter=0,this._samples=new Array(r)}push(e){e!=null&&(this._samples[++this._counter%this._samples.length]=e)}set(e){e!=null&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,r)=>e-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,r)=>e+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var DS,$S,gP=N(()=>{(function(t){let e=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let E=o[h-1];if(a(E,v)<=0)break;o[d-1]=E,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)e(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,e(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)e(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,e(o,d,h,a),yield}}t.sort=n,t.iterableSort=i})(DS||(DS={}));$S=DS});function wP(t){t.data.length>LB*t.length&&(t.data.length=Math.floor(t.length*kB))}var LB,kB,yh,yP=N(()=>{Kd();i2();gP();LB=1.5,kB=1.1,yh=class{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new wm,e&&(e.initialSize&&(this.data=new Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),e.deallocator!==void 0&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>wP(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];e(i)&&r.push(i)}return r}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,r){let n=this.data.indexOf(e,r);return n!==-1&&n<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let r=e;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,r=e.length){for(let n=0;n<r;n++)this.data[this._length++]=e[n]}fill(e,r){for(let n=0;n<r;n++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,wP(this)}pop(){if(this.length===0)return;let e=this.data[this.length-1];return this.length=this.length-1,this._shrink(),e}remove(e){let r=o2(this.data,e,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,e}removeUnordered(e){return this.removeUnorderedIndex(o2(this.data,e,this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,r=e.length,n){this.length=TT(this.data,e,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(e,r){if(e>=this.length||r>=this.length||e===r)return;let n=this.data[e];this.data[e]=this.data[r],this.data[r]=n}sort(e){$S.sort(this.data,0,this.length,e)}iterableSort(e){return $S.iterableSort(this.data,0,this.length,e)}some(e,r){for(let n=0;n<this.length;++n)if(e.call(r,this.data[n],n,this.data))return!0;return!1}find(e,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(e.call(r,n[o]))return n[o]}filterInPlace(e,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];e.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(e,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)e.call(r,n[o],o,n)}forEach(e,r){this.data.slice(0,this.length).forEach(e,r)}map(e,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=e.call(r,this.data[i],i,this.data);return n}reduce(e,r){let n=r;for(let i=0;i<this.length;++i)n=e(n,this.data[i],i,this.data);return n}has(e){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;e++)yield this.data[e]}}});function OB(t){return{setTimeout:(e,r)=>{let n=t.setTimeout(e,r);return yt(()=>t.clearTimeout(n))}}}var bP,vP=N(()=>{jn();bP=OB(globalThis)});function bh(t){return NB(t)||_P(t)}function NB(t){return t!=null&&typeof t=="object"&&"on"in t&&typeof t.on=="function"}function _P(t){return t!=null&&typeof t=="object"&&"addEventListener"in t&&typeof t.addEventListener=="function"}function Wa(t,e,r){if(!bh(t))throw new TypeError("target is not a Evented or EventTarget object");return _P(t)?RB(t,e,r):t.on(e,r)}function RB(t,e,r,n){if(Array.isArray(e)){let i=e.slice();for(let o of i)t.addEventListener(o,r,n);return yt(()=>{for(let o of i)t.removeEventListener(o,r,n)})}return t.addEventListener(e,r,n),yt(()=>t.removeEventListener(e,r,n))}function FS(t,e,r){if(!bh(t))throw new TypeError("target is not a Evented or EventTarget object");if("once"in t)return t.once(e,r);let n=Wa(t,e,i=>{n.remove(),r.call(t,i)});return n}var vh=N(()=>{jn()});function Sn(t="Aborted"){return new We("AbortError",t)}function DB(t,e="Aborted"){if(no(t))throw Sn(e)}function _h(t){return t instanceof AbortSignal?t:t?.signal??void 0}function no(t){let e=_h(t);return e!=null&&e.aborted}function US(t){if(!Sh(t))throw t}function li(t,e){let r=_h(t);if(r!=null){if(!r.aborted)return FS(r,"abort",()=>e());e()}}function xP(t,e){let r=_h(t);if(r!=null)return DB(r),FS(r,"abort",()=>e(Sn()))}function Sh(t){return t?.name==="AbortError"}function $B(t,e=void 0,r){let n=new AbortController;return li(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(e)},t);li(n,()=>{s&&(clearTimeout(s),o(Sn()))})})}function VS(t){return t&&typeof t.then=="function"}function SP(t){return VS(t)?t:Promise.resolve(t)}function EP(t,e=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(Sn()),o=_n();let v=o.promise;if(s){let E=s;s=null,E.abort()}return v}if(i=o||_n(),o=null,e>0){let v=new AbortController;r=SP(t(...a,v.signal));let E=r;$B(e).then(()=>{r===E&&(o?v.abort():s=v)})}else r=1,r=SP(t(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function _n(){let t,e,r=new Promise((i,o)=>{t=i,e=o}),n=i=>{t(i)};return n.resolve=i=>t(i),n.reject=i=>e(i),n.timeout=(i,o)=>bP.setTimeout(()=>n.reject(o),i),n.promise=r,n}var io=N(()=>{vP();Ln();vh();Vt();Il()});var CP=N(()=>{});function FB(){Eh!=null&&(cancelAnimationFrame(Eh),Eh=requestAnimationFrame(MP))}function gw(t){let e=new zS(t);return BS.push(e),hw.willDispatch||(hw.willDispatch=!0,RS(IP)),e}function UB(t=!1){Lp.forAll(e=>{e.removed=!0}),t&&AP()}function MP(){let t=performance.now();Eh=null,Eh=Lp.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(MP):null,hw.executeFrameTasks(t)}function VB(t){let e=t-TP;TP=t;let r=PP>0?PP:1e3/60,n=Math.max(0,e-r);xh.time=t,xh.frameDuration=r-n;for(let i=0;i<WS.length;i++){let o=performance.now(),s=WS[i];Lp.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(xh.elapsedFrameTime=performance.now()-t,xh.deltaTime=c.ticks===0?0:e,c.phases[s]?.call(c,xh)))}),BB[i].push(performance.now()-o)}AP(),GB.push(performance.now()-t)}function AP(){Lp.forAll(t=>{t.removed&&mw.push(t)}),Lp.removeUnorderedMany(mw.data,mw.length),mw.clear()}function IP(){for(;BS.length;){let t=BS.shift();t.isActive&&t.callback()}hw.willDispatch=!1}function zB(t=1,e){let r=_n(),n=()=>{no(e)?r.reject(Sn()):t===0?r():(--t,RS(()=>n()))};return n(),r.promise}function WB(t){return zB(1,t)}async function LP(t){await WB(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}var zS,TP,PP,xh,WS,BS,Lp,hw,Eh,mw,BB,GB,ww=N(()=>{mP();hP();yP();io();CP();zS=class{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}},TP=0,PP=0,xh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},WS=["prepare","preRender","render","postRender","update","finish"],BS=[],Lp=new yh;hw={frameTasks:Lp,willDispatch:!1,clearFrameTasks:UB,dispatch:IP,executeFrameTasks:VB,reschedule:FB};Eh=null;mw=new yh;BB=WS.map(t=>new wh(t)),GB=new wh("total")});function kP(t,e){if(!e)return t;for(let r of e)r!=null&&t.add(r);return t}function yw(t,e){let r=new Set;return kP(r,t),kP(r,e),r}var bw=N(()=>{});function vw(){return++jB}var jB,OP=N(()=>{jB=0});function qB(){}var kl,GS,NP,jS=N(()=>{lh();kl=class extends Bo{constructor(e){super(new GS(e)),this._observer&&NP.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&NP.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},GS=class{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;if(e===1)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=qB}},NP=new FinalizationRegistry(t=>{t.deref()?.destroy()})});function HS(t,e){let r=new kl(o),n=null,i=!1;function o(){if(!r||i)return;if(qS)return void HB(o);let c=n;r.clear(),qS=!0,i=!0,n=ro(r,t),i=!1,qS=!1,e(n,c),YB()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=ro(r,t),i=!1,yt(s)}function YS(t,e){let r=new kl(i),n=null;function i(){e(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=ro(r,t),n):null}return s(),yt(o)}function HB(t){_w.includes(t)||_w.unshift(t)}function YB(){for(;_w.length;)_w.pop()()}var qS,_w,ZS=N(()=>{jn();xs();jS();qS=!1,_w=[]});function Ew(t){Ba.delete(t),Ba.add(t),xw||(xw=gw(XB))}function ZB(t){if(t.removed)return;let e=t.oldValue,r=t.getValue();t.equals(e,r)||(t.oldValue=r,t.notify(r,e))}function RP(t){for(let e of Ba.values())e.target===t&&(e.removed=!0)}function XB(){let t=10;for(;xw&&t--;){xw=null;let e=JB(),r=Sw.acquire();for(let n of e){let i=n.uid;ZB(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Ba)n.removed&&(r.push(n),Ba.delete(n));for(let n of r)Th.pool.release(n);Sw.release(r),Sw.release(e),QB.forEach(n=>n())}}function JB(){let t=Sw.acquire();t.length=Ba.size;let e=0;for(let r of Ba)t[e]=r,++e;return Ba.clear(),t}function KB(t,e,r){let n=uS(t,e,r,(i,o,s)=>{let c,a,d=YS(()=>Ml(i,o),(h,g)=>{i.__accessor__?.lifecycle===Sr.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=Th.acquireUntracked(h,s,g,i,o),a=c.uid),Ew(c))});return yt(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Ew(c)),c=null),n=d=null})});return n}function eG(t,e,r){let n=uS(t,e,r,(i,o,s)=>{let c=!1;return HS(()=>Ml(i,o),(a,d)=>{i.__accessor__.lifecycle!==Sr.DESTROYED?c||(c=!0,ym(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function DP(t,e,r,n=!1){return t.__accessor__&&t.__accessor__.lifecycle!==Sr.DESTROYED?n?eG(t,e,r):KB(t,e,r):yt()}function tG(t,e,r){let n,i,o=YS(t,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=Th.acquireTracked(s,e,c,r),i=n.uid),Ew(n))});return yt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Ew(n)),n=null),o=null})}function rG(t,e,r){let n=!1;return HS(t,(i,o)=>{n||(n=!0,r(o,i)||e(i,o),n=!1)})}function $P(t,e,r=!1,n=g0){return r?rG(t,e,n):tG(t,e,n)}var Ch,Th,Sw,Ba,xw,QB,XS=N(()=>{NS();jn();Mn();fP();ww();bw();OP();Al();ch();ZS();Fa();(function(t){t[t.Untracked=0]="Untracked",t[t.Tracked=1]="Tracked"})(Ch||(Ch={}));Th=class t{constructor(){this.uid=vw(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new pw(t)}static acquireUntracked(e,r,n,i,o){return this.pool.acquire(Ch.Untracked,e,r,n,i,o,ym)}static acquireTracked(e,r,n,i){return this.pool.acquire(Ch.Tracked,e,r,n,null,null,i)}notify(e,r){this.type===Ch.Untracked?this.callback.call(this.target,e,r,this.path,this.target):this.callback.call(null,e,r,void 0,void 0)}acquire(e,r,n,i,o,s,c){this.uid=vw(),this.removed=!1,this.type=e,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=vw(),this.removed=!0}},Sw=new za,Ba=new Set;QB=new Set});function nG(t){if(t==null)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor?.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}var FP,UP,Ga,JS,kn,kp=N(()=>{eP();iP();Vt();Il();mS();Al();ch();Cp();uP();fS();pP();XS();ci();qn();Ga=Symbol("Accessor-Handles"),JS=Symbol("Accessor-Initialized"),kn=class t{static{FP=Ga,UP=JS}static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Ua(s.prototype);for(let c in e){let a=e[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:e[c]}for(let c in r){let a=nG(r[c]);fe(a)(s.prototype,c)}return Et(n)(s)}static freeze(e){return e instanceof t?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof t?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[FP]=null,this[UP]=!1,this.constructor===t)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new dw(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),e.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0]),kS()?.onInstanceConstruct(this)}postscript(){let e=this.__accessor__,r=e.ctorArgs;e.initialize(),r&&(this.set(r),e.ctorArgs=null),e.constructed(),this.initialize(),this[JS]=!0}initialize(){}[X0](){this[Ga]=mh(this[Ga])}destroy(){this.destroyed||(RP(this),this.__accessor__.destroy(),kS()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[JS]}get destroyed(){return this.__accessor__?.lifecycle===Sr.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===Sr.DESTROYING||!1}commitProperty(e){Wo(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,r){return Pp(this,e,r),this}watch(e,r,n){return K8(nt.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),DP(this,e,r,n)}addHandles(e,r){if(this.destroyed){let n=Array.isArray(e)?e:[e];for(let i of n)i.remove();return}(this[Ga]??=new Mp).add(e,r)}removeHandles(e){this[Ga]?.remove(e)}removeAllHandles(){this[Ga]?.removeAll()}removeHandlesReference(e){this[Ga]?.removeReference(e)}hasHandles(e){return this[Ga]?.has(e)===!0}_override(e,r){r===void 0?this.__accessor__.clearOverride(e):this.__accessor__.override(e,r)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,r){r==null?this.__accessor__.clearOverride(e):this.__accessor__.override(e,r)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,r){return this.__accessor__.internalSet(e,r),this}}});var Cw,QS,VP=N(()=>{Mn();Ll();Cw=class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let r=new t;return this._values.forEach((n,i)=>{e&&e.has(i)||r.set(i,Ht(n.value),n.origin)}),r}get(e,r){r=this._normalizeOrigin(r);let n=this._values.get(e);return r==null||n?.origin===r?n?.value:void 0}originOf(e){return this._values.get(e)?.origin??lt.USER}keys(e){e=this._normalizeOrigin(e);let r=[...this._values.keys()];return e==null?r:r.filter(n=>this._values.get(n)?.origin===e)}set(e,r,n){if((n=this._normalizeOrigin(n))===lt.DEFAULTS){let i=this._values.get(e);if(i?.origin!=null&&i.origin>n)return}this._values.set(e,new QS(r,n))}delete(e,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(e)?.origin!==r||this._values.delete(e)}has(e,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(e)?.origin===r:this._values.has(e)}isAtOrigin(e,r){return r=this._normalizeOrigin(r),this.has(e,r)&&this.originOf(e)===r}isBelowOrigin(e,r){return r=this._normalizeOrigin(r),!this.has(e)||this.originOf(e)<r}forEach(e){this._values.forEach(({value:r},n)=>e(r,n))}_normalizeOrigin(e){if(e!=null)return e===lt.DEFAULTS?e:lt.USER}},QS=class{constructor(e,r){this.value=e,this.origin=r}}});function zP(t,e,r){e.keys().forEach(i=>{r.set(i,e.get(i),lt.DEFAULTS)});let n=t.metadata;Object.keys(n).forEach(i=>{t.internalGet(i)&&r.set(i,t.internalGet(i),lt.DEFAULTS)})}var WP=N(()=>{Ll()});function iG(t,e,r){if(!t?.read||t.read.enabled===!1||!t.read.source)return!1;let n=t.read.source;if(typeof n=="string"){if(n===e||n.includes(".")&&n.indexOf(e)===0&&dS(n,r))return!0}else for(let i of n)if(i===e||i.includes(".")&&i.indexOf(e)===0&&dS(i,r))return!0;return!1}function oG(t){return t&&(!t.read||t.read.enabled!==!1&&!t.read.source)}function sG(t,e,r,n,i){let o=nw(e[r],i);oG(o)&&(t[r]=!0);for(let s of Object.getOwnPropertyNames(e))o=nw(e[s],i),iG(o,r,n)&&(t[s]=!0)}function aG(t,e,r,n){let i=r.metadata,o=H8(i[e],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(t,e,n):s;c!==void 0&&r.set(e,c)}function BP(t,e,r=cG){if(!e||typeof e!="object")return;let n=zo(t),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(e))sG(o,i,s,e,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=nw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?Ml(e,a):e[s],c?.reader&&(d=c.reader.call(t,d,e,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||aG(t,s,n,r)}n.setDefaultOrigin("user")}var cG,GP=N(()=>{Al();Fa();iw();cG={origin:"service"}});function lG(t,e,r,n,i){let o={};return e.write?.writer?.call(t,n,o,r,i),o}function uG(t,e,r,n,i,o){if(!n?.write)return!1;let s=Wo(t,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(t,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new We("web-document-write:property-required",`Missing value for required property '${r}' on '${t.declaredClass}'`,{propertyName:r,target:t});return c&&o?.messages?o.messages.push(c):c&&!o&&nt.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!e.store.multipleOriginsSupported||e.store.originOf(r)===lt.DEFAULTS)&&dG(t,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&e.store.multipleOriginsSupported&&e.store.originOf(r)<cw(o.origin))}function dG(t,e,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(t,e,r??void 0);return m0(s,i)}return!1}return o===i}function jP(t,e,r){if(t&&typeof t.toJSON=="function"&&(!t.toJSON.isDefaultToJSON||!t.write))return xp(e,t.toJSON(r));let n=zo(t),i=n.metadata;for(let o in i){let s=Y8(i[o],r);if(!uG(t,n,o,s,void 0,r))continue;let c=Wo(t,o),a=lG(t,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(e=xp(e,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>xp(e,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:t,propName:o,oldOrigin:sP(n.store.originOf(o)),newOrigin:r.origin}))}return e}var qP=N(()=>{Kd();Ln();Vt();Al();Ll();Fa();iw()});function pG(t,e){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(t,e),r}var HP,Ph,ui,Ol=N(()=>{ai();kp();VP();WP();GP();Fa();qP();qn();HP=t=>{let e=class extends t{constructor(...r){super(...r);let n=zo(this),i=n.store,o=new Cw;n.store=o,zP(n,i,o)}read(r,n){BP(this,r,n)}write(r,n){return jP(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return pG.call(this,r,n)}};return e=ae([Et("esri.core.JSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};Ph=class extends HP(kn){};Ph=ae([Et("esri.core.JSONSupport")],Ph),function(t){function e(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}t.JSONSupportMixin=HP,t.isSerializable=e}(Ph||(Ph={}));ui=Ph});function Tw(t,e,r){let n,i;return e===void 0||Array.isArray(e)?(i=t,r=e,n=[void 0]):(i=e,n=Array.isArray(t)?t:[t]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=Z0(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var KS=N(()=>{ci()});function fG(t){let e={};for(let r in t)e[t[r]]=r;return e}function YP(t){let e=[];for(let r in t)e.push(r);return e.sort(),e}function Nl(){return function(t,e){return new ex(t,{ignoreUnknown:!0,...e})}}var ex,tx=N(()=>{$o();ex=class{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=fG(e),this.apiValues=YP(this._apiToJSON),this.jsonValues=YP(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&ys(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(e){if(e==null)return null;if(this._apiToJSON.hasOwnProperty(e)){let r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?null:e}fromJSON(e){return e!=null&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}});var Mh,oo,Pw,Mw,Aw=N(()=>{Mh=class{constructor(e,r,n,i,o,s){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},oo=new Mh(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Pw=new Mh(3396190,1/169.8944472236118,23e4,6e4,.111),Mw=new Mh(1737400,0,0,0,0)});function Iw(t){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)}function Op(t){let e=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return e.test(t)?t=t.replace(e,"https://www.arcgis.com"):r.test(t)?t=t.replace(r,"https://devext.arcgis.com"):n.test(t)&&(t=t.replace(n,"https://qaext.arcgis.com")),t}var Ah=N(()=>{});function ZP(t){let e=new Uint8Array(t),r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}var XP=N(()=>{});function xG(){let t=xn.path,e=t.slice(0,t.lastIndexOf("/")+1);return`${`${xn.scheme}://${xn.host}${xn.port!=null?`:${xn.port}`:""}`}${e}`}function Cs(t){if(!t)return null;let e={path:null,query:null},r=new an(t),n=t.indexOf("?");return r.query===null?e.path=t:(e.path=t.slice(0,n),e.query=ja(r.query)),r.fragment&&(e.hash=r.fragment,r.query===null&&(e.path=e.path.slice(0,e.path.length-(r.fragment.length+1)))),e}function ja(t){let e=t.split("&"),r={};for(let n of e){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function Rl(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(e(r,t[r]))).join("&"):Object.keys(t).map(r=>{let n=t[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=e?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>ui.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):ui.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function tM(t=!1){let e,r=Np.proxyUrl;if(typeof t=="string"){e=CG(t);let n=Dp(t);n&&(r=n.proxyUrl)}else e=!!t;if(!r)throw mG().warn(JP),new We("urlUtils:proxy-not-set",JP);return e&&rx()&&(r=Dw(r)),Cs(r)}function rM(t){let e=t.indexOf("?");return e!==-1?(Ih.path=t.slice(0,e),Ih.query=t.slice(e+1)):(Ih.path=t,Ih.query=null),Ih}function nM(t){return t=(t=oM(t=IG(t=rM(t).path),!0)).toLowerCase()}function iM(t){let e={proxyUrl:t.proxyUrl,urlPrefix:nM(t.urlPrefix)},r=Np.proxyRules,n=e.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,e),i}function Dp(t){let e=Np.proxyRules,r=nM(t);for(let n=0;n<e.length;n++)if(r.indexOf(e[n].urlPrefix)===0)return e[n]}function ix(t,e=Np.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(t)||typeof n=="string"&&t.startsWith(n);if(e){for(let n of e)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function cn(t,e,r=!1){if(!t||!e)return!1;let n=nx(t),i=nx(e);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function kw(t){if(typeof t=="string"){if(!qa(t))return!0;t=nx(t)}if(cn(t,xn))return!0;let e=Np.trustedServers||[];for(let r=0;r<e.length;r++){let n=EG(e[r]);for(let i=0;i<n.length;i++)if(cn(t,n[i]))return!0}return!1}function EG(t){return Lw[t]||(sx(t)||Ha(t)?Lw[t]=[new an(Ai(t))]:Lw[t]=[new an(`http://${t}`),new an(`https://${t}`)]),Lw[t]}function Ai(t,e=eM,r){return Ha(t)?r?.preserveProtocolRelative?t:xn.scheme==="http"&&xn.authority===ln(t).slice(2)?`http:${t}`:`https:${t}`:sx(t)?t:Ow(t[0]==="/"?AG(e):e,t)}function ox(t,e=eM,r){if(t==null||!qa(t))return t;let n=Es(t),i=n.toLowerCase(),o=Es(e).toLowerCase().replace(/\/+$/,""),s=r?Es(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return t;let c=(g,v,E)=>(E=g.indexOf(v,E))===-1?g.length:E,a=c(i,"/",i.indexOf("//")+2),d=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(d=a+1,a!==i.length);)a=c(i,"/",a+1);if(d===-1||s&&d<s.length)return t;t=n.slice(d);let h=o.slice(d-1).replaceAll(/[^/]+/g,"").length;if(h>0)for(let g=0;g<h;g++)t=`../${t}`;else t=`./${t}`;return t}function Es(t){return t=OG(t=kG(t=LG(t=Ai(t=t.trim()))))}function Ow(...t){let e=t.filter(MT);if(!e?.length)return;let r=[];if(qa(e[0])){let i=e[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),PG(e[0])&&(r[0]+="/"),e[0]=i.slice(o+2))}else e[0][0]==="/"&&r.push("");let n=e.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function ln(t,e=!1){if(t==null||Nw(t)||$p(t))return null;let r=t.indexOf("://");if(r===-1&&Ha(t))r=2;else{if(r===-1)return null;r+=3}let n=t.indexOf("/",r);return n!==-1&&(t=t.slice(0,n)),e&&(t=oM(t,!0)),t}function qa(t){return Ha(t)||sx(t)}function Nw(t){return t!=null&&t.slice(0,5)==="blob:"}function $p(t){return t!=null&&t.slice(0,5)==="data:"}function Rw(t){return ZP(t).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Ha(t){return t!=null&&t[0]==="/"&&t[1]==="/"}function sx(t){return t!=null&&QP.test(t)}function CG(t){return t!=null&&hG.test(t)||xn.scheme==="https"&&Ha(t)}function TG(t){return t!=null&&KP.test(t)||xn.scheme==="http"&&Ha(t)}function PG(t){return t!=null&&gG.test(t)}function Dw(t){return Ha(t)?`https:${t}`:t.replace(KP,"https:")}function MG(){return xn.scheme==="http"}function rx(){return xn.scheme==="https"}function oM(t,e=!1){return Ha(t)?t.slice(2):(t=t.replace(QP,""),e&&t.length>1&&t[0]==="/"&&t[1]==="/"&&(t=t.slice(2)),t)}function AG(t){let e=t.indexOf("//"),r=t.indexOf("/",e+2);return r===-1?t:t.slice(0,r)}function IG(t){return t.endsWith("/")?t:`${t}/`}function LG(t){if(/^https?:\/\//i.test(t)){let e=rM(t);t=(t=e.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),e.query&&(t+=`?${e.query}`)}return t}function kG(t){return t.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function OG(t){let e=Np.httpsDomains;if(!TG(t))return t;let r=t.indexOf("/",7),n;if(n=r===-1?t:t.slice(0,r),n=n.toLowerCase().slice(7),wG.test(n)){if(!n.endsWith(":80"))return t;n=n.slice(0,-3),t=t.replace(":80","")}return MG()&&n===xn.authority&&!yG.test(t)||(rx()&&n===xn.authority||e&&e.some(i=>n===i||n.endsWith(`.${i}`))||rx()&&!Dp(t))&&(t=Dw(t)),t}function $w(t,e,r){if(!(e&&r&&t&&qa(t)))return t;let n=t.indexOf("//"),i=t.indexOf("/",n+2),o=t.indexOf(":",n+2),s=Math.min(i<0?t.length:i,o<0?t.length:o);return t.slice(n+2,s).toLowerCase()!==e.toLowerCase()?t:`${t.slice(0,n+2)}${r}${t.slice(s)}`}function nx(t){return typeof t=="string"?new an(Ai(t)):(t.scheme||(t.scheme=xn.scheme),t)}function Fp(t,e){if(!e)return t;let r=Cs(t),n=r.query||{};for(let[o,s]of Object.entries(e))s!=null&&(n[o]=s);let i=Rl(n);return i?`${r.path}?${i}`:r.path}function ax(t){if(t==null)return null;let e=t.match(NG);return e?{path:e[1],extension:e[2]}:{path:t,extension:null}}var mG,Np,JP,QP,KP,hG,gG,wG,yG,bG,vG,an,Lw,_G,xn,SG,eM,Rp,Ih,NG,Go=N(()=>{$a();Kd();Ln();Ol();Vt();Ah();XP();mG=()=>nt.getLogger("esri.core.urlUtils"),Np=bt.request,JP="esri/config: esriConfig.request.proxyUrl is not set.",QP=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,KP=/^\s*http:/i,hG=/^\s*https:/i,gG=/^\s*file:/i,wG=/:\d+$/,yG=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,bG=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),vG=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),an=class{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(bG);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(vG),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},Lw={},_G=new an(bt.applicationUrl),xn=_G,SG=xG(),eM=SG,Rp=()=>xn;Ih={path:"",query:""};NG=/([^.]*)\.([^/]*)$/});function sM(t){Zt=t}var RG,Zt,DG,Lh=N(()=>{St();Go();V0();V0();Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");RG="4.33",DG=RG;DG=`4.33.0-next.${U0}`;pe("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),pe("host-webworker")});function aM(t,e){let r=e?.url?.path;if(t&&r&&(t=Ai(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){let n=ox(t,e.portalItem.itemUrl);n!=null&&FG.test(n)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path)}return(t=cx(t,e?.portal))&&Fw.test(t)?dM(t):t}function cM(t,e,r=kh.YES){if((t=t&&Fw.test(t)?pM(t):t)==null)return t;!qa(t)&&e?.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let n=Ai(t);if(e){let i=e.verifyItemRelativeUrls?.rootPath||e.url?.path;if(i){let o=cx(i,e.portal),s=cx(n,e.portal);n=ox(s,o,o),n!=null&&n!==s&&n!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=uM(n,e?.portal),qa(n)&&(n=Es(n)),e?.resources&&e?.portalItem&&!qa(n)&&!$p(n)&&r===kh.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(n),compress:!1}),n}function $G(t,e,r){return aM(t,r)}function lM(t,e,r,n){let i=cM(t,n);i!==void 0&&(e[r]=i)}function UG(t){return(t?.match(Fw)??null)?.[1]??null}function VG(t){let e=t?.match(Fw)??null;if(e==null)return null;let r=e[2],n=r.lastIndexOf("/");if(n===-1){let{path:s,extension:c}=ax(r);return{prefix:null,filename:s,extension:c}}let{path:i,extension:o}=ax(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:o}}function uM(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?$w(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function cx(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;let r=`${e.urlKey}.${e.customBaseUrl}`,n=Rp();return cn(n,`${n.scheme}://${r}`)?$w(t,e.portalHostname,r):$w(t,r,e.portalHostname)}function dM(t){if(!t)return t||null;let e=t;return e&&Zt&&!Zt.findCredential(e)&&(e=Op(e),e=e.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),e=e.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),e=e.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),e}function pM(t){if(!t)return t||null;let e=t;return e=e.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),e=e.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),e=e.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),e&&Zt&&!Zt.findCredential(e)&&(e=Op(e)),e}var Fw,FG,kh,Fpe,fM=N(()=>{Lh();Go();Ah();Fw=/\/items\/([^/]+)\/resources\/(.*)/,FG=/^\.\/resources\//;(function(t){t[t.YES=0]="YES",t[t.NO=1]="NO"})(kh||(kh={}));Fpe=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return kh},ensureMainOnlineDomain:uM,fromCDNUrl:pM,fromJSON:aM,itemIdFromResourceUrl:UG,prefixAndFilenameFromResourceUrl:VG,read:$G,toCDNUrl:dM,toJSON:cM,write:lM},Symbol.toStringTag,{value:"Module"}))});function lx(t){let e=ln(t,!0);return!!e&&(e=e.toLowerCase(),e.endsWith(".arcgis.com")&&(e.startsWith("services")||e.startsWith("tiles")||e.startsWith("features")))}var zG,mM,Gpe,jpe,hM=N(()=>{Go();fM();zG={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},mM=Object.values(zG),Gpe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${mM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),jpe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${mM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i")});function BG(t){let e=ln(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!WG.has(e)&&!t.endsWith("/sharing/rest/generateToken")}function gM(t,e){return!(!e&&!bt.apiKey||!BG(t))}var WG,wM=N(()=>{$a();Go();WG=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function bM(t,e,r=!1,n){return new Promise((i,o)=>{if(no(n))return void o(yM());let s=()=>{d(),o(new Error(`Unable to load ${e}`))},c=()=>{let h=t;d(),i(h)},a=()=>{if(!t)return;let h=t;d(),h.src="",o(yM())},d=()=>{pe("esri-image-decode")||(t.removeEventListener("error",s),t.removeEventListener("load",c)),s=null,c=null,t=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(e)};n?.addEventListener("abort",a),pe("esri-image-decode")?t.decode().then(c,s):(t.addEventListener("error",s),t.addEventListener("load",c))})}function yM(){try{return new DOMException("Aborted","AbortError")}catch{let t=new Error;return t.name="AbortError",t}}function vM(){return new Error(GG)}function _M(t){bt.request.crossOriginNoCorsDomains||(bt.request.crossOriginNoCorsDomains={});let e=bt.request.crossOriginNoCorsDomains;for(let r of t)r=r.toLowerCase(),/^https?:\/\//.test(r)?e[ln(r)??""]=0:(e[ln("http://"+r)??""]=0,e[ln("https://"+r)??""]=0)}function SM(t){let e=bt.request.crossOriginNoCorsDomains;if(e){let r=ln(t);if(r)return r=r.toLowerCase(),!cn(r,Rp())&&e[r]<Date.now()-36e5}return!1}async function xM(t){let e=Cs(t);t=e.path,e.query?.f==="json"&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}let r=bt.request.crossOriginNoCorsDomains,n=ln(t);r&&n&&(r[n.toLowerCase()]=Date.now())}var GG,EM=N(()=>{$a();St();io();Go();GG="Timeout exceeded"});var CM={};Lo(CM,{execute:()=>jG});function jG(t,e){let r=e.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",e.responseType=r;let n=e.signal;return delete e.signal,globalThis.invokeStaticMessage("request",{url:t,options:e},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:t,requestOptions:e};throw new We("request:server",h.message,g)}if(s.error){let h={...s.error,url:t,requestOptions:e};throw new We("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:e,ssl:i.ssl,url:t}})}var TM=N(()=>{Ln()});var Ts,ux=N(()=>{ai();kp();jn();qn();Ts=class t{constructor(){this._emitter=new t.EventEmitter(this)}emit(e,r){return this._emitter.emit(e,r)}on(e,r){return this._emitter.on(e,r)}once(e,r){return this._emitter.once(e,r)}hasEventListener(e){return this._emitter.hasEventListener(e)}};(function(t){class e{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return Pl(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),yt(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}t.EventEmitter=e,t.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new e}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=ae([Et("esri.core.Evented")],i),i};let r=class extends kn{constructor(){super(...arguments),this._emitter=new Ts.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=ae([Et("esri.core.Evented.EventedAccessor")],r),t.EventedAccessor=r})(Ts)});var Up,Ya,Dl,PM,Uw=N(()=>{Up="system",Ya="unknown",Dl="UTC",PM=Intl.DateTimeFormat().resolvedOptions().timeZone});var dx,MM=N(()=>{dx=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function qG(t){return"timeZoneIANA"in t}function HG(t){return t.startsWith("UTC")}function Vw(t,e=Up){return t?qG(t)?t.timeZoneIANA:YG(t,e):e}function YG(t,e=Up){if(!t||!dx.has(t.timeZone))return e;let r=dx.get(t.timeZone);return HG(t.timeZone)||t.respectsDaylightSaving?r:ZG(r)}function ZG(t){let e=Te.local().setZone(t),r=Math.min(e.set({month:1,day:1}).offset,e.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${xt.instance(-r).formatOffset(0,"narrow")}`}var px=N(()=>{Uw();MM();In()});function KG(t){let e=fx.get(t);if(!e){let r=si(),n=JG[r]||r,i=ej(t.timeZone??Up),o={...t,timeZone:i};e=new Intl.DateTimeFormat(n,o),fx.set(t,e)}return e}function Vp(t,e=QG){return KG(e).format(t)}function ej(t){switch(t){case Up:return PM;case Ya:return Dl;default:return t}}var jo,Oh,Nh,Rh,Za,$l,AM,Dh,$h,XG,_fe,JG,fx,QG,mx=N(()=>{tx();Ra();Uw();px();In();jo={year:"numeric",month:"numeric",day:"numeric"},Oh={year:"numeric",month:"long",day:"numeric"},Nh={year:"numeric",month:"short",day:"numeric"},Rh={year:"numeric",month:"long",weekday:"long",day:"numeric"},Za={hour:"numeric",minute:"numeric"},$l={...Za,second:"numeric"},AM={hourCycle:"h23"},Dh={...Za,...AM},$h={...$l,...AM},XG={"short-date":jo,"short-date-short-time":{...jo,...Za},"short-date-short-time-24":{...jo,...Dh},"short-date-long-time":{...jo,...$l},"short-date-long-time-24":{...jo,...$h},"short-date-le":jo,"short-date-le-short-time":{...jo,...Za},"short-date-le-short-time-24":{...jo,...Dh},"short-date-le-long-time":{...jo,...$l},"short-date-le-long-time-24":{...jo,...$h},"long-month-day-year":Oh,"long-month-day-year-short-time":{...Oh,...Za},"long-month-day-year-short-time-24":{...Oh,...Dh},"long-month-day-year-long-time":{...Oh,...$l},"long-month-day-year-long-time-24":{...Oh,...$h},"day-short-month-year":Nh,"day-short-month-year-short-time":{...Nh,...Za},"day-short-month-year-short-time-24":{...Nh,...Dh},"day-short-month-year-long-time":{...Nh,...$l},"day-short-month-year-long-time-24":{...Nh,...$h},"long-date":Rh,"long-date-short-time":{...Rh,...Za},"long-date-short-time-24":{...Rh,...Dh},"long-date-long-time":{...Rh,...$l},"long-date-long-time-24":{...Rh,...$h},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Za,"long-time":$l},_fe=Nl()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),JG={ar:"ar-u-nu-latn-ca-gregory"},fx=new WeakMap,QG=XG["short-date-short-time"];yp(()=>{fx=new WeakMap})});function rj(t){let e=t||IM;if(!zw.has(e)){let r=si(),n=tj[si()]||r;zw.set(e,new Intl.NumberFormat(n,t))}return zw.get(e)}function zp(t,e){return Object.is(t,-0)&&(t=0),rj(e).format(t)}var tj,zw,IM,hx=N(()=>{Ra();tj={ar:"ar-u-nu-latn"},zw=new WeakMap,IM={};yp(()=>{zw=new WeakMap,IM={}})});function gx(t,e,r={}){let{format:n={}}=r;return Fo(t,i=>nj(i,e,n))}function nj(t,e,r){let n,i,o=t.indexOf(":");if(o===-1?n=t.trim():(n=t.slice(0,o).trim(),i=t.slice(o+1).trim()),!n)return"";let s=Ci(n,e);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?ij(s,c):i?oj(s,i):wx(s)}function ij(t,e){switch(e.type){case"date":return Vp(t,e.intlOptions);case"number":return zp(t,e.intlOptions);default:return LM().warn("missing format descriptor for key {key}"),wx(t)}}function oj(t,e){switch(e.toLowerCase()){case"dateformat":return Vp(t);case"numberformat":return zp(t);default:return LM().warn(`inline format is unsupported since 4.12: ${e}`),/^(dateformat|datestring)/i.test(e)?Vp(t):/^numberformat/i.test(e)?zp(t):wx(t)}}function wx(t){switch(typeof t){case"string":return t;case"number":return zp(t);case"boolean":return""+t;default:return t instanceof Date?Vp(t):""}}var LM,yx=N(()=>{Vt();$o();xa();mx();hx();LM=()=>nt.getLogger("esri.intl.substitute")});function sj(t){return t in NM}function kM(t){if(sj(t)){let e=NM[t];return e===!0?t:e}return null}function OM(t){for(let e of Wp.keys())DM(t.pattern,e)&&Wp.delete(e)}function RM(t){return Fh.includes(t)||(OM(t),Fh.unshift(t)),yt(()=>{let e=Fh.indexOf(t);e>-1&&(Fh.splice(e,1),OM(t))})}async function bx(t){let e=si();Wp.has(t)||Wp.set(t,aj(t,e));let r=Wp.get(t);return r&&await cj.add(r),r}function vx(t){let e=c8(t);return e?kM(t)??kM(e.language):null}async function aj(t,e){let r=[];for(let n of Fh)if(DM(n.pattern,t))try{return await n.fetchMessageBundle(t,e)}catch(i){r.push(i)}throw r.length?new We("intl:message-bundle-error",`Errors occurred while loading "${t}"`,{errors:r}):new We("intl:no-message-bundle-loader",`No loader found for message bundle "${t}"`)}function DM(t,e){return typeof t=="string"?e.startsWith(t):t.test(e)}var NM,Fh,Wp,cj,Uh=N(()=>{Ln();jn();io();Ra();NM={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};Fh=[],Wp=new Map;yp(()=>{Wp.clear()});cj=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(t){return this._increase(),t.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=_n())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function lj(t,e,r,n){let i=e.exec(r);if(!i)throw new We("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${e}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=vx(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await $M(t(d))}catch(g){if(d===a)throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await $M(t(a))}catch(v){throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function $M(t){if(FM.fetchBundleAsset!=null)return FM.fetchBundleAsset(t);let e=await ir(t,{responseType:"text"});return JSON.parse(e.data)}function UM(t){return new _x(t)}var _x,FM,VM=N(()=>{Ww();Ln();Uh();_x=class{constructor({base:e="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,r){return lj(this.getAssetUrl,this.matcher,e,r)}};FM={}});var Sx=N(()=>{mx();hx();yx();Ra();Uh();Uh();VM();Bw();RM(UM({pattern:"esri/",location:Bp}))});function zM(t){return typeof t=="string"?document.getElementById(t):t??null}var WM=N(()=>{});var Xa,xx,BM,Vh,GM,jM=N(()=>{ai();kp();io();qn();(function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"})(Xa||(Xa={}));xx=class{constructor(){this._resolver=_n(),this._status=Xa.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Xa.RESOLVED,this._cleanUp()},()=>{this._status=Xa.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===Xa.RESOLVED}isRejected(){return this._status===Xa.REJECTED}isFulfilled(){return this._status!==Xa.PENDING}abort(){this._resolver.reject(Sn())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let e=_n(),r=[...this._resolvingPromises,e.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Sh(i)||this._resolver.reject(i)}),e.resolve()}},BM=t=>{let e=class extends t{constructor(...r){super(...r),this._promiseProps=new xx,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return e=ae([Et("esri.core.Promise")],e),e},Vh=class extends BM(kn){};Vh=ae([Et("esri.core.Promise")],Vh),function(t){t.EsriPromiseMixin=BM}(Vh||(Vh={}));GM=Vh});function zh(t,e,r={}){return HM(t,e,r,uj)}function qM(t,e,r={}){return HM(t,e,r,dj)}function HM(t,e,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(hh(i),e(s,c))}:(s,c)=>{n(s)&&e(s,c)};if(i=$P(t,o,r.sync,r.equals),r.initial){let s=t();o(s,s)}return i}function uj(t){return!0}function dj(t){return!!t}var Gw,Ex=N(()=>{vh();jn();Il();io();XS();ZS();Gw={sync:!0,initial:!0}});function YM(){if(pj)return crypto.randomUUID();let t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;let e=r=>t[r].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}var pj,ZM=N(()=>{pj="randomUUID"in crypto});function mj(t){let e="__accessorMetadata__"in t?Uo(t):t;return function(...r){if(r.push(e),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return hj.apply(this,r)}}function hj(t,e,r,n){Ep(t,e).cast=n}function gj(t){return(e,r)=>{Ep(e,t).cast=e[r]}}function jw(...t){if(t.length!==3||typeof t[1]!="string")return t.length===1&&fj.call(t[0])==="[object Function]"?mj(t[0]):t.length===1&&typeof t[0]=="string"?gj(t[0]):void 0}var fj,Cx=N(()=>{Sp();Cp();fj=Object.prototype.toString});function eA(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function wj(t,e,r){}function yj(t,e,r){}function vj(t,e){return bj.test(e)?"":e}function Sj(t,e){t=Wh.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=Wh.trim(t.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=Wh.trim(h.slice(0,g)),E=Wh.trim(h.slice(g+1));if(v){var M=e(i,s.length,v,E,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=t[o];if(a==="/"&&t[o+1]==="*"){var d=t.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
8
+ `);return c}setAtOrigin(e,r,n){let i=this.propertiesByName.get(e);if(Ip(i))return this._setAtOrigin(i,r,n)}isOverridden(e){let r=this.propertiesByName.get(e);return r!==void 0&&!!(r.flags&at.Overridden)}clearOrigin(e,r){let n=this.store,i=this.propertiesByName.get(e);if(!Ip(i))return;let o=n.isAtOrigin(e,r)&&!(i.flags&at.Overridden);n.delete(e,r),o&&i.notifyChange()}clearOverride(e){let r=this.propertiesByName.get(e);r&&r.flags&at.Overridden&&(r.flags&=~at.Overridden,r.notifyChange())}override(e,r){let n=this.propertiesByName.get(e);if(!lP(n,e,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:c}=o;if(IS.release(o),!s)return;r=c}n.flags|=at.Overridden,this._internalSet(n,r)}set(e,r){let n=this.propertiesByName.get(e);if(!lP(n,e,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:c,value:a}=s;if(IS.release(s),!c)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(e){this._origin=cw(e)}getDefaultOrigin(){return lw(this._origin)}notifyChange(e){let r=this.propertiesByName.get(e);r!==void 0&&r.notifyChange()}invalidate(e){let r=this.propertiesByName.get(e);r!==void 0&&r.invalidate()}commit(e){let r=this.propertiesByName.get(e);r!==void 0&&r.commit()}_internalSet(e,r){let n=this.lifecycle!==Sr.INITIALIZING?this._origin:lt.DEFAULTS;this._setAtOrigin(e,r,n)}_setAtOrigin(e,r,n){let i=this.store,o=e.propertyName;if(i.isAtOrigin(o,n)&&ym(r,i.get(o))&&~e.flags&at.Overridden)return;let s=i.isBelowOrigin(o,n)||i.isAtOrigin(o,n);s&&e.invalidate(),i.set(o,r,n),s&&e.commit(),gS(this.host,e)}_cast(e,r){let n=IS.acquire();return n.valid=!0,n.value=r,e&&(n.value=e.call(this.host,r,n)),n}},LS=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},IS=new Va(LS)});function kS(){return AB}var AB,dP,pP=N(()=>{(function(t){t[t.Ignore=0]="Ignore",t[t.Destroy=1]="Destroy",t[t.ThrowError=2]="ThrowError"})(dP||(dP={}))});function IB(t){t.length=0}var za,OS,NS=N(()=>{sw();za=class{constructor(e=50,r=50){this._pool=new Va(Array,void 0,IB,r,e)}acquire(){return this._pool.acquire()}release(e){this._pool.release(e)}prune(){this._pool.prune(0)}static acquire(){return OS.acquire()}static release(e){return OS.release(e)}static prune(){OS.prune()}},OS=new za(100)});var pw,fP=N(()=>{sw();pw=class extends Va{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...e){let r=super.acquire(...e);return this._set.delete(r),r}release(e){e&&!this._set.has(e)&&(super.release(e),this._set.add(e))}_dispose(e){this._set.delete(e),super._dispose(e)}}});function RS(t){fw.push(t),fw.length===1&&queueMicrotask(()=>{let e=fw.slice();fw.length=0;for(let r of e)r()})}var fw,mP=N(()=>{fw=[]});var wh,hP=N(()=>{wh=class{constructor(e,r=30){this.name=e,this._counter=0,this._samples=new Array(r)}push(e){e!=null&&(this._samples[++this._counter%this._samples.length]=e)}set(e){e!=null&&(this._samples[this._counter%this._samples.length]=e)}get median(){return this._samples.slice().sort((e,r)=>e-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((e,r)=>e+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var DS,$S,gP=N(()=>{(function(t){let e=(o,s,c,a)=>{let d=s,h=s,g=c>>>1,v=o[d-1];for(;h<=g;){h=d<<1,h<c&&a(o[h-1],o[h])<0&&++h;let E=o[h-1];if(a(E,v)<=0)break;o[d-1]=E,d=h}o[d-1]=v},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)e(o,h,c,a);let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,e(o,d,h,a)}}function*i(o,s,c,a){s===void 0&&(s=0),c===void 0&&(c=o.length),a===void 0&&(a=r);for(let h=c>>>1;h>s;h--)e(o,h,c,a),yield;let d=s+1;for(let h=c-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,e(o,d,h,a),yield}}t.sort=n,t.iterableSort=i})(DS||(DS={}));$S=DS});function wP(t){t.data.length>LB*t.length&&(t.data.length=Math.floor(t.length*kB))}var LB,kB,yh,yP=N(()=>{Kd();i2();gP();LB=1.5,kB=1.1,yh=class{constructor(e){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new wm,e&&(e.initialSize&&(this.data=new Array(e.initialSize)),e.allocator&&(this._allocator=e.allocator),e.deallocator!==void 0&&(this._deallocator=e.deallocator),e.shrink&&(this._shrink=()=>wP(this)))}toArray(){return this.data.slice(0,this.length)}filter(e){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];e(i)&&r.push(i)}return r}at(e){if((e=Math.trunc(e)||0)<0&&(e+=this._length),!(e<0||e>=this._length))return this.data[e]}includes(e,r){let n=this.data.indexOf(e,r);return n!==-1&&n<this.length}get length(){return this._length}set length(e){if(e>this._length){if(this._allocator){for(;this._length<e;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=e}else{if(this._deallocator)for(let r=e;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=e,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(e){this.data[this._length++]=e}pushArray(e,r=e.length){for(let n=0;n<r;n++)this.data[this._length++]=e[n]}fill(e,r){for(let n=0;n<r;n++)this.data[this._length++]=e}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let e=this.data[this._length];return++this._length,e}unshift(e){this.data.unshift(e),this._length++,wP(this)}pop(){if(this.length===0)return;let e=this.data[this.length-1];return this.length=this.length-1,this._shrink(),e}remove(e){let r=o2(this.data,e,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,e}removeUnordered(e){return this.removeUnorderedIndex(o2(this.data,e,this.length,this._hint))}removeUnorderedIndex(e){if(!(e>=this.length||e<0))return this.swapElements(e,this.length-1),this.pop()}removeUnorderedMany(e,r=e.length,n){this.length=TT(this.data,e,this.length,r,this._hint,n),this._shrink()}front(){if(this.length!==0)return this.data[0]}back(){if(this.length!==0)return this.data[this.length-1]}swapElements(e,r){if(e>=this.length||r>=this.length||e===r)return;let n=this.data[e];this.data[e]=this.data[r],this.data[r]=n}sort(e){$S.sort(this.data,0,this.length,e)}iterableSort(e){return $S.iterableSort(this.data,0,this.length,e)}some(e,r){for(let n=0;n<this.length;++n)if(e.call(r,this.data[n],n,this.data))return!0;return!1}find(e,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(e.call(r,n[o]))return n[o]}filterInPlace(e,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];e.call(r,o,i,this.data)&&(this.data[i]=this.data[n],this.data[n]=o,n++)}if(this._deallocator)for(let i=n;i<this._length;i++)this.data[i]=this._deallocator(this.data[i]);return this._length=n,this._shrink(),this}forAll(e,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)e.call(r,n[o],o,n)}forEach(e,r){this.data.slice(0,this.length).forEach(e,r)}map(e,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=e.call(r,this.data[i],i,this.data);return n}reduce(e,r){let n=r;for(let i=0;i<this.length;++i)n=e(n,this.data[i],i,this.data);return n}has(e){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===e)return!0;return!1}*[Symbol.iterator](){for(let e=0;e<this.length;e++)yield this.data[e]}}});function OB(t){return{setTimeout:(e,r)=>{let n=t.setTimeout(e,r);return yt(()=>t.clearTimeout(n))}}}var bP,vP=N(()=>{jn();bP=OB(globalThis)});function bh(t){return NB(t)||_P(t)}function NB(t){return t!=null&&typeof t=="object"&&"on"in t&&typeof t.on=="function"}function _P(t){return t!=null&&typeof t=="object"&&"addEventListener"in t&&typeof t.addEventListener=="function"}function Wa(t,e,r){if(!bh(t))throw new TypeError("target is not a Evented or EventTarget object");return _P(t)?RB(t,e,r):t.on(e,r)}function RB(t,e,r,n){if(Array.isArray(e)){let i=e.slice();for(let o of i)t.addEventListener(o,r,n);return yt(()=>{for(let o of i)t.removeEventListener(o,r,n)})}return t.addEventListener(e,r,n),yt(()=>t.removeEventListener(e,r,n))}function FS(t,e,r){if(!bh(t))throw new TypeError("target is not a Evented or EventTarget object");if("once"in t)return t.once(e,r);let n=Wa(t,e,i=>{n.remove(),r.call(t,i)});return n}var vh=N(()=>{jn()});function Sn(t="Aborted"){return new We("AbortError",t)}function DB(t,e="Aborted"){if(no(t))throw Sn(e)}function _h(t){return t instanceof AbortSignal?t:t?.signal??void 0}function no(t){let e=_h(t);return e!=null&&e.aborted}function US(t){if(!Sh(t))throw t}function li(t,e){let r=_h(t);if(r!=null){if(!r.aborted)return FS(r,"abort",()=>e());e()}}function xP(t,e){let r=_h(t);if(r!=null)return DB(r),FS(r,"abort",()=>e(Sn()))}function Sh(t){return t?.name==="AbortError"}function $B(t,e=void 0,r){let n=new AbortController;return li(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(e)},t);li(n,()=>{s&&(clearTimeout(s),o(Sn()))})})}function VS(t){return t&&typeof t.then=="function"}function SP(t){return VS(t)?t:Promise.resolve(t)}function EP(t,e=-1){let r,n,i,o,s=null,c=(...a)=>{if(r){n=a,o&&o.reject(Sn()),o=_n();let v=o.promise;if(s){let E=s;s=null,E.abort()}return v}if(i=o||_n(),o=null,e>0){let v=new AbortController;r=SP(t(...a,v.signal));let E=r;$B(e).then(()=>{r===E&&(o?v.abort():s=v)})}else r=1,r=SP(t(...a));let d=()=>{let v=n;n=i=r=s=null,v!=null&&c(...v)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return c}function _n(){let t,e,r=new Promise((i,o)=>{t=i,e=o}),n=i=>{t(i)};return n.resolve=i=>t(i),n.reject=i=>e(i),n.timeout=(i,o)=>bP.setTimeout(()=>n.reject(o),i),n.promise=r,n}var io=N(()=>{vP();Ln();vh();Vt();Il()});var CP=N(()=>{});function FB(){Eh!=null&&(cancelAnimationFrame(Eh),Eh=requestAnimationFrame(MP))}function gw(t){let e=new zS(t);return BS.push(e),hw.willDispatch||(hw.willDispatch=!0,RS(IP)),e}function UB(t=!1){Lp.forAll(e=>{e.removed=!0}),t&&AP()}function MP(){let t=performance.now();Eh=null,Eh=Lp.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(MP):null,hw.executeFrameTasks(t)}function VB(t){let e=t-TP;TP=t;let r=PP>0?PP:1e3/60,n=Math.max(0,e-r);xh.time=t,xh.frameDuration=r-n;for(let i=0;i<WS.length;i++){let o=performance.now(),s=WS[i];Lp.forAll(c=>{c.paused||c.removed||(i===0&&c.ticks++,c.phases[s]&&(xh.elapsedFrameTime=performance.now()-t,xh.deltaTime=c.ticks===0?0:e,c.phases[s]?.call(c,xh)))}),BB[i].push(performance.now()-o)}AP(),GB.push(performance.now()-t)}function AP(){Lp.forAll(t=>{t.removed&&mw.push(t)}),Lp.removeUnorderedMany(mw.data,mw.length),mw.clear()}function IP(){for(;BS.length;){let t=BS.shift();t.isActive&&t.callback()}hw.willDispatch=!1}function zB(t=1,e){let r=_n(),n=()=>{no(e)?r.reject(Sn()):t===0?r():(--t,RS(()=>n()))};return n(),r.promise}function WB(t){return zB(1,t)}async function LP(t){await WB(t),await new Promise(e=>requestAnimationFrame(()=>{t?.aborted||e()}))}var zS,TP,PP,xh,WS,BS,Lp,hw,Eh,mw,BB,GB,ww=N(()=>{mP();hP();yP();io();CP();zS=class{constructor(e){this.callback=e,this.isActive=!0}remove(){this.isActive=!1}},TP=0,PP=0,xh={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},WS=["prepare","preRender","render","postRender","update","finish"],BS=[],Lp=new yh;hw={frameTasks:Lp,willDispatch:!1,clearFrameTasks:UB,dispatch:IP,executeFrameTasks:VB,reschedule:FB};Eh=null;mw=new yh;BB=WS.map(t=>new wh(t)),GB=new wh("total")});function kP(t,e){if(!e)return t;for(let r of e)r!=null&&t.add(r);return t}function yw(t,e){let r=new Set;return kP(r,t),kP(r,e),r}var bw=N(()=>{});function vw(){return++jB}var jB,OP=N(()=>{jB=0});function qB(){}var kl,GS,NP,jS=N(()=>{lh();kl=class extends Bo{constructor(e){super(new GS(e)),this._observer&&NP.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&NP.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},GS=class{constructor(e){this._notify=e,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let e=this._invalidCount;if(e===1)return this._invalidCount=0,void this._notify();this._invalidCount=e>0?e-1:0}destroy(){this.destroyed=!0,this._notify=qB}},NP=new FinalizationRegistry(t=>{t.deref()?.destroy()})});function HS(t,e){let r=new kl(o),n=null,i=!1;function o(){if(!r||i)return;if(qS)return void HB(o);let c=n;r.clear(),qS=!0,i=!0,n=ro(r,t),i=!1,qS=!1,e(n,c),YB()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=ro(r,t),i=!1,yt(s)}function YS(t,e){let r=new kl(i),n=null;function i(){e(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=ro(r,t),n):null}return s(),yt(o)}function HB(t){_w.includes(t)||_w.unshift(t)}function YB(){for(;_w.length;)_w.pop()()}var qS,_w,ZS=N(()=>{jn();xs();jS();qS=!1,_w=[]});function Ew(t){Ba.delete(t),Ba.add(t),xw||(xw=gw(XB))}function ZB(t){if(t.removed)return;let e=t.oldValue,r=t.getValue();t.equals(e,r)||(t.oldValue=r,t.notify(r,e))}function RP(t){for(let e of Ba.values())e.target===t&&(e.removed=!0)}function XB(){let t=10;for(;xw&&t--;){xw=null;let e=JB(),r=Sw.acquire();for(let n of e){let i=n.uid;ZB(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Ba)n.removed&&(r.push(n),Ba.delete(n));for(let n of r)Th.pool.release(n);Sw.release(r),Sw.release(e),QB.forEach(n=>n())}}function JB(){let t=Sw.acquire();t.length=Ba.size;let e=0;for(let r of Ba)t[e]=r,++e;return Ba.clear(),t}function KB(t,e,r){let n=uS(t,e,r,(i,o,s)=>{let c,a,d=YS(()=>Ml(i,o),(h,g)=>{i.__accessor__?.lifecycle===Sr.DESTROYED||c&&c.uid!==a?n.remove():(c||(c=Th.acquireUntracked(h,s,g,i,o),a=c.uid),Ew(c))});return yt(()=>{d.remove(),c&&(c.uid!==a||c.removed||(c.removed=!0,Ew(c)),c=null),n=d=null})});return n}function eG(t,e,r){let n=uS(t,e,r,(i,o,s)=>{let c=!1;return HS(()=>Ml(i,o),(a,d)=>{i.__accessor__.lifecycle!==Sr.DESTROYED?c||(c=!0,ym(d,a)||s.call(i,a,d,o,i),c=!1):n.remove()})});return n}function DP(t,e,r,n=!1){return t.__accessor__&&t.__accessor__.lifecycle!==Sr.DESTROYED?n?eG(t,e,r):KB(t,e,r):yt()}function tG(t,e,r){let n,i,o=YS(t,(s,c)=>{n&&n.uid!==i?o.remove():(n||(n=Th.acquireTracked(s,e,c,r),i=n.uid),Ew(n))});return yt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Ew(n)),n=null),o=null})}function rG(t,e,r){let n=!1;return HS(t,(i,o)=>{n||(n=!0,r(o,i)||e(i,o),n=!1)})}function $P(t,e,r=!1,n=g0){return r?rG(t,e,n):tG(t,e,n)}var Ch,Th,Sw,Ba,xw,QB,XS=N(()=>{NS();jn();Mn();fP();ww();bw();OP();Al();ch();ZS();Fa();(function(t){t[t.Untracked=0]="Untracked",t[t.Tracked=1]="Tracked"})(Ch||(Ch={}));Th=class t{constructor(){this.uid=vw(),this.removed=!1,this.type=null,this.oldValue=null,this.callback=null,this.getValue=null,this.target=null,this.path=null,this.equals=null}static{this.pool=new pw(t)}static acquireUntracked(e,r,n,i,o){return this.pool.acquire(Ch.Untracked,e,r,n,i,o,ym)}static acquireTracked(e,r,n,i){return this.pool.acquire(Ch.Tracked,e,r,n,null,null,i)}notify(e,r){this.type===Ch.Untracked?this.callback.call(this.target,e,r,this.path,this.target):this.callback.call(null,e,r,void 0,void 0)}acquire(e,r,n,i,o,s,c){this.uid=vw(),this.removed=!1,this.type=e,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=c}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=vw(),this.removed=!0}},Sw=new za,Ba=new Set;QB=new Set});function nG(t){if(t==null)return{value:t};if(Array.isArray(t))return{type:[t[0]],value:null};switch(typeof t){case"object":return t.constructor?.__accessorMetadata__||t instanceof Date?{type:t.constructor,value:t}:t;case"boolean":return{type:Boolean,value:t};case"string":return{type:String,value:t};case"number":return{type:Number,value:t};case"function":return{type:t,value:null};default:return}}var FP,UP,Ga,JS,kn,kp=N(()=>{eP();iP();Vt();Il();mS();Al();ch();Cp();uP();fS();pP();XS();ci();qn();Ga=Symbol("Accessor-Handles"),JS=Symbol("Accessor-Initialized"),kn=class t{static{FP=Ga,UP=JS}static createSubclass(e={}){if(Array.isArray(e))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=e;delete e.declaredClass,delete e.properties,delete e.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Ua(s.prototype);for(let c in e){let a=e[c];s.prototype[c]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...v){if(o.prototype[c])return o.prototype[c].apply(this,v)};try{g=a.apply(this,d)}catch(v){throw this.inherited=h,v}return this.inherited=h,g}:e[c]}for(let c in r){let a=nG(r[c]);fe(a)(s.prototype,c)}return Et(n)(s)}static freeze(e){return e instanceof t?e.__accessor__.mutable=!1:Object.freeze(e),e}static isFrozen(e){return e instanceof t?!e.__accessor__.mutable:Object.isFrozen(e)}constructor(...e){if(this[FP]=null,this[UP]=!1,this.constructor===t)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new dw(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),e.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,e)??e[0]),kS()?.onInstanceConstruct(this)}postscript(){let e=this.__accessor__,r=e.ctorArgs;e.initialize(),r&&(this.set(r),e.ctorArgs=null),e.constructed(),this.initialize(),this[JS]=!0}initialize(){}[X0](){this[Ga]=mh(this[Ga])}destroy(){this.destroyed||(RP(this),this.__accessor__.destroy(),kS()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[JS]}get destroyed(){return this.__accessor__?.lifecycle===Sr.DESTROYED||!1}get destroying(){return this.__accessor__?.lifecycle===Sr.DESTROYING||!1}commitProperty(e){Wo(this,e)}hasOwnProperty(e){return this.__accessor__?this.__accessor__.has(e):Object.prototype.hasOwnProperty.call(this,e)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(e,r){return Pp(this,e,r),this}watch(e,r,n){return K8(nt.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://arcg.is/1vaqf42#watch",warnOnce:!0}),DP(this,e,r,n)}addHandles(e,r){if(this.destroyed){let n=Array.isArray(e)?e:[e];for(let i of n)i.remove();return}(this[Ga]??=new Mp).add(e,r)}removeHandles(e){this[Ga]?.remove(e)}removeAllHandles(){this[Ga]?.removeAll()}removeHandlesReference(e){this[Ga]?.removeReference(e)}hasHandles(e){return this[Ga]?.has(e)===!0}_override(e,r){r===void 0?this.__accessor__.clearOverride(e):this.__accessor__.override(e,r)}_clearOverride(e){return this.__accessor__.clearOverride(e)}_overrideIfSome(e,r){r==null?this.__accessor__.clearOverride(e):this.__accessor__.override(e,r)}_isOverridden(e){return this.__accessor__.isOverridden(e)}notifyChange(e){this.__accessor__.notifyChange(e)}_get(e){return this.__accessor__.internalGet(e)}_set(e,r){return this.__accessor__.internalSet(e,r),this}}});var Cw,QS,VP=N(()=>{Mn();Ll();Cw=class t{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(e){let r=new t;return this._values.forEach((n,i)=>{e&&e.has(i)||r.set(i,Ht(n.value),n.origin)}),r}get(e,r){r=this._normalizeOrigin(r);let n=this._values.get(e);return r==null||n?.origin===r?n?.value:void 0}originOf(e){return this._values.get(e)?.origin??lt.USER}keys(e){e=this._normalizeOrigin(e);let r=[...this._values.keys()];return e==null?r:r.filter(n=>this._values.get(n)?.origin===e)}set(e,r,n){if((n=this._normalizeOrigin(n))===lt.DEFAULTS){let i=this._values.get(e);if(i?.origin!=null&&i.origin>n)return}this._values.set(e,new QS(r,n))}delete(e,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(e)?.origin!==r||this._values.delete(e)}has(e,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(e)?.origin===r:this._values.has(e)}isAtOrigin(e,r){return r=this._normalizeOrigin(r),this.has(e,r)&&this.originOf(e)===r}isBelowOrigin(e,r){return r=this._normalizeOrigin(r),!this.has(e)||this.originOf(e)<r}forEach(e){this._values.forEach(({value:r},n)=>e(r,n))}_normalizeOrigin(e){if(e!=null)return e===lt.DEFAULTS?e:lt.USER}},QS=class{constructor(e,r){this.value=e,this.origin=r}}});function zP(t,e,r){e.keys().forEach(i=>{r.set(i,e.get(i),lt.DEFAULTS)});let n=t.metadata;Object.keys(n).forEach(i=>{t.internalGet(i)&&r.set(i,t.internalGet(i),lt.DEFAULTS)})}var WP=N(()=>{Ll()});function iG(t,e,r){if(!t?.read||t.read.enabled===!1||!t.read.source)return!1;let n=t.read.source;if(typeof n=="string"){if(n===e||n.includes(".")&&n.indexOf(e)===0&&dS(n,r))return!0}else for(let i of n)if(i===e||i.includes(".")&&i.indexOf(e)===0&&dS(i,r))return!0;return!1}function oG(t){return t&&(!t.read||t.read.enabled!==!1&&!t.read.source)}function sG(t,e,r,n,i){let o=nw(e[r],i);oG(o)&&(t[r]=!0);for(let s of Object.getOwnPropertyNames(e))o=nw(e[s],i),iG(o,r,n)&&(t[s]=!0)}function aG(t,e,r,n){let i=r.metadata,o=H8(i[e],n),s=o?.default;if(s===void 0)return;let c=typeof s=="function"?s.call(t,e,n):s;c!==void 0&&r.set(e,c)}function BP(t,e,r=cG){if(!e||typeof e!="object")return;let n=zo(t),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(e))sG(o,i,s,e,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let c=nw(i[s],r).read,a=c?.source,d;d=a&&typeof a=="string"?Ml(e,a):e[s],c?.reader&&(d=c.reader.call(t,d,e,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||aG(t,s,n,r)}n.setDefaultOrigin("user")}var cG,GP=N(()=>{Al();Fa();iw();cG={origin:"service"}});function lG(t,e,r,n,i){let o={};return e.write?.writer?.call(t,n,o,r,i),o}function uG(t,e,r,n,i,o){if(!n?.write)return!1;let s=Wo(t,r);if(!i&&n.write.overridePolicy){let c=n.write.overridePolicy.call(t,s,r,o??void 0);c!==void 0&&(i=c)}if(i||(i=n.write),!i||i.enabled===!1||i.layerContainerTypes&&o?.layerContainerType&&!i.layerContainerTypes.includes(o.layerContainerType))return!1;if((s===null&&!i.allowNull&&!i.writerEnsuresNonNull||s===void 0)&&i.isRequired){let c=new We("web-document-write:property-required",`Missing value for required property '${r}' on '${t.declaredClass}'`,{propertyName:r,target:t});return c&&o?.messages?o.messages.push(c):c&&!o&&nt.getLogger("esri.core.accessorSupport.write").error(c.name,c.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!e.store.multipleOriginsSupported||e.store.originOf(r)===lt.DEFAULTS)&&dG(t,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&e.store.multipleOriginsSupported&&e.store.originOf(r)<cw(o.origin))}function dG(t,e,r,n,i){let o=n.default;if(o===void 0)return!1;if(n.defaultEquals!=null)return n.defaultEquals(i);if(typeof o=="function"){if(Array.isArray(i)){let s=o.call(t,e,r??void 0);return m0(s,i)}return!1}return o===i}function jP(t,e,r){if(t&&typeof t.toJSON=="function"&&(!t.toJSON.isDefaultToJSON||!t.write))return xp(e,t.toJSON(r));let n=zo(t),i=n.metadata;for(let o in i){let s=Y8(i[o],r);if(!uG(t,n,o,s,void 0,r))continue;let c=Wo(t,o),a=lG(t,s,s.write&&typeof s.write.target=="string"?s.write.target:o,c,r);Object.keys(a).length>0&&(e=xp(e,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>xp(e,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:t,propName:o,oldOrigin:sP(n.store.originOf(o)),newOrigin:r.origin}))}return e}var qP=N(()=>{Kd();Ln();Vt();Al();Ll();Fa();iw()});function pG(t,e){if(!t)return null;if(t.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(t,e),r}var HP,Ph,ui,Ol=N(()=>{ai();kp();VP();WP();GP();Fa();qP();qn();HP=t=>{let e=class extends t{constructor(...r){super(...r);let n=zo(this),i=n.store,o=new Cw;n.store=o,zP(n,i,o)}read(r,n){BP(this,r,n)}write(r,n){return jP(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return pG.call(this,r,n)}};return e=ae([Et("esri.core.JSONSupport")],e),e.prototype.toJSON.isDefaultToJSON=!0,e};Ph=class extends HP(kn){};Ph=ae([Et("esri.core.JSONSupport")],Ph),function(t){function e(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}t.JSONSupportMixin=HP,t.isSerializable=e}(Ph||(Ph={}));ui=Ph});function Tw(t,e,r){let n,i;return e===void 0||Array.isArray(e)?(i=t,r=e,n=[void 0]):(i=e,n=Array.isArray(t)?t:[t]),(o,s)=>{let c=o.constructor.prototype;n.forEach(a=>{let d=Z0(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=c[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var KS=N(()=>{ci()});function fG(t){let e={};for(let r in t)e[t[r]]=r;return e}function YP(t){let e=[];for(let r in t)e.push(r);return e.sort(),e}function Nl(){return function(t,e){return new ex(t,{ignoreUnknown:!0,...e})}}var ex,tx=N(()=>{$o();ex=class{constructor(e,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=e,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=fG(e),this.apiValues=YP(this._apiToJSON),this.jsonValues=YP(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&ys(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(e){if(e==null)return null;if(this._apiToJSON.hasOwnProperty(e)){let r=this._apiToJSON[e];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?null:e}fromJSON(e){return e!=null&&this._jsonToAPI.hasOwnProperty(e)?this._jsonToAPI[e]:this._options.ignoreUnknown?void 0:e}}});var Mh,oo,Pw,Mw,Aw=N(()=>{Mh=class{constructor(e,r,n,i,o,s){this.semiMajorAxis=e,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let c=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*c,this.halfSemiMajorAxis=this.semiMajorAxis/2,this.halfCircumference=Math.PI*this.semiMajorAxis,this.metersPerDegree=this.halfCircumference/180,this.inverseFlattening=1/(1-this.flattening)-1,this.eccentricitySquared=s||2*this.flattening-this.flattening*this.flattening,this.meanRadiusSemiAxes=(2*this.semiMajorAxis+this.semiMinorAxis)/3}get radius(){return this.semiMajorAxis}},oo=new Mh(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Pw=new Mh(3396190,1/169.8944472236118,23e4,6e4,.111),Mw=new Mh(1737400,0,0,0,0)});function Iw(t){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(t)}function Op(t){let e=/^https?:\/\/(?:cdn|[a-z\d-]+\.maps)\.arcgis\.com/i,r=/^https?:\/\/(?:cdndev|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,n=/^https?:\/\/(?:cdnqa|[a-z\d-]+\.mapsqa)\.arcgis\.com/i;return e.test(t)?t=t.replace(e,"https://www.arcgis.com"):r.test(t)?t=t.replace(r,"https://devext.arcgis.com"):n.test(t)&&(t=t.replace(n,"https://qaext.arcgis.com")),t}var Ah=N(()=>{});function ZP(t){let e=new Uint8Array(t),r="";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return btoa(r)}var XP=N(()=>{});function xG(){let t=xn.path,e=t.slice(0,t.lastIndexOf("/")+1);return`${`${xn.scheme}://${xn.host}${xn.port!=null?`:${xn.port}`:""}`}${e}`}function Cs(t){if(!t)return null;let e={path:null,query:null},r=new an(t),n=t.indexOf("?");return r.query===null?e.path=t:(e.path=t.slice(0,n),e.query=ja(r.query)),r.fragment&&(e.hash=r.fragment,r.query===null&&(e.path=e.path.slice(0,e.path.length-(r.fragment.length+1)))),e}function ja(t){let e=t.split("&"),r={};for(let n of e){if(!n)continue;let i=n.indexOf("="),o,s;i<0?(o=decodeURIComponent(n),s=""):(o=decodeURIComponent(n.slice(0,i)),s=decodeURIComponent(n.slice(i+1)));let c=r[o];typeof c=="string"&&(c=r[o]=[c]),Array.isArray(c)?c.push(s):r[o]=s}return r}function Rl(t,e){return t?e&&typeof e=="function"?Object.keys(t).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(e(r,t[r]))).join("&"):Object.keys(t).map(r=>{let n=t[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=e?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>ui.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):ui.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function tM(t=!1){let e,r=Np.proxyUrl;if(typeof t=="string"){e=CG(t);let n=Dp(t);n&&(r=n.proxyUrl)}else e=!!t;if(!r)throw mG().warn(JP),new We("urlUtils:proxy-not-set",JP);return e&&rx()&&(r=Dw(r)),Cs(r)}function rM(t){let e=t.indexOf("?");return e!==-1?(Ih.path=t.slice(0,e),Ih.query=t.slice(e+1)):(Ih.path=t,Ih.query=null),Ih}function nM(t){return t=(t=oM(t=IG(t=rM(t).path),!0)).toLowerCase()}function iM(t){let e={proxyUrl:t.proxyUrl,urlPrefix:nM(t.urlPrefix)},r=Np.proxyRules,n=e.urlPrefix,i=r.length;for(let o=0;o<r.length;o++){let s=r[o].urlPrefix;if(n.indexOf(s)===0){if(n.length===s.length)return-1;i=o;break}s.indexOf(n)===0&&(i=o+1)}return r.splice(i,0,e),i}function Dp(t){let e=Np.proxyRules,r=nM(t);for(let n=0;n<e.length;n++)if(r.indexOf(e[n].urlPrefix)===0)return e[n]}function ix(t,e=Np.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(t)||typeof n=="string"&&t.startsWith(n);if(e){for(let n of e)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function cn(t,e,r=!1){if(!t||!e)return!1;let n=nx(t),i=nx(e);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function kw(t){if(typeof t=="string"){if(!qa(t))return!0;t=nx(t)}if(cn(t,xn))return!0;let e=Np.trustedServers||[];for(let r=0;r<e.length;r++){let n=EG(e[r]);for(let i=0;i<n.length;i++)if(cn(t,n[i]))return!0}return!1}function EG(t){return Lw[t]||(sx(t)||Ha(t)?Lw[t]=[new an(Ai(t))]:Lw[t]=[new an(`http://${t}`),new an(`https://${t}`)]),Lw[t]}function Ai(t,e=eM,r){return Ha(t)?r?.preserveProtocolRelative?t:xn.scheme==="http"&&xn.authority===ln(t).slice(2)?`http:${t}`:`https:${t}`:sx(t)?t:Ow(t[0]==="/"?AG(e):e,t)}function ox(t,e=eM,r){if(t==null||!qa(t))return t;let n=Es(t),i=n.toLowerCase(),o=Es(e).toLowerCase().replace(/\/+$/,""),s=r?Es(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return t;let c=(g,v,E)=>(E=g.indexOf(v,E))===-1?g.length:E,a=c(i,"/",i.indexOf("//")+2),d=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(d=a+1,a!==i.length);)a=c(i,"/",a+1);if(d===-1||s&&d<s.length)return t;t=n.slice(d);let h=o.slice(d-1).replaceAll(/[^/]+/g,"").length;if(h>0)for(let g=0;g<h;g++)t=`../${t}`;else t=`./${t}`;return t}function Es(t){return t=OG(t=kG(t=LG(t=Ai(t=t.trim()))))}function Ow(...t){let e=t.filter(MT);if(!e?.length)return;let r=[];if(qa(e[0])){let i=e[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),PG(e[0])&&(r[0]+="/"),e[0]=i.slice(o+2))}else e[0][0]==="/"&&r.push("");let n=e.reduce((i,o)=>o?i.concat(o.split("/")):i,[]);for(let i=0;i<n.length;i++){let o=n[i];o===".."&&r.length>0&&r[r.length-1]!==".."?r.pop():(!o&&i===n.length-1||o&&(o!=="."||r.length===0))&&r.push(o)}return r.join("/")}function ln(t,e=!1){if(t==null||Nw(t)||$p(t))return null;let r=t.indexOf("://");if(r===-1&&Ha(t))r=2;else{if(r===-1)return null;r+=3}let n=t.indexOf("/",r);return n!==-1&&(t=t.slice(0,n)),e&&(t=oM(t,!0)),t}function qa(t){return Ha(t)||sx(t)}function Nw(t){return t!=null&&t.slice(0,5)==="blob:"}function $p(t){return t!=null&&t.slice(0,5)==="data:"}function Rw(t){return ZP(t).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Ha(t){return t!=null&&t[0]==="/"&&t[1]==="/"}function sx(t){return t!=null&&QP.test(t)}function CG(t){return t!=null&&hG.test(t)||xn.scheme==="https"&&Ha(t)}function TG(t){return t!=null&&KP.test(t)||xn.scheme==="http"&&Ha(t)}function PG(t){return t!=null&&gG.test(t)}function Dw(t){return Ha(t)?`https:${t}`:t.replace(KP,"https:")}function MG(){return xn.scheme==="http"}function rx(){return xn.scheme==="https"}function oM(t,e=!1){return Ha(t)?t.slice(2):(t=t.replace(QP,""),e&&t.length>1&&t[0]==="/"&&t[1]==="/"&&(t=t.slice(2)),t)}function AG(t){let e=t.indexOf("//"),r=t.indexOf("/",e+2);return r===-1?t:t.slice(0,r)}function IG(t){return t.endsWith("/")?t:`${t}/`}function LG(t){if(/^https?:\/\//i.test(t)){let e=rM(t);t=(t=e.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),e.query&&(t+=`?${e.query}`)}return t}function kG(t){return t.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function OG(t){let e=Np.httpsDomains;if(!TG(t))return t;let r=t.indexOf("/",7),n;if(n=r===-1?t:t.slice(0,r),n=n.toLowerCase().slice(7),wG.test(n)){if(!n.endsWith(":80"))return t;n=n.slice(0,-3),t=t.replace(":80","")}return MG()&&n===xn.authority&&!yG.test(t)||(rx()&&n===xn.authority||e&&e.some(i=>n===i||n.endsWith(`.${i}`))||rx()&&!Dp(t))&&(t=Dw(t)),t}function $w(t,e,r){if(!(e&&r&&t&&qa(t)))return t;let n=t.indexOf("//"),i=t.indexOf("/",n+2),o=t.indexOf(":",n+2),s=Math.min(i<0?t.length:i,o<0?t.length:o);return t.slice(n+2,s).toLowerCase()!==e.toLowerCase()?t:`${t.slice(0,n+2)}${r}${t.slice(s)}`}function nx(t){return typeof t=="string"?new an(Ai(t)):(t.scheme||(t.scheme=xn.scheme),t)}function Fp(t,e){if(!e)return t;let r=Cs(t),n=r.query||{};for(let[o,s]of Object.entries(e))s!=null&&(n[o]=s);let i=Rl(n);return i?`${r.path}?${i}`:r.path}function ax(t){if(t==null)return null;let e=t.match(NG);return e?{path:e[1],extension:e[2]}:{path:t,extension:null}}var mG,Np,JP,QP,KP,hG,gG,wG,yG,bG,vG,an,Lw,_G,xn,SG,eM,Rp,Ih,NG,Go=N(()=>{$a();Kd();Ln();Ol();Vt();Ah();XP();mG=()=>nt.getLogger("esri.core.urlUtils"),Np=bt.request,JP="esri/config: esriConfig.request.proxyUrl is not set.",QP=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,KP=/^\s*http:/i,hG=/^\s*https:/i,gG=/^\s*file:/i,wG=/:\d+$/,yG=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,bG=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),vG=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),an=class{constructor(e=""){this.uri=e,this.scheme=null,this.authority=null,this.path=null,this.query=null,this.fragment=null,this.user=null,this.password=null,this.host=null,this.port=null;let r=this.uri.match(bG);this.scheme=r[2]||(r[1]?"":null),this.authority=r[4]||(r[3]?"":null),this.path=r[5],this.query=r[7]||(r[6]?"":null),this.fragment=r[9]||(r[8]?"":null),this.authority!=null&&(r=this.authority.match(vG),this.user=r[3]||null,this.password=r[4]||null,this.host=r[6]||r[7],this.port=r[9]||null)}toString(){return this.uri}},Lw={},_G=new an(bt.applicationUrl),xn=_G,SG=xG(),eM=SG,Rp=()=>xn;Ih={path:"",query:""};NG=/([^.]*)\.([^/]*)$/});function sM(t){Zt=t}var RG,Zt,DG,Lh=N(()=>{St();Go();V0();V0();Symbol.dispose??=Symbol("Symbol.dispose"),Symbol.asyncDispose??=Symbol("Symbol.asyncDispose");RG="4.33",DG=RG;DG=`4.33.0-next.${U0}`;pe("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),pe("host-webworker")});function aM(t,e){let r=e?.url?.path;if(t&&r&&(t=Ai(t,r,{preserveProtocolRelative:!0}),e.portalItem&&e.readResourcePaths)){let n=ox(t,e.portalItem.itemUrl);n!=null&&FG.test(n)&&e.readResourcePaths.push(e.portalItem.resourceFromPath(n).path)}return(t=cx(t,e?.portal))&&Fw.test(t)?dM(t):t}function cM(t,e,r=kh.YES){if((t=t&&Fw.test(t)?pM(t):t)==null)return t;!qa(t)&&e?.blockedRelativeUrls&&e.blockedRelativeUrls.push(t);let n=Ai(t);if(e){let i=e.verifyItemRelativeUrls?.rootPath||e.url?.path;if(i){let o=cx(i,e.portal),s=cx(n,e.portal);n=ox(s,o,o),n!=null&&n!==s&&n!==t&&e.verifyItemRelativeUrls&&e.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=uM(n,e?.portal),qa(n)&&(n=Es(n)),e?.resources&&e?.portalItem&&!qa(n)&&!$p(n)&&r===kh.YES&&e.resources.toKeep.push({resource:e.portalItem.resourceFromPath(n),compress:!1}),n}function $G(t,e,r){return aM(t,r)}function lM(t,e,r,n){let i=cM(t,n);i!==void 0&&(e[r]=i)}function UG(t){return(t?.match(Fw)??null)?.[1]??null}function VG(t){let e=t?.match(Fw)??null;if(e==null)return null;let r=e[2],n=r.lastIndexOf("/");if(n===-1){let{path:s,extension:c}=ax(r);return{prefix:null,filename:s,extension:c}}let{path:i,extension:o}=ax(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:o}}function uM(t,e){return e&&!e.isPortal&&e.urlKey&&e.customBaseUrl?$w(t,`${e.urlKey}.${e.customBaseUrl}`,e.portalHostname):t}function cx(t,e){if(!e||e.isPortal||!e.urlKey||!e.customBaseUrl)return t;let r=`${e.urlKey}.${e.customBaseUrl}`,n=Rp();return cn(n,`${n.scheme}://${r}`)?$w(t,e.portalHostname,r):$w(t,r,e.portalHostname)}function dM(t){if(!t)return t||null;let e=t;return e&&Zt&&!Zt.findCredential(e)&&(e=Op(e),e=e.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),e=e.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),e=e.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),e}function pM(t){if(!t)return t||null;let e=t;return e=e.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),e=e.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),e=e.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),e&&Zt&&!Zt.findCredential(e)&&(e=Op(e)),e}var Fw,FG,kh,Fpe,fM=N(()=>{Lh();Go();Ah();Fw=/\/items\/([^/]+)\/resources\/(.*)/,FG=/^\.\/resources\//;(function(t){t[t.YES=0]="YES",t[t.NO=1]="NO"})(kh||(kh={}));Fpe=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return kh},ensureMainOnlineDomain:uM,fromCDNUrl:pM,fromJSON:aM,itemIdFromResourceUrl:UG,prefixAndFilenameFromResourceUrl:VG,read:$G,toCDNUrl:dM,toJSON:cM,write:lM},Symbol.toStringTag,{value:"Module"}))});function lx(t){let e=ln(t,!0);return!!e&&(e=e.toLowerCase(),e.endsWith(".arcgis.com")&&(e.startsWith("services")||e.startsWith("tiles")||e.startsWith("features")||/^[a-z\d-]+\.svcs(?:qa|dev)?\./.test(e)))}var zG,mM,Gpe,jpe,hM=N(()=>{Go();fM();zG={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},mM=Object.values(zG),Gpe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${mM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),jpe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${mM.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i")});function BG(t){let e=ln(t,!0);return!!e&&e.endsWith(".arcgis.com")&&!WG.has(e)&&!t.endsWith("/sharing/rest/generateToken")}function gM(t,e){return!(!e&&!bt.apiKey||!BG(t))}var WG,wM=N(()=>{$a();Go();WG=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function bM(t,e,r=!1,n){return new Promise((i,o)=>{if(no(n))return void o(yM());let s=()=>{d(),o(new Error(`Unable to load ${e}`))},c=()=>{let h=t;d(),i(h)},a=()=>{if(!t)return;let h=t;d(),h.src="",o(yM())},d=()=>{pe("esri-image-decode")||(t.removeEventListener("error",s),t.removeEventListener("load",c)),s=null,c=null,t=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(e)};n?.addEventListener("abort",a),pe("esri-image-decode")?t.decode().then(c,s):(t.addEventListener("error",s),t.addEventListener("load",c))})}function yM(){try{return new DOMException("Aborted","AbortError")}catch{let t=new Error;return t.name="AbortError",t}}function vM(){return new Error(GG)}function _M(t){bt.request.crossOriginNoCorsDomains||(bt.request.crossOriginNoCorsDomains={});let e=bt.request.crossOriginNoCorsDomains;for(let r of t)r=r.toLowerCase(),/^https?:\/\//.test(r)?e[ln(r)??""]=0:(e[ln("http://"+r)??""]=0,e[ln("https://"+r)??""]=0)}function SM(t){let e=bt.request.crossOriginNoCorsDomains;if(e){let r=ln(t);if(r)return r=r.toLowerCase(),!cn(r,Rp())&&e[r]<Date.now()-36e5}return!1}async function xM(t){let e=Cs(t);t=e.path,e.query?.f==="json"&&(t+="?f=json");try{await fetch(t,{mode:"no-cors",credentials:"include"})}catch{}let r=bt.request.crossOriginNoCorsDomains,n=ln(t);r&&n&&(r[n.toLowerCase()]=Date.now())}var GG,EM=N(()=>{$a();St();io();Go();GG="Timeout exceeded"});var CM={};Lo(CM,{execute:()=>jG});function jG(t,e){let r=e.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",e.responseType=r;let n=e.signal;return delete e.signal,globalThis.invokeStaticMessage("request",{url:t,options:e},{signal:n}).then(async i=>{let o,s,c,a,d;if(i.data)if(i.data instanceof ArrayBuffer){if(!(r!=="json"&&r!=="text"&&r!=="blob"||(o=new Blob([i.data]),r!=="json"&&r!=="text"||(a=await o.text(),r!=="json")))){try{s=JSON.parse(a||null)}catch(h){let g={...h,url:t,requestOptions:e};throw new We("request:server",h.message,g)}if(s.error){let h={...s.error,url:t,requestOptions:e};throw new We("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,c=await fetch(i.data.url,i.data),i.httpStatus=c.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=c;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:e,ssl:i.ssl,url:t}})}var TM=N(()=>{Ln()});var Ts,ux=N(()=>{ai();kp();jn();qn();Ts=class t{constructor(){this._emitter=new t.EventEmitter(this)}emit(e,r){return this._emitter.emit(e,r)}on(e,r){return this._emitter.on(e,r)}once(e,r){return this._emitter.once(e,r)}hasEventListener(e){return this._emitter.hasEventListener(e)}};(function(t){class e{constructor(i=null){this._target=i,this._listenersMap=null}clear(){this._listenersMap?.clear(),this._listenersMap=null}destroy(){this.clear()}emit(i,o){let s=this._listenersMap?.get(i);if(!s)return!1;let c=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(c,o):a=!0}return a&&(s=s.filter(d=>!("deref"in d)||d.deref()!=null),this._listenersMap.set(i,s)),s.length>0}on(i,o){if(Array.isArray(i)){let c=i.map(a=>this.on(a,o));return Pl(c)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??=new Map;let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),yt(()=>{let c=this._listenersMap?.get(i),a=c?.indexOf(o)??-1;a>=0&&c.splice(a,1)})}once(i,o){let s=this.on(i,c=>{s.remove(),("deref"in o?o.deref():o)?.call(null,c)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}t.EventEmitter=e,t.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new e}destroy(){this._emitter.clear()}emit(o,s){return this._emitter.emit(o,s)}on(o,s){return this._emitter.on(o,s)}once(o,s){return this._emitter.once(o,s)}hasEventListener(o){return this._emitter.hasEventListener(o)}};return i=ae([Et("esri.core.Evented")],i),i};let r=class extends kn{constructor(){super(...arguments),this._emitter=new Ts.EventEmitter(this)}destroy(){this._emitter.clear()}emit(n,i){return this._emitter.emit(n,i)}on(n,i){return this._emitter.on(n,i)}once(n,i){return this._emitter.once(n,i)}hasEventListener(n){return this._emitter.hasEventListener(n)}};r=ae([Et("esri.core.Evented.EventedAccessor")],r),t.EventedAccessor=r})(Ts)});var Up,Ya,Dl,PM,Uw=N(()=>{Up="system",Ya="unknown",Dl="UTC",PM=Intl.DateTimeFormat().resolvedOptions().timeZone});var dx,MM=N(()=>{dx=new Map([["AUS Central Standard Time","Australia/Darwin"],["AUS Eastern Standard Time","Australia/Sydney"],["Afghanistan Standard Time","Asia/Kabul"],["Alaskan Standard Time","America/Anchorage"],["Aleutian Standard Time","America/Adak"],["Altai Standard Time","Asia/Barnaul"],["Arab Standard Time","Asia/Riyadh"],["Arabian Standard Time","Asia/Dubai"],["Arabic Standard Time","Asia/Baghdad"],["Argentina Standard Time","America/Buenos_Aires"],["Astrakhan Standard Time","Europe/Astrakhan"],["Atlantic Standard Time","America/Halifax"],["Aus Central W. Standard Time","Australia/Eucla"],["Azerbaijan Standard Time","Asia/Baku"],["Azores Standard Time","Atlantic/Azores"],["Bahia Standard Time","America/Bahia"],["Bangladesh Standard Time","Asia/Dhaka"],["Belarus Standard Time","Europe/Minsk"],["Bougainville Standard Time","Pacific/Bougainville"],["Canada Central Standard Time","America/Regina"],["Cape Verde Standard Time","Atlantic/Cape_Verde"],["Caucasus Standard Time","Asia/Yerevan"],["Cen. Australia Standard Time","Australia/Adelaide"],["Central America Standard Time","America/Guatemala"],["Central Asia Standard Time","Asia/Bishkek"],["Central Brazilian Standard Time","America/Cuiaba"],["Central Europe Standard Time","Europe/Budapest"],["Central European Standard Time","Europe/Warsaw"],["Central Pacific Standard Time","Pacific/Guadalcanal"],["Central Standard Time","America/Chicago"],["Central Standard Time (Mexico)","America/Mexico_City"],["Chatham Islands Standard Time","Pacific/Chatham"],["China Standard Time","Asia/Shanghai"],["Cuba Standard Time","America/Havana"],["Dateline Standard Time","Etc/GMT+12"],["E. Africa Standard Time","Africa/Nairobi"],["E. Australia Standard Time","Australia/Brisbane"],["E. Europe Standard Time","Europe/Chisinau"],["E. South America Standard Time","America/Sao_Paulo"],["Easter Island Standard Time","Pacific/Easter"],["Eastern Standard Time","America/New_York"],["Eastern Standard Time (Mexico)","America/Cancun"],["Egypt Standard Time","Africa/Cairo"],["Ekaterinburg Standard Time","Asia/Yekaterinburg"],["FLE Standard Time","Europe/Kiev"],["Fiji Standard Time","Pacific/Fiji"],["GMT Standard Time","Europe/London"],["GTB Standard Time","Europe/Bucharest"],["Georgian Standard Time","Asia/Tbilisi"],["Greenland Standard Time","America/Godthab"],["Greenwich Standard Time","Atlantic/Reykjavik"],["Haiti Standard Time","America/Port-au-Prince"],["Hawaiian Standard Time","Pacific/Honolulu"],["India Standard Time","Asia/Calcutta"],["Iran Standard Time","Asia/Tehran"],["Israel Standard Time","Asia/Jerusalem"],["Jordan Standard Time","Asia/Amman"],["Kaliningrad Standard Time","Europe/Kaliningrad"],["Korea Standard Time","Asia/Seoul"],["Libya Standard Time","Africa/Tripoli"],["Line Islands Standard Time","Pacific/Kiritimati"],["Lord Howe Standard Time","Australia/Lord_Howe"],["Magadan Standard Time","Asia/Magadan"],["Magallanes Standard Time","America/Punta_Arenas"],["Marquesas Standard Time","Pacific/Marquesas"],["Mauritius Standard Time","Indian/Mauritius"],["Middle East Standard Time","Asia/Beirut"],["Montevideo Standard Time","America/Montevideo"],["Morocco Standard Time","Africa/Casablanca"],["Mountain Standard Time","America/Denver"],["Mountain Standard Time (Mexico)","America/Mazatlan"],["Myanmar Standard Time","Asia/Rangoon"],["N. Central Asia Standard Time","Asia/Novosibirsk"],["Namibia Standard Time","Africa/Windhoek"],["Nepal Standard Time","Asia/Katmandu"],["New Zealand Standard Time","Pacific/Auckland"],["Newfoundland Standard Time","America/St_Johns"],["Norfolk Standard Time","Pacific/Norfolk"],["North Asia East Standard Time","Asia/Irkutsk"],["North Asia Standard Time","Asia/Krasnoyarsk"],["North Korea Standard Time","Asia/Pyongyang"],["Omsk Standard Time","Asia/Omsk"],["Pacific SA Standard Time","America/Santiago"],["Pacific Standard Time","America/Los_Angeles"],["Pacific Standard Time (Mexico)","America/Tijuana"],["Pakistan Standard Time","Asia/Karachi"],["Paraguay Standard Time","America/Asuncion"],["Qyzylorda Standard Time","Asia/Qyzylorda"],["Romance Standard Time","Europe/Paris"],["Russia Time Zone 10","Asia/Srednekolymsk"],["Russia Time Zone 11","Asia/Kamchatka"],["Russia Time Zone 3","Europe/Samara"],["Russian Standard Time","Europe/Moscow"],["SA Eastern Standard Time","America/Cayenne"],["SA Pacific Standard Time","America/Bogota"],["SA Western Standard Time","America/La_Paz"],["SE Asia Standard Time","Asia/Bangkok"],["Saint Pierre Standard Time","America/Miquelon"],["Sakhalin Standard Time","Asia/Sakhalin"],["Samoa Standard Time","Pacific/Apia"],["Sao Tome Standard Time","Africa/Sao_Tome"],["Saratov Standard Time","Europe/Saratov"],["Singapore Standard Time","Asia/Singapore"],["South Africa Standard Time","Africa/Johannesburg"],["South Sudan Standard Time","Africa/Juba"],["Sri Lanka Standard Time","Asia/Colombo"],["Sudan Standard Time","Africa/Khartoum"],["Syria Standard Time","Asia/Damascus"],["Taipei Standard Time","Asia/Taipei"],["Tasmania Standard Time","Australia/Hobart"],["Tocantins Standard Time","America/Araguaina"],["Tokyo Standard Time","Asia/Tokyo"],["Tomsk Standard Time","Asia/Tomsk"],["Tonga Standard Time","Pacific/Tongatapu"],["Transbaikal Standard Time","Asia/Chita"],["Turkey Standard Time","Europe/Istanbul"],["Turks And Caicos Standard Time","America/Grand_Turk"],["US Eastern Standard Time","America/Indianapolis"],["US Mountain Standard Time","America/Phoenix"],["UTC","Etc/GMT"],["UTC+01","Etc/GMT-1"],["UTC+02","Etc/GMT-2"],["UTC+03","Etc/GMT-3"],["UTC+04","Etc/GMT-4"],["UTC+05","Etc/GMT-5"],["UTC+06","Etc/GMT-6"],["UTC+07","Etc/GMT-7"],["UTC+08","Etc/GMT-8"],["UTC+09","Etc/GMT-9"],["UTC+10","Etc/GMT-10"],["UTC+11","Etc/GMT-11"],["UTC+12","Etc/GMT-12"],["UTC+13","Etc/GMT-13"],["UTC+14","Etc/GMT-14"],["UTC-01","Etc/GMT+1"],["UTC-02","Etc/GMT+2"],["UTC-03","Etc/GMT+3"],["UTC-04","Etc/GMT+4"],["UTC-05","Etc/GMT+5"],["UTC-06","Etc/GMT+6"],["UTC-07","Etc/GMT+7"],["UTC-08","Etc/GMT+8"],["UTC-09","Etc/GMT+9"],["UTC-10","Etc/GMT+10"],["UTC-11","Etc/GMT+11"],["UTC-12","Etc/GMT+12"],["Ulaanbaatar Standard Time","Asia/Ulaanbaatar"],["Venezuela Standard Time","America/Caracas"],["Vladivostok Standard Time","Asia/Vladivostok"],["Volgograd Standard Time","Europe/Volgograd"],["W. Australia Standard Time","Australia/Perth"],["W. Central Africa Standard Time","Africa/Lagos"],["W. Europe Standard Time","Europe/Berlin"],["W. Mongolia Standard Time","Asia/Hovd"],["West Asia Standard Time","Asia/Tashkent"],["West Bank Standard Time","Asia/Hebron"],["West Pacific Standard Time","Pacific/Port_Moresby"],["Yakutsk Standard Time","Asia/Yakutsk"],["Yukon Standard Time","America/Whitehorse"]])});function qG(t){return"timeZoneIANA"in t}function HG(t){return t.startsWith("UTC")}function Vw(t,e=Up){return t?qG(t)?t.timeZoneIANA:YG(t,e):e}function YG(t,e=Up){if(!t||!dx.has(t.timeZone))return e;let r=dx.get(t.timeZone);return HG(t.timeZone)||t.respectsDaylightSaving?r:ZG(r)}function ZG(t){let e=Te.local().setZone(t),r=Math.min(e.set({month:1,day:1}).offset,e.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${xt.instance(-r).formatOffset(0,"narrow")}`}var px=N(()=>{Uw();MM();In()});function KG(t){let e=fx.get(t);if(!e){let r=si(),n=JG[r]||r,i=ej(t.timeZone??Up),o={...t,timeZone:i};e=new Intl.DateTimeFormat(n,o),fx.set(t,e)}return e}function Vp(t,e=QG){return KG(e).format(t)}function ej(t){switch(t){case Up:return PM;case Ya:return Dl;default:return t}}var jo,Oh,Nh,Rh,Za,$l,AM,Dh,$h,XG,_fe,JG,fx,QG,mx=N(()=>{tx();Ra();Uw();px();In();jo={year:"numeric",month:"numeric",day:"numeric"},Oh={year:"numeric",month:"long",day:"numeric"},Nh={year:"numeric",month:"short",day:"numeric"},Rh={year:"numeric",month:"long",weekday:"long",day:"numeric"},Za={hour:"numeric",minute:"numeric"},$l={...Za,second:"numeric"},AM={hourCycle:"h23"},Dh={...Za,...AM},$h={...$l,...AM},XG={"short-date":jo,"short-date-short-time":{...jo,...Za},"short-date-short-time-24":{...jo,...Dh},"short-date-long-time":{...jo,...$l},"short-date-long-time-24":{...jo,...$h},"short-date-le":jo,"short-date-le-short-time":{...jo,...Za},"short-date-le-short-time-24":{...jo,...Dh},"short-date-le-long-time":{...jo,...$l},"short-date-le-long-time-24":{...jo,...$h},"long-month-day-year":Oh,"long-month-day-year-short-time":{...Oh,...Za},"long-month-day-year-short-time-24":{...Oh,...Dh},"long-month-day-year-long-time":{...Oh,...$l},"long-month-day-year-long-time-24":{...Oh,...$h},"day-short-month-year":Nh,"day-short-month-year-short-time":{...Nh,...Za},"day-short-month-year-short-time-24":{...Nh,...Dh},"day-short-month-year-long-time":{...Nh,...$l},"day-short-month-year-long-time-24":{...Nh,...$h},"long-date":Rh,"long-date-short-time":{...Rh,...Za},"long-date-short-time-24":{...Rh,...Dh},"long-date-long-time":{...Rh,...$l},"long-date-long-time-24":{...Rh,...$h},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Za,"long-time":$l},_fe=Nl()({shortDate:"short-date",shortDateShortTime:"short-date-short-time",shortDateShortTime24:"short-date-short-time-24",shortDateLongTime:"short-date-long-time",shortDateLongTime24:"short-date-long-time-24",shortDateLE:"short-date-le",shortDateLEShortTime:"short-date-le-short-time",shortDateLEShortTime24:"short-date-le-short-time-24",shortDateLELongTime:"short-date-le-long-time",shortDateLELongTime24:"short-date-le-long-time-24",longMonthDayYear:"long-month-day-year",longMonthDayYearShortTime:"long-month-day-year-short-time",longMonthDayYearShortTime24:"long-month-day-year-short-time-24",longMonthDayYearLongTime:"long-month-day-year-long-time",longMonthDayYearLongTime24:"long-month-day-year-long-time-24",dayShortMonthYear:"day-short-month-year",dayShortMonthYearShortTime:"day-short-month-year-short-time",dayShortMonthYearShortTime24:"day-short-month-year-short-time-24",dayShortMonthYearLongTime:"day-short-month-year-long-time",dayShortMonthYearLongTime24:"day-short-month-year-long-time-24",longDate:"long-date",longDateShortTime:"long-date-short-time",longDateShortTime24:"long-date-short-time-24",longDateLongTime:"long-date-long-time",longDateLongTime24:"long-date-long-time-24",longMonthYear:"long-month-year",shortMonthYear:"short-month-year",year:"year"}),JG={ar:"ar-u-nu-latn-ca-gregory"},fx=new WeakMap,QG=XG["short-date-short-time"];yp(()=>{fx=new WeakMap})});function rj(t){let e=t||IM;if(!zw.has(e)){let r=si(),n=tj[si()]||r;zw.set(e,new Intl.NumberFormat(n,t))}return zw.get(e)}function zp(t,e){return Object.is(t,-0)&&(t=0),rj(e).format(t)}var tj,zw,IM,hx=N(()=>{Ra();tj={ar:"ar-u-nu-latn"},zw=new WeakMap,IM={};yp(()=>{zw=new WeakMap,IM={}})});function gx(t,e,r={}){let{format:n={}}=r;return Fo(t,i=>nj(i,e,n))}function nj(t,e,r){let n,i,o=t.indexOf(":");if(o===-1?n=t.trim():(n=t.slice(0,o).trim(),i=t.slice(o+1).trim()),!n)return"";let s=Ci(n,e);if(s==null)return"";let c=(i?r?.[i]:null)??r?.[n];return c?ij(s,c):i?oj(s,i):wx(s)}function ij(t,e){switch(e.type){case"date":return Vp(t,e.intlOptions);case"number":return zp(t,e.intlOptions);default:return LM().warn("missing format descriptor for key {key}"),wx(t)}}function oj(t,e){switch(e.toLowerCase()){case"dateformat":return Vp(t);case"numberformat":return zp(t);default:return LM().warn(`inline format is unsupported since 4.12: ${e}`),/^(dateformat|datestring)/i.test(e)?Vp(t):/^numberformat/i.test(e)?zp(t):wx(t)}}function wx(t){switch(typeof t){case"string":return t;case"number":return zp(t);case"boolean":return""+t;default:return t instanceof Date?Vp(t):""}}var LM,yx=N(()=>{Vt();$o();xa();mx();hx();LM=()=>nt.getLogger("esri.intl.substitute")});function sj(t){return t in NM}function kM(t){if(sj(t)){let e=NM[t];return e===!0?t:e}return null}function OM(t){for(let e of Wp.keys())DM(t.pattern,e)&&Wp.delete(e)}function RM(t){return Fh.includes(t)||(OM(t),Fh.unshift(t)),yt(()=>{let e=Fh.indexOf(t);e>-1&&(Fh.splice(e,1),OM(t))})}async function bx(t){let e=si();Wp.has(t)||Wp.set(t,aj(t,e));let r=Wp.get(t);return r&&await cj.add(r),r}function vx(t){let e=c8(t);return e?kM(t)??kM(e.language):null}async function aj(t,e){let r=[];for(let n of Fh)if(DM(n.pattern,t))try{return await n.fetchMessageBundle(t,e)}catch(i){r.push(i)}throw r.length?new We("intl:message-bundle-error",`Errors occurred while loading "${t}"`,{errors:r}):new We("intl:no-message-bundle-loader",`No loader found for message bundle "${t}"`)}function DM(t,e){return typeof t=="string"?e.startsWith(t):t.test(e)}var NM,Fh,Wp,cj,Uh=N(()=>{Ln();jn();io();Ra();NM={ar:!0,bg:!0,bs:!0,ca:!0,cs:!0,da:!0,de:!0,el:!0,en:!0,es:!0,et:!0,fi:!0,fr:!0,he:!0,hr:!0,hu:!0,id:!0,it:!0,ja:!0,ko:!0,lt:!0,lv:!0,nb:"no",nl:!0,no:!0,pl:!0,pt:"pt-BR","pt-BR":!0,"pt-PT":!0,ro:!0,ru:!0,sk:!0,sl:!0,sr:!0,sv:!0,th:!0,tr:!0,uk:!0,vi:!0,zh:"zh-CN","zh-CN":!0,"zh-HK":!0,"zh-TW":!0};Fh=[],Wp=new Map;yp(()=>{Wp.clear()});cj=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(t){return this._increase(),t.then(()=>this._decrease(),()=>this._decrease()),this.waitForAll()}_increase(){this._numLoading++,this._dfd||(this._dfd=_n())}_decrease(){this._numLoading=Math.max(this._numLoading-1,0),this._dfd&&this._numLoading===0&&(this._dfd.resolve(),this._dfd=null)}}});async function lj(t,e,r,n){let i=e.exec(r);if(!i)throw new We("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${e}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],c=vx(n),a=`${o}${s}.json`,d=c?`${o}${s}_${c}.json`:a,h;try{h=await $M(t(d))}catch(g){if(d===a)throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await $M(t(a))}catch(v){throw new We("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:v})}}return h}async function $M(t){if(FM.fetchBundleAsset!=null)return FM.fetchBundleAsset(t);let e=await ir(t,{responseType:"text"});return JSON.parse(e.data)}function UM(t){return new _x(t)}var _x,FM,VM=N(()=>{Ww();Ln();Uh();_x=class{constructor({base:e="",pattern:r,location:n=new URL(window.location.href)}){let i;i=typeof n=="string"?o=>new URL(o,new URL(n,window.location.href)).href:n instanceof URL?o=>new URL(o,n).href:n,this.pattern=typeof r=="string"?new RegExp(`^${r}`):r,this.getAssetUrl=i,e=e?e.endsWith("/")?e:e+"/":"",this.matcher=new RegExp(`^${e}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(e,r){return lj(this.getAssetUrl,this.matcher,e,r)}};FM={}});var Sx=N(()=>{mx();hx();yx();Ra();Uh();Uh();VM();Bw();RM(UM({pattern:"esri/",location:Bp}))});function zM(t){return typeof t=="string"?document.getElementById(t):t??null}var WM=N(()=>{});var Xa,xx,BM,Vh,GM,jM=N(()=>{ai();kp();io();qn();(function(t){t[t.PENDING=0]="PENDING",t[t.RESOLVED=1]="RESOLVED",t[t.REJECTED=2]="REJECTED"})(Xa||(Xa={}));xx=class{constructor(){this._resolver=_n(),this._status=Xa.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=Xa.RESOLVED,this._cleanUp()},()=>{this._status=Xa.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(e){this._resolvingPromises.push(e),this._tryResolve()}isResolved(){return this._status===Xa.RESOLVED}isRejected(){return this._status===Xa.REJECTED}isFulfilled(){return this._status!==Xa.PENDING}abort(){this._resolver.reject(Sn())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let e=_n(),r=[...this._resolvingPromises,e.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Sh(i)||this._resolver.reject(i)}),e.resolve()}},BM=t=>{let e=class extends t{constructor(...r){super(...r),this._promiseProps=new xx,this.addResolvingPromise(Promise.resolve())}destroy(){this._promiseProps.destroy()}isResolved(){return this._promiseProps.isResolved()}isRejected(){return this._promiseProps.isRejected()}isFulfilled(){return this._promiseProps.isFulfilled()}when(r,n){return this._promiseProps.promise.then(()=>this).then(r,n)}catch(r){return this.when(null,r)}addResolvingPromise(r){r&&!this._promiseProps.isFulfilled()&&this._promiseProps.addResolvingPromise("_promiseProps"in r?r.when():r)}};return e=ae([Et("esri.core.Promise")],e),e},Vh=class extends BM(kn){};Vh=ae([Et("esri.core.Promise")],Vh),function(t){t.EsriPromiseMixin=BM}(Vh||(Vh={}));GM=Vh});function zh(t,e,r={}){return HM(t,e,r,uj)}function qM(t,e,r={}){return HM(t,e,r,dj)}function HM(t,e,r={},n){let i=null,o=r.once?(s,c)=>{n(s)&&(hh(i),e(s,c))}:(s,c)=>{n(s)&&e(s,c)};if(i=$P(t,o,r.sync,r.equals),r.initial){let s=t();o(s,s)}return i}function uj(t){return!0}function dj(t){return!!t}var Gw,Ex=N(()=>{vh();jn();Il();io();XS();ZS();Gw={sync:!0,initial:!0}});function YM(){if(pj)return crypto.randomUUID();let t=crypto.getRandomValues(new Uint16Array(8));t[3]=4095&t[3]|16384,t[4]=16383&t[4]|32768;let e=r=>t[r].toString(16).padStart(4,"0");return e(0)+e(1)+"-"+e(2)+"-"+e(3)+"-"+e(4)+"-"+e(5)+e(6)+e(7)}var pj,ZM=N(()=>{pj="randomUUID"in crypto});function mj(t){let e="__accessorMetadata__"in t?Uo(t):t;return function(...r){if(r.push(e),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return hj.apply(this,r)}}function hj(t,e,r,n){Ep(t,e).cast=n}function gj(t){return(e,r)=>{Ep(e,t).cast=e[r]}}function jw(...t){if(t.length!==3||typeof t[1]!="string")return t.length===1&&fj.call(t[0])==="[object Function]"?mj(t[0]):t.length===1&&typeof t[0]=="string"?gj(t[0]):void 0}var fj,Cx=N(()=>{Sp();Cp();fj=Object.prototype.toString});function eA(){var t={};return t["align-content"]=!1,t["align-items"]=!1,t["align-self"]=!1,t["alignment-adjust"]=!1,t["alignment-baseline"]=!1,t.all=!1,t["anchor-point"]=!1,t.animation=!1,t["animation-delay"]=!1,t["animation-direction"]=!1,t["animation-duration"]=!1,t["animation-fill-mode"]=!1,t["animation-iteration-count"]=!1,t["animation-name"]=!1,t["animation-play-state"]=!1,t["animation-timing-function"]=!1,t.azimuth=!1,t["backface-visibility"]=!1,t.background=!0,t["background-attachment"]=!0,t["background-clip"]=!0,t["background-color"]=!0,t["background-image"]=!0,t["background-origin"]=!0,t["background-position"]=!0,t["background-repeat"]=!0,t["background-size"]=!0,t["baseline-shift"]=!1,t.binding=!1,t.bleed=!1,t["bookmark-label"]=!1,t["bookmark-level"]=!1,t["bookmark-state"]=!1,t.border=!0,t["border-bottom"]=!0,t["border-bottom-color"]=!0,t["border-bottom-left-radius"]=!0,t["border-bottom-right-radius"]=!0,t["border-bottom-style"]=!0,t["border-bottom-width"]=!0,t["border-collapse"]=!0,t["border-color"]=!0,t["border-image"]=!0,t["border-image-outset"]=!0,t["border-image-repeat"]=!0,t["border-image-slice"]=!0,t["border-image-source"]=!0,t["border-image-width"]=!0,t["border-left"]=!0,t["border-left-color"]=!0,t["border-left-style"]=!0,t["border-left-width"]=!0,t["border-radius"]=!0,t["border-right"]=!0,t["border-right-color"]=!0,t["border-right-style"]=!0,t["border-right-width"]=!0,t["border-spacing"]=!0,t["border-style"]=!0,t["border-top"]=!0,t["border-top-color"]=!0,t["border-top-left-radius"]=!0,t["border-top-right-radius"]=!0,t["border-top-style"]=!0,t["border-top-width"]=!0,t["border-width"]=!0,t.bottom=!1,t["box-decoration-break"]=!0,t["box-shadow"]=!0,t["box-sizing"]=!0,t["box-snap"]=!0,t["box-suppress"]=!0,t["break-after"]=!0,t["break-before"]=!0,t["break-inside"]=!0,t["caption-side"]=!1,t.chains=!1,t.clear=!0,t.clip=!1,t["clip-path"]=!1,t["clip-rule"]=!1,t.color=!0,t["color-interpolation-filters"]=!0,t["column-count"]=!1,t["column-fill"]=!1,t["column-gap"]=!1,t["column-rule"]=!1,t["column-rule-color"]=!1,t["column-rule-style"]=!1,t["column-rule-width"]=!1,t["column-span"]=!1,t["column-width"]=!1,t.columns=!1,t.contain=!1,t.content=!1,t["counter-increment"]=!1,t["counter-reset"]=!1,t["counter-set"]=!1,t.crop=!1,t.cue=!1,t["cue-after"]=!1,t["cue-before"]=!1,t.cursor=!1,t.direction=!1,t.display=!0,t["display-inside"]=!0,t["display-list"]=!0,t["display-outside"]=!0,t["dominant-baseline"]=!1,t.elevation=!1,t["empty-cells"]=!1,t.filter=!1,t.flex=!1,t["flex-basis"]=!1,t["flex-direction"]=!1,t["flex-flow"]=!1,t["flex-grow"]=!1,t["flex-shrink"]=!1,t["flex-wrap"]=!1,t.float=!1,t["float-offset"]=!1,t["flood-color"]=!1,t["flood-opacity"]=!1,t["flow-from"]=!1,t["flow-into"]=!1,t.font=!0,t["font-family"]=!0,t["font-feature-settings"]=!0,t["font-kerning"]=!0,t["font-language-override"]=!0,t["font-size"]=!0,t["font-size-adjust"]=!0,t["font-stretch"]=!0,t["font-style"]=!0,t["font-synthesis"]=!0,t["font-variant"]=!0,t["font-variant-alternates"]=!0,t["font-variant-caps"]=!0,t["font-variant-east-asian"]=!0,t["font-variant-ligatures"]=!0,t["font-variant-numeric"]=!0,t["font-variant-position"]=!0,t["font-weight"]=!0,t.grid=!1,t["grid-area"]=!1,t["grid-auto-columns"]=!1,t["grid-auto-flow"]=!1,t["grid-auto-rows"]=!1,t["grid-column"]=!1,t["grid-column-end"]=!1,t["grid-column-start"]=!1,t["grid-row"]=!1,t["grid-row-end"]=!1,t["grid-row-start"]=!1,t["grid-template"]=!1,t["grid-template-areas"]=!1,t["grid-template-columns"]=!1,t["grid-template-rows"]=!1,t["hanging-punctuation"]=!1,t.height=!0,t.hyphens=!1,t.icon=!1,t["image-orientation"]=!1,t["image-resolution"]=!1,t["ime-mode"]=!1,t["initial-letters"]=!1,t["inline-box-align"]=!1,t["justify-content"]=!1,t["justify-items"]=!1,t["justify-self"]=!1,t.left=!1,t["letter-spacing"]=!0,t["lighting-color"]=!0,t["line-box-contain"]=!1,t["line-break"]=!1,t["line-grid"]=!1,t["line-height"]=!1,t["line-snap"]=!1,t["line-stacking"]=!1,t["line-stacking-ruby"]=!1,t["line-stacking-shift"]=!1,t["line-stacking-strategy"]=!1,t["list-style"]=!0,t["list-style-image"]=!0,t["list-style-position"]=!0,t["list-style-type"]=!0,t.margin=!0,t["margin-bottom"]=!0,t["margin-left"]=!0,t["margin-right"]=!0,t["margin-top"]=!0,t["marker-offset"]=!1,t["marker-side"]=!1,t.marks=!1,t.mask=!1,t["mask-box"]=!1,t["mask-box-outset"]=!1,t["mask-box-repeat"]=!1,t["mask-box-slice"]=!1,t["mask-box-source"]=!1,t["mask-box-width"]=!1,t["mask-clip"]=!1,t["mask-image"]=!1,t["mask-origin"]=!1,t["mask-position"]=!1,t["mask-repeat"]=!1,t["mask-size"]=!1,t["mask-source-type"]=!1,t["mask-type"]=!1,t["max-height"]=!0,t["max-lines"]=!1,t["max-width"]=!0,t["min-height"]=!0,t["min-width"]=!0,t["move-to"]=!1,t["nav-down"]=!1,t["nav-index"]=!1,t["nav-left"]=!1,t["nav-right"]=!1,t["nav-up"]=!1,t["object-fit"]=!1,t["object-position"]=!1,t.opacity=!1,t.order=!1,t.orphans=!1,t.outline=!1,t["outline-color"]=!1,t["outline-offset"]=!1,t["outline-style"]=!1,t["outline-width"]=!1,t.overflow=!1,t["overflow-wrap"]=!1,t["overflow-x"]=!1,t["overflow-y"]=!1,t.padding=!0,t["padding-bottom"]=!0,t["padding-left"]=!0,t["padding-right"]=!0,t["padding-top"]=!0,t.page=!1,t["page-break-after"]=!1,t["page-break-before"]=!1,t["page-break-inside"]=!1,t["page-policy"]=!1,t.pause=!1,t["pause-after"]=!1,t["pause-before"]=!1,t.perspective=!1,t["perspective-origin"]=!1,t.pitch=!1,t["pitch-range"]=!1,t["play-during"]=!1,t.position=!1,t["presentation-level"]=!1,t.quotes=!1,t["region-fragment"]=!1,t.resize=!1,t.rest=!1,t["rest-after"]=!1,t["rest-before"]=!1,t.richness=!1,t.right=!1,t.rotation=!1,t["rotation-point"]=!1,t["ruby-align"]=!1,t["ruby-merge"]=!1,t["ruby-position"]=!1,t["shape-image-threshold"]=!1,t["shape-outside"]=!1,t["shape-margin"]=!1,t.size=!1,t.speak=!1,t["speak-as"]=!1,t["speak-header"]=!1,t["speak-numeral"]=!1,t["speak-punctuation"]=!1,t["speech-rate"]=!1,t.stress=!1,t["string-set"]=!1,t["tab-size"]=!1,t["table-layout"]=!1,t["text-align"]=!0,t["text-align-last"]=!0,t["text-combine-upright"]=!0,t["text-decoration"]=!0,t["text-decoration-color"]=!0,t["text-decoration-line"]=!0,t["text-decoration-skip"]=!0,t["text-decoration-style"]=!0,t["text-emphasis"]=!0,t["text-emphasis-color"]=!0,t["text-emphasis-position"]=!0,t["text-emphasis-style"]=!0,t["text-height"]=!0,t["text-indent"]=!0,t["text-justify"]=!0,t["text-orientation"]=!0,t["text-overflow"]=!0,t["text-shadow"]=!0,t["text-space-collapse"]=!0,t["text-transform"]=!0,t["text-underline-position"]=!0,t["text-wrap"]=!0,t.top=!1,t.transform=!1,t["transform-origin"]=!1,t["transform-style"]=!1,t.transition=!1,t["transition-delay"]=!1,t["transition-duration"]=!1,t["transition-property"]=!1,t["transition-timing-function"]=!1,t["unicode-bidi"]=!1,t["vertical-align"]=!1,t.visibility=!1,t["voice-balance"]=!1,t["voice-duration"]=!1,t["voice-family"]=!1,t["voice-pitch"]=!1,t["voice-range"]=!1,t["voice-rate"]=!1,t["voice-stress"]=!1,t["voice-volume"]=!1,t.volume=!1,t["white-space"]=!1,t.widows=!1,t.width=!0,t["will-change"]=!1,t["word-break"]=!0,t["word-spacing"]=!0,t["word-wrap"]=!0,t["wrap-flow"]=!1,t["wrap-through"]=!1,t["writing-mode"]=!1,t["z-index"]=!1,t}function wj(t,e,r){}function yj(t,e,r){}function vj(t,e){return bj.test(e)?"":e}function Sj(t,e){t=Wh.trimRight(t),t[t.length-1]!==";"&&(t+=";");var r=t.length,n=!1,i=0,o=0,s="";function c(){if(!n){var h=Wh.trim(t.slice(i,o)),g=h.indexOf(":");if(g!==-1){var v=Wh.trim(h.slice(0,g)),E=Wh.trim(h.slice(g+1));if(v){var M=e(i,s.length,v,E,h);M&&(s+=M+"; ")}}}i=o+1}for(;o<r;o++){var a=t[o];if(a==="/"&&t[o+1]==="*"){var d=t.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||c():a===`
9
9
  `&&c()}return Wh.trim(s)}function XM(t){return t==null}function Cj(t){var e={};for(var r in t)e[r]=t[r];return e}function tA(t){t=Cj(t||{}),t.whiteList=t.whiteList||qw.whiteList,t.onAttr=t.onAttr||qw.onAttr,t.onIgnoreAttr=t.onIgnoreAttr||qw.onIgnoreAttr,t.safeAttrValue=t.safeAttrValue||qw.safeAttrValue,this.options=t}function rA(){return{a:["target","href","title"],abbr:["title"],address:[],area:["shape","coords","href","alt"],article:[],aside:[],audio:["autoplay","controls","crossorigin","loop","muted","preload","src"],b:[],bdi:["dir"],bdo:["dir"],big:[],blockquote:["cite"],br:[],caption:[],center:[],cite:[],code:[],col:["align","valign","span","width"],colgroup:["align","valign","span","width"],dd:[],del:["datetime"],details:["open"],div:[],dl:[],dt:[],em:[],figcaption:[],figure:[],font:["color","size","face"],footer:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],header:[],hr:[],i:[],img:["src","alt","title","width","height"],ins:["datetime"],li:[],mark:[],nav:[],ol:[],p:[],pre:[],s:[],section:[],small:[],span:[],sub:[],summary:[],sup:[],strong:[],strike:[],table:["width","border","align","valign"],tbody:["align","valign"],td:["width","rowspan","colspan","align","valign"],tfoot:["align","valign"],th:["width","rowspan","colspan","align","valign"],thead:["align","valign"],tr:["rowspan","align","valign"],tt:[],u:[],ul:[],video:["autoplay","controls","crossorigin","loop","muted","playsinline","poster","preload","src","height","width"]}}function Aj(t,e,r){}function Ij(t,e,r){}function Lj(t,e,r){}function kj(t,e,r){}function iA(t){return t.replace(Nj,"&lt;").replace(Rj,"&gt;")}function Oj(t,e,r,n){if(r=uA(r),e==="href"||e==="src"){if(r=Jw.trim(r),r==="#")return"#";if(!(r.substr(0,7)==="http://"||r.substr(0,8)==="https://"||r.substr(0,7)==="mailto:"||r.substr(0,4)==="tel:"||r.substr(0,11)==="data:image/"||r.substr(0,6)==="ftp://"||r.substr(0,2)==="./"||r.substr(0,3)==="../"||r[0]==="#"||r[0]==="/"))return""}else if(e==="background"){if(Hw.lastIndex=0,Hw.test(r))return""}else if(e==="style"){if(JM.lastIndex=0,JM.test(r)||(QM.lastIndex=0,QM.test(r)&&(Hw.lastIndex=0,Hw.test(r))))return"";n!==!1&&(n=n||nA,r=n.process(r))}return r=dA(r),r}function oA(t){return t.replace(Dj,"&quot;")}function sA(t){return t.replace($j,'"')}function aA(t){return t.replace(Fj,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function cA(t){return t.replace(Uj,":").replace(Vj," ")}function lA(t){for(var e="",r=0,n=t.length;r<n;r++)e+=t.charCodeAt(r)<32?" ":t.charAt(r);return Jw.trim(e)}function uA(t){return t=sA(t),t=aA(t),t=cA(t),t=lA(t),t}function dA(t){return t=oA(t),t=iA(t),t}function zj(){return""}function Wj(t,e){typeof e!="function"&&(e=function(){});var r=!Array.isArray(t);function n(s){return r?!0:Jw.indexOf(t,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,c,a){if(n(s))if(a.isClosing){var d="[/removed]",h=a.position+d.length;return i.push([o!==!1?o:a.position,h]),o=!1,d}else return o||(o=a.position),"[removed]";else return e(s,c,a)},remove:function(s){var c="",a=0;return Jw.forEach(i,function(d){c+=s.slice(a,d[0]),a=d[1]}),c+=s.slice(a),c}}}function Bj(t){for(var e="",r=0;r<t.length;){var n=t.indexOf("<!--",r);if(n===-1){e+=t.slice(r);break}e+=t.slice(r,n);var i=t.indexOf("-->",n);if(i===-1)break;r=i+3}return e}function Gj(t){var e=t.split("");return e=e.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),e.join("")}function jj(t){var e=Ja.spaceIndex(t),r;return e===-1?r=t.slice(1,-1):r=t.slice(1,e+1),r=Ja.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function qj(t){return t.slice(0,2)==="</"}function Hj(t,e,r){var n="",i=0,o=!1,s=!1,c=0,a=t.length,d="",h="";e:for(c=0;c<a;c++){var g=t.charAt(c);if(o===!1){if(g==="<"){o=c;continue}}else if(s===!1){if(g==="<"){n+=r(t.slice(i,c)),o=c,i=c;continue}if(g===">"){n+=r(t.slice(i,o)),h=t.slice(o,c+1),d=jj(h),n+=e(o,n.length,d,h,qj(h)),i=c+1,o=!1;continue}if(g==='"'||g==="'")for(var v=1,E=t.charAt(c-v);E.trim()===""||E==="=";){if(E==="="){s=g;continue e}E=t.charAt(c-++v)}}else if(g===s){s=!1;continue}}return i<t.length&&(n+=r(t.substr(i))),n}function Zj(t,e){var r=0,n=0,i=[],o=!1,s=t.length;function c(v,E){if(v=Ja.trim(v),v=v.replace(Yj,"").toLowerCase(),!(v.length<1)){var M=e(v,E||"");M&&i.push(M)}}for(var a=0;a<s;a++){var d=t.charAt(a),h,g;if(o===!1&&d==="="){o=t.slice(r,a),r=a+1,n=t.charAt(r)==='"'||t.charAt(r)==="'"?r:Jj(t,a+1);continue}if(o!==!1&&a===n){if(g=t.indexOf(d,a+1),g===-1)break;h=Ja.trim(t.slice(n+1,g)),c(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(t=t.replace(/\s|\n|\t/g," "),o===!1)if(g=Xj(t,a),g===-1){h=Ja.trim(t.slice(r,a)),c(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=Qj(t,a-1),g===-1){h=Ja.trim(t.slice(r,a)),h=KM(h),c(o,h),o=!1,r=a+1;continue}else continue}return r<t.length&&(o===!1?c(t.slice(r)):c(o,KM(Ja.trim(t.slice(r))))),Ja.trim(i.join(" "))}function Xj(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="="?e:-1}}function Jj(t,e){for(;e<t.length;e++){var r=t[e];if(r!==" ")return r==="'"||r==='"'?e:-1}}function Qj(t,e){for(;e>0;e--){var r=t[e];if(r!==" ")return r==="="?e:-1}}function Kj(t){return t[0]==='"'&&t[t.length-1]==='"'||t[0]==="'"&&t[t.length-1]==="'"}function KM(t){return Kj(t)?t.substr(1,t.length-2):t}function Yw(t){return t==null}function nq(t){var e=Zw.spaceIndex(t);if(e===-1)return{html:"",closing:t[t.length-2]==="/"};t=Zw.trim(t.slice(e+1,-1));var r=t[t.length-1]==="/";return r&&(t=Zw.trim(t.slice(0,-1))),{html:t,closing:r}}function iq(t){var e={};for(var r in t)e[r]=t[r];return e}function oq(t){var e={};for(var r in t)Array.isArray(t[r])?e[r.toLowerCase()]=t[r].map(function(n){return n.toLowerCase()}):e[r.toLowerCase()]=t[r];return e}function fA(t){t=iq(t||{}),t.stripIgnoreTag&&(t.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),t.onIgnoreTag=so.onIgnoreTagStripAll),t.whiteList||t.allowList?t.whiteList=oq(t.whiteList||t.allowList):t.whiteList=so.whiteList,t.onTag=t.onTag||so.onTag,t.onTagAttr=t.onTagAttr||so.onTagAttr,t.onIgnoreTag=t.onIgnoreTag||so.onIgnoreTag,t.onIgnoreTagAttr=t.onIgnoreTagAttr||so.onIgnoreTagAttr,t.safeAttrValue=t.safeAttrValue||so.safeAttrValue,t.escapeHtml=t.escapeHtml||so.escapeHtml,this.options=t,t.css===!1?this.cssFilter=!1:(t.css=t.css||{},this.cssFilter=new eq(t.css))}var Xw,Tx,or,Px,Fl,bj,_j,Wh,xj,qw,Ej,Tj,Mx,Ax,Pj,Mj,Jw,nA,Nj,Rj,Dj,$j,Fj,Uj,Vj,Hw,JM,QM,Qw,Ja,Yj,eq,so,pA,tq,rq,Zw,sq,Gp,aq,mA,hA=N(()=>{Xw=function(){return Xw=Object.assign||function(e){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},Xw.apply(this,arguments)},Tx={exports:{}},or={},Px={exports:{}},Fl={};bj=/javascript\s*\:/img;Fl.whiteList=eA();Fl.getDefaultWhiteList=eA;Fl.onAttr=wj;Fl.onIgnoreAttr=yj;Fl.safeAttrValue=vj;_j={indexOf:function(t,e){var r,n;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var n,i;if(Array.prototype.forEach)return t.forEach(e,r);for(n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(t){return String.prototype.trimRight?t.trimRight():t.replace(/(\s*$)/g,"")}},Wh=_j;xj=Sj,qw=Fl,Ej=xj;tA.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,c=Ej(t,function(a,d,h,g,v){var E=n[h],M=!1;if(E===!0?M=E:typeof E=="function"?M=E(g):E instanceof RegExp&&(M=E.test(g)),M!==!0&&(M=!1),g=s(h,g),!!g){var k={position:d,sourcePosition:a,source:v,isWhite:M};if(M){var $=i(h,g,k);return XM($)?h+":"+g:$}else{var $=o(h,g,k);if(!XM($))return $}}});return c};Tj=tA;(function(t,e){var r=Fl,n=Tj;function i(s,c){var a=new n(c);return a.process(s)}e=t.exports=i,e.FilterCSS=n;for(var o in r)e[o]=r[o]})(Px,Px.exports);Mx=Px.exports,Ax={indexOf:function(t,e){var r,n;if(Array.prototype.indexOf)return t.indexOf(e);for(r=0,n=t.length;r<n;r++)if(t[r]===e)return r;return-1},forEach:function(t,e,r){var n,i;if(Array.prototype.forEach)return t.forEach(e,r);for(n=0,i=t.length;n<i;n++)e.call(r,t[n],n,t)},trim:function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(t){var e=/\s|\n|\t/,r=e.exec(t);return r?r.index:-1}},Pj=Mx.FilterCSS,Mj=Mx.getDefaultWhiteList,Jw=Ax;nA=new Pj;Nj=/</g,Rj=/>/g,Dj=/"/g,$j=/&quot;/g,Fj=/&#([a-zA-Z0-9]*);?/gim,Uj=/&colon;?/gim,Vj=/&newline;?/gim,Hw=/((j\s*a\s*v\s*a|v\s*b|l\s*i\s*v\s*e)\s*s\s*c\s*r\s*i\s*p\s*t\s*|m\s*o\s*c\s*h\s*a):/gi,JM=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,QM=/u\s*r\s*l\s*\(.*/gi;or.whiteList=rA();or.getDefaultWhiteList=rA;or.onTag=Aj;or.onIgnoreTag=Ij;or.onTagAttr=Lj;or.onIgnoreTagAttr=kj;or.safeAttrValue=Oj;or.escapeHtml=iA;or.escapeQuote=oA;or.unescapeQuote=sA;or.escapeHtmlEntities=aA;or.escapeDangerHtml5Entities=cA;or.clearNonPrintableCharacter=lA;or.friendlyAttrValue=uA;or.escapeAttrValue=dA;or.onIgnoreTagStripAll=zj;or.StripTagBody=Wj;or.stripCommentTag=Bj;or.stripBlankChar=Gj;or.cssFilter=nA;or.getDefaultCSSWhiteList=Mj;Qw={},Ja=Ax;Yj=/[^a-zA-Z0-9\\_:.-]/gim;Qw.parseTag=Hj;Qw.parseAttr=Zj;eq=Mx.FilterCSS,so=or,pA=Qw,tq=pA.parseTag,rq=pA.parseAttr,Zw=Ax;fA.prototype.process=function(t){if(t=t||"",t=t.toString(),!t)return"";var e=this,r=e.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,c=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=e.cssFilter;r.stripBlankChar&&(t=so.stripBlankChar(t)),r.allowCommentTag||(t=so.stripCommentTag(t));var g=!1;r.stripIgnoreTagBody&&(g=so.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var v=tq(t,function(E,M,k,$,z){var B={sourcePosition:E,position:M,isClosing:z,isWhite:Object.prototype.hasOwnProperty.call(n,k)},q=i(k,$,B);if(!Yw(q))return q;if(B.isWhite){if(B.isClosing)return"</"+k+">";var V=nq($),X=n[k],te=rq(V.html,function(F,me){var Le=Zw.indexOf(X,F)!==-1,Ce=s(k,F,me,Le);return Yw(Ce)?Le?(me=a(k,F,me,h),me?F+'="'+me+'"':F):(Ce=c(k,F,me,Le),Yw(Ce)?void 0:Ce):Ce});return $="<"+k,te&&($+=" "+te),V.closing&&($+=" /"),$+=">",$}else return q=o(k,$,B),Yw(q)?d($):q},d);return g&&(v=g.remove(v)),v};sq=fA;(function(t,e){var r=or,n=Qw,i=sq;function o(c,a){var d=new i(a);return d.process(c)}e=t.exports=o,e.filterXSS=o,e.FilterXSS=i,function(){for(var c in r)e[c]=r[c];for(var a in n)e[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=t.exports)})(Tx,Tx.exports);Gp=Tx.exports,aq=function(t){if(typeof t!="object"||t===null||Object.prototype.toString.call(t)!=="[object Object]")return!1;var e=Object.getPrototypeOf(t);if(e===null)return!0;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e},mA=function(){function t(e,r){var n=this;this.arcgisWhiteList={a:["href","style","target"],abbr:["title"],article:["style"],aside:["style"],audio:["autoplay","controls","loop","muted","preload"],b:[],blockquote:["style"],br:[],code:["style"],dd:["style"],del:["style"],details:["open","style"],div:["align","aria-hidden","aria-label","style"],dl:["style"],dt:["style"],em:[],figcaption:["style"],figure:["style"],font:["color","face","size","style"],footer:["style"],h1:["style"],h2:["style"],h3:["style"],h4:["style"],h5:["style"],h6:["style"],header:["style"],hr:[],i:[],img:["alt","border","height","src","style","width"],li:[],main:["style"],mark:["style"],nav:["style"],ol:[],p:["style"],pre:["style"],section:["style"],source:["media","src","type"],span:["aria-hidden","aria-label","style"],strong:[],sub:["style"],summary:["style"],sup:["style"],table:["border","cellpadding","cellspacing","height","style","width"],tbody:[],tr:["align","height","style","valign"],td:["align","colspan","height","nowrap","rowspan","style","valign","width"],th:["align","colspan","height","nowrap","rowspan","style","valign","width"],time:["style"],u:[],ul:[],video:["autoplay","controls","height","loop","muted","poster","preload","width"]},this.arcgisCSSWhiteList=Xw(Xw({},Gp.getDefaultCSSWhiteList()),{"align-items":!0,"align-self":!0,flex:!0,"flex-basis":!0,"flex-direction":!0,"flex-flow":!0,"flex-grow":!0,"flex-shrink":!0,"flex-wrap":!0,float:!0,gap:!0,grid:!0,"grid-area":!0,"grid-auto-columns":!0,"grid-auto-flow":!0,"grid-auto-rows":!0,"grid-column":!0,"grid-column-end":!0,"grid-column-start":!0,"grid-row":!0,"grid-row-end":!0,"grid-row-start":!0,"grid-template":!0,"grid-template-areas":!0,"grid-template-columns":!0,"grid-template-rows":!0,"justify-content":!0,"justify-items":!0,"justify-self":!0,"line-height":!0,overflow:!0}),this.allowedProtocols=["http","https","mailto","iform","tel","flow","lfmobile","arcgis-navigator","arcgis-appstudio-player","arcgis-survey123","arcgis-collector","arcgis-workforce","arcgis-explorer","arcgis-trek2there","arcgis-quickcapture","mspbi","comgooglemaps","pdfefile","pdfehttp","pdfehttps","boxapp","boxemm","awb","awbs","gropen","radarscope"],this.arcgisFilterOptions={allowCommentTag:!0,safeAttrValue:function(o,s,c,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(c):Gp.safeAttrValue(o,s,c,a)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;e&&!r?i=e:e&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(e).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,e.whiteList||{}]);else if(o==="css"){var s=e.css.whiteList;s!=null&&e.css instanceof Object&&Object.keys(s).forEach(function(c){return i.css.whiteList[c]=s[c]})}else i[o]=e[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new Gp.FilterXSS(i)}return t.prototype.sanitize=function(e,r){switch(r===void 0&&(r={}),typeof e){case"number":return isNaN(e)||!isFinite(e)?null:e;case"boolean":return e;case"string":return this._xssFilter.process(e);case"object":return this._iterateOverObject(e,r);default:return r.allowUndefined&&typeof e>"u"?void 0:null}},t.prototype.sanitizeUrl=function(e,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(e.substring(0,e.indexOf(":"))),s=e==="/",c=/^#/.test(e),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||c||a?Gp.escapeAttrValue(e):!o&&!i?Gp.escapeAttrValue("https://".concat(e)):""},t.prototype.sanitizeHTMLAttribute=function(e,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(e,r,n,i):Gp.safeAttrValue(e,r,n,i)},t.prototype.validate=function(e,r){r===void 0&&(r={});var n=this.sanitize(e,r);return{isValid:e===n,sanitized:n}},t.prototype.encodeHTML=function(e){var r=this;return String(e).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},t.prototype.encodeAttrValue=function(e){var r=/^[a-zA-Z0-9]$/;return String(e).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(e.charCodeAt(i)).toString(16),";")})},t.prototype._extendObjectOfArrays=function(e){var r={};return e.forEach(function(n){Object.keys(n).forEach(function(i){Array.isArray(n[i])&&Array.isArray(r[i])?r[i]=r[i].concat(n[i]):r[i]=n[i]})}),r},t.prototype._iterateOverObject=function(e,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(e))o=e.reduce(function(c,a){var d=n.validate(a,r);return d.isValid?c.concat([a]):(i=!0,c.concat([d.sanitized]))},[]);else if(aq(e)){var s=Object.keys(e);o=s.reduce(function(c,a){var d=e[a],h=n.validate(d,r);return h.isValid?c[a]=d:(i=!0,c[a]=h.sanitized),c},{})}else return r.allowUndefined&&typeof e>"u"?void 0:null;return i?o:e}catch{return null}},t.prototype._trim=function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},t}()});function ey(){Kw.clear()}function gA(t){return Kw.get(t)}function wA(t,e){Kw.set(t,e)}function ty(t){Kw.delete(t)}var Kw,Ix=N(()=>{Kw=new Map});function yA(...t){let e=za.acquire();for(let n=0;n<t.length;n++){let i=t[n],o=typeof i;if(o==="string")e.push(i);else if(Array.isArray(i))e.push.apply(e,i);else if(o==="object")for(let s in i)i[s]&&e.push(s)}let r=e.join(" ");return za.release(e),r}async function bA(t,e){await LP(_h(e));let r=typeof t=="function"?t():t;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var Nme,cq,lq,uq,Lx,ry=N(()=>{hA();NS();jn();St();Vt();io();Ex();ww();Ix();Nme=(()=>{let t=new Map,e=new ResizeObserver(n=>{ey();for(let i of n)t.get(i.target)?.(i)}),r=(n,i,o)=>(t.set(n,i),e.observe(n,o),yt(()=>{e.unobserve(n),t.delete(n)}));return(n,i,o)=>{let s=null;return Pl([zh(()=>typeof n=="function"?n():n,c=>{s?.remove(),c&&(s=r(c,i,o))},Gw),yt(()=>s?.remove())])}})(),cq=["dd","dl","dt","h1","h2","h3","h4","h5","h6","sub","sup","animate","animatetransform","circle","clippath","defs","ellipse","g","image","line","lineargradient","marker","mask","path","pattern","polygon","polyline","radialgradient","rect","stop","svg","switch","symbol","text","textpath","tspan","use"],lq=cq.reduce((t,e)=>(t[e]=[],t),{}),uq=["align","alink","alt","bgcolor","border","cellpadding","cellspacing","class","color","cols","colspan","coords","d","dir","face","height","hspace","ismap","lang","marginheight","marginwidth","multiple","nohref","noresize","noshade","nowrap","ref","rel","rev","rows","rowspan","scrolling","shape","span","summary","tabindex","title","usemap","valign","value","vlink","vspace","width"],Lx=new mA({whiteList:lq,onTagAttr:(t,e,r)=>{let n=`${e}="${r}"`;if(uq.includes(e))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function Rx(t){if(!(t instanceof Element&&t.tagName.includes("-")))return!1;let e=window.customElements.get(t.tagName.toLowerCase());return!!e&&t instanceof e}var EA,iy,CA,vA,oy,$x,TA,dq,kx,pq,Ox,Nx,PA,_A,SA,xA,fq,ny,mq,Fx,Ul,Dx,hq,gq,jp,MA=N(()=>{ry();EA="http://www.w3.org/",iy=`${EA}2000/svg`,CA=`${EA}1999/xlink`,vA=[],oy=(t,e)=>{let r={};return Object.keys(t).forEach(n=>{r[n]=t[n]}),e&&Object.keys(e).forEach(n=>{r[n]=e[n]}),r},$x=(t,e)=>t.vnodeSelector===e.vnodeSelector&&(t.properties&&e.properties?t.properties.key===e.properties.key&&t.properties.bind===e.properties.bind:!t.properties&&!e.properties),TA=t=>{if(typeof t!="string")throw new Error("Style values must be strings")},dq=(t,e,r)=>{if(e.vnodeSelector!==""){for(let n=r;n<t.length;n++)if($x(t[n],e))return n}return-1},kx=(t,e,r,n)=>{let i=t[e];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<t.length;s++)if(s!==e){let c=t[s];if($x(c,i))throw new Error(`${r.vnodeSelector} had a ${i.vnodeSelector} child ${n==="added"?n:"removed"}, but there is now more than one. You must add unique key properties to make them distinguishable.`)}}},pq=t=>{if(t.properties){let e=t.properties.enterAnimation;e&&e(t.domNode,t.properties)}},Ox=[],Nx=!1,PA=t=>{(t.children||[]).forEach(PA),t.properties&&t.properties.afterRemoved&&t.properties.afterRemoved.apply(t.properties.bind||t.properties,[t.domNode])},_A=()=>{Nx=!1,Ox.forEach(PA),Ox.length=0},SA=t=>{Ox.push(t),Nx||(Nx=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback(_A,{timeout:16}):setTimeout(_A,16))},xA=t=>{let e=t.domNode;if(t.properties){let r=t.properties.exitAnimation;if(r)return e.style.pointerEvents="none",void r(e,()=>{e.parentNode&&(e.parentNode.removeChild(e),SA(t))},t.properties)}e.parentNode&&(e.parentNode.removeChild(e),SA(t))},fq=(t,e,r)=>{if(!e)return;let n=r.eventHandlerInterceptor,i=Object.keys(e),o=i.length;for(let s=0;s<o;s++){let c=i[s],a=e[c];if(c==="className")throw new Error('Property "className" is not supported, use "class".');if(c==="class")Dx(t,a,!0);else if(c==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g];a[v]&&t.classList.add(v)}}else if(c==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let v=d[g],E=a[v];E&&(TA(E),r.styleApplyer(t,v,E))}}else if(c!=="key"&&a!=null){let d=typeof a;d==="function"?(c.lastIndexOf("on",0)===0&&(n&&(a=n(c,a,t,e)),c==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),t[c]=a):r.namespace===iy?c==="href"?t.setAttributeNS(CA,c,a):t.setAttribute(c,a):d==="string"&&c!=="value"?c==="innerHTML"?t[c]=Lx.sanitize(a):Rx(t)&&c in t?t[c]=a:t.setAttribute(c,a):t[c]=a}}};mq=(t,e,r)=>{if(e)for(let n of e)Ul(n,t,void 0,r)},Fx=(t,e,r)=>{mq(t,e.children,r),e.text&&(t.textContent=e.text),fq(t,e.properties,r),e.properties&&e.properties.afterCreate&&e.properties.afterCreate.apply(e.properties.bind||e.properties,[t,r,e.vnodeSelector,e.properties,e.children])},Ul=(t,e,r,n)=>{let i,o=0,s=t.vnodeSelector,c=e.ownerDocument;if(s==="")i=t.domNode=c.createTextNode(t.text),r!==void 0?e.insertBefore(i,r):e.appendChild(i);else{for(let a=0;a<=s.length;++a){let d=s.charAt(a);if(a===s.length||d==="."||d==="#"){let h=s.charAt(o-1),g=s.slice(o,a);h==="."?i.classList.add(g):h==="#"?i.id=g:(g==="svg"&&(n=oy(n,{namespace:iy})),n.namespace!==void 0?i=t.domNode=c.createElementNS(n.namespace,g):(i=t.domNode=t.domNode||c.createElement(g),g==="input"&&t.properties&&t.properties.type!==void 0&&i.setAttribute("type",t.properties.type)),r!==void 0?e.insertBefore(i,r):i.parentNode!==e&&e.appendChild(i)),o=a+1}}Fx(i,t,n)}},Dx=(t,e,r)=>{e&&e.split(" ").forEach(n=>{n&&t.classList.toggle(n,r)})},hq=(t,e,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let c=0;c<s;c++){let a=o[c],d=r[a],h=e[a];if(a==="class")h!==d&&(Dx(t,h,!1),Dx(t,d,!0));else if(a==="classes"){let g=t.classList,v=Object.keys(d),E=v.length;for(let M=0;M<E;M++){let k=v[M],$=!!d[k];$!==!!h[k]&&(i=!0,$?g.add(k):g.remove(k))}}else if(a==="styles"){let g=Object.keys(d),v=g.length;for(let E=0;E<v;E++){let M=g[E],k=d[M];k!==h[M]&&(i=!0,k?(TA(k),n.styleApplyer(t,M,k)):n.styleApplyer(t,M,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||Rx(t)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===iy?a==="href"?t.setAttributeNS(CA,a,d):t.setAttribute(a,d):g==="string"?a==="innerHTML"?t[a]=Lx.sanitize(d):a==="role"&&d===""?t.removeAttribute(a):Rx(t)&&a in t?t[a]=d:t.setAttribute(a,d):t[a]!==d&&(t[a]=d),i=!0)}}else{let g=t[a];g!==d&&(t["oninput-value"]?g===t["oninput-value"]:d!==h)&&(t[a]=d,t["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},gq=(t,e,r,n,i)=>{if(r===n)return!1;n=n||vA;let o,s=(r=r||vA).length,c=n.length,a=0,d=0,h=!1;for(;d<c;){let g=a<s?r[a]:void 0,v=n[d];if(g!==void 0&&$x(g,v))h=ny(g,v,i)||h,a++;else{let E=dq(r,v,a+1);if(E>=0){for(o=a;o<E;o++)xA(r[o]),kx(r,o,t,"removed");h=ny(r[E],v,i)||h,a=E+1}else Ul(v,e,a<s?r[a].domNode:void 0,i),pq(v),kx(n,d,t,"added")}d++}if(s>a)for(o=a;o<s;o++)xA(r[o]),kx(r,o,t,"removed");return h};ny=(t,e,r)=>{let n=t.domNode,i=!1;if(t===e)return!1;let o=!1;if(e.vnodeSelector===""){if(e.text!==t.text){let s=n.ownerDocument.createTextNode(e.text);return n.parentNode.replaceChild(s,n),e.domNode=s,i=!0,i}e.domNode=n}else e.vnodeSelector.lastIndexOf("svg",0)===0&&(r=oy(r,{namespace:iy})),t.text!==e.text&&(o=!0,e.text===void 0?n.removeChild(n.firstChild):n.textContent=e.text),e.domNode=n,o=gq(e,n,t.children,e.children,r)||o,o=hq(n,t.properties,e.properties,r)||o,e.properties&&e.properties.afterUpdate&&e.properties.afterUpdate.apply(e.properties.bind||e.properties,[n,r,e.vnodeSelector,e.properties,e.children]);return o&&e.properties&&e.properties.updateAnimation&&e.properties.updateAnimation(n,e.properties,t.properties),i};jp=(t,e)=>({getLastRender:()=>t,update:r=>{if(t.vnodeSelector!==r.vnodeSelector)throw new Error("The selector for the root VNode may not be changed. (consider using dom.merge and add one extra level to the virtual DOM)");let n=t;t=r,ny(n,r,e)},domNode:t.domNode})});var wq,qp,Hp,Ux=N(()=>{MA();wq={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(t,e,r)=>{e.charAt(0)==="-"?t.style.setProperty(e,r):t.style[e]=r}},qp=t=>oy(wq,t),Hp={create:(t,e)=>(e=qp(e),Ul(t,document.createElement("div"),void 0,e),jp(t,e)),append:(t,e,r)=>(r=qp(r),Ul(e,t,void 0,r),jp(e,r)),insertBefore:(t,e,r)=>(r=qp(r),Ul(e,t.parentNode,t,r),jp(e,r)),merge:(t,e,r)=>(r=qp(r),e.domNode=t,Fx(t,e,r),jp(e,r)),replace:(t,e,r)=>(r=qp(r),Ul(e,t.parentNode,t,r),t.parentNode.removeChild(t),jp(e,r))}});var yq,AA=N(()=>{Ux();yq=Array.prototype.find?(t,e)=>t.find(e):(t,e)=>t.filter(e)[0]});var IA,LA=N(()=>{IA={handleInterceptedEvent:(t,e,r,n)=>(t.scheduleRender(),e.properties[`on${n.type}`].apply(e.properties.bind||r,[n]))}});var bq,kA,OA=N(()=>{bq={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(t,e,r)=>{e.charAt(0)==="-"?t.style.setProperty(e,r):t.style[e]=r}},kA=t=>({...bq,...t})});var vq,_q,NA,RA,DA=N(()=>{Ux();AA();LA();OA();vq=(t,e)=>{let r=[];for(;t&&t!==e;)r.push(t),t=t.parentNode;return r},_q=(t,e)=>t.find(e),NA=(t,e,r=!1)=>{let n=t;return e.forEach((i,o)=>{let s=n?.children?_q(n.children,c=>c.domNode===i):void 0;r&&!s&&o!==e.length-1||(n=s)}),n},RA=t=>{let e,r={...IA,...t},n=kA(r),i=n.performanceLogger,o,s=!0,c=!1,a=[],d=[],h=(v,E,M)=>{let k;n.eventHandlerInterceptor=(z,B,q,V)=>function(X){let te;i("domEvent",X);let F=vq(X.currentTarget,k.domNode),me=F.some(Ce=>customElements.get(Ce?.tagName?.toLowerCase()));if(X.eventPhase===Event.CAPTURING_PHASE||!me)F.reverse(),te=NA(k.getLastRender(),F);else{let Ce=X.composedPath(),Ne=Ce.slice(Ce.indexOf(X.currentTarget),Ce.indexOf(k.domNode)).reverse();te=NA(k.getLastRender(),Ne,!0)}let Le;return te&&(Le=r.handleInterceptedEvent(e,te,this,X)),i("domEventProcessed",X),Le},r.postProcessProjectionOptions?.(n);let $=M();k=v(E,$,n),n.eventHandlerInterceptor=void 0,a.push(k),d.push(M),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(k,$)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let v=0;v<a.length;v++){let E=d[v]();i("rendered",void 0);try{a[v].update(E)}catch(M){console.error(M)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),e={renderNow:g,scheduleRender:()=>{o||c||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),c=!0},resume:()=>{c=!1,s=!0,e.scheduleRender()},append:(v,E)=>{h(Hp.append,v,E)},insertBefore:(v,E)=>{h(Hp.insertBefore,v,E)},merge:(v,E)=>{h(Hp.merge,v,E)},replace:(v,E)=>{h(Hp.replace,v,E)},detach:v=>{for(let E=0;E<d.length;E++)if(d[E]===v)return d.splice(E,1),a.splice(E,1)[0];throw new Error("renderFunction was not found")}},e}});function $A(t,e){if(e){let r=t.constructor.elementProperties;t.manager.internals.members=Object.fromEntries(Array.from(r,([n,i])=>i.noAccessor?void 0:[n,[(i.readOnly?2048:0)|(i.state?32:16)]]).filter(ST))}else{let r=t.constructor,n=r.__registerControllers?.(t)??void 0;if(r.__registerControllers=void 0,typeof n!="object")throw new Error("Failed to retrieve component meta");t.manager.internals.members=Object.fromEntries(Object.entries(n).filter(([i,[o]])=>(o&63)!==0))}}function FA(t,e=8){return t==null||typeof t=="object"||typeof t=="function"?t:e&4?t==="false"?!1:t===""||!!t:e&2?Number.parseFloat(t):e&1?String(t):t}var Vx,UA,zx=N(()=>{"use strict";Qd();Vx=(t=>(t[t.String=1]="String",t[t.Number=2]="Number",t[t.Boolean=4]="Boolean",t[t.Any=8]="Any",t[t.Unknown=16]="Unknown",t[t.State=32]="State",t[t.Method=64]="Method",t[t.Event=128]="Event",t[t.Element=256]="Element",t[t.ReflectAttr=512]="ReflectAttr",t[t.Mutable=1024]="Mutable",t[t.Prop=31]="Prop",t[t.HasAttribute=15]="HasAttribute",t[t.PropLike=63]="PropLike",t[t.ReadOnly=2048]="ReadOnly",t))(Vx||{});UA=(t,e)=>t.manager.internals.members?.[e]?.[0]});function BA(t){return typeof t?.then=="function"}function Wl(t){Bh!==t&&(Bh=t,queueMicrotask(()=>{Bh===t&&(Bh=void 0)}))}function Xp(t){return Bh}function Gx(t){if(t===void 0){Vl=[];return}let e=Vl.indexOf(t);Vl=e===-1?[...Vl,t]:Vl.slice(0,e+1),queueMicrotask(()=>{Vl=[]})}function jx(){return Vl}function Sq(t){Yp!==t&&(Yp=t,queueMicrotask(()=>{Yp===t&&(Yp=void 0)}))}function xq(){let t=Yp;return Yp=void 0,t}function VA(t){Ut(t,void 0,this)}function zA(t){if(typeof t!="object"&&typeof t!="function"||t===null)return t;let e=new Proxy(t,{get(r,n,i){if(!(Tq.has(n)&&n in r&&r[n]===e)&&(n in r||n in Promise.prototype||typeof n=="symbol"))return typeof r=="function"?r[n]:Reflect.get(r,n,i)},set:(r,n,i,o)=>Reflect.set(r,n,i,o)});return e}function qA(t,e,r){let n=Object.keys(t),i=n.length;zl===void 0&&queueMicrotask(qh),zl??(zl=new Map);let o=zl.get(t);return o===void 0&&(o={callbacks:[],keyCount:i},zl.set(t,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let c=d=>Ut(e,null,d),a=s[i];a===void 0?c(void 0):t[a]===r?c(a):c(void 0)}),r}function qh(){Array.from(zl?.entries()??[]).forEach(([t,{callbacks:e}])=>{let r=Object.keys(t);e.forEach(n=>n(r))}),zl=void 0}function ly(t,e,r){var n;let i=e,o=t.manager.internals;(n=o.allWatchers)[i]??(n[i]=[]);let s=o.allWatchers[i],c=r,a=(d,h,g)=>Ut(c,null,d,h,g);return s.push(a),()=>{let d=s.indexOf(a);d!==-1&&s.splice(d,1)}}function HA(t,e,r){let n=t.manager.internals;return n.trackedValue!==Bx&&n.trackedValue!==r&&n.firePropTrackers(void 0,void 0),n.keyTrackers.length===0&&queueMicrotask(()=>n.firePropTrackers(void 0,void 0)),n.trackedValue=r,n.keyTrackers.push((i,o)=>Ut(e,void 0,r===o?i:void 0)),r}function uy(t=[Xp(),...jx()],e,r){let n=Array.isArray(t)?t:[t],i=n.length+1,o=c=>{i-=1,c!==void 0&&(i=Math.min(i,0)),i===0&&e(c)};n.forEach(c=>qA(c,a=>o(a===void 0?void 0:{key:a,host:c,isReactive:!1}),r));let s=n.find(c=>"manager"in c&&typeof c.manager=="object"&&c.manager.component===c);return s&&HA(s,c=>o(c===void 0?void 0:{key:c,host:s,isReactive:!0}),r),r}function YA(t){Gh.readOnly=!0;try{return t()}finally{Gh.readOnly=!1}}function Pq(t,{host:e,key:r,isReactive:n},i){let o=e,s=o[r]!==t.exports,c=o[r]!==i,a=i!==t.exports;if(s&&!c&&a&&(o[r]=t.exports),e===t.component){if(n){let h=t.component.manager.internals;c&&h.markExports(t,o[r]),ly(t.component,r,g=>{g!==t.exports&&h.markExports(t,g)})}t.assignedProperty=n?void 0:r}t.watchExports(()=>{if(o[r]===t.exports)return;let h=t.component.manager;h.internals.setters[r]?.includes(h.internals.readonlySetter)?YA(()=>{o[r]=t.exports}):o[r]=t.exports})}var cy,WA,Bh,Vl,Yp,Eq,Cq,qx,Gh,jh,GA,Zp,jA,Tq,zl,ay,Wx,sy,Bx,ZA,Hx=N(()=>{"use strict";Qd();zx();cy=Symbol.for("controller"),WA=t=>typeof t=="object"&&t!==null&&(cy in t||"hostConnected"in t||"hostDisconnected"in t||"hostUpdate"in t||"hostUpdated"in t);Vl=[];Eq=async(t,e)=>{let r=qx(t);if(r===void 0)return t;if(await r.ready,typeof e=="function"){let n=r.watchExports(i=>e(i,n))}return r.exports},Cq=async t=>{let e=qx(t);return await e.ready,e},qx=t=>{let r=Xp().manager.internals.resolveExports(t);if(r!==void 0)return r;if(WA(t))return t;let n=xq();if(n!==void 0)return n},Gh={setter:!1,getter:!1,readOnly:!1},jh=new WeakMap;GA=cy;Zp=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new ni,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[GA]=!0,this.ready=this._ready.promise,this._exports=zA(this),this._exportWatchers=new Set;let r=e??Xp(new.target.name);this.component=r,this.component.addController(this),this.component.manager===void 0||(Gx(this),queueMicrotask(()=>this.catchUpLifecycle()))}catchUpLifecycle(){let{manager:e}=this.component;e.connectedCalled&&!this.connectedCalled&&this.triggerConnected(),e._loadCalled&&this.triggerLoad().then(()=>{e.loadedCalled&&this.triggerLoaded()}).catch(console.error)}get exports(){return this._exports}set exports(e){let r=this._exports;r!==e&&(this._exports=e,this._exportWatchers.forEach(Ut),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,r)),this._ready.resolve(e)}setProvisionalExports(e,r=!0){this._exports=r?zA(e):e,this._exportWatchers.forEach(Ut)}watchExports(e){let r=()=>e(this._exports);return this._exportWatchers.add(r),()=>void this._exportWatchers.delete(r)}get use(){return Wl(this.component),Eq}get useRef(){return Wl(this.component),Cq}get useRefSync(){return Wl(this.component),qx}controllerRemoved(){this.component.el.isConnected&&this.triggerDisconnected(),this.triggerDestroy()}onConnected(e){this._callbacks.hostConnected.push(e)}onDisconnected(e){this._callbacks.hostDisconnected.push(e)}onLoad(e){this._callbacks.hostLoad.push(e)}onLoaded(e){this._callbacks.hostLoaded.push(e)}onUpdate(e){this._callbacks.hostUpdate.push(e)}onUpdated(e){this._callbacks.hostUpdated.push(e)}onDestroy(e){this._callbacks.hostDestroy.push(e)}onLifecycle(e){this._callbacks.hostLifecycle.push(e),this.connectedCalled&&this.component.el.isConnected&&this._callLifecycle(e)}triggerConnected(){let e=this;e.hostConnected&&Ut(e.hostConnected,e),this._callbacks.hostConnected.forEach(Ut),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&Ut(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(Ut),this._lifecycleCleanups.forEach(Ut),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await hm(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(hm)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&Ut(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(Ut),this.loadedCalled=!0}triggerUpdate(e){let r=this;r.hostUpdate&&Ut(r.hostUpdate,r,e),this._callbacks.hostUpdate.forEach(VA,e)}triggerUpdated(e){let r=this;r.hostUpdated&&Ut(r.hostUpdated,r,e),this._callbacks.hostUpdated.forEach(VA,e)}triggerDestroy(){let e=this;e.hostDestroy&&Ut(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(Ut)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){Wl(this.component);let r=Ut(e);(Array.isArray(r)?r:[r]).forEach(i=>{typeof i=="function"?this._lifecycleCleanups.push(i):typeof i=="object"&&typeof i.remove=="function"&&this._lifecycleCleanups.push(i.remove)})}};jA=Zp;Tq=new Set(["exports","_exports"]);ay=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let r=this.component.manager.internals;Object.entries(r.members).forEach(([n,[i]])=>{var o;i&Vx.ReadOnly&&((o=r.setters)[n]??(o[n]=[]),r.setters[n].push(r.readonlySetter))})},this.trackedValue=Bx,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(r,n,i)=>{if(Gh.readOnly)return r;throw new Error(`Cannot assign to read-only property "${i}" of ${this.component.el.localName}. Trying to assign "${String(r)}"`)},this.component=e}firePropTrackers(e,r){let n=this.keyTrackers;this.trackedValue=Bx,this.keyTrackers=[],n.forEach(i=>i(e,r))}getSetProxy(e){let r=this.component,n=r.constructor.prototype;if(this._getSetProxy(n,e,"class"),r.manager.isLit)return;let i=r.el.constructor.prototype;n!==i&&this._getSetProxy(i,e,"html")}_getSetProxy(e,r,n){let i=this.component,o=UA(i,r),s;do s=Object.getOwnPropertyDescriptor(e,r);while(!s&&(e=Object.getPrototypeOf(e)));if(!s)return;let c=s.get,a=s.set,d=sy in c,h=sy in a;if(d&&h)return;let g=!d,v=!h,E=g?function(){let $=c.call(this),z=jh.get(this);if(Gh.getter||z===void 0)return $;let B=z.manager.internals;$=B.accessorGetter[r]($,r);let q=B.getters[r]??Wx;for(let V=0;V<q.length;V++)$=q[V]($,r);return $}:c,M=v?function($){let z=c.call(this),B=jh.get(this);if(B===void 0){a.call(this,$);return}let q=B.manager.isLit?$??void 0:FA($,o),V=B.manager.internals;if(q===z)a.call(this,q);else{let X=Gh.setter?Wx:V.setters[r]??Wx;for(let te=0;te<X.length&&(q=X[te](q,z,r),q!==z);te++);q=V.accessorSetter[r](q,z,r),a.call(this,q),q!==z&&V.enabledWatchers[r]?.forEach(te=>te(q,z,r))}V.keyTrackers.length>0&&V?.firePropTrackers(r,$)}:a;g&&(E[sy]=!0),v&&(M[sy]=!0),Object.defineProperty(e,r,{...s,get:E,set:M})}markExports(e,r){(typeof r=="object"&&r!==null||typeof r=="function")&&this._exports.set(r,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},Wx=[],sy=Symbol(),Bx=Symbol();ZA=t=>(...e)=>{let r=jx(),n=new t(...e),i=n.exports;Gx(r.at(-1));let o=n.component.manager.internals;o.markExports(n,i),n.watchExports(c=>o.markExports(n,c)),Sq(n);let s=[n.component,...r].reverse();return uy(s,c=>c===void 0?void 0:Pq(n,c,i),i)}});function Aq(t){"triggerConnected"in t?t.triggerConnected():Ut(t.hostConnected,t)}function Iq(t){"triggerDisconnected"in t?t.triggerDisconnected():Ut(t.hostDisconnected,t)}async function Lq(t){"triggerLoad"in t?await t.triggerLoad():await hm(t.hostLoad,t)}function kq(t){"triggerLoaded"in t?t.triggerLoaded():Ut(t.hostLoaded,t)}function Oq(t){"triggerUpdate"in t?t.triggerUpdate(this):Ut(t.hostUpdate,t,this)}function Nq(t){"triggerUpdated"in t?t.triggerUpdated(this):Ut(t.hostUpdated,t,this)}function Rq(t){"triggerDestroy"in t?t.triggerDestroy():Ut(t.hostDestroy,t)}function tI(t,e){if(!e)return t;let r={...t};return Object.entries(e).forEach(([n,i])=>{typeof i=="object"?r[n]=tI(t[n],i):r[n]=i??t[n]}),r}var JA,Zx,Yx,Mq,XA,Dq,QA,Xx,KA,dy,Jx,eI,Jp=N(()=>{"use strict";Hx();Hx();Qd();zx();JA=(t,e)=>new Zx(t,e),Zx=class extends jA{constructor(e,r){let n="addController"in e,i=new Set;function o(d){i.add(d),!(cy in d)&&e.renderRoot&&e.el.isConnected&&d.hostConnected?.()}function s(d){i.delete(d),d.controllerRemoved?.()}let c=e;if(c.addController=o,c.removeController=s,!n){let d=r??e.constructor.__forceUpdate;c.requestUpdate=()=>d(e)}super(e),this.internals=new ay(this.component),this.destroyed=!1,this._updatePromise=new ni,this._originalLifecycles={},this.isLit=n,this.component.manager=this,$A(e,n),this._controllers=i,this.exports=void 0,this.hasDestroy=Yx in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let a=this.internals;Object.keys(a.members).forEach(d=>{a.accessorGetter[d]=XA,a.accessorSetter[d]=XA,a.getSetProxy(d)}),n?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(a.enableReadonly),Wl(e),jh.set(e.el,e),jh.set(e,e)}_bindLifecycleMethods(){let e=this.component,r=this.isLit,n=e.el===e;this._originalLifecycles={_connectedCallback:r||n?void 0:e.connectedCallback,_disconnectedCallback:r||n?void 0:e.disconnectedCallback,_load:r?e.load:e.componentWillLoad,_loaded:r?e.loaded:e.componentDidLoad,_willUpdate:r?void 0:e.componentWillUpdate,_updated:r?void 0:e.componentDidUpdate,_destroy:e.destroy};let i=this._connectedCallback.bind(this),o=this._disconnectedCallback.bind(this),s=this._update.bind(this),c=this._updated.bind(this);r?e.constructor.prototype.addController.call(e,{hostConnected:i,hostDisconnected:o,hostUpdate:s,hostUpdated:c}):(e.connectedCallback=i,e.disconnectedCallback=o,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=s,e.componentDidUpdate=c),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let r=this.component.el.localName;throw this.component.el.remove(),new Error(`The ${r} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${Yx} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,qh(),e.enableReadonly?.(),this._controllers.forEach(Aq),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(Iq),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,Lq)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&ly(this.component,Yx,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(kq),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;return this._controllers.forEach(Oq,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(Nq,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let r=this._updatePromise;this._updatePromise=new ni,r.resolve(!0)}}async destroy(){if(!this.destroyed){if(this.component.el.isConnected){this.hasDestroy=!1;try{this.component.el.remove()}finally{this.hasDestroy=!0}}this._autoDestroyTimeout=void 0,this.destroyed=!0,this._controllers.forEach(Rq),this._controllers.clear(),await this._originalLifecycles._destroy?.call(this.component)}}_setAutoDestroyTimeout(){if(this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout),!this.component.el.isConnected&&!this.component.autoDestroyDisabled){let e=()=>void this.destroy().catch(console.error);this._autoDestroyTimeout=_T(e,Mq)}}},Yx="autoDestroyDisabled",Mq=1e3,XA=t=>t;Dq=t=>KA(void 0,t),QA=t=>e=>KA(e,t),Xx=class extends Zp{constructor(e,r){super(e);let n=this.exports;try{Wl(this.component);let i=r(this.component,this),o=this.exports!==n;if(BA(i)){o||this.setProvisionalExports(i);let s=i.then(c=>{this.exports=c,super.catchUpLifecycle()}).catch(c=>{this._ready.reject(c),console.error(c)});this.onLoad(async()=>await s)}else(!o||i!==void 0)&&(this.exports=i),queueMicrotask(()=>super.catchUpLifecycle())}catch(i){this._ready.reject(i),console.error(i)}}catchUpLifecycle(){}},KA=ZA(Xx),dy=(t,e)=>new Jx(t,e),Jx=class extends Zp{constructor(e,r){super(),this._attributes=e,this._callback=r,this._observer=new MutationObserver(n=>{n.forEach(i=>{e.includes(i.attributeName)&&r.call(this.component,this.component.el.getAttribute(i.attributeName),i.oldValue,i.attributeName)})})}hostConnected(){this._attributes.forEach(e=>{this.component.el.hasAttribute(e)&&this._callback.call(this.component,null,this.component.el.getAttribute(e),e)}),this._observer.observe(this.component.el,{attributes:!0,attributeOldValue:!0,attributeFilter:this._attributes})}hostDisconnected(){this._observer.disconnect()}},eI=t=>(e={})=>Dq((r,n)=>{let i=t2(r.el),o={_lang:i.lang,_t9nLocale:i.t9nLocale,_loading:!0},s=r;n.onLifecycle(()=>vT(r.el,()=>t("./assets"),({t9nLocale:a,t9nStrings:d,lang:h})=>{let g={...d,_lang:h,_t9nLocale:a,_loading:!1};n.exports=g;let v=d.componentLabel;typeof v=="string"&&"label"in r&&r.label==null&&(r.label??(r.label=v)),c(s.messageOverrides)},e.name));function c(a){let d=n.exports,h=d._original??d,g=tI(h,a);a&&(g._original=h),n.exports=g}return"messageOverrides"in s&&n.onLifecycle(()=>ly(s,"messageOverrides",c)),e.blocking?(n.setProvisionalExports(o,!1),n.ready):o})});var Hh=N(()=>{});var rI=N(()=>{});var Kx=N(()=>{Hh();});var nI=N(()=>{});var e4=N(()=>{Hh();nI();});var iI=N(()=>{Hh();});var sI=N(()=>{e4();});var cI=N(()=>{Kx();});var lI=N(()=>{Hh();rI();Kx();e4();iI();sI();cI()});var py,fy,t4,uI,Yh,dI,Ct,r4,my,un=N(()=>{py=globalThis,fy=py.ShadowRoot&&(py.ShadyCSS===void 0||py.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,t4=Symbol(),uI=new WeakMap,Yh=class{constructor(e,r,n){if(this._$cssResult$=!0,n!==t4)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o,r=this.t;if(fy&&e===void 0){let n=r!==void 0&&r.length===1;n&&(e=uI.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&uI.set(r,e))}return e}toString(){return this.cssText}},dI=t=>new Yh(typeof t=="string"?t:t+"",void 0,t4),Ct=(t,...e)=>{let r=t.length===1?t[0]:e.reduce((n,i,o)=>n+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[o+1],t[0]);return new Yh(r,t,t4)},r4=(t,e)=>{if(fy)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let n=document.createElement("style"),i=py.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,t.appendChild(n)}},my=fy?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(let n of e.cssRules)r+=n.cssText;return dI(r)})(t):t});var $q,Fq,Uq,Vq,zq,Wq,gy,pI,Bq,Gq,Zh,hy,n4,fI,Ps,Xh=N(()=>{un();un();({is:$q,defineProperty:Fq,getOwnPropertyDescriptor:Uq,getOwnPropertyNames:Vq,getOwnPropertySymbols:zq,getPrototypeOf:Wq}=Object),gy=globalThis,pI=gy.trustedTypes,Bq=pI?pI.emptyScript:"",Gq=gy.reactiveElementPolyfillSupport,Zh=(t,e)=>t,hy={toAttribute(t,e){switch(e){case Boolean:t=t?Bq:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},n4=(t,e)=>!$q(t,e),fI={attribute:!0,type:String,converter:hy,reflect:!1,hasChanged:n4};Symbol.metadata??=Symbol("metadata"),gy.litPropertyMetadata??=new WeakMap;Ps=class extends HTMLElement{static addInitializer(e){this._$Ei(),(this.l??=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,r=fI){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(e,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(e,n,r);i!==void 0&&Fq(this.prototype,e,i)}}static getPropertyDescriptor(e,r,n){let{get:i,set:o}=Uq(this.prototype,e)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let c=i?.call(this);o.call(this,s),this.requestUpdate(e,c,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)??fI}static _$Ei(){if(this.hasOwnProperty(Zh("elementProperties")))return;let e=Wq(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Zh("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Zh("properties"))){let r=this.properties,n=[...Vq(r),...zq(r)];for(let i of n)this.createProperty(i,r[i])}let e=this[Symbol.metadata];if(e!==null){let r=litPropertyMetadata.get(e);if(r!==void 0)for(let[n,i]of r)this.elementProperties.set(n,i)}this._$Eh=new Map;for(let[r,n]of this.elementProperties){let i=this._$Eu(r,n);i!==void 0&&this._$Eh.set(i,r)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){let r=[];if(Array.isArray(e)){let n=new Set(e.flat(1/0).reverse());for(let i of n)r.unshift(my(i))}else e!==void 0&&r.push(my(e));return r}static _$Eu(e,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.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(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(e=>e(this))}addController(e){(this._$EO??=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&e.hostConnected?.()}removeController(e){this._$EO?.delete(e)}_$E_(){let e=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(e.set(n,this[n]),delete this[n]);e.size>0&&(this._$Ep=e)}createRenderRoot(){let e=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return r4(e,this.constructor.elementStyles),e}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach(e=>e.hostConnected?.())}enableUpdating(e){}disconnectedCallback(){this._$EO?.forEach(e=>e.hostDisconnected?.())}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EC(e,r){let n=this.constructor.elementProperties.get(e),i=this.constructor._$Eu(e,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:hy).toAttribute(r,n.type);this._$Em=e,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(e,r){let n=this.constructor,i=n._$Eh.get(e);if(i!==void 0&&this._$Em!==i){let o=n.getPropertyOptions(i),s=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:hy;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(e,r,n){if(e!==void 0){if(n??=this.constructor.getPropertyOptions(e),!(n.hasChanged??n4)(this[e],r))return;this.P(e,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,r,n){this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$Em!==e&&(this._$Ej??=new Set).add(e)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let n=this.constructor.elementProperties;if(n.size>0)for(let[i,o]of n)o.wrapped!==!0||this._$AL.has(i)||this[i]===void 0||this.P(i,this[i],o)}let e=!1,r=this._$AL;try{e=this.shouldUpdate(r),e?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw e=!1,this._$EU(),n}e&&this._$AE(r)}willUpdate(e){}_$AE(e){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&=this._$Ej.forEach(r=>this._$EC(r,this[r])),this._$EU()}updated(e){}firstUpdated(e){}};Ps.elementStyles=[],Ps.shadowRootOptions={mode:"open"},Ps[Zh("elementProperties")]=new Map,Ps[Zh("finalized")]=new Map,Gq?.({ReactiveElement:Ps}),(gy.reactiveElementVersions??=[]).push("2.0.4")});var i4=N(()=>{Xh();});var mI=N(()=>{i4();});var hI,Ms,o4=N(()=>{"use strict";hI=":",Ms=(t=>(t[t.ATTRIBUTE=1]="ATTRIBUTE",t[t.REFLECT=2]="REFLECT",t[t.BOOLEAN=4]="BOOLEAN",t[t.NUMBER=8]="NUMBER",t[t.STATE=16]="STATE",t[t.READ_ONLY=32]="READ_ONLY",t[t.NO_ACCESSOR=64]="NO_ACCESSOR",t))(Ms||{})});function s4(t){let e=t;for(;e=e.parentNode??e.host;)if(e?.constructor?.lumina){let r=e;return r.manager?.loadedCalled||r._offspring.push(t),r._postLoad.promise}return!1}function qq(t){let e=t.split(hI);return e.length===1?[e[0],u0(e[0])]:e}function Yq([t,e]){this[t]=e}function Zq(t){let e=t.prototype,r=Element.prototype;Object.hasOwn(e,"isConnected")||(e.setAttribute=function(i,o){r.setAttribute.call(this.el,i,o)},e.removeAttribute=function(i){r.removeAttribute.call(this.el,i)},wy(e,"isConnected",{get(){return Reflect.get(r,"isConnected",this.el)}}))}var wy,Hq,gI,Xq,a4,c4=N(()=>{"use strict";Qd();o4();wy=Object.defineProperty;Hq=globalThis.HTMLElement??qq,gI=class extends Hq{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new ni,this._postLoaded=new ni,this._offspring=[],this._saveInstanceProperties();let e=this.constructor;e._LitConstructor?this._initializeComponent({a:e._LitConstructor}):e._loadPromise.then(Xq).then(this._initializeComponent.bind(this)).catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})})}static{this.lumina=!0}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(e){wy(this.prototype,e,{configurable:!0,enumerable:!0,get(){return this._store[e]},set(r){this._store[e]=r}})}static _bindAsync(e){wy(this.prototype,e,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[e](...r)},configurable:!0})}static _bindSync(e){wy(this.prototype,e,{value(...r){return this._litElement[e](...r)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let e=this.constructor,r=this;e._properties?.forEach(n=>{Object.hasOwn(this,n)&&(this._store[n]=r[n],delete r[n])})}attributeChangedCallback(e,r,n){this._litElement?.attributeChangedCallback(e,r,n),this._litElement||this._pendingAttributes.push(e)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=s4(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(e){let r=this.constructor,n=r._name,i=this._store,o=Object.values(e).find(g=>g.tagName===n),s=`${n}--lazy`,c=o;for(;c&&!Object.hasOwn(c,"lumina");)c=Object.getPrototypeOf(c);Zq(c),!r._LitConstructor&&(r._LitConstructor=o,customElements.define(s,o)),o.lazy=this;let d=document.createElement(s);o.lazy=void 0,this._litElement=d,this._store=d,this._pendingAttributes.forEach(g=>{let v=this.getAttribute(g);d.attributeChangedCallback(g,null,v)}),Object.entries(i).forEach(Yq,d);let h=this.isConnected;(h||this._ancestorLoad)&&(d.connectedCallback?.(),h||d.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}};Xq=async t=>(await t.$$,t),a4={}});function TI(t,e){if(!f4(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return wI!==void 0?wI.createHTML(e):e}function ql(t,e,r=t,n){if(e===Yr)return e;let i=n!==void 0?r._$Co?.[n]:r._$Cl,o=Kh(e)?void 0:e._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(t),i._$AT(t,r,n)),n!==void 0?(r._$Co??=[])[n]=i:r._$Cl=i),i!==void 0&&(e=ql(t,i._$AS(t,e.values),i,n)),e}var u4,yy,wI,d4,As,p4,Jq,jl,Qh,Kh,f4,xI,l4,Jh,yI,bI,Bl,vI,_I,EI,m4,_e,qo,CI,Yr,Oe,SI,Gl,PI,eg,by,Qp,Hl,vy,_y,Sy,xy,MI,Qq,AI,xr=N(()=>{u4=globalThis,yy=u4.trustedTypes,wI=yy?yy.createPolicy("lit-html",{createHTML:t=>t}):void 0,d4="$lit$",As=`lit$${Math.random().toFixed(9).slice(2)}$`,p4="?"+As,Jq=`<${p4}>`,jl=document,Qh=()=>jl.createComment(""),Kh=t=>t===null||typeof t!="object"&&typeof t!="function",f4=Array.isArray,xI=t=>f4(t)||typeof t?.[Symbol.iterator]=="function",l4=`[
10
10
  \f\r]`,Jh=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yI=/-->/g,bI=/>/g,Bl=RegExp(`>|${l4}(?:([^\\s"'>=/]+)(${l4}*=${l4}*(?:[^
11
11
  \f\r"'\`<>=]|("|')|))|$)`,"g"),vI=/'/g,_I=/"/g,EI=/^(?:script|style|textarea|title)$/i,m4=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),_e=m4(1),qo=m4(2),CI=m4(3),Yr=Symbol.for("lit-noChange"),Oe=Symbol.for("lit-nothing"),SI=new WeakMap,Gl=jl.createTreeWalker(jl,129);PI=(t,e)=>{let r=t.length-1,n=[],i,o=e===2?"<svg>":e===3?"<math>":"",s=Jh;for(let c=0;c<r;c++){let a=t[c],d,h,g=-1,v=0;for(;v<a.length&&(s.lastIndex=v,h=s.exec(a),h!==null);)v=s.lastIndex,s===Jh?h[1]==="!--"?s=yI:h[1]!==void 0?s=bI:h[2]!==void 0?(EI.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Bl):h[3]!==void 0&&(s=Bl):s===Bl?h[0]===">"?(s=i??Jh,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Bl:h[3]==='"'?_I:vI):s===_I||s===vI?s=Bl:s===yI||s===bI?s=Jh:(s=Bl,i=void 0);let E=s===Bl&&t[c+1].startsWith("/>")?" ":"";o+=s===Jh?a+Jq:g>=0?(n.push(d),a.slice(0,g)+d4+a.slice(g)+As+E):a+As+(g===-2?c:E)}return[TI(t,o+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},eg=class t{constructor({strings:e,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,c=e.length-1,a=this.parts,[d,h]=PI(e,r);if(this.el=t.createElement(d,n),Gl.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=Gl.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(d4)){let v=h[s++],E=i.getAttribute(g).split(As),M=/([.?@])?(.*)/.exec(v);a.push({type:1,index:o,name:M[2],strings:E,ctor:M[1]==="."?vy:M[1]==="?"?_y:M[1]==="@"?Sy:Hl}),i.removeAttribute(g)}else g.startsWith(As)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(EI.test(i.tagName)){let g=i.textContent.split(As),v=g.length-1;if(v>0){i.textContent=yy?yy.emptyScript:"";for(let E=0;E<v;E++)i.append(g[E],Qh()),Gl.nextNode(),a.push({type:2,index:++o});i.append(g[v],Qh())}}}else if(i.nodeType===8)if(i.data===p4)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(As,g+1))!==-1;)a.push({type:7,index:o}),g+=As.length-1}o++}}static createElement(e,r){let n=jl.createElement("template");return n.innerHTML=e,n}};by=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,i=(e?.creationScope??jl).importNode(r,!0);Gl.currentNode=i;let o=Gl.nextNode(),s=0,c=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new Qp(o,o.nextSibling,this,e):a.type===1?d=new a.ctor(o,a.name,a.strings,this,e):a.type===6&&(d=new xy(o,this,e)),this._$AV.push(d),a=n[++c]}s!==a?.index&&(o=Gl.nextNode(),s++)}return Gl.currentNode=jl,i}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Qp=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,i){this.type=2,this._$AH=Oe,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=ql(this,e,r),Kh(e)?e===Oe||e==null||e===""?(this._$AH!==Oe&&this._$AR(),this._$AH=Oe):e!==this._$AH&&e!==Yr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):xI(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Oe&&Kh(this._$AH)?this._$AA.nextSibling.data=e:this.T(jl.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,i=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=eg.createElement(TI(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new by(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let r=SI.get(e.strings);return r===void 0&&SI.set(e.strings,r=new eg(e)),r}k(e){f4(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of e)i===r.length?r.push(n=new t(this.O(Qh()),this.O(Qh()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Hl=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,i,o){this.type=1,this._$AH=Oe,this._$AN=void 0,this.element=e,this.name=r,this._$AM=i,this.options=o,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Oe}_$AI(e,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)e=ql(this,e,r,0),s=!Kh(e)||e!==this._$AH&&e!==Yr,s&&(this._$AH=e);else{let c=e,a,d;for(e=o[0],a=0;a<o.length-1;a++)d=ql(this,c[n+a],r,a),d===Yr&&(d=this._$AH[a]),s||=!Kh(d)||d!==this._$AH[a],d===Oe?e=Oe:e!==Oe&&(e+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(e)}j(e){e===Oe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},vy=class extends Hl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Oe?void 0:e}},_y=class extends Hl{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Oe)}},Sy=class extends Hl{constructor(e,r,n,i,o){super(e,r,n,i,o),this.type=5}_$AI(e,r=this){if((e=ql(this,e,r,0)??Oe)===Yr)return;let n=this._$AH,i=e===Oe&&n!==Oe||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Oe&&(n===Oe||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},xy=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){ql(this,e)}},MI={M:d4,P:As,A:p4,C:1,L:PI,R:by,D:xI,V:ql,I:Qp,H:Hl,N:_y,U:Sy,B:vy,F:xy},Qq=u4.litHtmlPolyfillSupport;Qq?.(eg,Qp),(u4.litHtmlVersions??=[]).push("3.2.1");AI=(t,e,r)=>{let n=r?.renderBefore??e,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new Qp(e.insertBefore(Qh(),o),o,void 0,r??{})}return i._$AI(t),i}});var Is,Kq,II=N(()=>{Xh();Xh();xr();xr();Is=class extends Ps{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){let e=super.createRenderRoot();return this.renderOptions.renderBefore??=e.firstChild,e}update(e){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=AI(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return Yr}};Is._$litElement$=!0,Is.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Is});Kq=globalThis.litElementPolyfillSupport;Kq?.({LitElement:Is});(globalThis.litElementVersions??=[]).push("4.1.1")});var h4=N(()=>{});var Ii=N(()=>{Xh();xr();II();h4()});var pi,Li,di,Ls=N(()=>{pi={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Li=t=>(...e)=>({_$litDirective$:t,values:e}),di=class{constructor(e){}get _$AU(){return this._$AM._$AU}_$AT(e,r,n){this._$Ct=e,this._$AM=r,this._$Ci=n}_$AS(e,r){return this.update(e,r)}update(e,r){return this.render(...r)}}});var LI,kI=N(()=>{xr();Ls();LI=Li(class extends di{constructor(t){if(super(t),t.type!==pi.ATTRIBUTE||t.name!=="class"||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter(e=>t[e]).join(" ")+" "}update(t,[e]){if(this.st===void 0){this.st=new Set,t.strings!==void 0&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in e)e[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(e)}let r=t.element.classList;for(let n of this.st)n in e||(r.remove(n),this.st.delete(n));for(let n in e){let i=!!e[n];i===this.st.has(n)||this.nt?.has(n)||(i?(r.add(n),this.st.add(n)):(r.remove(n),this.st.delete(n)))}return Yr}})});var OI,eH,NI,RI=N(()=>{xr();Ls();OI="important",eH=" !"+OI,NI=Li(class extends di{constructor(t){if(super(t),t.type!==pi.ATTRIBUTE||t.name!=="style"||t.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(t){return Object.keys(t).reduce((e,r)=>{let n=t[r];return n==null?e:e+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(t,[e]){let{style:r}=t.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(e)),this.render(e);for(let n of this.ft)e[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in e){let i=e[n];if(i!=null){this.ft.add(n);let o=typeof i=="string"&&i.endsWith(eH);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?OI:""):r[n]=i}}return Yr}})});var DI=N(()=>{RI()});var Pge,Ey,tH,Cy,Ty=N(()=>{xr();({I:Pge}=MI),Ey=t=>t.strings===void 0,tH={},Cy=(t,e=tH)=>t._$AH=e});var Py,g4=N(()=>{xr();Ls();Ty();Py=Li(class extends di{constructor(t){if(super(t),t.type!==pi.PROPERTY&&t.type!==pi.ATTRIBUTE&&t.type!==pi.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Ey(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===Yr||e===Oe)return e;let r=t.element,n=t.name;if(t.type===pi.PROPERTY){if(e===r[n])return Yr}else if(t.type===pi.BOOLEAN_ATTRIBUTE){if(!!e===r.hasAttribute(n))return Yr}else if(t.type===pi.ATTRIBUTE&&r.getAttribute(n)===e+"")return Yr;return Cy(t),e}})});function FI(t){let e,r=i=>{e=new URL(i,globalThis.location?.href||void 0).href},n={...t,getAssetPath(i){let o=new URL(i,e);return o.origin!==globalThis.location?.origin?o.href:o.pathname},setAssetPath:r,customElement(i,o){o.runtime=n,o.tagName=i,customElements.get(i)||customElements.define(i,o)}};return r(t.defaultAssetPath),n}function Kp(t,e,r){r==null?t.removeAttribute(e):t.setAttribute(e,r)}var $I,Tt,rH,gt,Se,My,Zr,ks,Er=N(()=>{"use strict";Jp();lI();Qd();mI();i4();c4();c4();Ii();o4();kI();DI();Ls();g4();xr();$I=(t="",e={},r=Xp())=>{let n={emit:i=>{t===""&&qh();let o=new CustomEvent(t,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...e});return r.el.dispatchEvent(o),o}};return t===""&&uy(void 0,i=>{t=i.key},n),n},Tt=$I.bind(null,""),rH=()=>{},gt=class t extends Is{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=JA(this),this._postLoad=this.constructor.lazy?._postLoad??new ni,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new ni,this._enableUpdating=this.enableUpdating,this.enableUpdating=rH;let e=t.prototype.shouldUpdate;this.shouldUpdate!==e&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=e),!1}static finalizeStyles(e){let r=super.finalizeStyles(e),n=this.shadowRootOptions===a4;return this.runtime?.commonStyles===void 0||n?r:[this.runtime.commonStyles,...r]}static createProperty(e,r){let n=typeof r=="number"?r:Array.isArray(r)?r[0]:0,i=Array.isArray(r)?r[1]:void 0;super.createProperty(e,{attribute:n&Ms.ATTRIBUTE&&typeof e=="string"?u0(e):!1,reflect:!!(n&Ms.REFLECT),type:n&Ms.BOOLEAN?Boolean:n&Ms.NUMBER?Number:void 0,state:!!(n&Ms.STATE),readOnly:!!(n&Ms.READ_ONLY),noAccessor:!!(n&Ms.NO_ACCESSOR),...i})}static{this.lumina=!0}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let e=!this.manager.connectedCalled;super.connectedCallback(),e&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let e=this.el.shadowRoot,r=this.constructor,n=r.shadowRootOptions,o=e??(n===a4?this.el:this.el.attachShadow(n));if(e)return Is.prototype.createRenderRoot.call(this),e;if(this.isConnected){let s=o.getRootNode();s.adoptedStyleSheets=[...s.adoptedStyleSheets,...r.elementStyles.map(c=>"styleSheet"in c?c.styleSheet:c)]}return o}async _load(){let e=this.el._ancestorLoad??s4(this.el);e&&await e,await this.manager._load(),this._enableUpdating(!0),this.performUpdate(),this._postLoad.resolve(),await Promise.resolve();let r=this._offspring.filter(n=>!n.manager?.loadedCalled);r.length&&await Promise.allSettled(r.map(async n=>await n.componentOnReady())),this._offspring.length=0,this.el.setAttribute(this.constructor.runtime.hydratedAttribute,""),this.manager._loaded(),this._postLoaded.resolve()}shouldUpdate(e){return this.$changes=e,this._originalShouldUpdate?.(e)??!0}listen(e,r,n){let i=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(e,i,n),()=>this.el.removeEventListener(e,i,n)))}listenOn(e,r,n,i){let o=n?.bind(this)??n;this.manager.onLifecycle(()=>(e.addEventListener(r,o,i),()=>e.removeEventListener(r,o,i)))}async componentOnReady(){return await this._postLoaded.promise,this}};gt.$createEvent=$I;Se=t=>typeof t=="object"&&t!=null?LI(t):t,My=t=>typeof t=="object"&&t!=null?NI(t):t,Zr=Oe;ks={toAttribute:t=>t===!0?"":t===!1?null:t}});function UI(){let{classList:t}=document.body,e=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>t.contains(WI)||t.contains(zI)&&e?"dark":"light",n=s=>document.body.dispatchEvent(new CustomEvent("calciteModeChange",{bubbles:!0,detail:{mode:s}})),i=s=>{o!==s&&n(s),o=s},o=r();n(o),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",s=>i(s.matches?"dark":"light")),new MutationObserver(()=>i(r())).observe(document.body,{attributes:!0,attributeFilter:["class"]})}function sH(){if(tg&&tg.version)return;console.info(`Using Calcite Components ${VI} [Date: ${iH}, Revision: ${oH}]`);let t=tg||globalThis.calciteConfig||{};Object.defineProperty(t,"version",{value:VI,writable:!1}),globalThis.calciteConfig=t}function aH(){ki()&&(document.readyState==="interactive"?UI():document.addEventListener("DOMContentLoaded",()=>UI(),{once:!0})),sH()}var zI,WI,nH,rg,y4,tg,BI,GI,VI,iH,oH,ki,cH,Lt,ng,jI,Xt=N(()=>{Er();h4();zI="calcite-mode-auto",WI="calcite-mode-dark",nH="calcite-mode-light",rg={autoMode:zI,darkMode:WI,lightMode:nH,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left"},y4={filter:250,nextTick:0,resize:150,reposition:100};tg=globalThis.calciteConfig,BI=tg?.focusTrapStack||[],GI=tg?.logLevel||"info",VI="3.0.3",iH="2025-02-19",oH="0b0b89f59";ki=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;aH();cH=FI({defaultAssetPath:"https://js.arcgis.com/calcite-components/3.0.3/",hydratedAttribute:"calcite-hydrated"}),{customElement:Lt,getAssetPath:ng,setAssetPath:jI}=cH});var b4,qI,HI=N(()=>{Xt();Xt();b4=!1,qI=t=>{b4=!0,jI(t)}});function ZI(){b4||qI(Ai(Bp(YI)))}function XI(t){let e=[];for(let r of Object.keys(t))customElements.get(`calcite-${r}`)||e.push(t[r]?.());return e.length>0?Promise.all(e):null}var YI,v4=N(()=>{HI();Bw();St();Go();YI="components/assets"});var Ay,Iy,_4=N(()=>{Ay=Symbol("widget"),Iy=Symbol("widget-test-data")});function S4(t,e){let r=e.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=S4(t,r[i]);else r=lH;let n=e.vnodeSelector;if(ef(n)){let i=e.properties||uH,o=i.key||n,s={key:o,afterCreate:dH,afterUpdate:pH,afterRemoved:JI,parentWidget:t,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return e}function dH(t,e,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=t,Ly.set(t,s),s.afterCreate?.(s,t),n.addHandles(yt(()=>JI(t))),queueMicrotask(()=>{s[Iy].projector.renderNow()})}function pH(t,e,r,{widgetProperties:n}){let i=Ly.get(t);i&&(i.set(n),i.afterUpdate?.(i,t))}function JI(t){let e=Ly.get(t);e&&(e.afterRemoved?.(e,t),e.destroy(),Ly.delete(t))}function ef(t){return typeof t=="function"&&t[Ay]}var lH,uH,Ly,x4=N(()=>{jn();_4();lH=[],uH={},Ly=new WeakMap});function KI(t){QI.add(t),t.finally(()=>QI.delete(t))}function eL(t){return yt()}var QI,tL=N(()=>{jn();St();QI=new Set});function nL(t,e){let r=Object.prototype.hasOwnProperty;for(let n in e)r.call(e,n)&&r.call(t,n)&&(t[n]!=null&&e[n]!=null&&typeof t[n]=="object"&&typeof e[n]=="object"?nL(t[n],e[n]):t[n]=e[n]);return t}var rL,fH,mH,hH,E4,Xr,iL,oL=N(()=>{ai();Sx();WM();ux();vh();St();Mn();Vt();Il();jM();io();Ex();ZM();ci();Cx();qn();xs();jS();DA();v4();x4();_4();tL();Ix();ry();Ra();Uh();fH="esri.widgets.Widget",mH=0;hH=RA({postProcessProjectionOptions(t){let e=t.eventHandlerInterceptor,r=/capture$/i;t.eventHandlerInterceptor=(n,i,o,s)=>{let c=e?.(n,i,o,s),a=r.test(n);if(!((n=n.replace(r,"")).toLowerCase()in o)||a){let d=n[2].toLowerCase()+n.slice(3),h=E=>c?.call(o,E);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),v=s.afterRemoved;s.afterRemoved=E=>{v?.(E),g()}}return c}},handleInterceptedEvent(t,e,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,c=`on${o}${s?"capture":""}`,a=e.properties;(a&&c in a||(c=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&c in a))&&(ey(),t.scheduleRender(),a[c].call(a.bind||r,n))}}),E4=!1,Xr=class extends GM.EsriPromiseMixin(Ts.EventedAccessor){static{this[rL]=!0}constructor(t,e){super(t,e),this._attached=!1,this._projector=hH,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=EP(async()=>{if(this._messageBundleProps?.length){let c=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await bx(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=nL(Ht(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of c)a.status==="rejected"&&nt.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),this.addHandles(eL()),ZI();let r="esri-widget-uid-"+YM(),n=this.render.bind(this);this._trackingTarget=new kl(()=>{this.autoRenderingEnabled&&this.scheduleRender()});let i=()=>({vnodeSelector:"div",properties:{key:`${r}-hidden`,class:"",styles:{display:"none"}},domNode:null,children:void 0,text:void 0}),o=()=>{if(!this._readyForTrueRender||this.destroyed)return null;let c=n()??i(),a=c.properties??={};if(a.key??=r,ef(c.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),a.styles.display??="";let d=0;return c.children?.forEach(h=>{ef(h.vnodeSelector)||(h.properties??={},h.properties.key??=`${this.id}--${d++}`)}),S4(this,c)};this.render=()=>{if(E4)return o();let c=gA(this)??null;if(c)return c;this._trackingTarget.clear(),E4=!0;try{c=ro(this._trackingTarget,o)}catch(a){throw nt.getLogger(this).error(a),a}finally{E4=!1}return c&&wA(this,c),c};let s=this.beforeFirstRender();s?this._resourcesFetch=s.then(()=>{this._readyForTrueRender=!0,this._postInitialize()}):(this._resourcesFetch=Promise.resolve().then(()=>{this._postInitialize()}),this._readyForTrueRender=!0),this.addResolvingPromise(this._resourcesFetch),KI(this._resourcesFetch)}normalizeCtorArgs(t,e){let r={...t};return e&&(r.container=e),r}postInitialize(){}beforeFirstRender(){let t=this.loadDependencies();return this._messageBundleProps?.length||t?Promise.all([t,this._loadLocale()]).then(()=>{}).catch(US):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(mh(this._trackingTarget),mh(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,ty(this))}set container(t){this._get("container")||this._set("container",t)}castContainer(t){return zM(t)}get domNode(){return this.container}set domNode(t){this.container=t}get icon(){return null}set icon(t){this._overrideIfSome("icon",t)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+mH++}set id(t){t&&this._set("id",t)}get label(){return this.declaredClass.split(".").pop()}set label(t){this._overrideIfSome("label",t)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(t){this._set("visible",t)}get[(rL=Ay,Iy)](){return{projector:this._projector}}static{this.vnodeSelector="div"}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(ty(this),this._projector.scheduleRender())}classes(...t){return yA.apply(this,t)}renderNow(){ty(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(zh(()=>this.viewModel,(e,r)=>{r&&this.removeHandles("delegated-events"),e&&bh(e)&&this.addHandles(this._delegatedEventNames.map(n=>Wa(e,n,i=>{this.emit(n,i)})),"delegated-events")},Gw)),this.postInitialize();let t=async()=>{await this._loadLocale().catch(US),this.scheduleRender()};this.addHandles([iS(t),zh(()=>this.uiStrings,t)]),this.addHandles(qM(()=>this.container,e=>{this.destroyed||this._attach(e)},{initial:!0,once:!0}))}_attach(t){t&&(this._projector.merge(t,this.render),this._attached=!0)}_detach(t){this._attached&&(this._projector.detach(this.render),this._attached=!1),t?.parentNode?.removeChild(t)}};ae([fe()],Xr.prototype,"_readyForTrueRender",void 0),ae([fe({value:null})],Xr.prototype,"container",null),ae([jw("container")],Xr.prototype,"castContainer",null),ae([fe()],Xr.prototype,"icon",null),ae([fe()],Xr.prototype,"id",null),ae([fe()],Xr.prototype,"label",null),ae([fe()],Xr.prototype,"renderable",null),ae([fe()],Xr.prototype,"uiStrings",void 0),ae([fe()],Xr.prototype,"viewModel",void 0),ae([fe({value:!0})],Xr.prototype,"visible",null),ae([fe()],Xr.prototype,"key",void 0),ae([fe()],Xr.prototype,"children",void 0),ae([fe()],Xr.prototype,"afterCreate",void 0),ae([fe()],Xr.prototype,"afterUpdate",void 0),ae([fe()],Xr.prototype,"afterRemoved",void 0),Xr=ae([Et(fH)],Xr);iL=Xr});function C4(t){return(e,r)=>{e.hasOwnProperty("_messageBundleProps")||(e._messageBundleProps=e._messageBundleProps?e._messageBundleProps.slice():[]),e._messageBundleProps.push({bundlePath:t,propertyName:r})}}var sL=N(()=>{});function fi(t,e,...r){return typeof t!="function"||ef(t)?wH(t,e??null,...r):t(e,...r)}var gH,aL,wH,cL=N(()=>{x4();gH=function(t){return{vnodeSelector:"",properties:void 0,children:void 0,text:t.toString(),domNode:null}},aL=function(t,e){for(var r=0,n=t.length;r<n;r++){var i=t[r];Array.isArray(i)?aL(i,e):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=gH(i)),e.push(i))}},wH=function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:t,properties:e||void 0,children:void 0,text:r[0],domNode:null};var i=[];return aL(r,i),{vnodeSelector:t,properties:e||void 0,children:i,text:void 0,domNode:null}}});function bH(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function vH(){return bH().startsWith("dark")}function lL(){return`${yH}${vH()?"dark":"light"}`}var yH,uL=N(()=>{yH="calcite-mode-"});function _H(t){return t.map(e=>{let r="";for(let n=0;n<e;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var Os,tf=N(()=>{Os=()=>_H([2,1,1,1,3])});var Jr,Ho=N(()=>{Jp();Xt();Jr=eI(ng)});var rf,SH,T4,dL=N(()=>{Xt();Ii();Er();tf();Ho();un();rf={percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},SH=Ct`:host{position:relative;margin-inline:auto;display:flex;align-items:center;justify-content:center;opacity:1;flex-direction:column;min-block-size:var(--calcite-loader-size);font-size:var(--calcite-loader-font-size);stroke-width:var(--calcite-internal-stroke-width);fill:none;transform:scale(1);padding-block:var(--calcite-loader-spacing, 4rem)}:host([scale=s]){--calcite-internal-stroke-width: 3;--calcite-internal-text-offset: var(--calcite-spacing-xxs);--calcite-internal-loader-font-size: var(--calcite-font-size--3);--calcite-internal-loader-size: 2rem;--calcite-internal-loader-size-inline: .75rem;--calcite-internal-loader-value-line-height: .625rem}:host([scale=m]){--calcite-internal-stroke-width: 6;--calcite-internal-text-offset: var(--calcite-spacing-sm);--calcite-internal-loader-font-size: var(--calcite-font-size-0);--calcite-internal-loader-size: 4rem;--calcite-internal-loader-size-inline: 1rem;--calcite-internal-loader-value-line-height: 1.375rem}:host([scale=l]){--calcite-internal-stroke-width: 8;--calcite-internal-text-offset: var(--calcite-spacing-md);--calcite-internal-loader-font-size: var(--calcite-font-size-2);--calcite-internal-loader-size: 6rem;--calcite-internal-loader-size-inline: 1.5rem;--calcite-internal-loader-value-line-height: 1.71875rem}.text{display:block;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-start:var(--calcite-loader-text-spacing, var(--calcite-internal-text-offset));font-weight:var(--calcite-loader-text-weight, var(--calcite-font-weight-normal));color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.percentage{display:block;text-align:center;font-size:var(--calcite-loader-font-size);inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));line-height:var(--calcite-internal-loader-value-line-height);align-self:center;color:var(--calcite-loader-text-color, var(--calcite-color-text-1))}.rings{position:relative;display:flex;overflow:visible;opacity:1;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring{position:absolute;inset-block-start:0px;transform-origin:center;overflow:visible;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-internal-loader-size));block-size:var(--calcite-loader-size, var(--calcite-internal-loader-size))}.ring--track{stroke:var(--calcite-loader-track-color, var(--calcite-color-transparent-press))}.ring--progress{stroke:var(--calcite-loader-progress-color, var(--calcite-color-brand));transform:rotate(-90deg);transition:all var(--calcite-internal-animation-timing-fast) linear}:host([type=indeterminate]) .ring--progress{animation:loader-clockwise calc(var(--calcite-internal-animation-timing-slow) / var(--calcite-internal-duration-factor) * 2 / var(--calcite-internal-duration-factor)) linear infinite}:host([inline]){--calcite-internal-stroke-width: 2;position:relative;margin:0;stroke:currentColor;stroke-width:2;padding-block:0px;block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));min-block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));vertical-align:calc(var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline))) * -1 * .2)}:host([inline]) .rings{inset-block-start:0px;margin:0;inset-inline-start:0;inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring{inline-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)));block-size:var(--calcite-loader-size, var(--calcite-loader-size-inline, var(--calcite-internal-loader-size-inline)))}:host([inline]) .ring--progress{stroke:var(--calcite-loader-progress-color-inline, currentColor)}:host([complete]){opacity:0;transform:scale(.75);transform-origin:center;transition:opacity var(--calcite-internal-animation-timing-medium) linear 1s,transform var(--calcite-internal-animation-timing-medium) linear 1s}:host([complete]) .rings{opacity:0;transform:scale(.75);transform-origin:center;transition:opacity calc(.18s * var(--calcite-internal-duration-factor)) linear .8s,transform calc(.18s * var(--calcite-internal-duration-factor)) linear .8s}:host([complete]) .percentage{color:var(--calcite-color-brand);transform:scale(1.05);transform-origin:center;transition:color var(--calcite-internal-animation-timing-medium) linear,transform var(--calcite-internal-animation-timing-medium) linear}@keyframes loader-clockwise{0%{transform:rotate(0)}to{transform:rotate(360deg)}}:host([hidden]){display:none}[hidden]{display:none}`,T4=class extends gt{constructor(){super(...arguments),this.messages=Jr({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}static{this.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9}}static{this.styles=SH}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(e){e.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(e.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||e.has("messages"))&&this.updateFormatter()}valueChangeHandler(){this.complete=this.type.startsWith("determinate")&&this.value===100}formatValue(){return this.type!=="determinate-value"?`${this.value}`:this.formatter.format(this.value/100)}getSize(e){return{s:32,m:64,l:96}[e]}getInlineSize(e){return{s:12,m:16,l:24}[e]}updateFormatter(){this.type!=="determinate-value"||this.formatter?.resolvedOptions().locale===this.messages._lang||(this.formatter=new Intl.NumberFormat(this.messages._lang,{style:"percent"}))}render(){let{el:e,inline:r,label:n,text:i,type:o,value:s}=this,c=e.id||Os(),a=o!=="indeterminate",d=Math.floor(s);return this.el.ariaLabel=n,this.el.ariaValueMax=a?"100":void 0,this.el.ariaValueMin=a?"0":void 0,this.el.ariaValueNow=a?d.toString():void 0,Kp(this.el,"id",c),this.el.role="progressbar",_e`<div class=${Se(rf.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&_e`<div class=${Se(rf.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&_e`<div class=${Se(rf.text)}>${i}</div>`||""}`}renderRing(e){let{inline:r,scale:n,value:i}=this,o=r?this.getInlineSize(n):this.getSize(n),s=o*.45,c;if(e==="progress"){let a=2*s*Math.PI,d=(this.type.startsWith("determinate")?i:24)/100*a,h=a-d;c={"stroke-dasharray":`${d} ${h}`}}return _e`<svg aria-hidden=true class=${Se({[rf.ring]:!0,[rf.trackRing]:e==="track",[rf.progressRing]:e==="progress"})} style=${My(c)} viewBox=${`0 0 ${o} ${o}`}>${qo`<circle cx=${o/2} cy=${o/2} r=${s??Oe} />`}</svg>`}};Lt("calcite-loader",T4)});var ky=N(()=>{dL()});function Qa(t){let e="dir",r=`[${e}]`,n=Ka(t,r);return n?n.getAttribute(e):"ltr"}function bL(t){return t.getRootNode()}function vL(t){return t.host||null}function Yl(t,{selector:e,id:r}){if(!t)return null;t.assignedSlot&&(t=t.assignedSlot);let n=bL(t);return(r?"getElementById"in n?n.getElementById(r):null:e?n.querySelector(e):null)||Yl(vL(n),{selector:e,id:r})}function Ka(t,e){return t?t.closest(e)||Ka(vL(bL(t)),e):null}function WH(t){return typeof t?.setFocus=="function"}async function Ry(t){if(t)return WH(t)?t.setFocus():t.focus()}function BH(t){if(t)return zH(t,A4)[0]??t}function ec(t){BH(t)?.focus()}function GH(t,e){return t.filter(r=>r.matches(e))}function Ns(t,e,r){if(typeof e=="string"&&e!=="")return e;if(e===""||e===!0)return t[r]}function nf(t){return(!!t).toString()}function _L(t){return On(t)||qH(t)}function jH(t){return HH(t).filter(e=>e.nodeType===Node.TEXT_NODE).map(e=>e.textContent).join("").trim()}function SL(t){for(let e of t.childNodes)if(e.nodeType===Node.TEXT_NODE&&e.textContent?.trim()!==""||e.nodeType===Node.ELEMENT_NODE)return!0;return!1}function qH(t){return!!jH(t)}function HH(t){return t.currentTarget.assignedNodes({flatten:!0})}function On(t){return!!Dy(t).length}function Dy(t,e){return YH(t.target,e)}function YH(t,e){let r=t.assignedElements({flatten:!0});return e?GH(r,e):r}function xL(t){return!!(t.isPrimary&&t.button===0)}function EL(t){return t.detail===0}function CL(t,e){if(t.parentNode!==e.parentNode)return!1;let r=Array.from(t.parentNode.children);return r.indexOf(t)<r.indexOf(e)}async function TL(t,e,r,n){return XH(t,e,"transition",r,n)}async function ZH(t,e){await M4(),t?.(),await M4(),e?.()}function mL(t,e,r){let n=e==="transition"?"transitionProperty":"animationName";return t.getAnimations().find(i=>i[n]===r)}async function XH(t,e,r,n,i){let o=mL(t,r,e);if(o||(await M4(),o=mL(t,r,e)),!o)return ZH(n,i);n?.();try{await o.finished}catch{}finally{i?.()}}function M4(){return new Promise(t=>requestAnimationFrame(()=>t()))}function og(t){return t.endsWith("px")}var xH,P4,hL,ig,Oy,Ny,EH,CH,TH,gL,wL,PH,MH,yL,AH,IH,LH,kH,OH,NH,RH,pL,DH,$H,FH,fL,UH,VH,zH,A4,dn=N(()=>{tf();Xt();xH=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],P4=xH.join(","),hL=typeof Element>"u",ig=hL?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,Oy=!hL&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},Ny=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",s=o||r&&e&&t(e.parentNode);return s},EH=function(t){var e,r=t==null||(e=t.getAttribute)===null||e===void 0?void 0:e.call(t,"contenteditable");return r===""||r==="true"},CH=function(t,e,r){if(Ny(t))return[];var n=Array.prototype.slice.apply(t.querySelectorAll(P4));return e&&ig.call(t,P4)&&n.unshift(t),n=n.filter(r),n},TH=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!Ny(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=t(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ig.call(s,P4);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!Ny(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=t(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},gL=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},wL=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||EH(t))&&!gL(t)?0:t.tabIndex},PH=function(t,e){var r=wL(t);return r<0&&e&&!gL(t)?0:r},MH=function(t,e){return t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex},yL=function(t){return t.tagName==="INPUT"},AH=function(t){return yL(t)&&t.type==="hidden"},IH=function(t){var e=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(r){return r.tagName==="SUMMARY"});return e},LH=function(t,e){for(var r=0;r<t.length;r++)if(t[r].checked&&t[r].form===e)return t[r]},kH=function(t){if(!t.name)return!0;var e=t.form||Oy(t),r=function(o){return e.querySelectorAll('input[type="radio"][name="'+o+'"]')},n;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")n=r(window.CSS.escape(t.name));else try{n=r(t.name)}catch(o){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",o.message),!1}var i=LH(n,t.form);return!i||i===t},OH=function(t){return yL(t)&&t.type==="radio"},NH=function(t){return OH(t)&&!kH(t)},RH=function(t){var e,r=t&&Oy(t),n=(e=r)===null||e===void 0?void 0:e.host,i=!1;if(r&&r!==t){var o,s,c;for(i=!!((o=n)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(n)||t!=null&&(c=t.ownerDocument)!==null&&c!==void 0&&c.contains(t));!i&&n;){var a,d,h;r=Oy(n),n=(a=r)===null||a===void 0?void 0:a.host,i=!!((d=n)!==null&&d!==void 0&&(h=d.ownerDocument)!==null&&h!==void 0&&h.contains(n))}}return i},pL=function(t){var e=t.getBoundingClientRect(),r=e.width,n=e.height;return r===0&&n===0},DH=function(t,e){var r=e.displayCheck,n=e.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var i=ig.call(t,"details>summary:first-of-type"),o=i?t.parentElement:t;if(ig.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=t;t;){var c=t.parentElement,a=Oy(t);if(c&&!c.shadowRoot&&n(c)===!0)return pL(t);t.assignedSlot?t=t.assignedSlot:!c&&a!==t.ownerDocument?t=a.host:t=c}t=s}if(RH(t))return!t.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return pL(t);return!1},$H=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var e=t.parentElement;e;){if(e.tagName==="FIELDSET"&&e.disabled){for(var r=0;r<e.children.length;r++){var n=e.children.item(r);if(n.tagName==="LEGEND")return ig.call(e,"fieldset[disabled] *")?!0:!n.contains(t)}return!0}e=e.parentElement}return!1},FH=function(t,e){return!(e.disabled||Ny(e)||AH(e)||DH(e,t)||IH(e)||$H(e))},fL=function(t,e){return!(NH(e)||wL(e)<0||!FH(t,e))},UH=function(t){var e=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(e)||e>=0)},VH=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=PH(c,s),d=s?t(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(MH).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},zH=function(t,e){e=e||{};var r;return e.getShadowRoot?r=TH([t],e.includeContainer,{filter:fL.bind(null,e),flatten:!1,getShadowRoot:e.getShadowRoot,shadowRootFilter:UH}):r=CH(t,e.includeContainer,fL.bind(null,e)),VH(r)},A4={getShadowRoot:!0}});function Nn(t,e,r){if(!ki())return;let n=JH(t);return new n(e,r)}function JH(t){class e extends window.MutationObserver{constructor(n){super(n),this.observedEntry=[],this.callback=n}observe(n,i){return this.observedEntry.push({target:n,options:i}),super.observe(n,i)}unobserve(n){let i=this.observedEntry.filter(o=>o.target!==n);this.observedEntry=[],this.callback(super.takeRecords(),this),this.disconnect(),i.forEach(o=>this.observe(o.target,o.options))}}return function(){return t==="intersection"?window.IntersectionObserver:t==="mutation"?e:window.ResizeObserver}()}var tc=N(()=>{Xt();});function QH(t){return ML[t]>=ML[GI]}function of(t,...e){QH(t)&&console[t].call(this,"%ccalcite","background: #007AC2; color: #fff; border-radius: 4px; padding: 2px 4px;",...e)}function KH(t,{component:e,name:r,suggested:n,removalVersion:i}){let o=`${t}:${t==="component"?"":e}${r}`;if(PL.has(o))return;PL.add(o);let s=Array.isArray(n);s&&!I4&&(I4=new Intl.ListFormat("en",{style:"long",type:"disjunction"}));let c=`[${r}] ${t} is deprecated and will be removed in ${i==="future"?"a future version":`v${i}`}.${n?` Use ${s?I4.format(n.map(a=>`"${a}"`)):`"${n}"`} instead.`:""}`;of("warn",c)}var PL,ML,I4,L4,k4=N(()=>{Xt();PL=new Set,ML={trace:0,debug:1,info:2,warn:4,error:8,off:10};L4={debug:t=>of("debug",t),info:t=>of("info",t),warn:t=>of("warn",t),error:t=>of("error",t),trace:t=>of("trace",t),deprecated:KH}});function LL({icon:t,scale:e}){let r=IL[e],n=nY(t),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function tY(t){let e=LL(t),r=kL(e);if(r)return r;O4[e]||(O4[e]=fetch(ng(`./assets/icon/${e}.json`)).then(i=>i.json()).catch(()=>(L4.error(`${t.icon} (${t.scale}) icon failed to load`),"")));let n=await O4[e];return AL[e]=n,n}function rY(t){return kL(LL(t))}function kL(t){return AL[t]}function nY(t){let e=!isNaN(Number(t.charAt(0))),r=t.split("-");if(r.length>0){let n=/[a-z]/i;t=r.map((i,o)=>i.replace(n,function(s,c){return o===0&&c===0?s:s.toUpperCase()})).join("")}return e?`i${t}`:t}var eY,AL,O4,IL,iY,N4,OL=N(()=>{Xt();Ii();Er();dn();tc();k4();un();eY={flipRtl:"flip-rtl"},AL={},O4={},IL={s:16,m:24,l:32};iY=Ct`:host{display:inline-flex;color:var(--calcite-icon-color, var(--calcite-ui-icon-color, currentColor))}:host([scale=s]){inline-size:16px;block-size:16px;min-inline-size:16px;min-block-size:16px}:host([scale=m]){inline-size:24px;block-size:24px;min-inline-size:24px;min-block-size:24px}:host([scale=l]){inline-size:32px;block-size:32px;min-inline-size:32px;min-block-size:32px}.flip-rtl{transform:scaleX(-1)}.svg{display:block}:host([hidden]){display:none}[hidden]{display:none}`,N4=class extends gt{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}static{this.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1}}static{this.styles=iY}connectedCallback(){if(super.connectedCallback(),this.preload){this.visible=!0,this.loadIconPathData();return}this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(e){(e.has("icon")&&(this.hasUpdated||this.icon!==null)||e.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){let{icon:e,scale:r,visible:n}=this;if(!ki()||!e||!n)return;let i={icon:e,scale:r},o=rY(i)||await tY(i);e===this.icon&&(this.pathData=o)}waitUntilVisible(e){if(this.intersectionObserver=Nn("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,e())})},{rootMargin:"50px"}),!this.intersectionObserver){e();return}this.intersectionObserver.observe(this.el)}render(){let{el:e,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Qa(e),c=IL[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=nf(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,_e`<svg aria-hidden=true class=${Se({[eY.flipRtl]:s==="rtl"&&r,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${c} ${c}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(h=>typeof h=="string"?qo`<path d=${h??Oe} />`:qo`<path d=${h.d??Oe} opacity=${("opacity"in h?h.opacity:1)??Oe} />`)}</svg>`}};Lt("calcite-icon",N4)});var Zl=N(()=>{OL()});function oY(t){this._$AN!==void 0?($y(this),this._$AM=t,NL(this)):this._$AM=t}function sY(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let o=r;o<n.length;o++)sg(n[o],!1),$y(n[o]);else n!=null&&(sg(n,!1),$y(n));else sg(this,t)}var sg,$y,NL,aY,Fy,RL=N(()=>{Ty();Ls();Ls();sg=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),sg(n,e);return!0},$y=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},NL=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),aY(e)}};aY=t=>{t.type==pi.CHILD&&(t._$AP??=sY,t._$AQ??=oY)},Fy=class extends di{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),NL(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(sg(this,e),$y(this))}setValue(e){if(Ey(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var mi,D4,R4,wt,ao=N(()=>{xr();RL();Ls();mi=()=>new D4,D4=class{},R4=new WeakMap,wt=Li(class extends Fy{render(t){return Oe}update(t,[e]){let r=e!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=e,this.ht=t.options?.host,this.rt(this.ct=t.element)),Oe}rt(t){if(this.isConnected||(t=void 0),typeof this.Y=="function"){let e=this.ht??globalThis,r=R4.get(e);r===void 0&&(r=new WeakMap,R4.set(e,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,t),t!==void 0&&this.Y.call(this.ht,t)}else this.Y.value=t}get lt(){return typeof this.Y=="function"?R4.get(this.ht??globalThis)?.get(this.Y):this.Y?.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}})});var $4,cY,$L,rc,DL,F4,sf,R0e,D0e,Uy=N(()=>{xr();$4=Symbol.for(""),cY=t=>{if(t?.r===$4)return t?._$litStatic$},$L=t=>({_$litStatic$:t,r:$4}),rc=(t,...e)=>({_$litStatic$:e.reduce((r,n,i)=>r+(o=>{if(o._$litStatic$!==void 0)return o._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${o}. Use 'unsafeStatic' to pass non-literal values, but
12
12
  take care to ensure page security.`)})(n)+t[i+1],t[0]),r:$4}),DL=new Map,F4=t=>(e,...r)=>{let n=r.length,i,o,s=[],c=[],a,d=0,h=!1;for(;d<n;){for(a=e[d];d<n&&(o=r[d],(i=cY(o))!==void 0);)a+=i+e[++d],h=!0;d!==n&&c.push(o),s.push(a),d++}if(d===n&&s.push(e[n]),h){let g=s.join("$$lit$$");(e=DL.get(g))===void 0&&(s.raw=s,DL.set(g,e=s)),r=c}return t(e,...r)},sf=F4(_e),R0e=F4(qo),D0e=F4(CI)});function uY(t){return`${t.split("-").map((e,r)=>r===0?e:`${e[0].toUpperCase()}${e.slice(1)}`).join("")}${lY.includes(t)?"Input":"Change"}`}function z4(t){return"checked"in t}function dY(t,e){if(Ka(e.parentElement,"[form]"))return!0;let r="calciteInternalFormComponentRegister",n=!1;return t.addEventListener(r,i=>{n=i.composedPath().some(o=>W4.has(o)),i.stopPropagation()},{once:!0}),e.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0})),n}function pY(t,{status:e,message:r,icon:n}){"status"in t&&(t.status=e),"validationIcon"in t&&typeof t.validationIcon!="string"&&(t.validationIcon=n),"validationMessage"in t&&!t.validationMessage&&(t.validationMessage=r)}function zL(t){return t.nodeName==="CALCITE-RADIO-BUTTON"?Ka(t,"calcite-radio-button-group"):t}function FL(t){let e=t?.target,r=e?.validationMessage,n=zL(e?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;t?.preventDefault(),"validity"in n&&(n.validity=e?.validity),n.dispatchEvent(fY),pY(n,{message:r,icon:!0,status:"invalid"});let s=uY(i);n.addEventListener(s,()=>{"status"in n&&(n.status="idle"),"validationIcon"in n&&(n.validationIcon===""||n.validationIcon===!0)&&(n.validationIcon=!1),"validationMessage"in n&&n.validationMessage===r&&(n.validationMessage=""),"validity"in n&&(n.validity=e?.validity)},{once:!0})}function Vy(t){let{formEl:e}=t;return e?(e.addEventListener("invalid",FL,!0),e.requestSubmit(),e.removeEventListener("invalid",FL,!0),requestAnimationFrame(()=>{let r=e.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function WL(t){t.formEl?.reset()}function BL(t){let{el:e,value:r}=t,n=B4(t);if(!n||dY(n,e))return;t.formEl=n,t.defaultValue=r,z4(t)&&(t.defaultChecked=t.checked);let i=mY.bind(t);n.addEventListener("reset",i),V4.set(t.el,i),W4.add(e)}function B4(t){let{el:e,form:r}=t;return r?Yl(e,{id:r}):Ka(e,"form")}function mY(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),z4(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue,this.onFormReset?.()}function GL(t){let{el:e,formEl:r}=t;if(!r)return;let n=V4.get(e);r.removeEventListener("reset",n),V4.delete(e),t.formEl=null,W4.delete(e)}function hY(t){let{el:e,formEl:r,name:n,value:i}=t,{ownerDocument:o}=e,s=e.querySelectorAll(`input[slot="${U4}"]`);if(!r||!n){s.forEach(g=>{UL(g),g.remove()});return}let c=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let v=c.find(E=>E==g.value);v!=null?(d.add(v),VL(t,g,v)):a.push(g)});let h;c.forEach(g=>{if(d.has(g))return;let v=a.pop();v||(v=o.createElement("input"),v.ariaHidden="true",v.slot=U4),h||(h=o.createDocumentFragment()),h.append(v),v.addEventListener("input",jL),VL(t,v,g)}),h&&e.append(h),a.forEach(g=>{UL(g),g.remove()})}function VL(t,e,r){let{defaultValue:n,disabled:i,form:o,name:s,required:c}=t;e.defaultValue=n,e.disabled=i,e.name=s,e.required=c,e.tabIndex=-1,o?e.setAttribute("form",o):e.removeAttribute("form"),z4(t)?(e.checked=t.checked,e.defaultChecked=t.defaultChecked,e.value=t.checked?r||"on":""):e.value=r||"",t.syncHiddenFormInput?.(e);let a=zL(t.el);if(a&&"validity"in a)for(let d in{...e?.validity})a.validity[d]=e.validity[d]}var lY,U4,V4,W4,fY,zy,jL,UL,qL,G4=N(()=>{xr();dn();lY=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];U4="hidden-form-input";V4=new WeakMap,W4=new WeakSet;fY=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});zy="calciteInternalHiddenInputInput",jL=t=>{t.target.dispatchEvent(new CustomEvent(zy,{bubbles:!0}))},UL=t=>t.removeEventListener("input",jL);qL=({component:t})=>(hY(t),_e`<slot name=${U4}></slot>`)});function gY(){let{disabled:t}=this;t||HTMLElement.prototype.click.call(this)}function HL(t){t.target.disabled&&t.preventDefault()}function ZL(t){t.target.disabled&&(t.stopImmediatePropagation(),t.preventDefault())}function nc(t){if(t.disabled){t.el.setAttribute("aria-disabled","true"),t.el.contains(document.activeElement)&&document.activeElement.blur(),wY(t);return}bY(t),t.el.removeAttribute("aria-disabled")}function wY(t){t.el.click=gY,yY(t.el)}function yY(t){t.addEventListener("pointerdown",HL,Wy),YL.forEach(e=>t.addEventListener(e,ZL,Wy))}function bY(t){delete t.el.click,vY(t.el)}function vY(t){t.removeEventListener("pointerdown",HL,Wy),YL.forEach(e=>t.removeEventListener(e,ZL,Wy))}var YL,Wy,_Y,ic,ag=N(()=>{xr();Er();YL=["mousedown","mouseup","click"];Wy={capture:!0};_Y={container:"interaction-container"},ic=({children:t,disabled:e})=>_e`<div class=${Se(_Y.container)} .inert=${e}>${t}</div>`});function xY(t,e){let r,n="custom-element-ancestor-check",i=o=>{o.stopImmediatePropagation();let s=o.composedPath();r=s.slice(s.indexOf(e),s.indexOf(t))};return t.addEventListener(n,i,{once:!0}),e.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),t.removeEventListener(n,i),r.filter(o=>o!==e&&o!==t).filter(o=>o.tagName?.includes("-")).length>0}function cf(t){if(!t)return;let e=SY(t.el);if(cg.has(e)&&e===t.labelEl||!e&&Xl.has(t))return;let r=CY.bind(t);if(e){t.labelEl=e;let n=af.get(e)||[];n.push(t),af.set(e,n.sort(KL)),cg.has(t.labelEl)||(cg.set(t.labelEl,JL),t.labelEl.addEventListener(QL,JL)),Xl.delete(t),document.removeEventListener(dg,ug.get(t)),By.set(t,r),document.addEventListener(lg,r)}else Xl.has(t)||(r(),document.removeEventListener(lg,By.get(t)))}function Gy(t){if(!t||(Xl.delete(t),document.removeEventListener(dg,ug.get(t)),document.removeEventListener(lg,By.get(t)),ug.delete(t),By.delete(t),!t.labelEl))return;let e=af.get(t.labelEl);e.length===1&&(t.labelEl.removeEventListener(QL,cg.get(t.labelEl)),cg.delete(t.labelEl)),af.set(t.labelEl,e.filter(r=>r!==t).sort(KL)),t.labelEl=null}function KL(t,e){return CL(t.el,e.el)?-1:1}function pg(t){return t.label||t.labelEl?.textContent?.trim()||""}function JL(t){let e=t.detail.sourceEvent.target,r=af.get(this),n=r.find(o=>o.el===e);if(r.includes(n))return;let i=r[0];i.disabled||i.onLabelClick(t)}function EY(){Xl.has(this)&&cf(this)}function CY(){Xl.add(this);let t=ug.get(this)||EY.bind(this);ug.set(this,t),document.addEventListener(dg,t)}async function ek(t){if(await t.componentOnReady(),af.has(t))return;let e=t.ownerDocument?.getElementById(t.for);e&&requestAnimationFrame(()=>{for(let r of Xl)if(r.el===e){cf(r);break}})}var QL,dg,lg,XL,af,cg,ug,By,Xl,SY,jy=N(()=>{dn();QL="calciteInternalLabelClick",dg="calciteInternalLabelConnected",lg="calciteInternalLabelDisconnected",XL="calcite-label",af=new WeakMap,cg=new WeakMap,ug=new WeakMap,By=new WeakMap,Xl=new Set,SY=t=>{let{id:e}=t,r=e&&Yl(t,{selector:`${XL}[for="${e}"]`});if(r)return r;let n=Ka(t,XL);return!n||xY(n,t)?null:n}});async function En(t){if(await t.componentOnReady(),!!ki())return t.requestUpdate(),new Promise(e=>requestAnimationFrame(()=>e()))}var Rs=N(()=>{Xt();});function Rn(t){return t==="l"?"m":"s"}var lf=N(()=>{k4();});var hi,TY,qy,tk=N(()=>{Xt();xr();ao();Uy();Er();Jp();G4();ag();jy();Rs();tc();lf();Ho();dn();un();hi={buttonLoader:"calcite-button--loader",content:"content",contentSlotted:"content--slotted",icon:"icon",iconStart:"icon--start",iconEnd:"icon--end",loadingIn:"loading-in",loadingOut:"loading-out",iconStartEmpty:"icon-start-empty",iconEndEmpty:"icon-end-empty",buttonPadding:"button-padding",buttonPaddingShrunk:"button-padding--shrunk"},TY=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:inline-block;inline-size:auto;vertical-align:middle;border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0))}:host a,:host button{--calcite-internal-button-content-margin: .5rem;--calcite-internal-button-padding-x: 7px;--calcite-internal-button-padding-y-internal: 3px;position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;cursor:pointer;-webkit-user-select:none;user-select:none;appearance:none;align-items:center;justify-content:center;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;outline-color:transparent;background-color:var(--calcite-button-background-color, var(--calcite-internal-button-background-color, var(--calcite-color-transparent)));border-color:var(--calcite-button-border-color, var(--calcite-internal-button-border-color, var(--calcite-color-transparent)));border-radius:var(--calcite-button-corner-radius, var(--calcite-internal-button-corner-radius, 0));color:var(--calcite-button-text-color, var(--calcite-internal-button-text-color, currentColor));padding-block:var(--calcite-internal-button-padding-y-internal);padding-inline:var(--calcite-internal-button-padding-x);transition:color var(--calcite-animation-timing) ease-in-out,background-color var(--calcite-animation-timing) ease-in-out,box-shadow var(--calcite-animation-timing) ease-in-out,outline-color var(--calcite-internal-animation-timing-fast) ease-in-out}:host a:hover,:host button:hover{text-decoration-line:none}:host a:focus,:host button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host a span,:host button span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host a calcite-loader,:host button calcite-loader{color:var(--calcite-button-loader-color, var(--calcite-internal-button-loader-color, currentColor))}:host([round]){--calcite-internal-button-corner-radius: 50px}.content{margin-inline:var(--calcite-internal-button-content-margin)}.icon-start-empty .content{margin-inline-start:unset}.icon-end-empty .content{margin-inline-end:unset}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-content-margin: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-internal-button-content-margin: 1rem}:host([width=auto]){inline-size:auto}:host([width=half]){inline-size:50%}:host([width=full]){inline-size:100%}:host([alignment=center]:not([width=auto])) a,:host([alignment=center]:not([width=auto])) button{justify-content:center}:host([alignment=start]:not([width=auto])) a,:host([alignment=start]:not([width=auto])) button{justify-content:flex-start}:host([alignment=end]:not([width=auto])) a,:host([alignment=end]:not([width=auto])) button{justify-content:flex-end}:host([alignment*=space-between]:not([width=auto])) a,:host([alignment*=space-between]:not([width=auto])) button{justify-content:space-between}:host([alignment=icon-start-space-between]:not([width=auto])) .icon--start{margin-inline-end:auto}:host([alignment=icon-start-space-between]:not([width=auto])) a,:host([alignment=icon-start-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=icon-end-space-between]:not([width=auto])) .icon--end{margin-inline-start:auto}:host([alignment=icon-end-space-between]:not([width=auto])) a,:host([alignment=icon-end-space-between]:not([width=auto])) button{text-align:unset}:host([alignment=center]) a:not(.content--slotted) .icon--start+.icon--end,:host([alignment=center]) button:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:var(--calcite-internal-button-content-margin)}.icon{position:relative;margin:0;display:inline-flex;font-weight:var(--calcite-font-weight-normal);line-height:inherit}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}@keyframes loader-in{0%{inline-size:0;opacity:0;transform:scale(.5)}to{inline-size:1em;opacity:1;transform:scale(1)}}@keyframes loader-out{0%{inline-size:1em;opacity:1;transform:scale(1)}to{inline-size:0;opacity:0;transform:scale(.5)}}.calcite-button--loader{display:flex}.calcite-button--loader calcite-loader{margin:0}:host([loading]) button.content--slotted .calcite-button--loader calcite-loader,:host([loading]) a.content--slotted .calcite-button--loader calcite-loader{margin-inline-end:var(--calcite-internal-button-content-margin)}:host([loading]) button:not(.content--slotted) .icon--start,:host([loading]) button:not(.content--slotted) .icon--end,:host([loading]) a:not(.content--slotted) .icon--start,:host([loading]) a:not(.content--slotted) .icon--end{display:none}:host([appearance]) button,:host([appearance]) a{--calcite-internal-button-border-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([kind=brand]) button,:host([kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-brand)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{--calcite-internal-button-background-color: var(--calcite-color-brand-press)}:host([kind=danger]) button,:host([kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-status-danger)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{--calcite-internal-button-background-color: var(--calcite-color-status-danger-press)}:host([kind=neutral]) button,:host([kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-3)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-inverse);--calcite-internal-button-background-color: var(--calcite-color-inverse)}:host([kind=inverse]) button:hover,:host([kind=inverse]) button:focus,:host([kind=inverse]) a:hover,:host([kind=inverse]) a:focus{--calcite-internal-button-background-color: var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{--calcite-internal-button-background-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill]) a,:host([appearance=outline-fill]) button,:host([appearance=outline]) a,:host([appearance=outline]) button{box-shadow:inset 0 0 0 1px var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, transparent))}:host([appearance=outline-fill]) a:hover,:host([appearance=outline-fill]) button:hover,:host([appearance=outline]) a:hover,:host([appearance=outline]) button:hover{box-shadow:inset 0 0 0 1px var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3)))}:host([appearance=outline-fill]) a:focus,:host([appearance=outline-fill]) a:active,:host([appearance=outline-fill]) button:focus,:host([appearance=outline-fill]) button:active,:host([appearance=outline]) a:focus,:host([appearance=outline]) a:active,:host([appearance=outline]) button:focus,:host([appearance=outline]) button:active{box-shadow:inset 0 0 0 2px var(--calcite-button-shadow-color, var(--calcite-internal-button-shadow-color, var(--calcite-color-foreground-3)))}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{--calcite-internal-button-background-color: var(--calcite-color-foreground-1);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color: var(--calcite-color-foreground-1);--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{--calcite-internal-button-border-color: var(--calcite-color-border-1);--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-foreground-1);--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline]) button,:host([appearance=outline]) a{--calcite-internal-button-background-color: var(--calcite-color-transparent);border-style:solid;border-width:var(--calcite-button-border-size, 1px)}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-background-color: var(--calcite-color-transparent)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-brand-hover);--calcite-internal-button-text-color: var(--calcite-color-brand-hover);--calcite-internal-button-shadow-color: var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-brand);--calcite-internal-button-text-color: var(--calcite-color-brand);--calcite-internal-button-shadow-color: var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{--calcite-internal-button-border-color: var(--calcite-color-brand-press);--calcite-internal-button-text-color: var(--calcite-color-brand-press);--calcite-internal-button-shadow-color: var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-background-color: var(--calcite-color-transparent)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-status-danger);--calcite-internal-button-text-color: var(--calcite-color-status-danger);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{--calcite-internal-button-border-color: var(--calcite-color-status-danger-press);--calcite-internal-button-text-color: var(--calcite-color-status-danger-press);--calcite-internal-button-shadow-color: var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-border-color: var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{--calcite-internal-button-shadow-color: var(--calcite-color-foreground-3)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{--calcite-internal-button-text-color: var(--calcite-color-text-1);--calcite-internal-button-background-color: var(--calcite-color-transparent);--calcite-internal-button-border-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{--calcite-internal-button-border-color: var(--calcite-color-inverse-hover);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{--calcite-internal-button-border-color: var(--calcite-color-inverse);--calcite-internal-button-shadow-color: var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{--calcite-internal-button-border-color: var(--calcite-color-inverse-press);--calcite-internal-button-shadow-color: var(--calcite-color-inverse-press)}:host([appearance=outline-fill][split-child=primary]) button,:host([appearance=outline][split-child=primary]) button{border-inline-end-width:0;border-inline-start-width:1px}:host([appearance=outline-fill][split-child=secondary]) button,:host([appearance=outline][split-child=secondary]) button{border-inline-start-width:0;border-inline-end-width:1px}:host([appearance=transparent]:not(.enable-editing-button)) button,:host([appearance=transparent]:not(.enable-editing-button)) a{background-color:var(--calcite-color-transparent)}:host([appearance=transparent]:not(.enable-editing-button)) button:hover,:host([appearance=transparent]:not(.enable-editing-button)) button:focus,:host([appearance=transparent]:not(.enable-editing-button)) a:hover,:host([appearance=transparent]:not(.enable-editing-button)) a:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]:not(.enable-editing-button)) button:active,:host([appearance=transparent]:not(.enable-editing-button)) a:active{background-color:var(--calcite-color-transparent-press)}:host([appearance=transparent][kind=brand]) button,:host([appearance=transparent][kind=brand]) a{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{--calcite-internal-button-text-color: var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{--calcite-internal-button-text-color: var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{--calcite-internal-button-text-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{--calcite-internal-button-text-color: var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-loader{--calcite-internal-button-loader-color: var(--calcite-color-status-danger)}:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) button,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) a,:host([appearance=transparent][kind=neutral]:not(.cancel-editing-button)) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{--calcite-internal-button-text-color: var(--calcite-color-text-3);border-block-start-width:1px;border-block-end-width:1px;color:var(--calcite-color-text-3);border-block-start-color:var(--calcite-color-border-input);border-block-end-color:var(--calcite-color-border-input);border-block-style:solid}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:not(.content--slotted){--calcite-internal-button-padding-y-internal: 0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{--calcite-internal-button-text-color: var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].enable-editing-button) button{background-color:transparent}:host(.confirm-changes-button) button:focus,:host(.cancel-editing-button) button:focus,:host(.enable-editing-button) button:focus{outline-offset:-2px}:host([appearance=transparent][kind=inverse]) button,:host([appearance=transparent][kind=inverse]) a,:host([appearance=transparent][kind=inverse]) calcite-loader{--calcite-internal-button-text-color: var(--calcite-color-text-inverse)}:host([scale=s]) button.content--slotted,:host([scale=s]) a.content--slotted{font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s][appearance=transparent]) button.content--slotted,:host([scale=s][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-internal-button-padding-y-internal: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-internal-button-padding-x: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-internal-button-padding-y-internal: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-internal-button-padding-x: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-internal-button-padding-x: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-internal-button-padding-x: 1rem;--calcite-internal-button-padding-y-internal: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-internal-button-padding-y-internal: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y-internal: 3px;inline-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:1.5rem}:host([scale=m]) button:not(.content--slotted),:host([scale=m]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y-internal: 7px;inline-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2rem}:host([scale=l]) button:not(.content--slotted),:host([scale=l]) a:not(.content--slotted){--calcite-internal-button-padding-x: .125rem;--calcite-internal-button-padding-y-internal: 9px;inline-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;min-block-size:2.75rem}:host(:is([scale=s],[scale=m],[scale=l])[width=full]) a:not(.content--slotted),:host(:is([scale=s],[scale=m],[scale=l])[width=full]) button:not(.content--slotted){inline-size:var(--calcite-container-size-content-fluid)}:host([scale=l][appearance=transparent]) button:not(.content--slotted),:host([scale=l][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-y-internal: .625rem}:host([scale=s][icon-start][icon-end]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 23px;block-size:1.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=s][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=s][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 1.5rem}:host([scale=m][icon-start][icon-end]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2rem;block-size:2rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=m][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=m][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-internal-button-padding-x: 43px;block-size:2.75rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted) .icon--start+.icon--end,:host([scale=l][icon-start][icon-end]) a:not(.content--slotted) .icon--start+.icon--end{margin-inline-start:1rem}:host([scale=l][icon-start][icon-end][appearance=transparent]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end][appearance=transparent]) a:not(.content--slotted){--calcite-internal-button-padding-x: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,qy=class extends gt{constructor(){super(...arguments),this.attributeWatch=dy(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=mi(),this.mutationObserver=Nn("mutation",()=>this.updateHasContent()),this.resizeObserver=Nn("resize",()=>this.setTooltipText()),this.hasContent=!1,this.alignment="center",this.appearance="solid",this.disabled=!1,this.download=!1,this.kind="brand",this.loading=!1,this.messages=Jr(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}static{this.properties={hasContent:16,tooltipText:16,alignment:3,appearance:3,disabled:7,download:[3,{converter:ks}],form:3,href:3,iconEnd:3,iconFlipRtl:3,iconStart:3,kind:3,label:1,loading:7,messageOverrides:0,name:3,rel:3,round:7,scale:3,splitChild:3,target:3,type:3,width:3}}static{this.styles=TY}async setFocus(){await En(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),cf(this),this.formEl=B4(this)}async load(){ki()&&this.updateHasContent()}updated(){nc(this)}loaded(){this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),Gy(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=SL(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:e}=this;this.href||(e==="submit"?Vy(this):e==="reset"&&WL(this))}setTooltipText(){let{contentEl:{value:e}}=this;e&&(this.tooltipText=e.offsetWidth<e.scrollWidth&&this.el.innerText||null)}setChildEl(e){this.childEl=e,e&&this.resizeObserver?.observe(e)}render(){let e=this.href?"a":"button",r=this.href?rc`a`:rc`button`,n=this.loading?_e`<div class=${Se(hi.buttonLoader)}><calcite-loader class=${Se(this.loading?hi.loadingIn:hi.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,i=!this.iconStart&&!this.iconEnd,o=_e`<calcite-icon class=${Se({[hi.icon]:!0,[hi.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${Rn(this.scale)}></calcite-icon>`,s=_e`<calcite-icon class=${Se({[hi.icon]:!0,[hi.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${Rn(this.scale)}></calcite-icon>`,c=_e`<span class=${Se(hi.content)} ${wt(this.contentEl)}><slot></slot></span>`;return ic({disabled:this.disabled,children:sf`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:pg(this)} aria-live=polite class=${Se({[hi.buttonPadding]:i,[hi.buttonPaddingShrunk]:!i,[hi.contentSlotted]:this.hasContent,[hi.iconStartEmpty]:!this.iconStart,[hi.iconEndEmpty]:!this.iconEnd})} .disabled=${e==="button"?this.disabled:null} download=${(e==="a"?this.download===!0||this.download===""?"":this.download||null:null)??Zr} href=${(e==="a"&&this.href)??Zr} name=${(e==="button"&&this.name)??Zr} @click=${this.handleClick} rel=${(e==="a"&&this.rel)??Zr} tabindex=${(this.disabled?-1:null)??Zr} target=${(e==="a"&&this.target)??Zr} title=${this.tooltipText??Zr} type=${(e==="button"?this.type:null)??Zr} ${wt(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?c:null}${this.iconEnd?s:null}</${r}>`})}};Lt("calcite-button",qy)});var rk={};Lo(rk,{Button:()=>qy});var nk=N(()=>{ky();Zl();tk()});var ik,ok,PY,j4,sk=N(()=>{Xt();ao();xr();Er();tc();dn();Ho();un();ik={scrim:"scrim",content:"content"},ok={s:72,l:480},PY=Ct`:host{position:absolute;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;block-size:100%;inline-size:100%;flex-direction:column;align-items:stretch}@keyframes calcite-scrim-fade-in{0%{--tw-bg-opacity: 0 }to{--tw-text-opacity: 1 }}.scrim{position:absolute;inset:0;display:flex;flex-direction:column;align-content:center;align-items:center;justify-content:center;overflow:hidden;animation:calcite-scrim-fade-in var(--calcite-internal-animation-timing-medium) ease-in-out;background-color:var(--calcite-scrim-background, var(--calcite-color-transparent-scrim))}.content{padding:1rem}:host([hidden]){display:none}[hidden]{display:none}`,j4=class extends gt{constructor(){super(...arguments),this.resizeObserver=Nn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=Jr()}static{this.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0}}static{this.styles=PY}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(e){this.hasContent=_L(e)}storeLoaderEl(e){this.loaderEl=e,this.handleResize()}getScale(e){return e<ok.s?"s":e>=ok.l?"l":"m"}handleResize(){let{loaderEl:e,el:r}=this;e&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}render(){let{hasContent:e,loading:r,messages:n}=this;return _e`<div class=${Se(ik.scrim)}>${r?_e`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${wt(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${Se(ik.content)} .hidden=${!e}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};Lt("calcite-scrim",j4)});var q4=N(()=>{ky();sk()});var Jt,oc=N(()=>{xr();Ls();Ty();Jt=Li(class extends di{constructor(){super(...arguments),this.key=Oe}render(t,e){return this.key=t,e}update(t,[e,r]){return e!==this.key&&(Cy(t),this.key=e),r}})});var co,MY,AY,H4,ak=N(()=>{Xt();xr();oc();ao();Er();tf();ag();Rs();tc();lf();Ho();un();co={button:"button",buttonTextVisible:"button--text-visible",buttonCompact:"button--compact",indicatorText:"indicator-text",iconContainer:"icon-container",slotContainer:"slot-container",slotContainerHidden:"slot-container--hidden",textContainer:"text-container",textContainerVisible:"text-container--visible",indicatorWithIcon:"indicator-with-icon",indicatorWithoutIcon:"indicator-without-icon"},MY={tooltip:"tooltip"},AY=Ct`:host{box-sizing:border-box;background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-2);font-size:var(--calcite-font-size--1)}:host *{box-sizing:border-box}:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex;cursor:pointer;background-color:transparent;--calcite-internal-action-text-color: var(--calcite-color-text-3)}:host([drag-handle]){cursor:move;--calcite-internal-action-text-color: var(--calcite-color-border-input);--calcite-internal-action-padding-inline: var(--calcite-spacing-xxs)}:host,.button{border-radius:var(--calcite-action-corner-radius, var(--calcite-action-corner-radius-start-start, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-start-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-end, var(--calcite-corner-radius)) var(--calcite-action-corner-radius-end-start, var(--calcite-corner-radius)))}.button{position:relative;margin:0;display:flex;inline-size:auto;align-items:center;justify-content:flex-start;border-style:none;font-family:var(--calcite-font-family);font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);outline-color:transparent;background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1));color:var(--calcite-action-text-color, var(--calcite-internal-action-text-color));text-align:unset;flex:1 0 auto;cursor:inherit}.button:hover,.button:focus{background-color:var(--calcite-action-background-color-hover, var(--calcite-color-foreground-2));color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)))}.button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.button:active{background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}.icon-container{pointer-events:none;margin:0;display:flex;align-items:center;justify-content:center;min-inline-size:1rem;min-block-size:1.5rem}.text-container{margin:0;inline-size:0px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;line-height:1.5rem;opacity:0;transition-property:opacity;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-property:margin;transition-property:inline-size}.text-container--visible{inline-size:auto;flex:1 1 auto;opacity:1}:host([active]) .button,:host([active]) .button:hover,:host([active]) .button:focus{color:var(--calcite-action-text-color-press, var(--calcite-action-text-color-pressed, var(--calcite-color-text-1)));background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3)))}:host([active]) .button:active{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .button:hover,:host([loading]) .button:focus{background-color:var(--calcite-action-background-color, var(--calcite-color-foreground-1))}:host([loading]) .text-container{opacity:var(--calcite-opacity-disabled)}:host([loading]) calcite-loader[inline]{margin-inline-end:0px}:host([appearance=transparent]):host([active]) .button{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button{background-color:transparent;transition-property:box-shadow;transition-duration:.15s;transition-timing-function:cubic-bezier(.4,0,.2,1)}:host([appearance=transparent]) .button:hover,:host([appearance=transparent]) .button:focus{background-color:var(--calcite-color-transparent-hover)}:host([appearance=transparent]) .button:active{background-color:var(--calcite-color-transparent-press)}:host([data-active]) .button{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .button{font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, .5rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xxs))}:host([scale=s]) .button--text-visible .icon-container{margin-inline-end:.5rem}:host([scale=m]) .button{font-size:var(--calcite-font-size--1);line-height:1rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-md))}:host([scale=m]) .button--text-visible .icon-container{margin-inline-end:.75rem}:host([scale=l]) .button{font-size:var(--calcite-font-size-0);line-height:1.25rem;font-weight:var(--calcite-font-weight-normal);padding-inline:var(--calcite-internal-action-padding-inline, 1.25rem);padding-block:var(--calcite-internal-action-padding-block, var(--calcite-spacing-xl))}:host([scale=l]) .button--text-visible .icon-container{margin-inline-end:1rem}:host([alignment=center]) .button{justify-content:center}:host([alignment=end]) .button{justify-content:flex-end}:host([alignment=center]) .button .text-container--visible,:host([alignment=end]) .button .text-container--visible{flex:0 1 auto}:host([scale=s][compact]) .button,:host([scale=m][compact]) .button,:host([scale=l][compact]) .button{padding-inline:0px}.slot-container{display:flex}.slot-container--hidden{display:none}.button--text-visible{inline-size:100%}.indicator-with-icon{position:relative}.indicator-with-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-without-icon{margin-inline:.25rem;inline-size:1rem;position:relative}.indicator-without-icon:after{content:"";position:absolute;block-size:.5rem;inline-size:.5rem;border-radius:9999px;inset-block-end:-.275rem;inset-inline-end:-.275rem;background-color:var(--calcite-action-indicator-color, var(--calcite-color-brand))}.indicator-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}:host([disabled]) .button,:host([disabled]) .button:hover,:host([disabled]) .button:focus{cursor:default;opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color, var(--calcite-action-background-color, var(--calcite-color-foreground-1)))}:host([disabled]):host([active]) .button,:host([disabled]):host([active]) .button:hover,:host([disabled]):host([active]) .button:focus{opacity:var(--calcite-opacity-disabled);background-color:var(--calcite-action-background-color-press, var(--calcite-action-background-color-press, var(--calcite-action-background-color-pressed, var(--calcite-color-foreground-3))))}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}`,H4=class extends gt{constructor(){super(...arguments),this.guid=`calcite-action-${Os()}`,this.buttonEl=mi(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Nn("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.dragHandle=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=Jr({blocking:!0}),this.scale="m",this.textEnabled=!1}static{this.properties={active:7,alignment:3,appearance:3,compact:7,disabled:7,dragHandle:7,icon:3,iconFlipRtl:7,indicator:7,label:1,loading:7,messageOverrides:0,scale:3,text:1,textEnabled:7}}static{this.styles=AY}async setFocus(){await En(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){}updated(){nc(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(e){let r=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"))[0];r&&(r.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:e,textEnabled:r}=this,n={[co.textContainer]:!0,[co.textContainerVisible]:r};return e?Jt("text-container",_e`<div class=${Se(n)}>${e}</div>`):null}renderIndicatorText(){let{indicator:e,messages:r,indicatorId:n,buttonId:i}=this;return _e`<div aria-labelledby=${i??Zr} aria-live=polite class=${Se(co.indicatorText)} id=${n??Zr} role=region>${e?r.indicator:null}</div>`}renderIconContainer(){let{loading:e,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,c=n==="l"?"l":"m",a=e?_e`<calcite-loader inline .label=${this.messages.loading} .scale=${c}></calcite-loader>`:null,d=r?_e`<calcite-icon class=${Se({[co.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${Rn(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,v=_e`<div class=${Se({[co.slotContainer]:!0,[co.slotContainerHidden]:e})}><slot></slot></div>`;return g?Jt("icon-container",_e`<div aria-hidden=true class=${Se(co.iconContainer)}>${h}${v}</div>`):null}renderButton(){let{active:e,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:c,text:a,indicator:d,indicatorId:h,buttonId:g,messages:v}=this,E=c||a||"",M=d?v.indicatorLabel.replace("{label}",E):E,k={[co.button]:!0,[co.buttonTextVisible]:s,[co.buttonCompact]:r},$=_e`${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&Jt("indicator-no-icon",_e`<div class=${Se(co.indicatorWithoutIcon)}></div>`)||""}`;return this.dragHandle?_e`<span aria-controls=${(d?h:null)??Zr} .ariaBusy=${o} .ariaDisabled=${this.disabled?this.disabled:null} .ariaLabel=${M} .ariaPressed=${e} class=${Se(k)} id=${g??Zr} role=button tabindex=${(this.disabled?null:0)??Zr} ${wt(this.buttonEl)}>${$}</span>`:_e`<button aria-controls=${(d?h:null)??Zr} .ariaBusy=${o} .ariaLabel=${M} .ariaPressed=${e} class=${Se(k)} .disabled=${n} id=${g??Zr} tabindex=${(n?null:0)??Zr} ${wt(this.buttonEl)}>${$}</button>`}render(){return ic({disabled:this.disabled,children:_e`${this.renderButton()}<slot name=${MY.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};Lt("calcite-action",H4)});var Hy=N(()=>{ky();Zl();ak()});function Yy(t,e,r){return Ds(t,sc(e,r))}function ac(t,e){return typeof t=="function"?t(e):t}function Yo(t){return t.split("-")[0]}function uo(t){return t.split("-")[1]}function X4(t){return t==="x"?"y":"x"}function Zy(t){return t==="y"?"height":"width"}function Jl(t){return["top","bottom"].includes(Yo(t))?"y":"x"}function Xy(t){return X4(Jl(t))}function J4(t,e,r){r===void 0&&(r=!1);let n=uo(t),i=Xy(t),o=Zy(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=mg(s)),[s,mg(s)]}function lk(t){let e=mg(t);return[fg(t),e,fg(e)]}function fg(t){return t.replace(/start|end/g,e=>LY[e])}function kY(t,e,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(t){case"top":case"bottom":return r?e?i:n:e?n:i;case"left":case"right":return e?o:s;default:return[]}}function uk(t,e,r,n){let i=uo(t),o=kY(Yo(t),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),e&&(o=o.concat(o.map(fg)))),o}function mg(t){return t.replace(/left|right|bottom|top/g,e=>IY[e])}function OY(t){return{top:0,right:0,bottom:0,left:0,...t}}function Q4(t){return typeof t!="number"?OY(t):{top:t,right:t,bottom:t,left:t}}function Ql(t){let{x:e,y:r,width:n,height:i}=t;return{width:n,height:i,top:r,left:e,right:e+n,bottom:r+i,x:e,y:r}}var Y4,ck,Z4,sc,Ds,hg,gg,lo,IY,LY,Jy=N(()=>{Y4=["top","right","bottom","left"],ck=["start","end"],Z4=Y4.reduce((t,e)=>t.concat(e,e+"-"+ck[0],e+"-"+ck[1]),[]),sc=Math.min,Ds=Math.max,hg=Math.round,gg=Math.floor,lo=t=>({x:t,y:t}),IY={left:"right",right:"left",bottom:"top",top:"bottom"},LY={start:"end",end:"start"}});function dk(t,e,r){let{reference:n,floating:i}=t,o=Jl(e),s=Xy(e),c=Zy(s),a=Yo(e),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,v=n[c]/2-i[c]/2,E;switch(a){case"top":E={x:h,y:n.y-i.height};break;case"bottom":E={x:h,y:n.y+n.height};break;case"right":E={x:n.x+n.width,y:g};break;case"left":E={x:n.x-i.width,y:g};break;default:E={x:n.x,y:n.y}}switch(uo(e)){case"start":E[s]-=v*(r&&d?-1:1);break;case"end":E[s]+=v*(r&&d?-1:1);break}return E}async function uf(t,e){var r;e===void 0&&(e={});let{x:n,y:i,platform:o,rects:s,elements:c,strategy:a}=t,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:v=!1,padding:E=0}=ac(e,t),M=Q4(E),$=c[v?g==="floating"?"reference":"floating":g],z=Ql(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement($)))==null||r?$:$.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(c.floating)),boundary:d,rootBoundary:h,strategy:a})),B=g==="floating"?{x:n,y:i,width:s.floating.width,height:s.floating.height}:s.reference,q=await(o.getOffsetParent==null?void 0:o.getOffsetParent(c.floating)),V=await(o.isElement==null?void 0:o.isElement(q))?await(o.getScale==null?void 0:o.getScale(q))||{x:1,y:1}:{x:1,y:1},X=Ql(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:B,offsetParent:q,strategy:a}):B);return{top:(z.top-X.top+M.top)/V.y,bottom:(X.bottom-z.bottom+M.bottom)/V.y,left:(z.left-X.left+M.left)/V.x,right:(X.right-z.right+M.right)/V.x}}function NY(t,e,r){return(t?[...r.filter(i=>uo(i)===t),...r.filter(i=>uo(i)!==t)]:r.filter(i=>Yo(i)===i)).filter(i=>t?uo(i)===t||(e?fg(i)!==i:!1):!0)}function pk(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function fk(t){return Y4.some(e=>t[e]>=0)}async function RY(t,e){let{placement:r,platform:n,elements:i}=t,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=Yo(r),c=uo(r),a=Jl(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=ac(e,t),{mainAxis:v,crossAxis:E,alignmentAxis:M}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return c&&typeof M=="number"&&(E=c==="end"?M*-1:M),a?{x:E*h,y:v*d}:{x:v*d,y:E*h}}var mk,hk,gk,wk,yk,bk,vk,_k=N(()=>{Jy();Jy();mk=async(t,e,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,c=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:i}),{x:h,y:g}=dk(d,n,a),v=n,E={},M=0;for(let k=0;k<c.length;k++){let{name:$,fn:z}=c[k],{x:B,y:q,data:V,reset:X}=await z({x:h,y:g,initialPlacement:n,placement:v,strategy:i,middlewareData:E,rects:d,platform:s,elements:{reference:t,floating:e}});h=B??h,g=q??g,E={...E,[$]:{...E[$],...V}},X&&M<=50&&(M++,typeof X=="object"&&(X.placement&&(v=X.placement),X.rects&&(d=X.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:i}):X.rects),{x:h,y:g}=dk(d,v,a)),k=-1)}return{x:h,y:g,placement:v,strategy:i,middlewareData:E}};hk=t=>({name:"arrow",options:t,async fn(e){let{x:r,y:n,placement:i,rects:o,platform:s,elements:c,middlewareData:a}=e,{element:d,padding:h=0}=ac(t,e)||{};if(d==null)return{};let g=Q4(h),v={x:r,y:n},E=Xy(i),M=Zy(E),k=await s.getDimensions(d),$=E==="y",z=$?"top":"left",B=$?"bottom":"right",q=$?"clientHeight":"clientWidth",V=o.reference[M]+o.reference[E]-v[E]-o.floating[M],X=v[E]-o.reference[E],te=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),F=te?te[q]:0;(!F||!await(s.isElement==null?void 0:s.isElement(te)))&&(F=c.floating[q]||o.floating[M]);let me=V/2-X/2,Le=F/2-k[M]/2-1,Ce=sc(g[z],Le),Ne=sc(g[B],Le),we=Ce,ce=F-k[M]-Ne,H=F/2-k[M]/2+me,ee=Yy(we,H,ce),de=!a.arrow&&uo(i)!=null&&H!==ee&&o.reference[M]/2-(H<we?Ce:Ne)-k[M]/2<0,ue=de?H<we?H-we:H-ce:0;return{[E]:v[E]+ue,data:{[E]:ee,centerOffset:H-ee-ue,...de&&{alignmentOffset:ue}},reset:de}}});gk=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,n,i;let{rects:o,middlewareData:s,placement:c,platform:a,elements:d}=e,{crossAxis:h=!1,alignment:g,allowedPlacements:v=Z4,autoAlignment:E=!0,...M}=ac(t,e),k=g!==void 0||v===Z4?NY(g||null,E,v):v,$=await uf(e,M),z=((r=s.autoPlacement)==null?void 0:r.index)||0,B=k[z];if(B==null)return{};let q=J4(B,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(c!==B)return{reset:{placement:k[0]}};let V=[$[Yo(B)],$[q[0]],$[q[1]]],X=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:B,overflows:V}],te=k[z+1];if(te)return{data:{index:z+1,overflows:X},reset:{placement:te}};let F=X.map(Ce=>{let Ne=uo(Ce.placement);return[Ce.placement,Ne&&h?Ce.overflows.slice(0,2).reduce((we,ce)=>we+ce,0):Ce.overflows[0],Ce.overflows]}).sort((Ce,Ne)=>Ce[1]-Ne[1]),Le=((i=F.filter(Ce=>Ce[2].slice(0,uo(Ce[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||F[0][0];return Le!==c?{data:{index:z+1,overflows:X},reset:{placement:Le}}:{}}}},wk=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:c,platform:a,elements:d}=e,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:v,fallbackStrategy:E="bestFit",fallbackAxisSideDirection:M="none",flipAlignment:k=!0,...$}=ac(t,e);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let z=Yo(i),B=Jl(c),q=Yo(c)===c,V=await(a.isRTL==null?void 0:a.isRTL(d.floating)),X=v||(q||!k?[mg(c)]:lk(c)),te=M!=="none";!v&&te&&X.push(...uk(c,k,M,V));let F=[c,...X],me=await uf(e,$),Le=[],Ce=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&Le.push(me[z]),g){let H=J4(i,s,V);Le.push(me[H[0]],me[H[1]])}if(Ce=[...Ce,{placement:i,overflows:Le}],!Le.every(H=>H<=0)){var Ne,we;let H=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,ee=F[H];if(ee)return{data:{index:H,overflows:Ce},reset:{placement:ee}};let de=(we=Ce.filter(ue=>ue.overflows[0]<=0).sort((ue,ve)=>ue.overflows[1]-ve.overflows[1])[0])==null?void 0:we.placement;if(!de)switch(E){case"bestFit":{var ce;let ue=(ce=Ce.filter(ve=>{if(te){let ye=Jl(ve.placement);return ye===B||ye==="y"}return!0}).map(ve=>[ve.placement,ve.overflows.filter(ye=>ye>0).reduce((ye,De)=>ye+De,0)]).sort((ve,ye)=>ve[1]-ye[1])[0])==null?void 0:ce[0];ue&&(de=ue);break}case"initialPlacement":de=c;break}if(i!==de)return{reset:{placement:de}}}return{}}}};yk=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){let{rects:r}=e,{strategy:n="referenceHidden",...i}=ac(t,e);switch(n){case"referenceHidden":{let o=await uf(e,{...i,elementContext:"reference"}),s=pk(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:fk(s)}}}case"escaped":{let o=await uf(e,{...i,altBoundary:!0}),s=pk(o,r.floating);return{data:{escapedOffsets:s,escaped:fk(s)}}}default:return{}}}}};bk=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;let{x:i,y:o,placement:s,middlewareData:c}=e,a=await RY(e,t);return s===((r=c.offset)==null?void 0:r.placement)&&(n=c.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},vk=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:n,placement:i}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:$=>{let{x:z,y:B}=$;return{x:z,y:B}}},...a}=ac(t,e),d={x:r,y:n},h=await uf(e,a),g=Jl(Yo(i)),v=X4(g),E=d[v],M=d[g];if(o){let $=v==="y"?"top":"left",z=v==="y"?"bottom":"right",B=E+h[$],q=E-h[z];E=Yy(B,E,q)}if(s){let $=g==="y"?"top":"left",z=g==="y"?"bottom":"right",B=M+h[$],q=M-h[z];M=Yy(B,M,q)}let k=c.fn({...e,[v]:E,[g]:M});return{...k,data:{x:k.x-r,y:k.y-n,enabled:{[v]:o,[g]:s}}}}}}});function Qy(){return typeof window<"u"}function Kl(t){return xk(t)?(t.nodeName||"").toLowerCase():"#document"}function Hn(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function po(t){var e;return(e=(xk(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xk(t){return Qy()?t instanceof Node||t instanceof Hn(t).Node:!1}function Oi(t){return Qy()?t instanceof Element||t instanceof Hn(t).Element:!1}function fo(t){return Qy()?t instanceof HTMLElement||t instanceof Hn(t).HTMLElement:!1}function Sk(t){return!Qy()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Hn(t).ShadowRoot}function pf(t){let{overflow:e,overflowX:r,overflowY:n,display:i}=Ni(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!["inline","contents"].includes(i)}function Ek(t){return["table","td","th"].includes(Kl(t))}function wg(t){return[":popover-open",":modal"].some(e=>{try{return t.matches(e)}catch{return!1}})}function ff(t){let e=Ky(),r=Oi(t)?Ni(t):t;return["transform","translate","scale","rotate","perspective"].some(n=>r[n]?r[n]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!e&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!e&&(r.filter?r.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function Ck(t){let e=$s(t);for(;fo(e)&&!eu(e);){if(ff(e))return e;if(wg(e))return null;e=$s(e)}return null}function Ky(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function eu(t){return["html","body","#document"].includes(Kl(t))}function Ni(t){return Hn(t).getComputedStyle(t)}function yg(t){return Oi(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function $s(t){if(Kl(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Sk(t)&&t.host||po(t);return Sk(e)?e.host:e}function Tk(t){let e=$s(t);return eu(e)?t.ownerDocument?t.ownerDocument.body:t.body:fo(e)&&pf(e)?e:Tk(e)}function df(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);let i=Tk(t),o=i===((n=t.ownerDocument)==null?void 0:n.body),s=Hn(i);if(o){let c=eb(s);return e.concat(s,s.visualViewport||[],pf(i)?i:[],c&&r?df(c):[])}return e.concat(i,df(i,[],r))}function eb(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}var K4=N(()=>{});function Ak(t){let e=Ni(t),r=parseFloat(e.width)||0,n=parseFloat(e.height)||0,i=fo(t),o=i?t.offsetWidth:r,s=i?t.offsetHeight:n,c=hg(r)!==o||hg(n)!==s;return c&&(r=o,n=s),{width:r,height:n,$:c}}function t5(t){return Oi(t)?t:t.contextElement}function mf(t){let e=t5(t);if(!fo(e))return lo(1);let r=e.getBoundingClientRect(),{width:n,height:i,$:o}=Ak(e),s=(o?hg(r.width):r.width)/n,c=(o?hg(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!c||!Number.isFinite(c))&&(c=1),{x:s,y:c}}function Ik(t){let e=Hn(t);return!Ky()||!e.visualViewport?DY:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function $Y(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Hn(t)?!1:e}function tu(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);let i=t.getBoundingClientRect(),o=t5(t),s=lo(1);e&&(n?Oi(n)&&(s=mf(n)):s=mf(t));let c=$Y(o,r,n)?Ik(o):lo(0),a=(i.left+c.x)/s.x,d=(i.top+c.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let v=Hn(o),E=n&&Oi(n)?Hn(n):n,M=v,k=eb(M);for(;k&&n&&E!==M;){let $=mf(k),z=k.getBoundingClientRect(),B=Ni(k),q=z.left+(k.clientLeft+parseFloat(B.paddingLeft))*$.x,V=z.top+(k.clientTop+parseFloat(B.paddingTop))*$.y;a*=$.x,d*=$.y,h*=$.x,g*=$.y,a+=q,d+=V,M=Hn(k),k=eb(M)}}return Ql({width:h,height:g,x:a,y:d})}function r5(t,e){let r=yg(t).scrollLeft;return e?e.left+r:tu(po(t)).left+r}function Lk(t,e,r){r===void 0&&(r=!1);let n=t.getBoundingClientRect(),i=n.left+e.scrollLeft-(r?0:r5(t,n)),o=n.top+e.scrollTop;return{x:i,y:o}}function FY(t){let{elements:e,rect:r,offsetParent:n,strategy:i}=t,o=i==="fixed",s=po(n),c=e?wg(e.floating):!1;if(n===s||c&&o)return r;let a={scrollLeft:0,scrollTop:0},d=lo(1),h=lo(0),g=fo(n);if((g||!g&&!o)&&((Kl(n)!=="body"||pf(s))&&(a=yg(n)),fo(n))){let E=tu(n);d=mf(n),h.x=E.x+n.clientLeft,h.y=E.y+n.clientTop}let v=s&&!g&&!o?Lk(s,a,!0):lo(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x+v.x,y:r.y*d.y-a.scrollTop*d.y+h.y+v.y}}function UY(t){return Array.from(t.getClientRects())}function VY(t){let e=po(t),r=yg(t),n=t.ownerDocument.body,i=Ds(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),o=Ds(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+r5(t),c=-r.scrollTop;return Ni(n).direction==="rtl"&&(s+=Ds(e.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:c}}function zY(t,e){let r=Hn(t),n=po(t),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,c=0,a=0;if(i){o=i.width,s=i.height;let d=Ky();(!d||d&&e==="fixed")&&(c=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:c,y:a}}function WY(t,e){let r=tu(t,!0,e==="fixed"),n=r.top+t.clientTop,i=r.left+t.clientLeft,o=fo(t)?mf(t):lo(1),s=t.clientWidth*o.x,c=t.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:c,x:a,y:d}}function Pk(t,e,r){let n;if(e==="viewport")n=zY(t,r);else if(e==="document")n=VY(po(t));else if(Oi(e))n=WY(e,r);else{let i=Ik(t);n={x:e.x-i.x,y:e.y-i.y,width:e.width,height:e.height}}return Ql(n)}function kk(t,e){let r=$s(t);return r===e||!Oi(r)||eu(r)?!1:Ni(r).position==="fixed"||kk(r,e)}function BY(t,e){let r=e.get(t);if(r)return r;let n=df(t,[],!1).filter(c=>Oi(c)&&Kl(c)!=="body"),i=null,o=Ni(t).position==="fixed",s=o?$s(t):t;for(;Oi(s)&&!eu(s);){let c=Ni(s),a=ff(s);!a&&c.position==="fixed"&&(i=null),(o?!a&&!i:!a&&c.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||pf(s)&&!a&&kk(t,s))?n=n.filter(h=>h!==s):i=c,s=$s(s)}return e.set(t,n),n}function GY(t){let{element:e,boundary:r,rootBoundary:n,strategy:i}=t,s=[...r==="clippingAncestors"?wg(e)?[]:BY(e,this._c):[].concat(r),n],c=s[0],a=s.reduce((d,h)=>{let g=Pk(e,h,i);return d.top=Ds(g.top,d.top),d.right=sc(g.right,d.right),d.bottom=sc(g.bottom,d.bottom),d.left=Ds(g.left,d.left),d},Pk(e,c,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function jY(t){let{width:e,height:r}=Ak(t);return{width:e,height:r}}function qY(t,e,r){let n=fo(e),i=po(e),o=r==="fixed",s=tu(t,!0,o,e),c={scrollLeft:0,scrollTop:0},a=lo(0);if(n||!n&&!o)if((Kl(e)!=="body"||pf(i))&&(c=yg(e)),n){let v=tu(e,!0,o,e);a.x=v.x+e.clientLeft,a.y=v.y+e.clientTop}else i&&(a.x=r5(i));let d=i&&!n&&!o?Lk(i,c):lo(0),h=s.left+c.scrollLeft-a.x-d.x,g=s.top+c.scrollTop-a.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function e5(t){return Ni(t).position==="static"}function Mk(t,e){if(!fo(t)||Ni(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return po(t)===r&&(r=r.ownerDocument.body),r}function Ok(t,e){let r=Hn(t);if(wg(t))return r;if(!fo(t)){let i=$s(t);for(;i&&!eu(i);){if(Oi(i)&&!e5(i))return i;i=$s(i)}return r}let n=Mk(t,e);for(;n&&Ek(n)&&e5(n);)n=Mk(n,e);return n&&eu(n)&&e5(n)&&!ff(n)?r:n||Ck(t)||r}function YY(t){return Ni(t).direction==="rtl"}function Nk(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function ZY(t,e){let r=null,n,i=po(t);function o(){var c;clearTimeout(n),(c=r)==null||c.disconnect(),r=null}function s(c,a){c===void 0&&(c=!1),a===void 0&&(a=1),o();let d=t.getBoundingClientRect(),{left:h,top:g,width:v,height:E}=d;if(c||e(),!v||!E)return;let M=gg(g),k=gg(i.clientWidth-(h+v)),$=gg(i.clientHeight-(g+E)),z=gg(h),q={rootMargin:-M+"px "+-k+"px "+-$+"px "+-z+"px",threshold:Ds(0,sc(1,a))||1},V=!0;function X(te){let F=te[0].intersectionRatio;if(F!==a){if(!V)return s();F?s(!1,F):n=setTimeout(()=>{s(!1,1e-7)},1e3)}F===1&&!Nk(d,t.getBoundingClientRect())&&s(),V=!1}try{r=new IntersectionObserver(X,{...q,root:i.ownerDocument})}catch{r=new IntersectionObserver(X,q)}r.observe(t)}return s(!0),o}function Rk(t,e,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:c=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=t5(t),h=i||o?[...d?df(d):[],...df(e)]:[];h.forEach(z=>{i&&z.addEventListener("scroll",r,{passive:!0}),o&&z.addEventListener("resize",r)});let g=d&&c?ZY(d,r):null,v=-1,E=null;s&&(E=new ResizeObserver(z=>{let[B]=z;B&&B.target===d&&E&&(E.unobserve(e),cancelAnimationFrame(v),v=requestAnimationFrame(()=>{var q;(q=E)==null||q.observe(e)})),r()}),d&&!a&&E.observe(d),E.observe(e));let M,k=a?tu(t):null;a&&$();function $(){let z=tu(t);k&&!Nk(k,z)&&r(),k=z,M=requestAnimationFrame($)}return r(),()=>{var z;h.forEach(B=>{i&&B.removeEventListener("scroll",r),o&&B.removeEventListener("resize",r)}),g?.(),(z=E)==null||z.disconnect(),E=null,a&&cancelAnimationFrame(M)}}var DY,HY,tb,Dk,$k,Fk,n5,Uk,Vk,zk,Wk=N(()=>{_k();Jy();K4();DY=lo(0);HY=async function(t){let e=this.getOffsetParent||Ok,r=this.getDimensions,n=await r(t.floating);return{reference:qY(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};tb={convertOffsetParentRelativeRectToViewportRelativeRect:FY,getDocumentElement:po,getClippingRect:GY,getOffsetParent:Ok,getElementRects:HY,getClientRects:UY,getDimensions:jY,getScale:mf,isElement:Oi,isRTL:YY};Dk=bk,$k=gk,Fk=vk,n5=wk,Uk=yk,Vk=hk,zk=(t,e,r)=>{let n=new Map,i={platform:tb,...r},o={...i.platform,_c:n};return mk(t,e,{...i,platform:o})}});var XY,Bk,Gk=N(()=>{XY=typeof global=="object"&&global&&global.Object===Object&&global,Bk=XY});var JY,QY,rb,i5=N(()=>{Gk();JY=typeof self=="object"&&self&&self.Object===Object&&self,QY=Bk||JY||Function("return this")(),rb=QY});var KY,hf,o5=N(()=>{i5();KY=rb.Symbol,hf=KY});function rZ(t){var e=eZ.call(t,bg),r=t[bg];try{t[bg]=void 0;var n=!0}catch{}var i=tZ.call(t);return n&&(e?t[bg]=r:delete t[bg]),i}var jk,eZ,tZ,bg,qk,Hk=N(()=>{o5();jk=Object.prototype,eZ=jk.hasOwnProperty,tZ=jk.toString,bg=hf?hf.toStringTag:void 0;qk=rZ});function oZ(t){return iZ.call(t)}var nZ,iZ,Yk,Zk=N(()=>{nZ=Object.prototype,iZ=nZ.toString;Yk=oZ});function cZ(t){return t==null?t===void 0?aZ:sZ:Xk&&Xk in Object(t)?qk(t):Yk(t)}var sZ,aZ,Xk,Jk,Qk=N(()=>{o5();Hk();Zk();sZ="[object Null]",aZ="[object Undefined]",Xk=hf?hf.toStringTag:void 0;Jk=cZ});function lZ(t){return t!=null&&typeof t=="object"}var Kk,eO=N(()=>{Kk=lZ});function dZ(t){return typeof t=="symbol"||Kk(t)&&Jk(t)==uZ}var uZ,tO,rO=N(()=>{Qk();eO();uZ="[object Symbol]";tO=dZ});function fZ(t){for(var e=t.length;e--&&pZ.test(t.charAt(e)););return e}var pZ,nO,iO=N(()=>{pZ=/\s/;nO=fZ});function hZ(t){return t&&t.slice(0,nO(t)+1).replace(mZ,"")}var mZ,oO,sO=N(()=>{iO();mZ=/^\s+/;oO=hZ});function gZ(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var vg,s5=N(()=>{vg=gZ});function _Z(t){if(typeof t=="number")return t;if(tO(t))return aO;if(vg(t)){var e=typeof t.valueOf=="function"?t.valueOf():t;t=vg(e)?e+"":e}if(typeof t!="string")return t===0?t:+t;t=oO(t);var r=yZ.test(t);return r||bZ.test(t)?vZ(t.slice(2),r?2:8):wZ.test(t)?aO:+t}var aO,wZ,yZ,bZ,vZ,a5,cO=N(()=>{sO();s5();rO();aO=NaN,wZ=/^[-+]0x[0-9a-f]+$/i,yZ=/^0b[01]+$/i,bZ=/^0o[0-7]+$/i,vZ=parseInt;a5=_Z});var SZ,nb,lO=N(()=>{i5();SZ=function(){return rb.Date.now()},nb=SZ});function TZ(t,e,r){var n,i,o,s,c,a,d=0,h=!1,g=!1,v=!0;if(typeof t!="function")throw new TypeError(xZ);e=a5(e)||0,vg(r)&&(h=!!r.leading,g="maxWait"in r,o=g?EZ(a5(r.maxWait)||0,e):o,v="trailing"in r?!!r.trailing:v);function E(te){var F=n,me=i;return n=i=void 0,d=te,s=t.apply(me,F),s}function M(te){return d=te,c=setTimeout(z,e),h?E(te):s}function k(te){var F=te-a,me=te-d,Le=e-F;return g?CZ(Le,o-me):Le}function $(te){var F=te-a,me=te-d;return a===void 0||F>=e||F<0||g&&me>=o}function z(){var te=nb();if($(te))return B(te);c=setTimeout(z,k(te))}function B(te){return c=void 0,v&&n?E(te):(n=i=void 0,s)}function q(){c!==void 0&&clearTimeout(c),d=0,n=a=i=c=void 0}function V(){return c===void 0?s:B(nb())}function X(){var te=nb(),F=$(te);if(n=arguments,i=this,a=te,F){if(c===void 0)return M(a);if(g)return clearTimeout(c),c=setTimeout(z,e),E(a)}return c===void 0&&(c=setTimeout(z,e)),s}return X.cancel=q,X.flush=V,X}var xZ,EZ,CZ,c5,uO=N(()=>{s5();lO();cO();xZ="Expected a function",EZ=Math.max,CZ=Math.min;c5=TZ});var dO=N(()=>{uO();});function pO(t){return PZ(t)}function l5(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function PZ(t){for(let e=t;e;e=l5(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=l5(t);e;e=l5(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||ff(r)||e.tagName==="BODY"))return e}return null}var fO=N(()=>{K4()});function mO(t){let e=window.devicePixelRatio||1;return Math.round(t*e)/e}function AZ({placement:t,flipDisabled:e,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let c=[Fk(),Uk()];if(s==="menu")return[...c,n5({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...c,Dk({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return t==="auto"||t==="auto-start"||t==="auto-end"?a.push($k({alignment:t==="auto-start"?"start":t==="auto-end"?"end":null})):e||a.push(n5(r?{fallbackPlacements:r}:{})),o&&a.push(Vk({element:o})),a}return[]}function vO(t,e){let r=t.filter(n=>hO.includes(n));return r.length!==t.length&&console.warn(`${e.tagName}: Invalid value found in: flipPlacements. Try any of these: ${hO.map(n=>`"${n}"`).join(", ").trim()}`,{el:e}),r}function gO(t,e=!1){let r=["left","right"];return e&&r.reverse(),t.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function _O(t,e,r=!1){if(!(!t.open||!e.floatingEl||!e.referenceEl)){if(Object.assign(e.floatingEl.style,{display:"block",position:e.overlayPositioning??"absolute"}),!_g.get(t))return SO(t);await(r?IZ(t):yO)(t,e)}}function IZ(t){let e=ib.get(t);return e||(e=c5(yO,y4.reposition,{leading:!0,maxWait:y4.reposition}),ib.set(t,e),e)}async function SO(t){let{referenceEl:e,floatingEl:r}=t;if(!r.isConnected)return;let n=ki()?Rk:(s,c,a)=>(a(),()=>{});_g.set(t,{state:"pending"});let i,o=n(e,r,()=>{let s=t.reposition();i||(i=s)});return _g.set(t,{state:"active",cleanUp:o}),i}function d5(t){let{floatingEl:e}=t;e&&Object.assign(e.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function xO(t){let{floatingEl:e,referenceEl:r}=t;if(d5(t),!(!e||!r)&&(p5(t),!!t.open))return SO(t)}function p5(t){let{floatingEl:e,referenceEl:r}=t;if(!e||!r)return;let n=_g.get(t);n?.state==="active"&&n.cleanUp(),_g.delete(t),ib.get(t)?.cancel(),ib.delete(t)}var yO,MZ,hO,bO,u5,LZ,_g,ib,wO,f5,m5=N(()=>{Wk();dO();fO();Xt();dn();(function(){if(ki()){let t=tb.getOffsetParent;tb.getOffsetParent=e=>t(e,pO)}})();yO=async(t,{referenceEl:e,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})=>{if(!e||!r)return;let g=Qa(r)==="rtl",{x:v,y:E,placement:M,strategy:k,middlewareData:$}=await zk(e,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:gO(i,g),middleware:AZ({placement:i,flipDisabled:o,flipPlacements:s?.map(q=>gO(q,g)),offsetDistance:c,offsetSkidding:a,arrowEl:d,type:h})});if(d&&$.arrow){let{x:q,y:V}=$.arrow,X=M.split("-")[0],te=q!=null?"left":"top",F=LZ[X],me={left:"",top:"",bottom:"",right:""};"floatingLayout"in t&&(t.floatingLayout=X==="left"||X==="right"?"horizontal":"vertical"),Object.assign(d.style,{...me,[te]:`${te=="left"?q:V}px`,[X]:"100%",transform:F})}let z=$.hide?.referenceHidden?"hidden":null,B=z?"none":null;r.setAttribute(MZ,M),Object.assign(r.style,{pointerEvents:B,position:k,transform:`translate(${mO(v)}px,${mO(E)}px)`,visibility:z})},MZ="data-placement",hO=["top","bottom","right","left","top-start","top-end","bottom-start","bottom-end","right-start","right-end","left-start","left-end","leading","trailing","leading-start","leading-end","trailing-start","trailing-end"],bO="bottom-end",u5={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active"};LZ={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},_g=new WeakMap,ib=new WeakMap;wO=4,f5=Math.ceil(Math.hypot(wO,wO))});function EO(t){return t[t.openProp||"open"]}function gf(t){requestAnimationFrame(()=>{t.transitionEl&&TL(t.transitionEl,t.transitionProp,()=>{EO(t)?t.onBeforeOpen():t.onBeforeClose()},()=>{EO(t)?t.onOpen():t.onClose()})})}var ob=N(()=>{dn();});var sb,h5=N(()=>{oc();Uy();Er();sb=({children:t,...e})=>{let r=e.level?$L(`h${e.level}`):rc`div`;return Jt(e.key,sf`<${r} class=${Se(e.class)}>${t}</${r}>`)}});var CO,kZ,TO,PO=N(()=>{ao();oc();xr();Er();CO={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},kZ={width:12,height:6,strokeWidth:1},TO=({floatingLayout:t,key:e,ref:r})=>{let{width:n,height:i,strokeWidth:o}=kZ,s=n/2,c=t==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return Jt(e,_e`<svg aria-hidden=true class=${Se(CO.arrow)} height=${n} viewBox=${`0 0 ${n} ${n+(c?0:o)}`} width=${n+(c?o:0)} ${wt(r)}>${qo`${qo`<path class=${Se(CO.arrowStroke)} d=${a??Oe} fill=none stroke-width=${o+1} />`||""}<path d=${a??Oe} stroke=none />`}</svg>`)}});var AO,ab,IO,ru,cb,lb,OZ,LO,kO,OO,cc,NZ,RZ,NO,DZ,$Z,FZ,UZ,VZ,zZ,WZ,MO,BZ,GZ,ub,g5,jZ,qZ,RO,DO,nu,HZ,db,$O=N(()=>{AO=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],ab=AO.join(","),IO=typeof Element>"u",ru=IO?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,cb=!IO&&Element.prototype.getRootNode?function(t){var e;return t==null||(e=t.getRootNode)===null||e===void 0?void 0:e.call(t)}:function(t){return t?.ownerDocument},lb=function t(e,r){var n;r===void 0&&(r=!0);var i=e==null||(n=e.getAttribute)===null||n===void 0?void 0:n.call(e,"inert"),o=i===""||i==="true",s=o||r&&e&&t(e.parentNode);return s},OZ=function(e){var r,n=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"contenteditable");return n===""||n==="true"},LO=function(e,r,n){if(lb(e))return[];var i=Array.prototype.slice.apply(e.querySelectorAll(ab));return r&&ru.call(e,ab)&&i.unshift(e),i=i.filter(n),i},kO=function t(e,r,n){for(var i=[],o=Array.from(e);o.length;){var s=o.shift();if(!lb(s,!1))if(s.tagName==="SLOT"){var c=s.assignedElements(),a=c.length?c:s.children,d=t(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ru.call(s,ab);h&&n.filter(s)&&(r||!e.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),v=!lb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&v){var E=t(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,E):i.push({scopeParent:s,candidates:E})}else o.unshift.apply(o,s.children)}}return i},OO=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},cc=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||OZ(e))&&!OO(e)?0:e.tabIndex},NZ=function(e,r){var n=cc(e);return n<0&&r&&!OO(e)?0:n},RZ=function(e,r){return e.tabIndex===r.tabIndex?e.documentOrder-r.documentOrder:e.tabIndex-r.tabIndex},NO=function(e){return e.tagName==="INPUT"},DZ=function(e){return NO(e)&&e.type==="hidden"},$Z=function(e){var r=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(n){return n.tagName==="SUMMARY"});return r},FZ=function(e,r){for(var n=0;n<e.length;n++)if(e[n].checked&&e[n].form===r)return e[n]},UZ=function(e){if(!e.name)return!0;var r=e.form||cb(e),n=function(c){return r.querySelectorAll('input[type="radio"][name="'+c+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(e.name));else try{i=n(e.name)}catch(s){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",s.message),!1}var o=FZ(i,e.form);return!o||o===e},VZ=function(e){return NO(e)&&e.type==="radio"},zZ=function(e){return VZ(e)&&!UZ(e)},WZ=function(e){var r,n=e&&cb(e),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==e){var s,c,a;for(o=!!((s=i)!==null&&s!==void 0&&(c=s.ownerDocument)!==null&&c!==void 0&&c.contains(i)||e!=null&&(a=e.ownerDocument)!==null&&a!==void 0&&a.contains(e));!o&&i;){var d,h,g;n=cb(i),i=(d=n)===null||d===void 0?void 0:d.host,o=!!((h=i)!==null&&h!==void 0&&(g=h.ownerDocument)!==null&&g!==void 0&&g.contains(i))}}return o},MO=function(e){var r=e.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},BZ=function(e,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var o=ru.call(e,"details>summary:first-of-type"),s=o?e.parentElement:e;if(ru.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var c=e;e;){var a=e.parentElement,d=cb(e);if(a&&!a.shadowRoot&&i(a)===!0)return MO(e);e.assignedSlot?e=e.assignedSlot:!a&&d!==e.ownerDocument?e=d.host:e=a}e=c}if(WZ(e))return!e.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return MO(e);return!1},GZ=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var r=e.parentElement;r;){if(r.tagName==="FIELDSET"&&r.disabled){for(var n=0;n<r.children.length;n++){var i=r.children.item(n);if(i.tagName==="LEGEND")return ru.call(r,"fieldset[disabled] *")?!0:!i.contains(e)}return!0}r=r.parentElement}return!1},ub=function(e,r){return!(r.disabled||lb(r)||DZ(r)||BZ(r,e)||$Z(r)||GZ(r))},g5=function(e,r){return!(zZ(r)||cc(r)<0||!ub(e,r))},jZ=function(e){var r=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},qZ=function t(e){var r=[],n=[];return e.forEach(function(i,o){var s=!!i.scopeParent,c=s?i.scopeParent:i,a=NZ(c,s),d=s?t(i.candidates):c;a===0?s?r.push.apply(r,d):r.push(c):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(RZ).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},RO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=kO([e],r.includeContainer,{filter:g5.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:jZ}):n=LO(e,r.includeContainer,g5.bind(null,r)),qZ(n)},DO=function(e,r){r=r||{};var n;return r.getShadowRoot?n=kO([e],r.includeContainer,{filter:ub.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=LO(e,r.includeContainer,ub.bind(null,r)),n},nu=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,ab)===!1?!1:g5(r,e)},HZ=AO.concat("iframe").join(","),db=function(e,r){if(r=r||{},!e)throw new Error("No node provided");return ru.call(e,HZ)===!1?!1:ub(r,e)}});function w5(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function YZ(t){if(Array.isArray(t))return w5(t)}function ZZ(t,e,r){return(e=eX(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function XZ(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function JZ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
13
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function UO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?FO(Object(r),!0).forEach(function(n){ZZ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function QZ(t){return YZ(t)||XZ(t)||tX(t)||JZ()}function KZ(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function eX(t){var e=KZ(t,"string");return typeof e=="symbol"?e:e+""}function tX(t,e){if(t){if(typeof t=="string")return w5(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w5(t,e):void 0}}var VO,rX,nX,xg,iX,oX,zO,Sg,pb,sX,WO,BO=N(()=>{$O();VO={activateTrap:function(e,r){if(e.length>0){var n=e[e.length-1];n!==r&&n._setPausedState(!0)}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(e,r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},rX=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},nX=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},xg=function(e){return e?.key==="Tab"||e?.keyCode===9},iX=function(e){return xg(e)&&!e.shiftKey},oX=function(e){return xg(e)&&e.shiftKey},zO=function(e){return setTimeout(e,0)},Sg=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},pb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},sX=[],WO=function(e,r){var n=r?.document||document,i=r?.trapStack||sX,o=UO({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:iX,isKeyBackward:oX},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,a=function(ce,H,ee){return ce&&ce[H]!==void 0?ce[H]:o[ee||H]},d=function(ce,H){var ee=typeof H?.composedPath=="function"?H.composedPath():void 0;return s.containerGroups.findIndex(function(de){var ue=de.container,ve=de.tabbableNodes;return ue.contains(ce)||ee?.includes(ue)||ve.find(function(ye){return ye===ce})})},h=function(ce){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=H.hasFallback,de=ee===void 0?!1:ee,ue=H.params,ve=ue===void 0?[]:ue,ye=o[ce];if(typeof ye=="function"&&(ye=ye.apply(void 0,QZ(ve))),ye===!0&&(ye=void 0),!ye){if(ye===void 0||ye===!1)return ye;throw new Error("`".concat(ce,"` was specified but was not a node, or did not return a node"))}var De=ye;if(typeof ye=="string"){try{De=n.querySelector(ye)}catch(Qe){throw new Error("`".concat(ce,'` appears to be an invalid selector; error="').concat(Qe.message,'"'))}if(!De&&!de)throw new Error("`".concat(ce,"` as selector refers to no known node"))}return De},g=function(){var ce=h("initialFocus",{hasFallback:!0});if(ce===!1)return!1;if(ce===void 0||ce&&!db(ce,o.tabbableOptions))if(d(n.activeElement)>=0)ce=n.activeElement;else{var H=s.tabbableGroups[0],ee=H&&H.firstTabbableNode;ce=ee||h("fallbackFocus")}else ce===null&&(ce=h("fallbackFocus"));if(!ce)throw new Error("Your focus-trap needs to have at least one focusable element");return ce},v=function(){if(s.containerGroups=s.containers.map(function(ce){var H=RO(ce,o.tabbableOptions),ee=DO(ce,o.tabbableOptions),de=H.length>0?H[0]:void 0,ue=H.length>0?H[H.length-1]:void 0,ve=ee.find(function(Qe){return nu(Qe)}),ye=ee.slice().reverse().find(function(Qe){return nu(Qe)}),De=!!H.find(function(Qe){return cc(Qe)>0});return{container:ce,tabbableNodes:H,focusableNodes:ee,posTabIndexesFound:De,firstTabbableNode:de,lastTabbableNode:ue,firstDomTabbableNode:ve,lastDomTabbableNode:ye,nextTabbableNode:function(ft){var mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Kt=H.indexOf(ft);return Kt<0?mr?ee.slice(ee.indexOf(ft)+1).find(function(er){return nu(er)}):ee.slice(0,ee.indexOf(ft)).reverse().find(function(er){return nu(er)}):H[Kt+(mr?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(ce){return ce.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(ce){return ce.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function(ce){var H=ce.activeElement;if(H)return H.shadowRoot&&H.shadowRoot.activeElement!==null?E(H.shadowRoot):H},M=function(ce){if(ce!==!1&&ce!==E(document)){if(!ce||!ce.focus){M(g());return}ce.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=ce,rX(ce)&&ce.select()}},k=function(ce){var H=h("setReturnFocus",{params:[ce]});return H||(H===!1?!1:ce)},$=function(ce){var H=ce.target,ee=ce.event,de=ce.isBackward,ue=de===void 0?!1:de;H=H||pb(ee),v();var ve=null;if(s.tabbableGroups.length>0){var ye=d(H,ee),De=ye>=0?s.containerGroups[ye]:void 0;if(ye<0)ue?ve=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:ve=s.tabbableGroups[0].firstTabbableNode;else if(ue){var Qe=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.firstTabbableNode;return H===hn});if(Qe<0&&(De.container===H||db(H,o.tabbableOptions)&&!nu(H,o.tabbableOptions)&&!De.nextTabbableNode(H,!1))&&(Qe=ye),Qe>=0){var ft=Qe===0?s.tabbableGroups.length-1:Qe-1,mr=s.tabbableGroups[ft];ve=cc(H)>=0?mr.lastTabbableNode:mr.lastDomTabbableNode}else xg(ee)||(ve=De.nextTabbableNode(H,!1))}else{var Kt=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.lastTabbableNode;return H===hn});if(Kt<0&&(De.container===H||db(H,o.tabbableOptions)&&!nu(H,o.tabbableOptions)&&!De.nextTabbableNode(H))&&(Kt=ye),Kt>=0){var er=Kt===s.tabbableGroups.length-1?0:Kt+1,Jn=s.tabbableGroups[er];ve=cc(H)>=0?Jn.firstTabbableNode:Jn.firstDomTabbableNode}else xg(ee)||(ve=De.nextTabbableNode(H))}}else ve=h("fallbackFocus");return ve},z=function(ce){var H=pb(ce);if(!(d(H,ce)>=0)){if(Sg(o.clickOutsideDeactivates,ce)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Sg(o.allowOutsideClick,ce)||ce.preventDefault()}},B=function(ce){var H=pb(ce),ee=d(H,ce)>=0;if(ee||H instanceof Document)ee&&(s.mostRecentlyFocusedNode=H);else{ce.stopImmediatePropagation();var de,ue=!0;if(s.mostRecentlyFocusedNode)if(cc(s.mostRecentlyFocusedNode)>0){var ve=d(s.mostRecentlyFocusedNode),ye=s.containerGroups[ve].tabbableNodes;if(ye.length>0){var De=ye.findIndex(function(Qe){return Qe===s.mostRecentlyFocusedNode});De>=0&&(o.isKeyForward(s.recentNavEvent)?De+1<ye.length&&(de=ye[De+1],ue=!1):De-1>=0&&(de=ye[De-1],ue=!1))}}else s.containerGroups.some(function(Qe){return Qe.tabbableNodes.some(function(ft){return cc(ft)>0})})||(ue=!1);else ue=!1;ue&&(de=$({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),M(de||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},q=function(ce){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=ce;var ee=$({event:ce,isBackward:H});ee&&(xg(ce)&&ce.preventDefault(),M(ee))},V=function(ce){(o.isKeyForward(ce)||o.isKeyBackward(ce))&&q(ce,o.isKeyBackward(ce))},X=function(ce){nX(ce)&&Sg(o.escapeDeactivates,ce)!==!1&&(ce.preventDefault(),c.deactivate())},te=function(ce){var H=pb(ce);d(H,ce)>=0||Sg(o.clickOutsideDeactivates,ce)||Sg(o.allowOutsideClick,ce)||(ce.preventDefault(),ce.stopImmediatePropagation())},F=function(){if(s.active)return VO.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?zO(function(){M(g())}):M(g()),n.addEventListener("focusin",B,!0),n.addEventListener("mousedown",z,{capture:!0,passive:!1}),n.addEventListener("touchstart",z,{capture:!0,passive:!1}),n.addEventListener("click",te,{capture:!0,passive:!1}),n.addEventListener("keydown",V,{capture:!0,passive:!1}),n.addEventListener("keydown",X),c},me=function(){if(s.active)return n.removeEventListener("focusin",B,!0),n.removeEventListener("mousedown",z,!0),n.removeEventListener("touchstart",z,!0),n.removeEventListener("click",te,!0),n.removeEventListener("keydown",V,!0),n.removeEventListener("keydown",X),c},Le=function(ce){var H=ce.some(function(ee){var de=Array.from(ee.removedNodes);return de.some(function(ue){return ue===s.mostRecentlyFocusedNode})});H&&M(g())},Ce=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Le):void 0,Ne=function(){Ce&&(Ce.disconnect(),s.active&&!s.paused&&s.containers.map(function(ce){Ce.observe(ce,{subtree:!0,childList:!0})}))};return c={get active(){return s.active},get paused(){return s.paused},activate:function(ce){if(s.active)return this;var H=a(ce,"onActivate"),ee=a(ce,"onPostActivate"),de=a(ce,"checkCanFocusTrap");de||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,H?.();var ue=function(){de&&v(),F(),Ne(),ee?.()};return de?(de(s.containers.concat()).then(ue,ue),this):(ue(),this)},deactivate:function(ce){if(!s.active)return this;var H=UO({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},ce);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,me(),s.active=!1,s.paused=!1,Ne(),VO.deactivateTrap(i,c);var ee=a(H,"onDeactivate"),de=a(H,"onPostDeactivate"),ue=a(H,"checkCanReturnFocus"),ve=a(H,"returnFocus","returnFocusOnDeactivate");ee?.();var ye=function(){zO(function(){ve&&M(k(s.nodeFocusedBeforeActivation)),de?.()})};return ve&&ue?(ue(k(s.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(ce){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,ce)):this},unpause:function(ce){return s.active?(s.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,ce)):this},updateContainerElements:function(ce){var H=[].concat(ce).filter(Boolean);return s.containers=H.map(function(ee){return typeof ee=="string"?n.querySelector(ee):ee}),s.active&&v(),Ne(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(ce,H){if(s.paused===ce)return this;if(s.paused=ce,ce){var ee=a(H,"onPause"),de=a(H,"onPostPause");ee?.(),me(),Ne(),de?.()}else{var ue=a(H,"onUnpause"),ve=a(H,"onPostUnpause");ue?.(),v(),F(),Ne(),ve?.()}return this}}}),c.updateContainerElements(e),c}});function GO(t,e){return{clickOutsideDeactivates:!0,fallbackFocus:e?.fallbackFocus||t,setReturnFocus:r=>(Ry(r),!1),...e,document:t.ownerDocument,tabbableOptions:A4,trapStack:BI}}var jO=N(()=>{dn();Xt();});function qO(t,{focusTrapOptions:e},r){return!e?.extraContainers&&!r?t:[t,...HO(e?.extraContainers),...HO(r)]}function HO(t=[]){return Array.isArray(t)?t:[t]}var fb,y5=N(()=>{Jp();BO();jO();fb=t=>QA((e,r)=>{let n,i,o,s=t.focusTrapOptions;r.onConnected(()=>{e[t.triggerProp]&&n&&c.activate()}),r.onUpdate(a=>{e.hasUpdated&&a.has("focusTrapDisabled")&&(e.focusTrapDisabled?c.deactivate():c.activate())}),r.onDisconnected(()=>c.deactivate());let c={activate:()=>{let a=i||e.el;if(a.isConnected){if(!n){let d={...s,...e.focusTrapOptions};o||=qO(a,e),n=WO(o,GO(a,d))}(typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled)&&n.activate()}},deactivate:()=>n?.deactivate(),overrideFocusTrapEl:a=>{if(n)throw new Error("Focus trap already created");i=a},setExtraContainers:a=>{let d=i||e.el;o=qO(d,e,a)},updateContainerElements:()=>n?.updateContainerElements(o)};return c})});function mb(t){return t==="Enter"||t===" "}var Eg,Cg=N(()=>{Eg=["0","1","2","3","4","5","6","7","8","9"]});var b5,mo,YO,ZO,XO,aX,JO,v5,QO=N(()=>{Xt();oc();Ii();ao();Er();m5();dn();tf();ob();h5();Rs();tc();PO();lf();Ho();y5();Cg();un();b5=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{let{registeredElements:r}=this,n=e.find(i=>r.has(i));return r.get(n)},this.togglePopovers=e=>{let r=e.composedPath(),n=this.queryPopover(r);n&&!n.triggerDisabled&&(n.open=!n.open),Array.from(this.registeredElements.values()).filter(i=>i!==n&&i.autoClose&&i.open&&!r.includes(i)).forEach(i=>i.open=!1)},this.keyDownHandler=e=>{e.defaultPrevented||(e.key==="Escape"?this.closeAllPopovers():mb(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{EL(e)||e.defaultPrevented||this.togglePopovers(e)}}registerElement(e,r){this.registeredElementCount++,this.registeredElements.set(e,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(e=>e.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},mo={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",heading:"heading"},YO="auto",ZO="aria-controls",XO="aria-expanded",aX=Ct`:host{display:contents;--calcite-floating-ui-z-index: var(--calcite-popover-z-index, var(--calcite-z-index-popup))}.position-container{inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`,JO=new b5,v5=class extends gt{constructor(){super(...arguments),this.closeButtonEl=mi(),this.focusTrap=fb({triggerProp:"open",focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:e=>(e.defaultPrevented||(this.open=!1,e.preventDefault()),!1)}})(this),this.guid=`calcite-popover-${Os()}`,this.hasLoaded=!1,this.mutationObserver=Nn("mutation",()=>this.focusTrap.updateContainerElements()),this.transitionProp="opacity",this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.messages=Jr(),this.offsetDistance=f5,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=YO,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=Tt({cancelable:!1}),this.calcitePopoverBeforeOpen=Tt({cancelable:!1}),this.calcitePopoverClose=Tt({cancelable:!1}),this.calcitePopoverOpen=Tt({cancelable:!1})}static{this.properties={floatingLayout:16,referenceEl:16,autoClose:7,closable:7,flipDisabled:7,flipPlacements:0,focusTrapDisabled:7,focusTrapOptions:0,heading:1,headingLevel:11,label:1,messageOverrides:0,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,pointerDisabled:7,referenceElement:1,scale:3,triggerDisabled:7}}static{this.styles=aX}async reposition(e=!1){let{referenceEl:r,placement:n,overlayPositioning:i,flipDisabled:o,filteredFlipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,floatingEl:h}=this;return _O(this,{floatingEl:h,referenceEl:r,overlayPositioning:i,placement:n,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:"popover"},e)}async setFocus(){await En(this),this.requestUpdate(),ec(this.el)}async updateFocusTrapElements(){this.focusTrap.updateContainerElements()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){}willUpdate(e){e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==f5)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==YO))&&this.reposition(!0),e.has("referenceElement")&&this.referenceElementHandler()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),p5(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){gf(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){this.transitionEl=e}setFilteredPlacements(){let{el:e,flipPlacements:r}=this;this.filteredFlipPlacements=r?vO(r,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),xO(this);let{el:r,referenceElement:n,referenceEl:i}=this;e&&n&&!i&&console.warn(`${r.tagName}: reference-element id "${n}" was not found.`,{el:r}),this.addReferences()}getId(){return this.el.id||this.guid}setExpandedAttr(){let{referenceEl:e,open:r}=this;e&&"setAttribute"in e&&e.setAttribute(XO,nf(r))}addReferences(){let{referenceEl:e}=this;if(!e)return;let r=this.getId();"setAttribute"in e&&e.setAttribute(ZO,r),JO.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(ZO),e.removeAttribute(XO)),JO.unregisterElement(e))}getReferenceElement(){let{referenceElement:e,el:r}=this;return(typeof e=="string"?Yl(r,{id:e}):e)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),d5(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:r}=this;return r?Jt(mo.closeButtonContainer,_e`<div class=${Se(mo.closeButtonContainer)}><calcite-action appearance=transparent class=${Se(mo.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${wt(this.closeButtonEl)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:e,headingLevel:r}=this,n=e?sb({class:mo.heading,level:r,children:e}):null;return n?Jt(mo.header,_e`<div class=${Se(mo.header)}>${n}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:e,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,c=e&&i,a=!c,d=o?null:Jt("floating-arrow",TO({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",Kp(this.el,"id",this.getId()),this.el.role="dialog",_e`<div class=${Se(mo.positionContainer)} ${wt(this.setFloatingEl)}><div class=${Se({[mo.container]:!0,[u5.animation]:!0,[u5.animationActive]:c})} ${wt(this.setTransitionEl)}>${d}<div class=${Se({[mo.hasHeader]:!!r,[mo.headerContainer]:!0})}>${this.renderHeader()}<div class=${Se(mo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Lt("calcite-popover",v5)});var KO=N(()=>{Hy();Zl();QO()});function _5(t,e){return(t+e)%e}var eN=N(()=>{});var S5,Tg,tN,rN,x5=N(()=>{S5={menu:"menu",defaultTrigger:"default-trigger"},Tg={tooltip:"tooltip",trigger:"trigger"},tN={menu:"ellipsis"},rN="data-active"});var cX,lX,E5,nN=N(()=>{Xt();ao();Ii();Er();eN();dn();tf();Cg();Rs();x5();un();cX=Ct`:host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}`,lX=["ArrowUp","ArrowDown","End","Home"],E5=class extends gt{constructor(){super(...arguments),this.guid=`calcite-action-menu-${Os()}`,this.actionElements=[],this.menuButtonClick=()=>{this.toggleOpen()},this.menuButtonId=`${this.guid}-menu-button`,this.menuButtonKeyDown=e=>{let{key:r}=e,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(mb(r)){if(e.preventDefault(),!o){this.toggleOpen();return}let s=n[i];s?s.click():this.toggleOpen(!1)}if(r==="Tab"){this.open=!1;return}if(r==="Escape"){this.toggleOpen(!1),e.preventDefault();return}this.handleActionNavigation(e,r,n)}},this.menuId=`${this.guid}-menu`,this._open=!1,this.updateAction=(e,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=o),e.toggleAttribute(rN,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=Tt({cancelable:!1})}static{this.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3}}static{this.styles=cX}get open(){return this._open}set open(e){let r=this._open;e!==r&&(this._open=e,this.openHandler(e))}async setFocus(){return await En(this),Ry(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){}willUpdate(e){e.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.expandedHandler(),e.has("activeMenuItemIndex")&&(this.hasUpdated||this.activeMenuItemIndex!==-1)&&this.updateActions(this.actionElements)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.menuButtonEl&&(this.menuButtonEl.active=e),this.popoverEl&&(this.popoverEl.open=e),this.activeMenuItemIndex=this.open?0:-1,this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}connectMenuButtonEl(){let{menuButtonId:e,menuId:r,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",r),o.setAttribute("aria-expanded",nf(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=e),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))}disconnectMenuButtonEl(){let{menuButtonEl:e}=this;e&&(e.removeEventListener("click",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown),this.menuButtonEl=null)}setMenuButtonEl(e){let r=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()}setDefaultMenuButtonEl(e){this.defaultMenuButtonEl=e,e&&this.connectMenuButtonEl()}setPopoverEl(e){e&&(this.popoverEl=e,e.open=this.open)}handleCalciteActionClick(){this.open=!1,this.setFocus()}updateTooltip(e){let r=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()}setTooltipReferenceElement(){let{tooltipEl:e,expanded:r,menuButtonEl:n,open:i}=this;e&&(e.referenceElement=!r&&!i?n:null)}updateActions(e){e?.forEach(this.updateAction)}handleDefaultSlotChange(e){let r=e.target.assignedElements({flatten:!0}).reduce((n,i)=>i?.matches("calcite-action")?(n.push(i),n):i?.matches("calcite-action-group")?n.concat(Array.from(i.querySelectorAll("calcite-action"))):n,[]);this.actionElements=r.filter(n=>!n.disabled&&!n.hidden)}isValidKey(e,r){return!!r.find(n=>n===e)}handleActionNavigation(e,r,n){if(!this.isValidKey(r,lX))return;if(e.preventDefault(),!this.open){this.toggleOpen(),(r==="Home"||r==="ArrowDown")&&(this.activeMenuItemIndex=0),(r==="End"||r==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}r==="Home"&&(this.activeMenuItemIndex=0),r==="End"&&(this.activeMenuItemIndex=n.length-1);let i=this.activeMenuItemIndex;r==="ArrowUp"&&(this.activeMenuItemIndex=_5(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=_5(i+1,n.length))}toggleOpen(e=!this.open){this.open=e}handlePopoverOpen(){this.open=!0,this.setFocus()}handlePopoverClose(){this.open=!1}renderMenuButton(){let{appearance:e,label:r,scale:n,expanded:i}=this;return _e`<slot name=${Tg.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${e} class=${Se(S5.defaultTrigger)} .icon=${tN.menu} .scale=${n} .text=${r} .textEnabled=${i} ${wt(this.setDefaultMenuButtonEl)}></calcite-action></slot>`}renderMenuItems(){let{actionElements:e,activeMenuItemIndex:r,menuId:n,menuButtonEl:i,label:o,placement:s,overlayPositioning:c,flipPlacements:a}=this,d=e[r]?.id||null;return _e`<calcite-popover auto-close .flipPlacements=${a} focus-trap-disabled .label=${o} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${c} .placement=${s} pointer-disabled .referenceElement=${i} trigger-disabled ${wt(this.setPopoverEl)}><div aria-activedescendant=${d??Oe} aria-labelledby=${i?.id??Oe} class=${Se(S5.menu)} id=${n??Oe} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return _e`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${Tg.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Lt("calcite-action-menu",E5)});var iN=N(()=>{Hy();KO();nN()});var Qt,C5,Pg,Rt,T5=N(()=>{Qt={actionBarContainer:"action-bar-container",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",fabContainer:"fab-container",footer:"footer",footerContent:"footer-content",footerActions:"footer-actions",footerStart:"footer-start",footerEnd:"footer-end",headerSlottedContent:"header-slotted-content"},C5={close:"close",collapse:"collapse"},Pg={close:"x",menu:"ellipsis",expand:"chevron-down",collapse:"chevron-up"},Rt={actionBar:"action-bar",alerts:"alerts",contentBottom:"content-bottom",contentTop:"content-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start",footerActions:"footer-actions"}});var uX,P5,oN=N(()=>{Xt();oc();ao();Ii();Er();dn();ag();Rs();tc();x5();h5();m5();Ho();T5();un();uX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height: calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;padding:var(--calcite-internal-panel-default-space);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none));box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) 0 0;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .header-actions{--calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press);--calcite-action-background-color: var(--calcite-panel-header-action-background-color);--calcite-action-indicator-color: var(--calcite-panel-header-action-indicator-color);--calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press);--calcite-action-text-color: var(--calcite-panel-header-action-text-color)}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}#close:last-child,#collapse:last-child,calcite-action-menu:last-child{--calcite-action-corner-radius-start-end: var(--calcite-panel-corner-radius)}.back-button{--calcite-action-corner-radius-start-start: var(--calcite-panel-corner-radius)}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header-slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1));border-radius:0 0 var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-space)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,P5=class extends gt{constructor(){super(),this.resizeObserver=Nn("resize",()=>this.resizeHandler()),this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasEndActions=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.hasHeaderContent=!1,this.hasMenuItems=!1,this.hasStartActions=!1,this.isClosed=!1,this.showHeaderContent=!1,this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.menuPlacement=bO,this.messages=Jr(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=Tt({cancelable:!1}),this.calcitePanelScroll=Tt({cancelable:!1}),this.calcitePanelToggle=Tt({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}static{this.properties={hasActionBar:16,hasContentBottom:16,hasContentTop:16,hasEndActions:16,hasFab:16,hasFooterActions:16,hasFooterContent:16,hasFooterEndContent:16,hasFooterStartContent:16,hasHeaderContent:16,hasMenuItems:16,hasStartActions:16,isClosed:16,showHeaderContent:16,beforeClose:0,closable:7,closed:7,collapseDirection:1,collapsed:7,collapsible:7,description:1,disabled:7,heading:1,headingLevel:11,loading:7,menuFlipPlacements:0,menuOpen:7,menuPlacement:3,messageOverrides:0,overlayPositioning:3,scale:3}}static{this.styles=uX}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}async setFocus(){await En(this),ec(this.containerEl)}async load(){this.isClosed=this.closed}willUpdate(e){e.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){nc(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:e}=this;!e||typeof e.scrollHeight!="number"||typeof e.offsetHeight!="number"||(e.scrollHeight>e.offsetHeight?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"))}setContainerRef(e){this.containerEl=e}panelKeyDownHandler(e){this.closable&&e.key==="Escape"&&!e.defaultPrevented&&(this.handleUserClose(),e.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let e=this.beforeClose??(()=>Promise.resolve());try{await e()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(e){this.hasStartActions=On(e)}handleHeaderActionsEndSlotChange(e){this.hasEndActions=On(e)}handleHeaderMenuActionsSlotChange(e){this.hasMenuItems=On(e)}handleActionBarSlotChange(e){let r=Dy(e).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(e){this.hasHeaderContent=On(e)}handleFabSlotChange(e){this.hasFab=On(e)}handleFooterActionsSlotChange(e){this.hasFooterActions=On(e)}handleFooterEndSlotChange(e){this.hasFooterEndContent=On(e)}handleFooterStartSlotChange(e){this.hasFooterStartContent=On(e)}handleFooterSlotChange(e){this.hasFooterContent=On(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=On(e)}contentTopSlotChangeHandler(e){this.hasContentTop=On(e)}setPanelScrollEl(e){this.panelScrollEl=e,this.resizeObserver?.disconnect(),e&&(this.resizeObserver?.observe(e),this.resizeHandler())}handleAlertsSlotChange(e){Dy(e)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:e,headingLevel:r,description:n,hasHeaderContent:i}=this,o=e?sb({class:Qt.heading,level:r,children:e}):null,s=n?_e`<span class=${Se(Qt.description)}>${n}</span>`:null;return!i&&(o||s)?Jt("header-content",_e`<div class=${Se(Qt.headerContent)}>${o}${s}</div>`):null}renderActionBar(){return _e`<div class=${Se(Qt.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${Rt.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return Jt("slotted-header-content",_e`<div class=${Se({[Qt.headerContent]:!0,[Qt.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${Rt.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:e}=this;return Jt("header-actions-start",_e`<div class=${Se({[Qt.headerActionsStart]:!0,[Qt.headerActions]:!0})} .hidden=${!e}><slot name=${Rt.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:e,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:c}=this,{collapse:a,expand:d,close:h}=r,g=[Pg.expand,Pg.collapse];o==="up"&&g.reverse();let v=s?_e`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${C5.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Oe}></calcite-action>`:null,E=n?_e`<calcite-action .ariaLabel=${h} .icon=${Pg.close} id=${C5.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Oe}></calcite-action>`:null,M=_e`<slot name=${Rt.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,k=e||v||E||c;return Jt("header-actions-end",_e`<div class=${Se({[Qt.headerActionsEnd]:!0,[Qt.headerActions]:!0})} .hidden=${!k}>${M}${this.renderMenu()}${v}${E}</div>`)}renderMenu(){let{hasMenuItems:e,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return Jt("menu",_e`<calcite-action-menu .flipPlacements=${i??["top","bottom"]} .hidden=${!e} .label=${r.options} .open=${n} .overlayPositioning=${this.overlayPositioning} .placement=${o}><calcite-action .icon=${Pg.menu} .scale=${this.scale} slot=${Tg.trigger} .text=${r.options}></calcite-action><slot name=${Rt.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:e,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:c}=this,a=this.renderHeaderContent(),d=e||!!a||r||n||o||i||s;return this.showHeaderContent=d,_e`<header class=${Se(Qt.header)} .hidden=${!(d||c)}><div class=${Se({[Qt.headerContainer]:!0,[Qt.headerContainerBorderEnd]:c})} .hidden=${!d}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${a}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:e,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||e||n||i;return _e`<footer class=${Se(Qt.footer)} .hidden=${!o}><div class=${Se(Qt.footerContent)} .hidden=${!n}><slot name=${Rt.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${Se(Qt.footerStart)} .hidden=${n||!r}><slot name=${Rt.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${Se(Qt.footerEnd)} .hidden=${n||!e}><slot name=${Rt.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${Se(Qt.footerActions)} .hidden=${n||!i}>${Jt("footer-actions-slot",_e`<slot name=${Rt.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return _e`<div class=${Se(Qt.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${wt(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return _e`<div class=${Se(Qt.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${Rt.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return _e`<div class=${Se(Qt.contentTop)} .hidden=${!this.hasContentTop}><slot name=${Rt.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return _e`<div class=${Se(Qt.fabContainer)} .hidden=${!this.hasFab}><slot name=${Rt.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:e,loading:r,isClosed:n}=this,i=_e`<article .ariaBusy=${r} class=${Se(Qt.container)} .hidden=${n} ${wt(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${Jt("alerts",_e`<slot name=${Rt.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return ic({disabled:e,children:_e`${r?_e`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Lt("calcite-panel",P5)});var sN=N(()=>{Hy();iN();q4();oN()});function cN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var aN,lN=N(()=>{aN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}});var hb,dX,Mg,uN=N(()=>{lN();hb={exports:{}};hb.exports;(function(t,e){(function(r,n){t.exports=n()})(aN,function(){function r(f,p){var w=Object.keys(f);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(f);p&&(_=_.filter(function(C){return Object.getOwnPropertyDescriptor(f,C).enumerable})),w.push.apply(w,_)}return w}function n(f){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?r(Object(w),!0).forEach(function(_){a(f,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(w)):r(Object(w)).forEach(function(_){Object.defineProperty(f,_,Object.getOwnPropertyDescriptor(w,_))})}return f}function i(f){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(f)}function o(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function s(f,p){for(var w=0;w<p.length;w++){var _=p[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(f,k(_.key),_)}}function c(f,p,w){return p&&s(f.prototype,p),Object.defineProperty(f,"prototype",{writable:!1}),f}function a(f,p,w){return(p=k(p))in f?Object.defineProperty(f,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[p]=w,f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),p&&g(f,p)}function h(f){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},h(f)}function g(f,p){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,_){return w.__proto__=_,w},g(f,p)}function v(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function E(f){var p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,_=h(f);if(p){var C=h(this).constructor;w=Reflect.construct(_,arguments,C)}else w=_.apply(this,arguments);return function(T,A){if(A&&(typeof A=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(T)}(this,w)}}function M(){return M=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,p,w){var _=function(T,A){for(;!Object.prototype.hasOwnProperty.call(T,A)&&(T=h(T))!==null;);return T}(f,p);if(_){var C=Object.getOwnPropertyDescriptor(_,p);return C.get?C.get.call(arguments.length<3?f:w):C.value}},M.apply(this,arguments)}function k(f){var p=function(w,_){if(typeof w!="object"||w===null)return w;var C=w[Symbol.toPrimitive];if(C!==void 0){var T=C.call(w,_);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(w)}(f,"string");return typeof p=="symbol"?p:p+""}var $=function(f){return!(!f||!f.Window)&&f instanceof f.Window},z=void 0,B=void 0;function q(f){z=f;var p=f.document.createTextNode("");p.ownerDocument!==f.document&&typeof f.wrap=="function"&&f.wrap(p)===p&&(f=f.wrap(f)),B=f}function V(f){return $(f)?f:(f.ownerDocument||f).defaultView||B.window}typeof window<"u"&&window&&q(window);var X=function(f){return!!f&&i(f)==="object"},te=function(f){return typeof f=="function"},F={window:function(f){return f===B||$(f)},docFrag:function(f){return X(f)&&f.nodeType===11},object:X,func:te,number:function(f){return typeof f=="number"},bool:function(f){return typeof f=="boolean"},string:function(f){return typeof f=="string"},element:function(f){if(!f||i(f)!=="object")return!1;var p=V(f)||B;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?f instanceof Element||f instanceof p.Element:f.nodeType===1&&typeof f.nodeName=="string"},plainObject:function(f){return X(f)&&!!f.constructor&&/function Object\b/.test(f.constructor.toString())},array:function(f){return X(f)&&f.length!==void 0&&te(f.splice)}};function me(f){var p=f.interaction;if(p.prepared.name==="drag"){var w=p.prepared.axis;w==="x"?(p.coords.cur.page.y=p.coords.start.page.y,p.coords.cur.client.y=p.coords.start.client.y,p.coords.velocity.client.y=0,p.coords.velocity.page.y=0):w==="y"&&(p.coords.cur.page.x=p.coords.start.page.x,p.coords.cur.client.x=p.coords.start.client.x,p.coords.velocity.client.x=0,p.coords.velocity.page.x=0)}}function Le(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="drag"){var _=w.prepared.axis;if(_==="x"||_==="y"){var C=_==="x"?"y":"x";p.page[C]=w.coords.start.page[C],p.client[C]=w.coords.start.client[C],p.delta[C]=0}}}var Ce={id:"actions/drag",install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.draggable=Ce.draggable,p.map.drag=Ce,p.methodDict.drag="draggable",_.actions.drag=Ce.defaults},listeners:{"interactions:before-action-move":me,"interactions:action-resume":me,"interactions:action-move":Le,"auto-start:check":function(f){var p=f.interaction,w=f.interactable,_=f.buttons,C=w.options.drag;if(C&&C.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||_&w.options.drag.mouseButtons))return f.action={name:"drag",axis:C.lockAxis==="start"?C.startAxis:C.lockAxis},!1}},draggable:function(f){return F.object(f)?(this.options.drag.enabled=f.enabled!==!1,this.setPerAction("drag",f),this.setOnEvents("drag",f),/^(xy|x|y|start)$/.test(f.lockAxis)&&(this.options.drag.lockAxis=f.lockAxis),/^(xy|x|y)$/.test(f.startAxis)&&(this.options.drag.startAxis=f.startAxis),this):F.bool(f)?(this.options.drag.enabled=f,this):this.options.drag},beforeMove:me,move:Le,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(f){return f.search("drag")===0}},Ne=Ce,we={init:function(f){var p=f;we.document=p.document,we.DocumentFragment=p.DocumentFragment||ce,we.SVGElement=p.SVGElement||ce,we.SVGSVGElement=p.SVGSVGElement||ce,we.SVGElementInstance=p.SVGElementInstance||ce,we.Element=p.Element||ce,we.HTMLElement=p.HTMLElement||we.Element,we.Event=p.Event,we.Touch=p.Touch||ce,we.PointerEvent=p.PointerEvent||p.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ce(){}var H=we,ee={init:function(f){var p=H.Element,w=f.navigator||{};ee.supportsTouch="ontouchstart"in f||F.func(f.DocumentTouch)&&H.document instanceof f.DocumentTouch,ee.supportsPointerEvent=w.pointerEnabled!==!1&&!!H.PointerEvent,ee.isIOS=/iP(hone|od|ad)/.test(w.platform),ee.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),ee.isIe9=/MSIE 9/.test(w.userAgent),ee.isOperaMobile=w.appName==="Opera"&&ee.supportsTouch&&/Presto/.test(w.userAgent),ee.prefixedMatchesSelector="matches"in p.prototype?"matches":"webkitMatchesSelector"in p.prototype?"webkitMatchesSelector":"mozMatchesSelector"in p.prototype?"mozMatchesSelector":"oMatchesSelector"in p.prototype?"oMatchesSelector":"msMatchesSelector",ee.pEventTypes=ee.supportsPointerEvent?H.PointerEvent===f.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ee.wheelEvent=H.document&&"onmousewheel"in H.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},de=ee;function ue(f,p){if(f.contains)return f.contains(p);for(;p;){if(p===f)return!0;p=p.parentNode}return!1}function ve(f,p){for(;F.element(f);){if(De(f,p))return f;f=ye(f)}return null}function ye(f){var p=f.parentNode;if(F.docFrag(p)){for(;(p=p.host)&&F.docFrag(p););return p}return p}function De(f,p){return B!==z&&(p=p.replace(/\/deep\//g," ")),f[de.prefixedMatchesSelector](p)}var Qe=function(f){return f.parentNode||f.host};function ft(f,p){for(var w,_=[],C=f;(w=Qe(C))&&C!==p&&w!==C.ownerDocument;)_.unshift(C),C=w;return _}function mr(f,p,w){for(;F.element(f);){if(De(f,p))return!0;if((f=ye(f))===w)return De(f,p)}return!1}function Kt(f){return f.correspondingUseElement||f}function er(f){var p=f instanceof H.SVGElement?f.getBoundingClientRect():f.getClientRects()[0];return p&&{left:p.left,right:p.right,top:p.top,bottom:p.bottom,width:p.width||p.right-p.left,height:p.height||p.bottom-p.top}}function Jn(f){var p,w=er(f);if(!de.isIOS7&&w){var _={x:(p=(p=V(f))||B).scrollX||p.document.documentElement.scrollLeft,y:p.scrollY||p.document.documentElement.scrollTop};w.left+=_.x,w.right+=_.x,w.top+=_.y,w.bottom+=_.y}return w}function Cn(f){for(var p=[];f;)p.push(f),f=ye(f);return p}function hn(f){return!!F.string(f)&&(H.document.querySelector(f),!0)}function Ue(f,p){for(var w in p)f[w]=p[w];return f}function gu(f,p,w){return f==="parent"?ye(w):f==="self"?p.getRect(w):ve(w,f)}function _o(f,p,w,_){var C=f;return F.string(C)?C=gu(C,p,w):F.func(C)&&(C=C.apply(void 0,_)),F.element(C)&&(C=Jn(C)),C}function Di(f){return f&&{x:"x"in f?f.x:f.left,y:"y"in f?f.y:f.top}}function gc(f){return!f||"x"in f&&"y"in f||((f=Ue({},f)).x=f.left||0,f.y=f.top||0,f.width=f.width||(f.right||0)-f.x,f.height=f.height||(f.bottom||0)-f.y),f}function Vs(f,p,w){f.left&&(p.left+=w.x),f.right&&(p.right+=w.x),f.top&&(p.top+=w.y),f.bottom&&(p.bottom+=w.y),p.width=p.right-p.left,p.height=p.bottom-p.top}function Qo(f,p,w){var _=w&&f.options[w];return Di(_o(_&&_.origin||f.options.origin,f,p,[f&&p]))||{x:0,y:0}}function yi(f,p){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(R){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},F.string(f)&&f.search(" ")!==-1&&(f=wu(f)),F.array(f))return f.forEach(function(R){return yi(R,p,w,_)}),_;if(F.object(f)&&(p=f,f=""),F.func(p)&&w(f))_[f]=_[f]||[],_[f].push(p);else if(F.array(p))for(var C=0,T=p;C<T.length;C++){var A=T[C];yi(f,A,w,_)}else if(F.object(p))for(var O in p)yi(wu(O).map(function(R){return"".concat(f).concat(R)}),p[O],w,_);return _}function wu(f){return f.trim().split(/ +/)}var Ko=function(f,p){return Math.sqrt(f*f+p*p)},Lf=["webkit","moz"];function So(f,p){f.__set||(f.__set={});var w=function(C){if(Lf.some(function(T){return C.indexOf(T)===0}))return 1;typeof f[C]!="function"&&C!=="__set"&&Object.defineProperty(f,C,{get:function(){return C in f.__set?f.__set[C]:f.__set[C]=p[C]},set:function(T){f.__set[C]=T},configurable:!0})};for(var _ in p)w(_);return f}function zs(f,p){f.page=f.page||{},f.page.x=p.page.x,f.page.y=p.page.y,f.client=f.client||{},f.client.x=p.client.x,f.client.y=p.client.y,f.timeStamp=p.timeStamp}function wc(f){f.page.x=0,f.page.y=0,f.client.x=0,f.client.y=0}function yc(f){return f instanceof H.Event||f instanceof H.Touch}function hr(f,p,w){return f=f||"page",(w=w||{}).x=p[f+"X"],w.y=p[f+"Y"],w}function yu(f,p){return p=p||{x:0,y:0},de.isOperaMobile&&yc(f)?(hr("screen",f,p),p.x+=window.scrollX,p.y+=window.scrollY):hr("page",f,p),p}function xo(f){return F.number(f.pointerId)?f.pointerId:f.identifier}function Ws(f,p,w){var _=p.length>1?bu(p):p[0];yu(_,f.page),function(C,T){T=T||{},de.isOperaMobile&&yc(C)?hr("screen",C,T):hr("client",C,T)}(_,f.client),f.timeStamp=w}function bc(f){var p=[];return F.array(f)?(p[0]=f[0],p[1]=f[1]):f.type==="touchend"?f.touches.length===1?(p[0]=f.touches[0],p[1]=f.changedTouches[0]):f.touches.length===0&&(p[0]=f.changedTouches[0],p[1]=f.changedTouches[1]):(p[0]=f.touches[0],p[1]=f.touches[1]),p}function bu(f){for(var p={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},w=0;w<f.length;w++){var _=f[w];for(var C in p)p[C]+=_[C]}for(var T in p)p[T]/=f.length;return p}function vc(f){if(!f.length)return null;var p=bc(f),w=Math.min(p[0].pageX,p[1].pageX),_=Math.min(p[0].pageY,p[1].pageY),C=Math.max(p[0].pageX,p[1].pageX),T=Math.max(p[0].pageY,p[1].pageY);return{x:w,y:_,left:w,top:_,right:C,bottom:T,width:C-w,height:T-_}}function _c(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[0][w]-C[1][w],A=C[0][_]-C[1][_];return Ko(T,A)}function Sc(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[1][w]-C[0][w],A=C[1][_]-C[0][_];return 180*Math.atan2(A,T)/Math.PI}function xc(f){return F.string(f.pointerType)?f.pointerType:F.number(f.pointerType)?[void 0,void 0,"touch","pen","mouse"][f.pointerType]:/touch/.test(f.type||"")||f instanceof H.Touch?"touch":"mouse"}function vu(f){var p=F.func(f.composedPath)?f.composedPath():f.path;return[Kt(p?p[0]:f.target),Kt(f.currentTarget)]}var $i=function(){function f(p){o(this,f),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=p}return c(f,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}();Object.defineProperty($i.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var _u=function(f,p){for(var w=0;w<p.length;w++){var _=p[w];f.push(_)}return f},Ec=function(f){return _u([],f)},es=function(f,p){for(var w=0;w<f.length;w++)if(p(f[w],w,f))return w;return-1},bi=function(f,p){return f[es(f,p)]},Eo=function(f){d(w,f);var p=E(w);function w(_,C,T){var A;o(this,w),(A=p.call(this,C._interaction)).dropzone=void 0,A.dragEvent=void 0,A.relatedTarget=void 0,A.draggable=void 0,A.propagationStopped=!1,A.immediatePropagationStopped=!1;var O=T==="dragleave"?_.prev:_.cur,R=O.element,U=O.dropzone;return A.type=T,A.target=R,A.currentTarget=R,A.dropzone=U,A.dragEvent=C,A.relatedTarget=C.target,A.draggable=C.interactable,A.timeStamp=C.timeStamp,A}return c(w,[{key:"reject",value:function(){var _=this,C=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&C.cur.dropzone===this.dropzone&&C.cur.element===this.target)if(C.prev.dropzone=this.dropzone,C.prev.element=this.target,C.rejected=!0,C.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var T=C.activeDrops,A=es(T,function(R){var U=R.dropzone,D=R.element;return U===_.dropzone&&D===_.target});C.activeDrops.splice(A,1);var O=new w(C,this.dragEvent,"dropdeactivate");O.dropzone=this.dropzone,O.target=this.target,this.dropzone.fire(O)}else this.dropzone.fire(new w(C,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),w}($i);function Fi(f,p){for(var w=0,_=f.slice();w<_.length;w++){var C=_[w],T=C.dropzone,A=C.element;p.dropzone=T,p.target=A,T.fire(p),p.propagationStopped=p.immediatePropagationStopped=!1}}function Cc(f,p){for(var w=function(T,A){for(var O=[],R=0,U=T.interactables.list;R<U.length;R++){var D=U[R];if(D.options.drop.enabled){var Z=D.options.drop.accept;if(!(F.element(Z)&&Z!==A||F.string(Z)&&!De(A,Z)||F.func(Z)&&!Z({dropzone:D,draggableElement:A})))for(var oe=0,ge=D.getAllElements();oe<ge.length;oe++){var he=ge[oe];he!==A&&O.push({dropzone:D,element:he,rect:D.getRect(he)})}}}return O}(f,p),_=0;_<w.length;_++){var C=w[_];C.rect=C.dropzone.getRect(C.element)}return w}function Su(f,p,w){for(var _=f.dropState,C=f.interactable,T=f.element,A=[],O=0,R=_.activeDrops;O<R.length;O++){var U=R[O],D=U.dropzone,Z=U.element,oe=U.rect,ge=D.dropCheck(p,w,C,T,Z,oe);A.push(ge?Z:null)}var he=function(be){for(var ke,Ae,Fe,Xe=[],Ke=0;Ke<be.length;Ke++){var Be=be[Ke],Je=be[ke];if(Be&&Ke!==ke)if(Je){var wr=Qe(Be),vt=Qe(Je);if(wr!==Be.ownerDocument)if(vt!==Be.ownerDocument)if(wr!==vt){Xe=Xe.length?Xe:ft(Je);var Dr=void 0;if(Je instanceof H.HTMLElement&&Be instanceof H.SVGElement&&!(Be instanceof H.SVGSVGElement)){if(Be===vt)continue;Dr=Be.ownerSVGElement}else Dr=Be;for(var gn=ft(Dr,Je.ownerDocument),Tn=0;gn[Tn]&&gn[Tn]===Xe[Tn];)Tn++;var ls=[gn[Tn-1],gn[Tn],Xe[Tn]];if(ls[0])for(var ot=ls[0].lastChild;ot;){if(ot===ls[1]){ke=Ke,Xe=gn;break}if(ot===ls[2])break;ot=ot.previousSibling}}else Fe=Je,(parseInt(V(Ae=Be).getComputedStyle(Ae).zIndex,10)||0)>=(parseInt(V(Fe).getComputedStyle(Fe).zIndex,10)||0)&&(ke=Ke);else ke=Ke}else ke=Ke}return ke}(A);return _.activeDrops[he]||null}function Tc(f,p,w){var _=f.dropState,C={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return w.type==="dragstart"&&(C.activate=new Eo(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new Eo(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new Eo(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new Eo(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new Eo(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new Eo(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Bs(f,p){var w=f.dropState,_=w.activeDrops,C=w.cur,T=w.prev;p.leave&&T.dropzone.fire(p.leave),p.enter&&C.dropzone.fire(p.enter),p.move&&C.dropzone.fire(p.move),p.drop&&C.dropzone.fire(p.drop),p.deactivate&&Fi(_,p.deactivate),w.prev.dropzone=C.dropzone,w.prev.element=C.element}function xu(f,p){var w=f.interaction,_=f.iEvent,C=f.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;p.dynamicDrop&&(T.activeDrops=Cc(p,w.element));var A=_,O=Su(w,A,C);T.rejected=T.rejected&&!!O&&O.dropzone===T.cur.dropzone&&O.element===T.cur.element,T.cur.dropzone=O&&O.dropzone,T.cur.element=O&&O.element,T.events=Tc(w,0,A)}}var Eu={id:"actions/drop",install:function(f){var p=f.actions,w=f.interactStatic,_=f.Interactable,C=f.defaults;f.usePlugin(Ne),_.prototype.dropzone=function(T){return function(A,O){if(F.object(O)){if(A.options.drop.enabled=O.enabled!==!1,O.listeners){var R=yi(O.listeners),U=Object.keys(R).reduce(function(Z,oe){return Z[/^(enter|leave)/.test(oe)?"drag".concat(oe):/^(activate|deactivate|move)/.test(oe)?"drop".concat(oe):oe]=R[oe],Z},{}),D=A.options.drop.listeners;D&&A.off(D),A.on(U),A.options.drop.listeners=U}return F.func(O.ondrop)&&A.on("drop",O.ondrop),F.func(O.ondropactivate)&&A.on("dropactivate",O.ondropactivate),F.func(O.ondropdeactivate)&&A.on("dropdeactivate",O.ondropdeactivate),F.func(O.ondragenter)&&A.on("dragenter",O.ondragenter),F.func(O.ondragleave)&&A.on("dragleave",O.ondragleave),F.func(O.ondropmove)&&A.on("dropmove",O.ondropmove),/^(pointer|center)$/.test(O.overlap)?A.options.drop.overlap=O.overlap:F.number(O.overlap)&&(A.options.drop.overlap=Math.max(Math.min(1,O.overlap),0)),"accept"in O&&(A.options.drop.accept=O.accept),"checker"in O&&(A.options.drop.checker=O.checker),A}return F.bool(O)?(A.options.drop.enabled=O,A):A.options.drop}(this,T)},_.prototype.dropCheck=function(T,A,O,R,U,D){return function(Z,oe,ge,he,be,ke,Ae){var Fe=!1;if(!(Ae=Ae||Z.getRect(ke)))return!!Z.options.drop.checker&&Z.options.drop.checker(oe,ge,Fe,Z,ke,he,be);var Xe=Z.options.drop.overlap;if(Xe==="pointer"){var Ke=Qo(he,be,"drag"),Be=yu(oe);Be.x+=Ke.x,Be.y+=Ke.y;var Je=Be.x>Ae.left&&Be.x<Ae.right,wr=Be.y>Ae.top&&Be.y<Ae.bottom;Fe=Je&&wr}var vt=he.getRect(be);if(vt&&Xe==="center"){var Dr=vt.left+vt.width/2,gn=vt.top+vt.height/2;Fe=Dr>=Ae.left&&Dr<=Ae.right&&gn>=Ae.top&&gn<=Ae.bottom}return vt&&F.number(Xe)&&(Fe=Math.max(0,Math.min(Ae.right,vt.right)-Math.max(Ae.left,vt.left))*Math.max(0,Math.min(Ae.bottom,vt.bottom)-Math.max(Ae.top,vt.top))/(vt.width*vt.height)>=Xe),Z.options.drop.checker&&(Fe=Z.options.drop.checker(oe,ge,Fe,Z,ke,he,be)),Fe}(this,T,A,O,R,U,D)},w.dynamicDrop=function(T){return F.bool(T)?(f.dynamicDrop=T,w):f.dynamicDrop},Ue(p.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),p.methodDict.drop="dropzone",f.dynamicDrop=!1,C.actions.drop=Eu.defaults},listeners:{"interactions:before-action-start":function(f){var p=f.interaction;p.prepared.name==="drag"&&(p.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(f,p){var w=f.interaction,_=(f.event,f.iEvent);if(w.prepared.name==="drag"){var C=w.dropState;C.activeDrops=[],C.events={},C.activeDrops=Cc(p,w.element),C.events=Tc(w,0,_),C.events.activate&&(Fi(C.activeDrops,C.events.activate),p.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":xu,"interactions:after-action-move":function(f,p){var w=f.interaction,_=f.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Bs(w,C.events),p.fire("actions/drop:move",{interaction:w,dragEvent:_}),C.events={}}},"interactions:action-end":function(f,p){if(f.interaction.prepared.name==="drag"){var w=f.interaction,_=f.iEvent;xu(f,p),Bs(w,w.dropState.events),p.fire("actions/drop:end",{interaction:w,dragEvent:_})}},"interactions:stop":function(f){var p=f.interaction;if(p.prepared.name==="drag"){var w=p.dropState;w&&(w.activeDrops=null,w.events=null,w.cur.dropzone=null,w.cur.element=null,w.prev.dropzone=null,w.prev.element=null,w.rejected=!1)}}},getActiveDrops:Cc,getDrop:Su,getDropEvents:Tc,fireDropEvents:Bs,filterEventType:function(f){return f.search("drag")===0||f.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},kf=Eu;function G(f){var p=f.interaction,w=f.iEvent,_=f.phase;if(p.prepared.name==="gesture"){var C=p.pointers.map(function(U){return U.pointer}),T=_==="start",A=_==="end",O=p.interactable.options.deltaSource;if(w.touches=[C[0],C[1]],T)w.distance=_c(C,O),w.box=vc(C),w.scale=1,w.ds=0,w.angle=Sc(C,O),w.da=0,p.gesture.startDistance=w.distance,p.gesture.startAngle=w.angle;else if(A||p.pointers.length<2){var R=p.prevEvent;w.distance=R.distance,w.box=R.box,w.scale=R.scale,w.ds=0,w.angle=R.angle,w.da=0}else w.distance=_c(C,O),w.box=vc(C),w.scale=w.distance/p.gesture.startDistance,w.angle=Sc(C,O),w.ds=w.scale-p.gesture.scale,w.da=w.angle-p.gesture.angle;p.gesture.distance=w.distance,p.gesture.angle=w.angle,F.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(p.gesture.scale=w.scale)}}var Co={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.gesturable=function(C){return F.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):F.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},p.map.gesture=Co,p.methodDict.gesture="gesturable",_.actions.gesture=Co.defaults},listeners:{"interactions:action-start":G,"interactions:action-move":G,"interactions:action-end":G,"interactions:new":function(f){f.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(f){if(!(f.interaction.pointers.length<2)){var p=f.interactable.options.gesture;if(p&&p.enabled)return f.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(f){return f.search("gesture")===0}},Cu=Co;function Tu(f,p,w,_,C,T,A){if(!p)return!1;if(p===!0){var O=F.number(T.width)?T.width:T.right-T.left,R=F.number(T.height)?T.height:T.bottom-T.top;if(A=Math.min(A,Math.abs((f==="left"||f==="right"?O:R)/2)),O<0&&(f==="left"?f="right":f==="right"&&(f="left")),R<0&&(f==="top"?f="bottom":f==="bottom"&&(f="top")),f==="left"){var U=O>=0?T.left:T.right;return w.x<U+A}if(f==="top"){var D=R>=0?T.top:T.bottom;return w.y<D+A}if(f==="right")return w.x>(O>=0?T.right:T.left)-A;if(f==="bottom")return w.y>(R>=0?T.bottom:T.top)-A}return!!F.element(_)&&(F.element(p)?p===_:mr(_,p,C))}function Pc(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="resize"&&w.resizeAxes){var _=p;w.interactable.options.resize.square?(w.resizeAxes==="y"?_.delta.x=_.delta.y:_.delta.y=_.delta.x,_.axes="xy"):(_.axes=w.resizeAxes,w.resizeAxes==="x"?_.delta.y=0:w.resizeAxes==="y"&&(_.delta.x=0))}}var Kr,vi,Vn={id:"actions/resize",before:["actions/drag"],install:function(f){var p=f.actions,w=f.browser,_=f.Interactable,C=f.defaults;Vn.cursors=function(T){return T.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(w),Vn.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(T){return function(A,O,R){return F.object(O)?(A.options.resize.enabled=O.enabled!==!1,A.setPerAction("resize",O),A.setOnEvents("resize",O),F.string(O.axis)&&/^x$|^y$|^xy$/.test(O.axis)?A.options.resize.axis=O.axis:O.axis===null&&(A.options.resize.axis=R.defaults.actions.resize.axis),F.bool(O.preserveAspectRatio)?A.options.resize.preserveAspectRatio=O.preserveAspectRatio:F.bool(O.square)&&(A.options.resize.square=O.square),A):F.bool(O)?(A.options.resize.enabled=O,A):A.options.resize}(this,T,f)},p.map.resize=Vn,p.methodDict.resize="resizable",C.actions.resize=Vn.defaults},listeners:{"interactions:new":function(f){f.interaction.resizeAxes="xy"},"interactions:action-start":function(f){(function(p){var w=p.iEvent,_=p.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.rect;_._rects={start:Ue({},T),corrected:Ue({},T),previous:Ue({},T),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},C.edges=_.prepared.edges,C.rect=_._rects.corrected,C.deltaRect=_._rects.delta}})(f),Pc(f)},"interactions:action-move":function(f){(function(p){var w=p.iEvent,_=p.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.interactable.options.resize.invert,A=T==="reposition"||T==="negate",O=_.rect,R=_._rects,U=R.start,D=R.corrected,Z=R.delta,oe=R.previous;if(Ue(oe,D),A){if(Ue(D,O),T==="reposition"){if(D.top>D.bottom){var ge=D.top;D.top=D.bottom,D.bottom=ge}if(D.left>D.right){var he=D.left;D.left=D.right,D.right=he}}}else D.top=Math.min(O.top,U.bottom),D.bottom=Math.max(O.bottom,U.top),D.left=Math.min(O.left,U.right),D.right=Math.max(O.right,U.left);for(var be in D.width=D.right-D.left,D.height=D.bottom-D.top,D)Z[be]=D[be]-oe[be];C.edges=_.prepared.edges,C.rect=D,C.deltaRect=Z}})(f),Pc(f)},"interactions:action-end":function(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var _=p;_.edges=w.prepared.edges,_.rect=w._rects.corrected,_.deltaRect=w._rects.delta}},"auto-start:check":function(f){var p=f.interaction,w=f.interactable,_=f.element,C=f.rect,T=f.buttons;if(C){var A=Ue({},p.coords.cur.page),O=w.options.resize;if(O&&O.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||T&O.mouseButtons)){if(F.object(O.edges)){var R={left:!1,right:!1,top:!1,bottom:!1};for(var U in R)R[U]=Tu(U,O.edges[U],A,p._latestPointer.eventTarget,_,C,O.margin||Vn.defaultMargin);R.left=R.left&&!R.right,R.top=R.top&&!R.bottom,(R.left||R.right||R.top||R.bottom)&&(f.action={name:"resize",edges:R})}else{var D=O.axis!=="y"&&A.x>C.right-Vn.defaultMargin,Z=O.axis!=="x"&&A.y>C.bottom-Vn.defaultMargin;(D||Z)&&(f.action={name:"resize",axes:(D?"x":"")+(Z?"y":"")})}return!f.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(f){var p=f.edges,w=f.axis,_=f.name,C=Vn.cursors,T=null;if(w)T=C[_+w];else if(p){for(var A="",O=0,R=["top","bottom","left","right"];O<R.length;O++){var U=R[O];p[U]&&(A+=U)}T=C[A]}return T},filterEventType:function(f){return f.search("resize")===0},defaultMargin:null},Pu=Vn,Mu={id:"actions",install:function(f){f.usePlugin(Cu),f.usePlugin(Pu),f.usePlugin(Ne),f.usePlugin(kf)}},Gs=0,Qn={request:function(f){return Kr(f)},cancel:function(f){return vi(f)},init:function(f){if(Kr=f.requestAnimationFrame,vi=f.cancelAnimationFrame,!Kr)for(var p=["ms","moz","webkit","o"],w=0;w<p.length;w++){var _=p[w];Kr=f["".concat(_,"RequestAnimationFrame")],vi=f["".concat(_,"CancelAnimationFrame")]||f["".concat(_,"CancelRequestAnimationFrame")]}Kr=Kr&&Kr.bind(f),vi=vi&&vi.bind(f),Kr||(Kr=function(C){var T=Date.now(),A=Math.max(0,16-(T-Gs)),O=f.setTimeout(function(){C(T+A)},A);return Gs=T+A,O},vi=function(C){return clearTimeout(C)})}},je={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(f){je.isScrolling=!0,Qn.cancel(je.i),f.autoScroll=je,je.interaction=f,je.prevTime=je.now(),je.i=Qn.request(je.scroll)},stop:function(){je.isScrolling=!1,je.interaction&&(je.interaction.autoScroll=null),Qn.cancel(je.i)},scroll:function(){var f=je.interaction,p=f.interactable,w=f.element,_=f.prepared.name,C=p.options[_].autoScroll,T=js(C.container,p,w),A=je.now(),O=(A-je.prevTime)/1e3,R=C.speed*O;if(R>=1){var U={x:je.x*R,y:je.y*R};if(U.x||U.y){var D=Mc(T);F.window(T)?T.scrollBy(U.x,U.y):T&&(T.scrollLeft+=U.x,T.scrollTop+=U.y);var Z=Mc(T),oe={x:Z.x-D.x,y:Z.y-D.y};(oe.x||oe.y)&&p.fire({type:"autoscroll",target:w,interactable:p,delta:oe,interaction:f,container:T})}je.prevTime=A}je.isScrolling&&(Qn.cancel(je.i),je.i=Qn.request(je.scroll))},check:function(f,p){var w;return(w=f.options[p].autoScroll)==null?void 0:w.enabled},onInteractionMove:function(f){var p=f.interaction,w=f.pointer;if(p.interacting()&&je.check(p.interactable,p.prepared.name))if(p.simulation)je.x=je.y=0;else{var _,C,T,A,O=p.interactable,R=p.element,U=p.prepared.name,D=O.options[U].autoScroll,Z=js(D.container,O,R);if(F.window(Z))A=w.clientX<je.margin,_=w.clientY<je.margin,C=w.clientX>Z.innerWidth-je.margin,T=w.clientY>Z.innerHeight-je.margin;else{var oe=er(Z);A=w.clientX<oe.left+je.margin,_=w.clientY<oe.top+je.margin,C=w.clientX>oe.right-je.margin,T=w.clientY>oe.bottom-je.margin}je.x=C?1:A?-1:0,je.y=T?1:_?-1:0,je.isScrolling||(je.margin=D.margin,je.speed=D.speed,je.start(p))}}};function js(f,p,w){return(F.string(f)?gu(f,p,w):f)||V(w)}function Mc(f){return F.window(f)&&(f=window.document.body),{x:f.scrollLeft,y:f.scrollTop}}var Ac={id:"auto-scroll",install:function(f){var p=f.defaults,w=f.actions;f.autoScroll=je,je.now=function(){return f.now()},w.phaselessTypes.autoscroll=!0,p.perAction.autoScroll=je.defaults},listeners:{"interactions:new":function(f){f.interaction.autoScroll=null},"interactions:destroy":function(f){f.interaction.autoScroll=null,je.stop(),je.interaction&&(je.interaction=null)},"interactions:stop":je.stop,"interactions:action-move":function(f){return je.onInteractionMove(f)}}},Ic=Ac;function To(f,p){var w=!1;return function(){return w||(B.console.warn(p),w=!0),f.apply(this,arguments)}}function qs(f,p){return f.name=p.name,f.axis=p.axis,f.edges=p.edges,f}function Au(f){return F.bool(f)?(this.options.styleCursor=f,this):f===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Iu(f){return F.func(f)?(this.options.actionChecker=f,this):f===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Lu={id:"auto-start/interactableMethods",install:function(f){var p=f.Interactable;p.prototype.getAction=function(w,_,C,T){var A=function(O,R,U,D,Z){var oe=O.getRect(D),ge=R.buttons||{0:1,1:4,3:8,4:16}[R.button],he={action:null,interactable:O,interaction:U,element:D,rect:oe,buttons:ge};return Z.fire("auto-start:check",he),he.action}(this,_,C,T,f);return this.options.actionChecker?this.options.actionChecker(w,_,A,this,T,C):A},p.prototype.ignoreFrom=To(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),p.prototype.allowFrom=To(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),p.prototype.actionChecker=Iu,p.prototype.styleCursor=Au}};function Lc(f,p,w,_,C){return p.testIgnoreAllow(p.options[f.name],w,_)&&p.options[f.name].enabled&&ts(p,w,f,C)?f:null}function ku(f,p,w,_,C,T,A){for(var O=0,R=_.length;O<R;O++){var U=_[O],D=C[O],Z=U.getAction(p,w,f,D);if(Z){var oe=Lc(Z,U,D,T,A);if(oe)return{action:oe,interactable:U,element:D}}}return{action:null,interactable:null,element:null}}function kc(f,p,w,_,C){var T=[],A=[],O=_;function R(D){T.push(D),A.push(O)}for(;F.element(O);){T=[],A=[],C.interactables.forEachMatch(O,R);var U=ku(f,p,w,T,A,_,C);if(U.action&&!U.interactable.options[U.action.name].manualStart)return U;O=ye(O)}return{action:null,interactable:null,element:null}}function Oc(f,p,w){var _=p.action,C=p.interactable,T=p.element;_=_||{name:null},f.interactable=C,f.element=T,qs(f.prepared,_),f.rect=C&&_.name?C.getRect(T):null,Rc(f,w),w.fire("autoStart:prepared",{interaction:f})}function ts(f,p,w,_){var C=f.options,T=C[w.name].max,A=C[w.name].maxPerElement,O=_.autoStart.maxInteractions,R=0,U=0,D=0;if(!(T&&A&&O))return!1;for(var Z=0,oe=_.interactions.list;Z<oe.length;Z++){var ge=oe[Z],he=ge.prepared.name;if(ge.interacting()&&(++R>=O||ge.interactable===f&&((U+=he===w.name?1:0)>=T||ge.element===p&&(D++,he===w.name&&D>=A))))return!1}return O>0}function Nc(f,p){return F.number(f)?(p.autoStart.maxInteractions=f,this):p.autoStart.maxInteractions}function Hs(f,p,w){var _=w.autoStart.cursorElement;_&&_!==f&&(_.style.cursor=""),f.ownerDocument.documentElement.style.cursor=p,f.style.cursor=p,w.autoStart.cursorElement=p?f:null}function Rc(f,p){var w=f.interactable,_=f.element,C=f.prepared;if(f.pointerType==="mouse"&&w&&w.options.styleCursor){var T="";if(C.name){var A=w.options[C.name].cursorChecker;T=F.func(A)?A(C,w,_,f._interacting):p.actions.map[C.name].getCursor(C)}Hs(f.element,T||"",p)}else p.autoStart.cursorElement&&Hs(p.autoStart.cursorElement,"",p)}var Ou={id:"auto-start/base",before:["actions"],install:function(f){var p=f.interactStatic,w=f.defaults;f.usePlugin(Lu),w.base.actionChecker=null,w.base.styleCursor=!0,Ue(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),p.maxInteractions=function(_){return Nc(_,f)},f.autoStart={maxInteractions:1/0,withinInteractionLimit:ts,cursorElement:null}},listeners:{"interactions:down":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;w.interacting()||Oc(w,kc(w,_,C,T,p),p)},"interactions:move":function(f,p){(function(w,_){var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||Oc(C,kc(C,T,A,O,_),_)})(f,p),function(w,_){var C=w.interaction;if(C.pointerIsDown&&!C.interacting()&&C.pointerWasMoved&&C.prepared.name){_.fire("autoStart:before-start",w);var T=C.interactable,A=C.prepared.name;A&&T&&(T.options[A].manualStart||!ts(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Rc(C,_)))}}(f,p)},"interactions:stop":function(f,p){var w=f.interaction,_=w.interactable;_&&_.options.styleCursor&&Hs(w.element,"",p)}},maxInteractions:Nc,withinInteractionLimit:ts,validateAction:Lc},Ys=Ou,Nu={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(f,p){var w=f.interaction,_=f.eventTarget,C=f.dx,T=f.dy;if(w.prepared.name==="drag"){var A=Math.abs(C),O=Math.abs(T),R=w.interactable.options.drag,U=R.startAxis,D=A>O?"x":A<O?"y":"xy";if(w.prepared.axis=R.lockAxis==="start"?D[0]:R.lockAxis,D!=="xy"&&U!=="xy"&&U!==D){w.prepared.name=null;for(var Z=_,oe=function(he){if(he!==w.interactable){var be=w.interactable.options.drag;if(!be.manualStart&&he.testIgnoreAllow(be,Z,_)){var ke=he.getAction(w.downPointer,w.downEvent,w,Z);if(ke&&ke.name==="drag"&&function(Ae,Fe){if(!Fe)return!1;var Xe=Fe.options.drag.startAxis;return Ae==="xy"||Xe==="xy"||Xe===Ae}(D,he)&&Ys.validateAction(ke,he,Z,_,p))return he}}};F.element(Z);){var ge=p.interactables.forEachMatch(Z,oe);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Z;break}Z=ye(Z)}}}}}};function Zs(f){var p=f.prepared&&f.prepared.name;if(!p)return null;var w=f.interactable.options;return w[p].hold||w[p].delay}var Ru={id:"auto-start/hold",install:function(f){var p=f.defaults;f.usePlugin(Ys),p.perAction.hold=0,p.perAction.delay=0},listeners:{"interactions:new":function(f){f.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(f){var p=f.interaction,w=Zs(p);w>0&&(p.autoStartHoldTimer=setTimeout(function(){p.start(p.prepared,p.interactable,p.element)},w))},"interactions:move":function(f){var p=f.interaction,w=f.duplicate;p.autoStartHoldTimer&&p.pointerWasMoved&&!w&&(clearTimeout(p.autoStartHoldTimer),p.autoStartHoldTimer=null)},"autoStart:before-start":function(f){var p=f.interaction;Zs(p)>0&&(p.prepared.name=null)}},getHoldDuration:Zs},Du=Ru,$u={id:"auto-start",install:function(f){f.usePlugin(Ys),f.usePlugin(Du),f.usePlugin(Nu)}},Fu=function(f){return/^(always|never|auto)$/.test(f)?(this.options.preventDefault=f,this):F.bool(f)?(this.options.preventDefault=f?"always":"never",this):this.options.preventDefault};function Uu(f){var p=f.interaction,w=f.event;p.interactable&&p.interactable.checkAndPreventDefault(w)}var Dc={id:"core/interactablePreventDefault",install:function(f){var p=f.Interactable;p.prototype.preventDefault=Fu,p.prototype.checkAndPreventDefault=function(w){return function(_,C,T){var A=_.options.preventDefault;if(A!=="never")if(A!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(T.type)){var O=V(T.target).document,R=C.getDocOptions(O);if(!R||!R.events||R.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(T.type)||F.element(T.target)&&De(T.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||T.preventDefault()}else T.preventDefault()}(this,f,w)},f.interactions.docEvents.push({type:"dragstart",listener:function(w){for(var _=0,C=f.interactions.list;_<C.length;_++){var T=C[_];if(T.element&&(T.element===w.target||ue(T.element,w.target)))return void T.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(f,p){return f["interactions:".concat(p)]=Uu,f},{})};function rs(f,p){if(p.phaselessTypes[f])return!0;for(var w in p.map)if(f.indexOf(w)===0&&f.substr(w.length)in p.phases)return!0;return!1}function Ui(f){var p={};for(var w in f){var _=f[w];F.plainObject(_)?p[w]=Ui(_):F.array(_)?p[w]=Ec(_):p[w]=_}return p}var Xs=function(){function f(p){o(this,f),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=p,this.result=ns(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(f,[{key:"start",value:function(p,w){var _,C,T=p.phase,A=this.interaction,O=function(U){var D=U.interactable.options[U.prepared.name],Z=D.modifiers;return Z&&Z.length?Z:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(oe){var ge=D[oe];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(oe){return!!oe})}(A);this.prepareStates(O),this.startEdges=Ue({},A.edges),this.edges=Ue({},this.startEdges),this.startOffset=(_=A.rect,C=w,_?{left:C.x-_.left,top:C.y-_.top,right:_.right-C.x,bottom:_.bottom-C.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var R=this.fillArg({phase:T,pageCoords:w,preEnd:!1});return this.result=ns(),this.startAll(R),this.result=this.setAll(R)}},{key:"fillArg",value:function(p){var w=this.interaction;return p.interaction=w,p.interactable=w.interactable,p.element=w.element,p.rect||(p.rect=w.rect),p.edges||(p.edges=this.startEdges),p.startOffset=this.startOffset,p}},{key:"startAll",value:function(p){for(var w=0,_=this.states;w<_.length;w++){var C=_[w];C.methods.start&&(p.state=C,C.methods.start(p))}}},{key:"setAll",value:function(p){var w=p.phase,_=p.preEnd,C=p.skipModifiers,T=p.rect,A=p.edges;p.coords=Ue({},p.pageCoords),p.rect=Ue({},T),p.edges=Ue({},A);for(var O=C?this.states.slice(C):this.states,R=ns(p.coords,p.rect),U=0;U<O.length;U++){var D,Z=O[U],oe=Z.options,ge=Ue({},p.coords),he=null;(D=Z.methods)!=null&&D.set&&this.shouldDo(oe,_,w)&&(p.state=Z,he=Z.methods.set(p),Vs(p.edges,p.rect,{x:p.coords.x-ge.x,y:p.coords.y-ge.y})),R.eventProps.push(he)}Ue(this.edges,p.edges),R.delta.x=p.coords.x-p.pageCoords.x,R.delta.y=p.coords.y-p.pageCoords.y,R.rectDelta.left=p.rect.left-T.left,R.rectDelta.right=p.rect.right-T.right,R.rectDelta.top=p.rect.top-T.top,R.rectDelta.bottom=p.rect.bottom-T.bottom;var be=this.result.coords,ke=this.result.rect;if(be&&ke){var Ae=R.rect.left!==ke.left||R.rect.right!==ke.right||R.rect.top!==ke.top||R.rect.bottom!==ke.bottom;R.changed=Ae||be.x!==R.coords.x||be.y!==R.coords.y}return R}},{key:"applyToInteraction",value:function(p){var w=this.interaction,_=p.phase,C=w.coords.cur,T=w.coords.start,A=this.result,O=this.startDelta,R=A.delta;_==="start"&&Ue(this.startDelta,A.delta);for(var U=0,D=[[T,O],[C,R]];U<D.length;U++){var Z=D[U],oe=Z[0],ge=Z[1];oe.page.x+=ge.x,oe.page.y+=ge.y,oe.client.x+=ge.x,oe.client.y+=ge.y}var he=this.result.rectDelta,be=p.rect||w.rect;be.left+=he.left,be.right+=he.right,be.top+=he.top,be.bottom+=he.bottom,be.width=be.right-be.left,be.height=be.bottom-be.top}},{key:"setAndApply",value:function(p){var w=this.interaction,_=p.phase,C=p.preEnd,T=p.skipModifiers,A=this.setAll(this.fillArg({preEnd:C,phase:_,pageCoords:p.modifiedCoords||w.coords.cur.page}));if(this.result=A,!A.changed&&(!T||T<this.states.length)&&w.interacting())return!1;if(p.modifiedCoords){var O=w.coords.cur.page,R={x:p.modifiedCoords.x-O.x,y:p.modifiedCoords.y-O.y};A.coords.x+=R.x,A.coords.y+=R.y,A.delta.x+=R.x,A.delta.y+=R.y}this.applyToInteraction(p)}},{key:"beforeEnd",value:function(p){var w=p.interaction,_=p.event,C=this.states;if(C&&C.length){for(var T=!1,A=0;A<C.length;A++){var O=C[A];p.state=O;var R=O.options,U=O.methods,D=U.beforeEnd&&U.beforeEnd(p);if(D)return this.endResult=D,!1;T=T||!T&&this.shouldDo(R,!0,p.phase,!0)}T&&w.move({event:_,preEnd:!0})}}},{key:"stop",value:function(p){var w=p.interaction;if(this.states&&this.states.length){var _=Ue({states:this.states,interactable:w.interactable,element:w.element,rect:null},p);this.fillArg(_);for(var C=0,T=this.states;C<T.length;C++){var A=T[C];_.state=A,A.methods.stop&&A.methods.stop(_)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(p){this.states=[];for(var w=0;w<p.length;w++){var _=p[w],C=_.options,T=_.methods,A=_.name;this.states.push({options:C,methods:T,index:w,name:A})}return this.states}},{key:"restoreInteractionCoords",value:function(p){var w=p.interaction,_=w.coords,C=w.rect,T=w.modification;if(T.result){for(var A=T.startDelta,O=T.result,R=O.delta,U=O.rectDelta,D=0,Z=[[_.start,A],[_.cur,R]];D<Z.length;D++){var oe=Z[D],ge=oe[0],he=oe[1];ge.page.x-=he.x,ge.page.y-=he.y,ge.client.x-=he.x,ge.client.y-=he.y}C.left-=U.left,C.right-=U.right,C.top-=U.top,C.bottom-=U.bottom}}},{key:"shouldDo",value:function(p,w,_,C){return!(!p||p.enabled===!1||C&&!p.endOnly||p.endOnly&&!w||_==="start"&&!p.setStart)}},{key:"copyFrom",value:function(p){this.startOffset=p.startOffset,this.startDelta=p.startDelta,this.startEdges=p.startEdges,this.edges=p.edges,this.states=p.states.map(function(w){return Ui(w)}),this.result=ns(Ue({},p.result.coords),Ue({},p.result.rect))}},{key:"destroy",value:function(){for(var p in this)this[p]=null}}]),f}();function ns(f,p){return{rect:p,coords:f,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Kn(f,p){var w=f.defaults,_={start:f.start,set:f.set,beforeEnd:f.beforeEnd,stop:f.stop},C=function(T){var A=T||{};for(var O in A.enabled=A.enabled!==!1,w)O in A||(A[O]=w[O]);var R={options:A,methods:_,name:p,enable:function(){return A.enabled=!0,R},disable:function(){return A.enabled=!1,R}};return R};return p&&typeof p=="string"&&(C._defaults=w,C._methods=_),C}function Po(f){var p=f.iEvent,w=f.interaction.modification.result;w&&(p.modifiers=w.eventProps)}var Vu={id:"modifiers/base",before:["actions"],install:function(f){f.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(f){var p=f.interaction;p.modification=new Xs(p)},"interactions:before-action-start":function(f){var p=f.interaction,w=f.interaction.modification;w.start(f,p.coords.start.page),p.edges=w.edges,w.applyToInteraction(f)},"interactions:before-action-move":function(f){var p=f.interaction,w=p.modification,_=w.setAndApply(f);return p.edges=w.edges,_},"interactions:before-action-end":function(f){var p=f.interaction,w=p.modification,_=w.beforeEnd(f);return p.edges=w.startEdges,_},"interactions:action-start":Po,"interactions:action-move":Po,"interactions:action-end":Po,"interactions:after-action-start":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:after-action-move":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:stop":function(f){return f.interaction.modification.stop(f)}}},$c=Vu,Fc={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Js=function(f){d(w,f);var p=E(w);function w(_,C,T,A,O,R,U){var D;o(this,w),(D=p.call(this,_)).relatedTarget=null,D.screenX=void 0,D.screenY=void 0,D.button=void 0,D.buttons=void 0,D.ctrlKey=void 0,D.shiftKey=void 0,D.altKey=void 0,D.metaKey=void 0,D.page=void 0,D.client=void 0,D.delta=void 0,D.rect=void 0,D.x0=void 0,D.y0=void 0,D.t0=void 0,D.dt=void 0,D.duration=void 0,D.clientX0=void 0,D.clientY0=void 0,D.velocity=void 0,D.speed=void 0,D.swipe=void 0,D.axes=void 0,D.preEnd=void 0,O=O||_.element;var Z=_.interactable,oe=(Z&&Z.options||Fc).deltaSource,ge=Qo(Z,O,T),he=A==="start",be=A==="end",ke=he?v(D):_.prevEvent,Ae=he?_.coords.start:be?{page:ke.page,client:ke.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return D.page=Ue({},Ae.page),D.client=Ue({},Ae.client),D.rect=Ue({},_.rect),D.timeStamp=Ae.timeStamp,be||(D.page.x-=ge.x,D.page.y-=ge.y,D.client.x-=ge.x,D.client.y-=ge.y),D.ctrlKey=C.ctrlKey,D.altKey=C.altKey,D.shiftKey=C.shiftKey,D.metaKey=C.metaKey,D.button=C.button,D.buttons=C.buttons,D.target=O,D.currentTarget=O,D.preEnd=R,D.type=U||T+(A||""),D.interactable=Z,D.t0=he?_.pointers[_.pointers.length-1].downTime:ke.t0,D.x0=_.coords.start.page.x-ge.x,D.y0=_.coords.start.page.y-ge.y,D.clientX0=_.coords.start.client.x-ge.x,D.clientY0=_.coords.start.client.y-ge.y,D.delta=he||be?{x:0,y:0}:{x:D[oe].x-ke[oe].x,y:D[oe].y-ke[oe].y},D.dt=_.coords.delta.timeStamp,D.duration=D.timeStamp-D.t0,D.velocity=Ue({},_.coords.velocity[oe]),D.speed=Ko(D.velocity.x,D.velocity.y),D.swipe=be||A==="inertiastart"?D.getSwipe():null,D}return c(w,[{key:"getSwipe",value:function(){var _=this._interaction;if(_.prevEvent.speed<600||this.timeStamp-_.prevEvent.timeStamp>150)return null;var C=180*Math.atan2(_.prevEvent.velocityY,_.prevEvent.velocityX)/Math.PI;C<0&&(C+=360);var T=112.5<=C&&C<247.5,A=202.5<=C&&C<337.5;return{up:A,down:!A&&22.5<=C&&C<157.5,left:T,right:!T&&(292.5<=C||C<67.5),angle:C,speed:_.prevEvent.speed,velocity:{x:_.prevEvent.velocityX,y:_.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),w}($i);Object.defineProperties(Js.prototype,{pageX:{get:function(){return this.page.x},set:function(f){this.page.x=f}},pageY:{get:function(){return this.page.y},set:function(f){this.page.y=f}},clientX:{get:function(){return this.client.x},set:function(f){this.client.x=f}},clientY:{get:function(){return this.client.y},set:function(f){this.client.y=f}},dx:{get:function(){return this.delta.x},set:function(f){this.delta.x=f}},dy:{get:function(){return this.delta.y},set:function(f){this.delta.y=f}},velocityX:{get:function(){return this.velocity.x},set:function(f){this.velocity.x=f}},velocityY:{get:function(){return this.velocity.y},set:function(f){this.velocity.y=f}}});var zu=c(function f(p,w,_,C,T){o(this,f),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=p,this.pointer=w,this.event=_,this.downTime=C,this.downTarget=T}),Wu=function(f){return f.interactable="",f.element="",f.prepared="",f.pointerIsDown="",f.pointerWasMoved="",f._proxy="",f}({}),Uc=function(f){return f.start="",f.move="",f.end="",f.stop="",f.interacting="",f}({}),Bu=0,Gu=function(){function f(p){var w=this,_=p.pointerType,C=p.scopeFire;o(this,f),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=To(function(D){this.move(D)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Bu++,this._scopeFire=C,this.pointerType=_;var T=this;this._proxy={};var A=function(D){Object.defineProperty(w._proxy,D,{get:function(){return T[D]}})};for(var O in Wu)A(O);var R=function(D){Object.defineProperty(w._proxy,D,{value:function(){return T[D].apply(T,arguments)}})};for(var U in Uc)R(U);this._scopeFire("interactions:new",{interaction:this})}return c(f,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(p,w,_){var C=this.updatePointer(p,w,_,!0),T=this.pointers[C];this._scopeFire("interactions:down",{pointer:p,event:w,eventTarget:_,pointerIndex:C,pointerInfo:T,type:"down",interaction:this})}},{key:"start",value:function(p,w,_){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(p.name==="gesture"?2:1)||!w.options[p.name].enabled)&&(qs(this.prepared,p),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Ue({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(p,w,_){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(p,w,_,!1);var C,T,A=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(C=this.coords.cur.client.x-this.coords.start.client.x,T=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ko(C,T)>this.pointerMoveTolerance);var O,R,U,D=this.getPointerIndex(p),Z={pointer:p,pointerIndex:D,pointerInfo:this.pointers[D],event:w,type:"move",eventTarget:_,dx:C,dy:T,duplicate:A,interaction:this};A||(O=this.coords.velocity,R=this.coords.delta,U=Math.max(R.timeStamp/1e3,.001),O.page.x=R.page.x/U,O.page.y=R.page.y/U,O.client.x=R.client.x/U,O.client.y=R.client.y/U,O.timeStamp=U),this._scopeFire("interactions:move",Z),A||this.simulation||(this.interacting()&&(Z.type=null,this.move(Z)),this.pointerWasMoved&&zs(this.coords.prev,this.coords.cur))}},{key:"move",value:function(p){p&&p.event||wc(this.coords.delta),(p=Ue({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},p||{})).phase="move",this._doPhase(p)}},{key:"pointerUp",value:function(p,w,_,C){var T=this.getPointerIndex(p);T===-1&&(T=this.updatePointer(p,w,_,!1));var A=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(A),{pointer:p,pointerIndex:T,pointerInfo:this.pointers[T],event:w,eventTarget:_,type:A,curEventTarget:C,interaction:this}),this.simulation||this.end(w),this.removePointer(p,w)}},{key:"documentBlur",value:function(p){this.end(p),this._scopeFire("interactions:blur",{event:p,type:"blur",interaction:this})}},{key:"end",value:function(p){var w;this._ending=!0,p=p||this._latestPointer.event,this.interacting()&&(w=this._doPhase({event:p,interaction:this,phase:"end"})),this._ending=!1,w===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(p){var w=xo(p);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:es(this.pointers,function(_){return _.id===w})}},{key:"getPointerInfo",value:function(p){return this.pointers[this.getPointerIndex(p)]}},{key:"updatePointer",value:function(p,w,_,C){var T,A,O,R=xo(p),U=this.getPointerIndex(p),D=this.pointers[U];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),D?D.pointer=p:(D=new zu(R,p,w,null,null),U=this.pointers.length,this.pointers.push(D)),Ws(this.coords.cur,this.pointers.map(function(Z){return Z.pointer}),this._now()),T=this.coords.delta,A=this.coords.prev,O=this.coords.cur,T.page.x=O.page.x-A.page.x,T.page.y=O.page.y-A.page.y,T.client.x=O.client.x-A.client.x,T.client.y=O.client.y-A.client.y,T.timeStamp=O.timeStamp-A.timeStamp,C&&(this.pointerIsDown=!0,D.downTime=this.coords.cur.timeStamp,D.downTarget=_,So(this.downPointer,p),this.interacting()||(zs(this.coords.start,this.coords.cur),zs(this.coords.prev,this.coords.cur),this.downEvent=w,this.pointerWasMoved=!1)),this._updateLatestPointer(p,w,_),this._scopeFire("interactions:update-pointer",{pointer:p,event:w,eventTarget:_,down:C,pointerInfo:D,pointerIndex:U,interaction:this}),U}},{key:"removePointer",value:function(p,w){var _=this.getPointerIndex(p);if(_!==-1){var C=this.pointers[_];this._scopeFire("interactions:remove-pointer",{pointer:p,event:w,eventTarget:null,pointerIndex:_,pointerInfo:C,interaction:this}),this.pointers.splice(_,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(p,w,_){this._latestPointer.pointer=p,this._latestPointer.event=w,this._latestPointer.eventTarget=_}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(p,w,_,C){return new Js(this,p,this.prepared.name,w,this.element,_,C)}},{key:"_fireEvent",value:function(p){var w;(w=this.interactable)==null||w.fire(p),(!this.prevEvent||p.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=p)}},{key:"_doPhase",value:function(p){var w=p.event,_=p.phase,C=p.preEnd,T=p.type,A=this.rect;if(A&&_==="move"&&(Vs(this.edges,A,this.coords.delta[this.interactable.options.deltaSource]),A.width=A.right-A.left,A.height=A.bottom-A.top),this._scopeFire("interactions:before-action-".concat(_),p)===!1)return!1;var O=p.iEvent=this._createPreparedEvent(w,_,C,T);return this._scopeFire("interactions:action-".concat(_),p),_==="start"&&(this.prevEvent=O),this._fireEvent(O),this._scopeFire("interactions:after-action-".concat(_),p),!0}},{key:"_now",value:function(){return Date.now()}}]),f}();function Vc(f){zc(f.interaction)}function zc(f){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(f))return!1;var p=f.offset.pending;return Qs(f.coords.cur,p),Qs(f.coords.delta,p),Vs(f.edges,f.rect,p),p.x=0,p.y=0,!0}function ju(f){var p=f.x,w=f.y;this.offset.pending.x+=p,this.offset.pending.y+=w,this.offset.total.x+=p,this.offset.total.y+=w}function Qs(f,p){var w=f.page,_=f.client,C=p.x,T=p.y;w.x+=C,w.y+=T,_.x+=C,_.y+=T}Uc.offsetBy="";var qu={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(f){f.Interaction.prototype.offsetBy=ju},listeners:{"interactions:new":function(f){f.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(f){return function(p){p.pointerIsDown&&(Qs(p.coords.cur,p.offset.total),p.offset.pending.x=0,p.offset.pending.y=0)}(f.interaction)},"interactions:before-action-start":Vc,"interactions:before-action-move":Vc,"interactions:before-action-end":function(f){var p=f.interaction;if(zc(p))return p.move({offset:!0}),p.end(),!1},"interactions:stop":function(f){var p=f.interaction;p.offset.total.x=0,p.offset.total.y=0,p.offset.pending.x=0,p.offset.pending.y=0}}},Wc=qu,Hu=function(){function f(p){o(this,f),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=p}return c(f,[{key:"start",value:function(p){var w=this.interaction,_=is(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Ko(C.x,C.y),A=this.modification||(this.modification=new Xs(w));if(A.copyFrom(w.modification),this.t0=w._now(),this.allowResume=_.allowResume,this.v0=T,this.currentOffset={x:0,y:0},this.startCoords=w.coords.cur.page,this.modifierArg=A.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&T>_.minSpeed&&T>_.endSpeed)this.startInertia();else{if(A.result=A.setAll(this.modifierArg),!A.result.changed)return!1;this.startSmoothEnd()}return w.modification.result.rect=null,w.offsetBy(this.targetOffset),w._doPhase({interaction:w,event:p,phase:"inertiastart"}),w.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),w.modification.result.rect=null,this.active=!0,w.simulation=this,!0}},{key:"startInertia",value:function(){var p=this,w=this.interaction.coords.velocity.client,_=is(this.interaction),C=_.resistance,T=-Math.log(_.endSpeed/this.v0)/C;this.targetOffset={x:(w.x-T)/C,y:(w.y-T)/C},this.te=T,this.lambda_v0=C/this.v0,this.one_ve_v0=1-_.endSpeed/this.v0;var A=this.modification,O=this.modifierArg;O.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},A.result=A.setAll(O),A.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+A.result.delta.x,y:this.targetOffset.y+A.result.delta.y}),this.onNextFrame(function(){return p.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var p=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return p.smoothEndTick()})}},{key:"onNextFrame",value:function(p){var w=this;this.timeout=Qn.request(function(){w.active&&p()})}},{key:"inertiaTick",value:function(){var p,w,_,C,T,A,O,R=this,U=this.interaction,D=is(U).resistance,Z=(U._now()-this.t0)/1e3;if(Z<this.te){var oe,ge=1-(Math.exp(-D*Z)-this.lambda_v0)/this.one_ve_v0;this.isModified?(p=0,w=0,_=this.targetOffset.x,C=this.targetOffset.y,T=this.modifiedOffset.x,A=this.modifiedOffset.y,oe={x:Bc(O=ge,p,_,T),y:Bc(O,w,C,A)}):oe={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var he={x:oe.x-this.currentOffset.x,y:oe.y-this.currentOffset.y};this.currentOffset.x+=he.x,this.currentOffset.y+=he.y,U.offsetBy(he),U.move(),this.onNextFrame(function(){return R.inertiaTick()})}else U.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var p=this,w=this.interaction,_=w._now()-this.t0,C=is(w).smoothEndDuration;if(_<C){var T={x:Gc(_,0,this.targetOffset.x,C),y:Gc(_,0,this.targetOffset.y,C)},A={x:T.x-this.currentOffset.x,y:T.y-this.currentOffset.y};this.currentOffset.x+=A.x,this.currentOffset.y+=A.y,w.offsetBy(A),w.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return p.smoothEndTick()})}else w.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(p){var w=p.pointer,_=p.event,C=p.eventTarget,T=this.interaction;T.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),T.updatePointer(w,_,C,!0),T._doPhase({interaction:T,event:_,phase:"resume"}),zs(T.coords.prev,T.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Qn.cancel(this.timeout)}}]),f}();function is(f){var p=f.interactable,w=f.prepared;return p&&p.options&&w.name&&p.options[w.name].inertia}var Yu={id:"inertia",before:["modifiers","actions"],install:function(f){var p=f.defaults;f.usePlugin(Wc),f.usePlugin($c),f.actions.phases.inertiastart=!0,f.actions.phases.resume=!0,p.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(f){var p=f.interaction;p.inertia=new Hu(p)},"interactions:before-action-end":function(f){var p=f.interaction,w=f.event;return(!p._interacting||p.simulation||!p.inertia.start(w))&&null},"interactions:down":function(f){var p=f.interaction,w=f.eventTarget,_=p.inertia;if(_.active)for(var C=w;F.element(C);){if(C===p.element){_.resume(f);break}C=ye(C)}},"interactions:stop":function(f){var p=f.interaction.inertia;p.active&&p.stop()},"interactions:before-action-resume":function(f){var p=f.interaction.modification;p.stop(f),p.start(f,f.interaction.coords.cur.page),p.applyToInteraction(f)},"interactions:before-action-inertiastart":function(f){return f.interaction.modification.setAndApply(f)},"interactions:action-resume":Po,"interactions:action-inertiastart":Po,"interactions:after-action-inertiastart":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:after-action-resume":function(f){return f.interaction.modification.restoreInteractionCoords(f)}}};function Bc(f,p,w,_){var C=1-f;return C*C*p+2*C*f*w+f*f*_}function Gc(f,p,w,_){return-w*(f/=_)*(f-2)+p}var Zu=Yu;function jc(f,p){for(var w=0;w<p.length;w++){var _=p[w];if(f.immediatePropagationStopped)break;_(f)}}var qc=function(){function f(p){o(this,f),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Ue({},p||{})}return c(f,[{key:"fire",value:function(p){var w,_=this.global;(w=this.types[p.type])&&jc(p,w),!p.propagationStopped&&_&&(w=_[p.type])&&jc(p,w)}},{key:"on",value:function(p,w){var _=yi(p,w);for(p in _)this.types[p]=_u(this.types[p]||[],_[p])}},{key:"off",value:function(p,w){var _=yi(p,w);for(p in _){var C=this.types[p];if(C&&C.length)for(var T=0,A=_[p];T<A.length;T++){var O=A[T],R=C.indexOf(O);R!==-1&&C.splice(R,1)}}}},{key:"getRect",value:function(p){return null}}]),f}(),Xu=function(){function f(p){o(this,f),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=p,So(this,p)}return c(f,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),f}();function Vi(f){return F.object(f)?{capture:!!f.capture,passive:!!f.passive}:{capture:!!f,passive:!1}}function Mo(f,p){return f===p||(typeof f=="boolean"?!!p.capture===f&&!p.passive:!!f.capture==!!p.capture&&!!f.passive==!!p.passive)}var Ju={id:"events",install:function(f){var p,w=[],_={},C=[],T={add:A,remove:O,addDelegate:function(D,Z,oe,ge,he){var be=Vi(he);if(!_[oe]){_[oe]=[];for(var ke=0;ke<C.length;ke++){var Ae=C[ke];A(Ae,oe,R),A(Ae,oe,U,!0)}}var Fe=_[oe],Xe=bi(Fe,function(Ke){return Ke.selector===D&&Ke.context===Z});Xe||(Xe={selector:D,context:Z,listeners:[]},Fe.push(Xe)),Xe.listeners.push({func:ge,options:be})},removeDelegate:function(D,Z,oe,ge,he){var be,ke=Vi(he),Ae=_[oe],Fe=!1;if(Ae)for(be=Ae.length-1;be>=0;be--){var Xe=Ae[be];if(Xe.selector===D&&Xe.context===Z){for(var Ke=Xe.listeners,Be=Ke.length-1;Be>=0;Be--){var Je=Ke[Be];if(Je.func===ge&&Mo(Je.options,ke)){Ke.splice(Be,1),Ke.length||(Ae.splice(be,1),O(Z,oe,R),O(Z,oe,U,!0)),Fe=!0;break}}if(Fe)break}}},delegateListener:R,delegateUseCapture:U,delegatedEvents:_,documents:C,targets:w,supportsOptions:!1,supportsPassive:!1};function A(D,Z,oe,ge){if(D.addEventListener){var he=Vi(ge),be=bi(w,function(ke){return ke.eventTarget===D});be||(be={eventTarget:D,events:{}},w.push(be)),be.events[Z]||(be.events[Z]=[]),bi(be.events[Z],function(ke){return ke.func===oe&&Mo(ke.options,he)})||(D.addEventListener(Z,oe,T.supportsOptions?he:he.capture),be.events[Z].push({func:oe,options:he}))}}function O(D,Z,oe,ge){if(D.addEventListener&&D.removeEventListener){var he=es(w,function(wr){return wr.eventTarget===D}),be=w[he];if(be&&be.events)if(Z!=="all"){var ke=!1,Ae=be.events[Z];if(Ae){if(oe==="all"){for(var Fe=Ae.length-1;Fe>=0;Fe--){var Xe=Ae[Fe];O(D,Z,Xe.func,Xe.options)}return}for(var Ke=Vi(ge),Be=0;Be<Ae.length;Be++){var Je=Ae[Be];if(Je.func===oe&&Mo(Je.options,Ke)){D.removeEventListener(Z,oe,T.supportsOptions?Ke:Ke.capture),Ae.splice(Be,1),Ae.length===0&&(delete be.events[Z],ke=!0);break}}}ke&&!Object.keys(be.events).length&&w.splice(he,1)}else for(Z in be.events)be.events.hasOwnProperty(Z)&&O(D,Z,"all")}}function R(D,Z){for(var oe=Vi(Z),ge=new Xu(D),he=_[D.type],be=vu(D)[0],ke=be;F.element(ke);){for(var Ae=0;Ae<he.length;Ae++){var Fe=he[Ae],Xe=Fe.selector,Ke=Fe.context;if(De(ke,Xe)&&ue(Ke,be)&&ue(Ke,ke)){var Be=Fe.listeners;ge.currentTarget=ke;for(var Je=0;Je<Be.length;Je++){var wr=Be[Je];Mo(wr.options,oe)&&wr.func(ge)}}}ke=ye(ke)}}function U(D){return R(D,!0)}return(p=f.document)==null||p.createElement("div").addEventListener("test",null,{get capture(){return T.supportsOptions=!0},get passive(){return T.supportsPassive=!0}}),f.events=T,T}},Ks={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(f){for(var p=0,w=Ks.methodOrder;p<w.length;p++){var _=w[p],C=Ks[_](f);if(C)return C}return null},simulationResume:function(f){var p=f.pointerType,w=f.eventType,_=f.eventTarget,C=f.scope;if(!/down|start/i.test(w))return null;for(var T=0,A=C.interactions.list;T<A.length;T++){var O=A[T],R=_;if(O.simulation&&O.simulation.allowResume&&O.pointerType===p)for(;R;){if(R===O.element)return O;R=ye(R)}}return null},mouseOrPen:function(f){var p,w=f.pointerId,_=f.pointerType,C=f.eventType,T=f.scope;if(_!=="mouse"&&_!=="pen")return null;for(var A=0,O=T.interactions.list;A<O.length;A++){var R=O[A];if(R.pointerType===_){if(R.simulation&&!ea(R,w))continue;if(R.interacting())return R;p||(p=R)}}if(p)return p;for(var U=0,D=T.interactions.list;U<D.length;U++){var Z=D[U];if(!(Z.pointerType!==_||/down/i.test(C)&&Z.simulation))return Z}return null},hasPointer:function(f){for(var p=f.pointerId,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(ea(C,p))return C}return null},idle:function(f){for(var p=f.pointerType,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(C.pointers.length===1){var T=C.interactable;if(T&&(!T.options.gesture||!T.options.gesture.enabled))continue}else if(C.pointers.length>=2)continue;if(!C.interacting()&&p===C.pointerType)return C}return null}};function ea(f,p){return f.pointers.some(function(w){return w.id===p})}var Qu=Ks,os=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Hc(f,p){return function(w){var _=p.interactions.list,C=xc(w),T=vu(w),A=T[0],O=T[1],R=[];if(/^touch/.test(w.type)){p.prevTouchTime=p.now();for(var U=0,D=w.changedTouches;U<D.length;U++){var Z=D[U],oe={pointer:Z,pointerId:xo(Z),pointerType:C,eventType:w.type,eventTarget:A,curEventTarget:O,scope:p},ge=Yc(oe);R.push([oe.pointer,oe.eventTarget,oe.curEventTarget,ge])}}else{var he=!1;if(!de.supportsPointerEvent&&/mouse/.test(w.type)){for(var be=0;be<_.length&&!he;be++)he=_[be].pointerType!=="mouse"&&_[be].pointerIsDown;he=he||p.now()-p.prevTouchTime<500||w.timeStamp===0}if(!he){var ke={pointer:w,pointerId:xo(w),pointerType:C,eventType:w.type,curEventTarget:O,eventTarget:A,scope:p},Ae=Yc(ke);R.push([ke.pointer,ke.eventTarget,ke.curEventTarget,Ae])}}for(var Fe=0;Fe<R.length;Fe++){var Xe=R[Fe],Ke=Xe[0],Be=Xe[1],Je=Xe[2];Xe[3][f](Ke,w,Be,Je)}}}function Yc(f){var p=f.pointerType,w=f.scope,_={interaction:Qu.search(f),searchDetails:f};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:p})}function ta(f,p){var w=f.doc,_=f.scope,C=f.options,T=_.interactions.docEvents,A=_.events,O=A[p];for(var R in _.browser.isIOS&&!C.events&&(C.events={passive:!1}),A.delegatedEvents)O(w,R,A.delegateListener),O(w,R,A.delegateUseCapture,!0);for(var U=C&&C.events,D=0;D<T.length;D++){var Z=T[D];O(w,Z.type,Z.listener,U)}}var Zc={id:"core/interactions",install:function(f){for(var p={},w=0;w<os.length;w++){var _=os[w];p[_]=Hc(_,f)}var C,T=de.pEventTypes;function A(){for(var O=0,R=f.interactions.list;O<R.length;O++){var U=R[O];if(U.pointerIsDown&&U.pointerType==="touch"&&!U._interacting)for(var D=function(){var ge=oe[Z];f.documents.some(function(he){return ue(he.doc,ge.downTarget)})||U.removePointer(ge.pointer,ge.event)},Z=0,oe=U.pointers;Z<oe.length;Z++)D()}}(C=H.PointerEvent?[{type:T.down,listener:A},{type:T.down,listener:p.pointerDown},{type:T.move,listener:p.pointerMove},{type:T.up,listener:p.pointerUp},{type:T.cancel,listener:p.pointerUp}]:[{type:"mousedown",listener:p.pointerDown},{type:"mousemove",listener:p.pointerMove},{type:"mouseup",listener:p.pointerUp},{type:"touchstart",listener:A},{type:"touchstart",listener:p.pointerDown},{type:"touchmove",listener:p.pointerMove},{type:"touchend",listener:p.pointerUp},{type:"touchcancel",listener:p.pointerUp}]).push({type:"blur",listener:function(O){for(var R=0,U=f.interactions.list;R<U.length;R++)U[R].documentBlur(O)}}),f.prevTouchTime=0,f.Interaction=function(O){d(U,O);var R=E(U);function U(){return o(this,U),R.apply(this,arguments)}return c(U,[{key:"pointerMoveTolerance",get:function(){return f.interactions.pointerMoveTolerance},set:function(D){f.interactions.pointerMoveTolerance=D}},{key:"_now",value:function(){return f.now()}}]),U}(Gu),f.interactions={list:[],new:function(O){O.scopeFire=function(U,D){return f.fire(U,D)};var R=new f.Interaction(O);return f.interactions.list.push(R),R},listeners:p,docEvents:C,pointerMoveTolerance:1},f.usePlugin(Dc)},listeners:{"scope:add-document":function(f){return ta(f,"add")},"scope:remove-document":function(f){return ta(f,"remove")},"interactable:unset":function(f,p){for(var w=f.interactable,_=p.interactions.list.length-1;_>=0;_--){var C=p.interactions.list[_];C.interactable===w&&(C.stop(),p.fire("interactions:destroy",{interaction:C}),C.destroy(),p.interactions.list.length>2&&p.interactions.list.splice(_,1))}}},onDocSignal:ta,doOnInteractions:Hc,methodNames:os},Ku=Zc,ei=function(f){return f[f.On=0]="On",f[f.Off=1]="Off",f}(ei||{}),ed=function(){function f(p,w,_,C){o(this,f),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new qc,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=w.actions,this.target=p,this._context=w.context||_,this._win=V(hn(p)?this._context:p),this._doc=this._win.document,this._scopeEvents=C,this.set(w)}return c(f,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(p,w){return F.func(w.onstart)&&this.on("".concat(p,"start"),w.onstart),F.func(w.onmove)&&this.on("".concat(p,"move"),w.onmove),F.func(w.onend)&&this.on("".concat(p,"end"),w.onend),F.func(w.oninertiastart)&&this.on("".concat(p,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(p,w,_){var C,T=this,A=(C=this._actions.map[p])==null?void 0:C.filterEventType,O=function(R){return(A==null||A(R))&&rs(R,T._actions)};(F.array(w)||F.object(w))&&this._onOff(ei.Off,p,w,void 0,O),(F.array(_)||F.object(_))&&this._onOff(ei.On,p,_,void 0,O)}},{key:"setPerAction",value:function(p,w){var _=this._defaults;for(var C in w){var T=C,A=this.options[p],O=w[T];T==="listeners"&&this.updatePerActionListeners(p,A.listeners,O),F.array(O)?A[T]=Ec(O):F.plainObject(O)?(A[T]=Ue(A[T]||{},Ui(O)),F.object(_.perAction[T])&&"enabled"in _.perAction[T]&&(A[T].enabled=O.enabled!==!1)):F.bool(O)&&F.object(_.perAction[T])?A[T].enabled=O:A[T]=O}}},{key:"getRect",value:function(p){return p=p||(F.element(this.target)?this.target:null),F.string(this.target)&&(p=p||this._context.querySelector(this.target)),Jn(p)}},{key:"rectChecker",value:function(p){var w=this;return F.func(p)?(this.getRect=function(_){var C=Ue({},p.apply(w,_));return"width"in C||(C.width=C.right-C.left,C.height=C.bottom-C.top),C},this):p===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(p,w){if(hn(w)||F.object(w)){for(var _ in this.options[p]=w,this._actions.map)this.options[_][p]=w;return this}return this.options[p]}},{key:"origin",value:function(p){return this._backCompatOption("origin",p)}},{key:"deltaSource",value:function(p){return p==="page"||p==="client"?(this.options.deltaSource=p,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var p=this.target;return F.string(p)?Array.from(this._context.querySelectorAll(p)):F.func(p)&&p.getAllElements?p.getAllElements():F.element(p)?[p]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(p){return this._context===p.ownerDocument||ue(this._context,p)}},{key:"testIgnoreAllow",value:function(p,w,_){return!this.testIgnore(p.ignoreFrom,w,_)&&this.testAllow(p.allowFrom,w,_)}},{key:"testAllow",value:function(p,w,_){return!p||!!F.element(_)&&(F.string(p)?mr(_,p,w):!!F.element(p)&&ue(p,_))}},{key:"testIgnore",value:function(p,w,_){return!(!p||!F.element(_))&&(F.string(p)?mr(_,p,w):!!F.element(p)&&ue(p,_))}},{key:"fire",value:function(p){return this.events.fire(p),this}},{key:"_onOff",value:function(p,w,_,C,T){F.object(w)&&!F.array(w)&&(C=_,_=null);var A=yi(w,_,T);for(var O in A){O==="wheel"&&(O=de.wheelEvent);for(var R=0,U=A[O];R<U.length;R++){var D=U[R];rs(O,this._actions)?this.events[p===ei.On?"on":"off"](O,D):F.string(this.target)?this._scopeEvents[p===ei.On?"addDelegate":"removeDelegate"](this.target,this._context,O,D,C):this._scopeEvents[p===ei.On?"add":"remove"](this.target,O,D,C)}}return this}},{key:"on",value:function(p,w,_){return this._onOff(ei.On,p,w,_)}},{key:"off",value:function(p,w,_){return this._onOff(ei.Off,p,w,_)}},{key:"set",value:function(p){var w=this._defaults;for(var _ in F.object(p)||(p={}),this.options=Ui(w.base),this._actions.methodDict){var C=_,T=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,Ue(Ue({},w.perAction),w.actions[C])),this[T](p[C])}for(var A in p)A!=="getRect"?F.func(this[A])&&this[A](p[A]):this.rectChecker(p.getRect);return this}},{key:"unset",value:function(){if(F.string(this.target))for(var p in this._scopeEvents.delegatedEvents)for(var w=this._scopeEvents.delegatedEvents[p],_=w.length-1;_>=0;_--){var C=w[_],T=C.selector,A=C.context,O=C.listeners;T===this.target&&A===this._context&&w.splice(_,1);for(var R=O.length-1;R>=0;R--)this._scopeEvents.removeDelegate(this.target,this._context,p,O[R][0],O[R][1])}else this._scopeEvents.remove(this.target,"all")}}]),f}(),td=function(){function f(p){var w=this;o(this,f),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=p,p.addListeners({"interactable:unset":function(_){var C=_.interactable,T=C.target,A=F.string(T)?w.selectorMap[T]:T[w.scope.id],O=es(A,function(R){return R===C});A.splice(O,1)}})}return c(f,[{key:"new",value:function(p,w){w=Ue(w||{},{actions:this.scope.actions});var _=new this.scope.Interactable(p,w,this.scope.document,this.scope.events);return this.scope.addDocument(_._doc),this.list.push(_),F.string(p)?(this.selectorMap[p]||(this.selectorMap[p]=[]),this.selectorMap[p].push(_)):(_.target[this.scope.id]||Object.defineProperty(p,this.scope.id,{value:[],configurable:!0}),p[this.scope.id].push(_)),this.scope.fire("interactable:new",{target:p,options:w,interactable:_,win:this.scope._win}),_}},{key:"getExisting",value:function(p,w){var _=w&&w.context||this.scope.document,C=F.string(p),T=C?this.selectorMap[p]:p[this.scope.id];if(T)return bi(T,function(A){return A._context===_&&(C||A.inContext(p))})}},{key:"forEachMatch",value:function(p,w){for(var _=0,C=this.list;_<C.length;_++){var T=C[_],A=void 0;if((F.string(T.target)?F.element(p)&&De(p,T.target):p===T.target)&&T.inContext(p)&&(A=w(T)),A!==void 0)return A}}}]),f}(),rd=function(){function f(){var p=this;o(this,f),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=de,this.defaults=Ui(Fc),this.Eventable=qc,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var C=function T(A,O){var R=_.interactables.getExisting(A,O);return R||((R=_.interactables.new(A,O)).events.global=T.globalEvents),R};return C.getPointerAverage=bu,C.getTouchBBox=vc,C.getTouchDistance=_c,C.getTouchAngle=Sc,C.getElementRect=Jn,C.getElementClientRect=er,C.matchesSelector=De,C.closest=ve,C.globalEvents={},C.version="1.10.27",C.scope=_,C.use=function(T,A){return this.scope.usePlugin(T,A),this},C.isSet=function(T,A){return!!this.scope.interactables.get(T,A&&A.context)},C.on=To(function(T,A,O){if(F.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),F.array(T)){for(var R=0,U=T;R<U.length;R++){var D=U[R];this.on(D,A,O)}return this}if(F.object(T)){for(var Z in T)this.on(Z,T[Z],A);return this}return rs(T,this.scope.actions)?this.globalEvents[T]?this.globalEvents[T].push(A):this.globalEvents[T]=[A]:this.scope.events.add(this.scope.document,T,A,{options:O}),this},"The interact.on() method is being deprecated"),C.off=To(function(T,A,O){if(F.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),F.array(T)){for(var R=0,U=T;R<U.length;R++){var D=U[R];this.off(D,A,O)}return this}if(F.object(T)){for(var Z in T)this.off(Z,T[Z],A);return this}var oe;return rs(T,this.scope.actions)?T in this.globalEvents&&(oe=this.globalEvents[T].indexOf(A))!==-1&&this.globalEvents[T].splice(oe,1):this.scope.events.remove(this.scope.document,T,A,O),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return de.supportsTouch},C.supportsPointerEvent=function(){return de.supportsPointerEvent},C.stop=function(){for(var T=0,A=this.scope.interactions.list;T<A.length;T++)A[T].stop();return this},C.pointerMoveTolerance=function(T){return F.number(T)?(this.scope.interactions.pointerMoveTolerance=T,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(T,A){this.scope.addDocument(T,A)},C.removeDocument=function(T){this.scope.removeDocument(T)},C}(this),this.InteractEvent=Js,this.Interactable=void 0,this.interactables=new td(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(_){return p.removeDocument(_.target)};var w=this;this.Interactable=function(_){d(T,_);var C=E(T);function T(){return o(this,T),C.apply(this,arguments)}return c(T,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(A){return M(h(T.prototype),"set",this).call(this,A),w.fire("interactable:set",{options:A,interactable:this}),this}},{key:"unset",value:function(){M(h(T.prototype),"unset",this).call(this);var A=w.interactables.list.indexOf(this);A<0||(w.interactables.list.splice(A,1),w.fire("interactable:unset",{interactable:this}))}}]),T}(ed)}return c(f,[{key:"addListeners",value:function(p,w){this.listenerMaps.push({id:w,map:p})}},{key:"fire",value:function(p,w){for(var _=0,C=this.listenerMaps;_<C.length;_++){var T=C[_].map[p];if(T&&T(w,this,p)===!1)return!1}}},{key:"init",value:function(p){return this.isInitialized?this:function(w,_){return w.isInitialized=!0,F.window(_)&&q(_),H.init(_),de.init(_),Qn.init(_),w.window=_,w.document=_.document,w.usePlugin(Ku),w.usePlugin(Ju),w}(this,p)}},{key:"pluginIsInstalled",value:function(p){var w=p.id;return w?!!this._plugins.map[w]:this._plugins.list.indexOf(p)!==-1}},{key:"usePlugin",value:function(p,w){if(!this.isInitialized)return this;if(this.pluginIsInstalled(p))return this;if(p.id&&(this._plugins.map[p.id]=p),this._plugins.list.push(p),p.install&&p.install(this,w),p.listeners&&p.before){for(var _=0,C=this.listenerMaps.length,T=p.before.reduce(function(O,R){return O[R]=!0,O[Xc(R)]=!0,O},{});_<C;_++){var A=this.listenerMaps[_].id;if(A&&(T[A]||T[Xc(A)]))break}this.listenerMaps.splice(_,0,{id:p.id,map:p.listeners})}else p.listeners&&this.listenerMaps.push({id:p.id,map:p.listeners});return this}},{key:"addDocument",value:function(p,w){if(this.getDocIndex(p)!==-1)return!1;var _=V(p);w=w?Ue({},w):{},this.documents.push({doc:p,options:w}),this.events.documents.push(p),p!==this.document&&this.events.add(_,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:p,window:_,scope:this,options:w})}},{key:"removeDocument",value:function(p){var w=this.getDocIndex(p),_=V(p),C=this.documents[w].options;this.events.remove(_,"unload",this.onWindowUnload),this.documents.splice(w,1),this.events.documents.splice(w,1),this.fire("scope:remove-document",{doc:p,window:_,scope:this,options:C})}},{key:"getDocIndex",value:function(p){for(var w=0;w<this.documents.length;w++)if(this.documents[w].doc===p)return w;return-1}},{key:"getDocOptions",value:function(p){var w=this.getDocIndex(p);return w===-1?null:this.documents[w].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),f}();function Xc(f){return f&&f.replace(/\/.*$/,"")}var Jc=new rd,gr=Jc.interactStatic,nd=typeof globalThis<"u"?globalThis:window;Jc.init(nd);var id=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(f){var p=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(_){var C=_[0],T=_[1];return C in f||T in f}),w=function(_,C){for(var T=f.range,A=f.limits,O=A===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:A,R=f.offset,U=R===void 0?{x:0,y:0}:R,D={range:T,grid:f,x:null,y:null},Z=0;Z<p.length;Z++){var oe=p[Z],ge=oe[0],he=oe[1],be=Math.round((_-U.x)/f[ge]),ke=Math.round((C-U.y)/f[he]);D[ge]=Math.max(O.left,Math.min(O.right,be*f[ge]+U.x)),D[he]=Math.max(O.top,Math.min(O.bottom,ke*f[he]+U.y))}return D};return w.grid=f,w.coordFields=p,w}}),od={id:"snappers",install:function(f){var p=f.interactStatic;p.snappers=Ue(p.snappers||{},id),p.createSnapGrid=p.snappers.grid}},sd=od,ad={start:function(f){var p=f.state,w=f.rect,_=f.edges,C=f.pageCoords,T=p.options,A=T.ratio,O=T.enabled,R=p.options,U=R.equalDelta,D=R.modifiers;A==="preserve"&&(A=w.width/w.height),p.startCoords=Ue({},C),p.startRect=Ue({},w),p.ratio=A,p.equalDelta=U;var Z=p.linkedEdges={top:_.top||_.left&&!_.bottom,left:_.left||_.top&&!_.right,bottom:_.bottom||_.right&&!_.top,right:_.right||_.bottom&&!_.left};if(p.xIsPrimaryAxis=!(!_.left&&!_.right),p.equalDelta){var oe=(Z.left?1:-1)*(Z.top?1:-1);p.edgeSign={x:oe,y:oe}}else p.edgeSign={x:Z.left?-1:1,y:Z.top?-1:1};if(O!==!1&&Ue(_,Z),D!=null&&D.length){var ge=new Xs(f.interaction);ge.copyFrom(f.interaction.modification),ge.prepareStates(D),p.subModification=ge,ge.startAll(n({},f))}},set:function(f){var p=f.state,w=f.rect,_=f.coords,C=p.linkedEdges,T=Ue({},_),A=p.equalDelta?Qc:cd;if(Ue(f.edges,C),A(p,p.xIsPrimaryAxis,_,w),!p.subModification)return null;var O=Ue({},w);Vs(C,O,{x:_.x-T.x,y:_.y-T.y});var R=p.subModification.setAll(n(n({},f),{},{rect:O,edges:C,pageCoords:_,prevCoords:_,prevRect:O})),U=R.delta;return R.changed&&(A(p,Math.abs(U.x)>Math.abs(U.y),R.coords,R.rect),Ue(_,R.coords)),R.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Qc(f,p,w){var _=f.startCoords,C=f.edgeSign;p?w.y=_.y+(w.x-_.x)*C.y:w.x=_.x+(w.y-_.y)*C.x}function cd(f,p,w,_){var C=f.startRect,T=f.startCoords,A=f.ratio,O=f.edgeSign;if(p){var R=_.width/A;w.y=T.y+(R-C.height)*O.y}else{var U=_.height*A;w.x=T.x+(U-C.width)*O.x}}var Kc=Kn(ad,"aspectRatio"),el=function(){};el._defaults={};var ss=el;function _i(f,p,w){return F.func(f)?_o(f,p.interactable,p.element,[w.x,w.y,p]):_o(f,p.interactable,p.element)}var as={start:function(f){var p=f.rect,w=f.startOffset,_=f.state,C=f.interaction,T=f.pageCoords,A=_.options,O=A.elementRect,R=Ue({left:0,top:0,right:0,bottom:0},A.offset||{});if(p&&O){var U=_i(A.restriction,C,T);if(U){var D=U.right-U.left-p.width,Z=U.bottom-U.top-p.height;D<0&&(R.left+=D,R.right+=D),Z<0&&(R.top+=Z,R.bottom+=Z)}R.left+=w.left-p.width*O.left,R.top+=w.top-p.height*O.top,R.right+=w.right-p.width*(1-O.right),R.bottom+=w.bottom-p.height*(1-O.bottom)}_.offset=R},set:function(f){var p=f.coords,w=f.interaction,_=f.state,C=_.options,T=_.offset,A=_i(C.restriction,w,p);if(A){var O=function(R){return!R||"left"in R&&"top"in R||((R=Ue({},R)).left=R.x||0,R.top=R.y||0,R.right=R.right||R.left+R.width,R.bottom=R.bottom||R.top+R.height),R}(A);p.x=Math.max(Math.min(O.right-T.right,p.x),O.left+T.left),p.y=Math.max(Math.min(O.bottom-T.bottom,p.y),O.top+T.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ld=Kn(as,"restrict"),tl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},rl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function nl(f,p){for(var w=0,_=["top","left","bottom","right"];w<_.length;w++){var C=_[w];C in f||(f[C]=p[C])}return f}var Ao={noInner:tl,noOuter:rl,start:function(f){var p,w=f.interaction,_=f.startOffset,C=f.state,T=C.options;T&&(p=Di(_i(T.offset,w,w.coords.start.page))),p=p||{x:0,y:0},C.offset={top:p.y+_.top,left:p.x+_.left,bottom:p.y-_.bottom,right:p.x-_.right}},set:function(f){var p=f.coords,w=f.edges,_=f.interaction,C=f.state,T=C.offset,A=C.options;if(w){var O=Ue({},p),R=_i(A.inner,_,O)||{},U=_i(A.outer,_,O)||{};nl(R,tl),nl(U,rl),w.top?p.y=Math.min(Math.max(U.top+T.top,O.y),R.top+T.top):w.bottom&&(p.y=Math.max(Math.min(U.bottom+T.bottom,O.y),R.bottom+T.bottom)),w.left?p.x=Math.min(Math.max(U.left+T.left,O.x),R.left+T.left):w.right&&(p.x=Math.max(Math.min(U.right+T.right,O.x),R.right+T.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ud=Kn(Ao,"restrictEdges"),dd=Ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(f){}},as.defaults),pd=Kn({start:as.start,set:as.set,defaults:dd},"restrictRect"),fd={width:-1/0,height:-1/0},md={width:1/0,height:1/0},hd=Kn({start:function(f){return Ao.start(f)},set:function(f){var p=f.interaction,w=f.state,_=f.rect,C=f.edges,T=w.options;if(C){var A=gc(_i(T.min,p,f.coords))||fd,O=gc(_i(T.max,p,f.coords))||md;w.options={endOnly:T.endOnly,inner:Ue({},Ao.noInner),outer:Ue({},Ao.noOuter)},C.top?(w.options.inner.top=_.bottom-A.height,w.options.outer.top=_.bottom-O.height):C.bottom&&(w.options.inner.bottom=_.top+A.height,w.options.outer.bottom=_.top+O.height),C.left?(w.options.inner.left=_.right-A.width,w.options.outer.left=_.right-O.width):C.right&&(w.options.inner.right=_.left+A.width,w.options.outer.right=_.left+O.width),Ao.set(f),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ra={start:function(f){var p,w=f.interaction,_=f.interactable,C=f.element,T=f.rect,A=f.state,O=f.startOffset,R=A.options,U=R.offsetWithOrigin?function(oe){var ge=oe.interaction.element,he=Di(_o(oe.state.options.origin,null,null,[ge])),be=he||Qo(oe.interactable,ge,oe.interaction.prepared.name);return be}(f):{x:0,y:0};if(R.offset==="startCoords")p={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var D=_o(R.offset,_,C,[w]);(p=Di(D)||{x:0,y:0}).x+=U.x,p.y+=U.y}var Z=R.relativePoints;A.offsets=T&&Z&&Z.length?Z.map(function(oe,ge){return{index:ge,relativePoint:oe,x:O.left-T.width*oe.x+p.x,y:O.top-T.height*oe.y+p.y}}):[{index:0,relativePoint:null,x:p.x,y:p.y}]},set:function(f){var p=f.interaction,w=f.coords,_=f.state,C=_.options,T=_.offsets,A=Qo(p.interactable,p.element,p.prepared.name),O=Ue({},w),R=[];C.offsetWithOrigin||(O.x-=A.x,O.y-=A.y);for(var U=0,D=T;U<D.length;U++)for(var Z=D[U],oe=O.x-Z.x,ge=O.y-Z.y,he=0,be=C.targets.length;he<be;he++){var ke=C.targets[he],Ae=void 0;(Ae=F.func(ke)?ke(oe,ge,p._proxy,Z,he):ke)&&R.push({x:(F.number(Ae.x)?Ae.x:oe)+Z.x,y:(F.number(Ae.y)?Ae.y:ge)+Z.y,range:F.number(Ae.range)?Ae.range:C.range,source:ke,index:he,offset:Z})}for(var Fe={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Xe=0;Xe<R.length;Xe++){var Ke=R[Xe],Be=Ke.range,Je=Ke.x-O.x,wr=Ke.y-O.y,vt=Ko(Je,wr),Dr=vt<=Be;Be===1/0&&Fe.inRange&&Fe.range!==1/0&&(Dr=!1),Fe.target&&!(Dr?Fe.inRange&&Be!==1/0?vt/Be<Fe.distance/Fe.range:Be===1/0&&Fe.range!==1/0||vt<Fe.distance:!Fe.inRange&&vt<Fe.distance)||(Fe.target=Ke,Fe.distance=vt,Fe.range=Be,Fe.inRange=Dr,Fe.delta.x=Je,Fe.delta.y=wr)}return Fe.inRange&&(w.x=Fe.target.x,w.y=Fe.target.y),_.closest=Fe,Fe},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},gd=Kn(ra,"snap"),cs={start:function(f){var p=f.state,w=f.edges,_=p.options;if(!w)return null;f.state={options:{targets:null,relativePoints:[{x:w.left?0:1,y:w.top?0:1}],offset:_.offset||"self",origin:{x:0,y:0},range:_.range}},p.targetFields=p.targetFields||[["width","height"],["x","y"]],ra.start(f),p.offsets=f.state.offsets,f.state=p},set:function(f){var p=f.interaction,w=f.state,_=f.coords,C=w.options,T=w.offsets,A={x:_.x-T[0].x,y:_.y-T[0].y};w.options=Ue({},C),w.options.targets=[];for(var O=0,R=C.targets||[];O<R.length;O++){var U=R[O],D=void 0;if(D=F.func(U)?U(A.x,A.y,p):U){for(var Z=0,oe=w.targetFields;Z<oe.length;Z++){var ge=oe[Z],he=ge[0],be=ge[1];if(he in D||be in D){D.x=D[he],D.y=D[be];break}}w.options.targets.push(D)}}var ke=ra.set(f);return w.options=C,ke},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},wd=Kn(cs,"snapSize"),na={aspectRatio:Kc,restrictEdges:ud,restrict:ld,restrictRect:pd,restrictSize:hd,snapEdges:Kn({start:function(f){var p=f.edges;return p?(f.state.targetFields=f.state.targetFields||[[p.left?"left":"right",p.top?"top":"bottom"]],cs.start(f)):null},set:cs.set,defaults:Ue(Ui(cs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:gd,snapSize:wd,spring:ss,avoid:ss,transform:ss,rubberband:ss},yd={id:"modifiers",install:function(f){var p=f.interactStatic;for(var w in f.usePlugin($c),f.usePlugin(sd),p.modifiers=na,na){var _=na[w],C=_._defaults,T=_._methods;C._methods=T,f.defaults.perAction[w]=C}}},bd=yd,il=function(f){d(w,f);var p=E(w);function w(_,C,T,A,O,R){var U;if(o(this,w),So(v(U=p.call(this,O)),T),T!==C&&So(v(U),C),U.timeStamp=R,U.originalEvent=T,U.type=_,U.pointerId=xo(C),U.pointerType=xc(C),U.target=A,U.currentTarget=null,_==="tap"){var D=O.getPointerIndex(C);U.dt=U.timeStamp-O.pointers[D].downTime;var Z=U.timeStamp-O.tapTime;U.double=!!O.prevTap&&O.prevTap.type!=="doubletap"&&O.prevTap.target===U.target&&Z<500}else _==="doubletap"&&(U.dt=C.timeStamp-O.tapTime,U.double=!0);return U}return c(w,[{key:"_subtractOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX-=C,this.pageY-=T,this.clientX-=C,this.clientY-=T,this}},{key:"_addOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX+=C,this.pageY+=T,this.clientX+=C,this.clientY+=T,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),w}($i),Io={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(f){f.pointerEvents=Io,f.defaults.actions.pointerEvents=Io.defaults,Ue(f.actions.phaselessTypes,Io.types)},listeners:{"interactions:new":function(f){var p=f.interaction;p.prevTap=null,p.tapTime=0},"interactions:update-pointer":function(f){var p=f.down,w=f.pointerInfo;!p&&w.hold||(w.hold={duration:1/0,timeout:null})},"interactions:move":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;f.duplicate||w.pointerIsDown&&!w.pointerWasMoved||(w.pointerIsDown&&ia(f),ti({interaction:w,pointer:_,event:C,eventTarget:T,type:"move"},p))},"interactions:down":function(f,p){(function(w,_){for(var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget,R=w.pointerIndex,U=C.pointers[R].hold,D=Cn(O),Z={interaction:C,pointer:T,event:A,eventTarget:O,type:"hold",targets:[],path:D,node:null},oe=0;oe<D.length;oe++){var ge=D[oe];Z.node=ge,_.fire("pointerEvents:collect-targets",Z)}if(Z.targets.length){for(var he=1/0,be=0,ke=Z.targets;be<ke.length;be++){var Ae=ke[be].eventable.options.holdDuration;Ae<he&&(he=Ae)}U.duration=he,U.timeout=setTimeout(function(){ti({interaction:C,eventTarget:O,pointer:T,event:A,type:"hold"},_)},he)}})(f,p),ti(f,p)},"interactions:up":function(f,p){ia(f),ti(f,p),function(w,_){var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget;C.pointerWasMoved||ti({interaction:C,eventTarget:O,pointer:T,event:A,type:"tap"},_)}(f,p)},"interactions:cancel":function(f,p){ia(f),ti(f,p)}},PointerEvent:il,fire:ti,collectEventTargets:ol,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ti(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,A=f.type,O=f.targets,R=O===void 0?ol(f,p):O,U=new il(A,_,C,T,w,p.now());p.fire("pointerEvents:new",{pointerEvent:U});for(var D={interaction:w,pointer:_,event:C,eventTarget:T,targets:R,type:A,pointerEvent:U},Z=0;Z<R.length;Z++){var oe=R[Z];for(var ge in oe.props||{})U[ge]=oe.props[ge];var he=Qo(oe.eventable,oe.node);if(U._subtractOrigin(he),U.eventable=oe.eventable,U.currentTarget=oe.node,oe.eventable.fire(U),U._addOrigin(he),U.immediatePropagationStopped||U.propagationStopped&&Z+1<R.length&&R[Z+1].node!==U.currentTarget)break}if(p.fire("pointerEvents:fired",D),A==="tap"){var be=U.double?ti({interaction:w,pointer:_,event:C,eventTarget:T,type:"doubletap"},p):U;w.prevTap=be,w.tapTime=be.timeStamp}return U}function ol(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,A=f.type,O=w.getPointerIndex(_),R=w.pointers[O];if(A==="tap"&&(w.pointerWasMoved||!R||R.downTarget!==T))return[];for(var U=Cn(T),D={interaction:w,pointer:_,event:C,eventTarget:T,type:A,path:U,targets:[],node:null},Z=0;Z<U.length;Z++){var oe=U[Z];D.node=oe,p.fire("pointerEvents:collect-targets",D)}return A==="hold"&&(D.targets=D.targets.filter(function(ge){var he,be;return ge.eventable.options.holdDuration===((he=w.pointers[O])==null||(be=he.hold)==null?void 0:be.duration)})),D.targets}function ia(f){var p=f.interaction,w=f.pointerIndex,_=p.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var vd=Object.freeze({__proto__:null,default:Io});function _d(f){var p=f.interaction;p.holdIntervalHandle&&(clearInterval(p.holdIntervalHandle),p.holdIntervalHandle=null)}var Sd={id:"pointer-events/holdRepeat",install:function(f){f.usePlugin(Io);var p=f.pointerEvents;p.defaults.holdRepeatInterval=0,p.types.holdrepeat=f.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(f,p){return f["pointerEvents:".concat(p)]=_d,f},{"pointerEvents:new":function(f){var p=f.pointerEvent;p.type==="hold"&&(p.count=(p.count||0)+1)},"pointerEvents:fired":function(f,p){var w=f.interaction,_=f.pointerEvent,C=f.eventTarget,T=f.targets;if(_.type==="hold"&&T.length){var A=T[0].eventable.options.holdRepeatInterval;A<=0||(w.holdIntervalHandle=setTimeout(function(){p.pointerEvents.fire({interaction:w,eventTarget:C,type:"hold",pointer:_,event:_},p)},A))}}})},xd=Sd,Ed={id:"pointer-events/interactableTargets",install:function(f){var p=f.Interactable;p.prototype.pointerEvents=function(_){return Ue(this.events.options,_),this};var w=p.prototype._backCompatOption;p.prototype._backCompatOption=function(_,C){var T=w.call(this,_,C);return T===this&&(this.events.options[_]=C),T}},listeners:{"pointerEvents:collect-targets":function(f,p){var w=f.targets,_=f.node,C=f.type,T=f.eventTarget;p.interactables.forEachMatch(_,function(A){var O=A.events,R=O.options;O.types[C]&&O.types[C].length&&A.testIgnoreAllow(R,_,T)&&w.push({node:_,eventable:O,props:{interactable:A}})})},"interactable:new":function(f){var p=f.interactable;p.events.getRect=function(w){return p.getRect(w)}},"interactable:set":function(f,p){var w=f.interactable,_=f.options;Ue(w.events.options,p.pointerEvents.defaults),Ue(w.events.options,_.pointerEvents||{})}}},Cd=Ed,Td={id:"pointer-events",install:function(f){f.usePlugin(vd),f.usePlugin(xd),f.usePlugin(Cd)}},Pd=Td,Md={id:"reflow",install:function(f){var p=f.Interactable;f.actions.phases.reflow=!0,p.prototype.reflow=function(w){return function(_,C,T){for(var A=_.getAllElements(),O=T.window.Promise,R=O?[]:null,U=function(){var Z=A[D],oe=_.getRect(Z);if(!oe)return 1;var ge,he=bi(T.interactions.list,function(Ae){return Ae.interacting()&&Ae.interactable===_&&Ae.element===Z&&Ae.prepared.name===C.name});if(he)he.move(),R&&(ge=he._reflowPromise||new O(function(Ae){he._reflowResolve=Ae}));else{var be=gc(oe),ke=function(Ae){return{coords:Ae,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:be.x,y:be.y},client:{x:be.x,y:be.y},timeStamp:T.now()});ge=function(Ae,Fe,Xe,Ke,Be){var Je=Ae.interactions.new({pointerType:"reflow"}),wr={interaction:Je,event:Be,pointer:Be,eventTarget:Xe,phase:"reflow"};Je.interactable=Fe,Je.element=Xe,Je.prevEvent=Be,Je.updatePointer(Be,Be,Xe,!0),wc(Je.coords.delta),qs(Je.prepared,Ke),Je._doPhase(wr);var vt=Ae.window,Dr=vt.Promise,gn=Dr?new Dr(function(Tn){Je._reflowResolve=Tn}):void 0;return Je._reflowPromise=gn,Je.start(Ke,Fe,Xe),Je._interacting?(Je.move(wr),Je.end(Be)):(Je.stop(),Je._reflowResolve()),Je.removePointer(Be,Be),gn}(T,_,Z,C,ke)}R&&R.push(ge)},D=0;D<A.length&&!U();D++);return R&&O.all(R).then(function(){return _})}(this,w,f)}},listeners:{"interactions:stop":function(f,p){var w=f.interaction;w.pointerType==="reflow"&&(w._reflowResolve&&w._reflowResolve(),function(_,C){_.splice(_.indexOf(C),1)}(p.interactions.list,w))}}},Ad=Md;if(gr.use(Dc),gr.use(Wc),gr.use(Pd),gr.use(Zu),gr.use(bd),gr.use($u),gr.use(Mu),gr.use(Ic),gr.use(Ad),gr.default=gr,i(t)==="object"&&t)try{t.exports=gr}catch{}return gr.default=gr,gr})})(hb,hb.exports);dX=hb.exports,Mg=cN(dX)});function dN(t,e,r){return e?`${t}-${e}`:r?`${t}-${r}`:`${t}-m`}var pN=N(()=>{});var lc,Yn,uc,gb,fN,mN,pX,M5,hN,wb,gN=N(()=>{Xt();oc();uN();Ii();ao();Er();dn();Rs();tc();pN();ob();T5();Ho();y5();un();lc={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},Yn={actionBar:"action-bar",alerts:"alerts",content:"content",customContent:"custom-content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},uc=25,gb=25,fN={x:0,y:0},mN={top:0,right:0,bottom:0,left:0},pX=Ct`:host{--calcite-dialog-scrim-background-color: rgba(0, 0, 0, .85);pointer-events:none;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset: 20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x: 198px;--calcite-internal-dialog-min-size-y: 140px}:host([scale=m]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x: 288px;--calcite-internal-dialog-min-size-y: 180px}:host([scale=l]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md-plus));--calcite-internal-dialog-min-size-x: 388px;--calcite-internal-dialog-min-size-y: 220px}.scrim{--calcite-scrim-background: var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color: var( --calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim) );position:fixed;inset:0;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-space: var(--calcite-dialog-footer-space);--calcite-panel-border-color: var(--calcite-dialog-border-color);--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1))}::slotted(*){--calcite-panel-background-color: initial}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:.25rem;opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position: calc( var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset) );--calcite-internal-dialog-shown-position: var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}.panel{border-radius:.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.width-s{inline-size:auto;inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){.width-s{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-s.dialog--opening-active{inset-block-start:0}}.width-m{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){.width-m{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-m.dialog--opening-active{inset-block-start:0}}.width-l{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){.width-l{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-l.dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0}:host([placement=cover]) .panel{border-radius:0}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,M5=0,hN="",wb=class extends gt{constructor(){super(...arguments),this.dragPosition={...fN},this.focusTrap=fb({triggerProp:"open",focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}})(this),this.ignoreOpenChange=!1,this.mutationObserver=Nn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openProp="opened",this.transitionProp="opacity",this.panelEl=mi(),this.resizePosition={...mN},this.assistiveText=null,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!0,this.opened=!1,this.closeDisabled=!1,this.dragEnabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.loading=!1,this.menuOpen=!1,this.messages=Jr(),this.modal=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=Tt({cancelable:!1}),this.calciteDialogBeforeOpen=Tt({cancelable:!1}),this.calciteDialogClose=Tt({cancelable:!1}),this.calciteDialogOpen=Tt({cancelable:!1}),this.calciteDialogScroll=Tt({cancelable:!1})}static{this.properties={assistiveText:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,opened:16,beforeClose:0,closeDisabled:7,description:1,dragEnabled:7,embedded:5,escapeDisabled:7,focusTrapOptions:0,heading:1,headingLevel:11,kind:3,loading:7,menuOpen:7,messageOverrides:0,modal:7,focusTrapDisabled:7,open:7,outsideCloseDisabled:7,overlayPositioning:3,placement:3,resizable:7,scale:3,widthScale:3,width:3}}static{this.styles=pX}get open(){return this._open}set open(e){let r=this._open;e!==r&&(this._open=e,this.toggleDialog(e))}async scrollContentTo(e){await this.panelEl.value?.scrollContentTo(e)}async setFocus(){return await En(this),this.panelEl.value?.setFocus()??ec(this.el)}async updateFocusTrapElements(e){this.focusTrap.setExtraContainers(e),this.focusTrap.updateContainerElements()}focusTrapDisabledOverride(){return!this.modal&&this.focusTrapDisabled}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setupInteractions()}async load(){}willUpdate(e){e.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("placement")&&(this.hasUpdated||this.placement!=="center")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(e.has("messages")||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:e}=this;this.assistiveText=e&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?e.dragEnabled:""} ${this.resizable?e.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),this.focusTrap.deactivate()}toggleDialog(e){this.ignoreOpenChange||(e?this.openDialog():this.closeDialog())}handleOpenedChange(e){let{transitionEl:r}=this;r&&(r.classList.toggle(lc.openingActive,e),gf(this))}async triggerInteractModifiers(){let{interaction:e}=this;e&&(await e.reflow({name:"drag"}),await e.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(e){let{key:r,shiftKey:n,defaultPrevented:i}=e,{dragEnabled:o,resizable:s,resizePosition:c,dragPosition:a,transitionEl:d}=this;if(!(i||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(r)))switch(r){case"ArrowUp":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-uc,type:"blockSize"}),c.bottom-=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y-=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+uc,type:"blockSize"}),c.bottom+=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y+=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-uc,type:"inlineSize"}),c.right-=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x-=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+uc,type:"inlineSize"}),c.right+=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x+=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break}}updateTransform(){let{dragPosition:{x:e,y:r},resizePosition:n,transitionEl:i,dragEnabled:o,resizable:s}=this;if(!i)return;if(!o&&!s){i.style.transform=null;return}let{top:c,right:a,bottom:d,left:h}=this.getAdjustedResizePosition(n),g=Math.round(e+h+a),v=Math.round(r+c+d);i.style.transform=g||v?`translate(${g}px, ${v}px)`:null}updateSize({type:e,size:r}){let{transitionEl:n}=this;n&&(n.style[e]=r!==null?`${Math.round(r)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...fN},this.resizePosition={...mN},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:e,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=Mg(r,{context:e.ownerDocument})),n){let{minInlineSize:c,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[Mg.modifiers.restrictSize({min:{width:og(c)?parseInt(c):0,height:og(a)?parseInt(a):0},max:{width:og(d)?parseInt(d):window.innerWidth,height:og(h)?parseInt(h):window.innerHeight}}),Mg.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:v})=>{v&&(o.top+=v.top,o.right+=v.right,o.bottom+=v.bottom,o.left+=v.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[Mg.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:c,dy:a})=>{s.x+=c,s.y+=a,this.updateTransform()}}})}}getAdjustedResizePosition({top:e,right:r,bottom:n,left:i}){let o=e/2,s=r/2,c=n/2,a=i/2;switch(this.placement){case"top":return{top:e,right:s,bottom:0,left:a};case"top-start":return{top:e,right:0,bottom:0,left:i};case"top-end":return{top:e,right:r,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:n,left:a};case"bottom-start":return{top:0,right:0,bottom:n,left:i};case"bottom-end":return{top:0,right:r,bottom:n,left:0};case"cover":case"center":default:return{top:o,right:s,bottom:c,left:a}}}setTransitionEl(e){this.transitionEl=e,this.setupInteractions()}handleInternalPanelScroll(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.open=!1)}handlePanelKeyDown(e){this.escapeDisabled&&e.key==="Escape"&&e.preventDefault()}async openDialog(){await this.componentOnReady(),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeDialog(){if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}M5--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){M5===0&&(hN=document.documentElement.style.overflow),M5++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",hN)}handleMutationObserver(){this.focusTrap.updateContainerElements()}render(){let{assistiveText:e,description:r,heading:n,opened:i}=this;return _e`<div class=${Se({[lc.container]:!0,[lc.containerOpen]:i,[lc.containerEmbedded]:this.embedded})}>${this.modal?_e`<calcite-scrim class=${Se(lc.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${Se({[lc.dialog]:!0,[dN("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${wt(this.setTransitionEl)}>${e?Jt("assistive-text",_e`<div aria-live=polite class=${Se(lc.assistiveText)}>${e}</div>`):null}<slot name=${Yn.customContent}><slot name=${Yn.content}><calcite-panel .beforeClose=${this.beforeClose} class=${Se(lc.panel)} .closable=${!this.closeDisabled} .closed=${!i} .description=${r} .heading=${n} .headingLevel=${this.headingLevel} .loading=${this.loading} .menuOpen=${this.menuOpen} .messageOverrides=${this.messageOverrides} @keydown=${this.handlePanelKeyDown} @calcitePanelClose=${this.handleInternalPanelCloseClick} @calcitePanelScroll=${this.handleInternalPanelScroll} .overlayPositioning=${this.overlayPositioning} .scale=${this.scale} ${wt(this.panelEl)}><slot name=${Yn.actionBar} slot=${Rt.actionBar}></slot><slot name=${Yn.alerts} slot=${Rt.alerts}></slot><slot name=${Yn.headerActionsStart} slot=${Rt.headerActionsStart}></slot><slot name=${Yn.headerActionsEnd} slot=${Rt.headerActionsEnd}></slot><slot name=${Yn.headerContent} slot=${Rt.headerContent}></slot><slot name=${Yn.headerMenuActions} slot=${Rt.headerMenuActions}></slot><slot name=${Yn.fab} slot=${Rt.fab}></slot><slot name=${Yn.contentTop} slot=${Rt.contentTop}></slot><slot name=${Yn.contentBottom} slot=${Rt.contentBottom}></slot><slot name=${Yn.footerStart} slot=${Rt.footerStart}></slot><slot name=${Yn.footer} slot=${Rt.footer}></slot><slot name=${Yn.footerEnd} slot=${Rt.footerEnd}></slot><slot></slot></calcite-panel></slot></slot></div></div>`}};Lt("calcite-dialog",wb)});var wN={};Lo(wN,{Dialog:()=>wb});var yN=N(()=>{q4();sN();gN()});var bN,fX,A5,vN=N(()=>{Xt();Ii();Er();dn();un();bN={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},fX=Ct`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-input-message-spacing-value: .25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}`,A5=class extends gt{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:ks}],iconFlipRtl:7,scale:3,status:3}}static{this.styles=fX}connectedCallback(){super.connectedCallback(),this.requestedIcon=Ns(bN,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||this.status!=="idle")||e.has("icon"))&&(this.requestedIcon=Ns(bN,this.icon,this.status))}render(){let e=this.el.hidden;return Kp(this.el,"calcite-hydrated-hidden",e),_e`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(e){if(e)return _e`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}};Lt("calcite-input-message",A5)});var _N=N(()=>{Zl();vN()});var mX,I5,SN=N(()=>{Xt();xr();Er();dn();un();mX=Ct`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,I5=class extends gt{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:7,text:1,type:3,value:9}}static{this.styles=mX}render(){let e=this.type==="determinate",r=e?{width:`${this.value}%`}:{},n=Qa(this.el);return _e`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class="track"><div class=${Se({bar:!0,indeterminate:this.type==="indeterminate",[rg.rtl]:n==="rtl",reversed:this.reversed})} style=${My(r)}></div></div>${this.text?_e`<div class="text">${this.text}</div>`:null}</div>`}};Lt("calcite-progress",I5)});var xN=N(()=>{SN()});function Zo(t){return!(!t||isNaN(Number(t)))}function EN(t){return!t||!xX(t)?"":yb(t,e=>{let r=!1,n=e.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Eg.includes(i)).join("");return Zo(n)?new iu(n).toString():""})}function _X(t){let e=t.split(".")[1],r=new iu(t).toString(),[n,i]=r.split(".");return e&&i!==e?`${n}.${e}`:r}function yb(t,e){if(!t)return t;let r=t.toLowerCase().indexOf("e")+1;return r?t.replace(/[eE]*$/g,"").substring(0,r).concat(t.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>e(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):e(t)}function SX(t){let e=t.split(/[eE]/);if(e.length===1)return t;let r=+t;if(Number.isSafeInteger(r))return`${r}`;let n=t.charAt(0)==="-",i=+e[1],o=e[0].split("."),s=(n?o[0].substring(1):o[0])||"",c=o[1]||"",a=(g,v)=>{let E=Math.abs(v)-g.length,M=E>0?`${"0".repeat(E)}${g}`:g;return`${M.slice(0,v)}.${M.slice(v)}`},d=(g,v)=>{let E=v>g.length?`${g}${"0".repeat(v-g.length)}`:g;return`${E.slice(0,v)}.${E.slice(v)}`},h=i>0?`${s}${d(c,i)}`:`${a(s,i)}${c}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(hX,"").replace(CN,"")}`}function xX(t){return Eg.some(e=>t.includes(e))}function PN(t,e,r){let n=e.split(".")[1];if(n){let i=n.match(vX)[0];if(i&&r.delocalize(t).length!==e.length&&n.indexOf("e")===-1){let o=r.decimal;return t=t.includes(o)?t:`${t}${o}`,t.padEnd(t.length+i.length,r.localize("0"))}}return t}function TX(t,e="cldr"){let r=e==="cldr"?AN:MN;return t?r.includes(t)?t:(t=t.toLowerCase(),t==="nb"?"no":e==="t9n"&&t==="pt"?"pt-BR":(t.includes("-")&&(t=t.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(t)||(t=t.split("-")[0])),t==="zh"?"zh-CN":r.includes(t)?t:(console.warn(`Translations for the "${t}" locale are not available and will fall back to the default, English (en).`),Ag))):Ag}var hX,gX,iu,CN,wX,yX,bX,vX,TN,Ag,MN,AN,d_e,EX,IN,L5,LN,CX,k5,ho,kN=N(()=>{Cg();hX=new RegExp("\\.(0+)?$"),gX=new RegExp("0+$"),iu=class t{static{this.DECIMALS=100}static{this.ROUNDED=!0}static{this.SHIFT=BigInt("1"+"0".repeat(this.DECIMALS))}constructor(e){if(e instanceof t)return e;let[r,n]=SX(e).split(".").concat("");this.value=BigInt(r+n.padEnd(t.DECIMALS,"0").slice(0,t.DECIMALS))+BigInt(t.ROUNDED&&n[t.DECIMALS]>="5"),this.isNegative=e.charAt(0)==="-"}static{this._divRound=(e,r)=>t.fromBigInt(e/r+(t.ROUNDED?e*BigInt(2)/r%BigInt(2):BigInt(0)))}static{this.fromBigInt=e=>Object.assign(Object.create(t.prototype),{value:e,isNegative:e<BigInt(0)})}getIntegersAndDecimals(){let e=this.value.toString().replace("-","").padStart(t.DECIMALS+1,"0"),r=e.slice(0,-t.DECIMALS),n=e.slice(-t.DECIMALS).replace(gX,"");return{integers:r,decimals:n}}toString(){let{integers:e,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${e}${r.length?"."+r:""}`}formatToParts(e){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=e.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:e.minusSign}),n.length&&(i.push({type:"decimal",value:e.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(e){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?e.minusSign:""}${e.numberFormatter.format(BigInt(r))}`,o=n.length?`${e.decimal}${n.split("").map(s=>e.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(e){return t.fromBigInt(this.value+new t(e).value)}subtract(e){return t.fromBigInt(this.value-new t(e).value)}multiply(e){return t._divRound(this.value*new t(e).value,t.SHIFT)}divide(e){return t._divRound(this.value*t.SHIFT,new t(e).value)}};CN=/^([-0])0+(?=\d)/,wX=/(?!^\.)\.$/,yX=/(?!^-)-/g,bX=/^-\b0\b\.?0*$/,vX=/0*$/,TN=t=>yb(t,e=>{let r=e.replace(yX,"").replace(wX,"").replace(CN,"$1");return Zo(r)?bX.test(r)?r:_X(r):e});Ag="en",MN=["ar","bg","bs","ca","cs","da","de","el",Ag,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],AN=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",Ag,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],d_e=new Map(Object.entries({bg:{am:"\u043F\u0440.\u043E\u0431.",pm:"\u0441\u043B.\u043E\u0431."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a.\xA0m.",pm:"p.\xA0m."},cs:{am:"dop.",pm:"odp."},es:{am:"a.\xA0m.",pm:"p.\xA0m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6",pm:"\u05D0\u05D7\u05D4\u05F4\u05E6"},hu:{am:"de. ",pm:"du."},lt:{am:"prie\u0161piet",pm:"popiet"},lv:{am:"priek\u0161pusdien\u0101",pm:"p\u0113cpusdien\u0101"},mk:{am:"\u043F\u0440\u0435\u0442\u043F\u043B.",pm:"\u043F\u043E\u043F\u043B."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manh\xE3",pm:"da tarde"},"pt-PT":{am:"da manh\xE3",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07",pm:"\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},tr:{am:"\xD6\xD6",pm:"\xD6S"},uk:{am:"\u0434\u043F",pm:"\u043F\u043F"},vi:{am:"SA",pm:"CH"}})),EX=["arab","arabext","latn"];[...new Set([...MN,...AN])];IN=t=>EX.includes(t),L5=new Intl.NumberFormat().resolvedOptions().numberingSystem,LN=L5==="arab"||!IN(L5)?"latn":L5,CX=t=>IN(t)?t:LN;k5=class{constructor(){this.delocalize=e=>this._numberFormatOptions?yb(e,r=>r.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):e,this.localize=e=>this._numberFormatOptions?yb(e,r=>Zo(r.trim())?new iu(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):e}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(e){if(e.locale=TX(e?.locale),e.numberingSystem=CX(e?.numberingSystem),!this._numberFormatOptions&&e.locale===Ag&&e.numberingSystem===LN&&Object.keys(e).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(e))return;this._numberFormatOptions=e,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();let r=new Map(this._digits.map((i,o)=>[i,o])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-123456789e-1);this._actualGroup=n.find(i=>i.type==="group").value,this._group=this._actualGroup.trim().length===0||this._actualGroup==" "?"\xA0":this._actualGroup,this._decimal=e.locale==="bs"||e.locale==="mk"?",":n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},ho=new k5});var PX,ON,NN=N(()=>{xr();Er();PX={validationContainer:"validation-container"},ON=({scale:t,status:e,id:r,icon:n,message:i})=>_e`<div class=${Se(PX.validationContainer)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Oe} .scale=${t} .status=${e}>${i}</calcite-input-message></div>`});function wf(t,e,r,n){let i=r.toLowerCase(),o=t[r];n&&o!=null?e.setAttribute(i,`${o}`):e.removeAttribute(i)}function RN(t,e,r){r.type=t==="textarea"?"text":t;let n=MX.includes(t),i=e;wf(i,r,"min",n),wf(i,r,"max",n),wf(i,r,"step",n);let o=IX.includes(t),s=e;wf(s,r,"minLength",o),wf(s,r,"maxLength",o);let c=AX.includes(t);wf(s,r,"pattern",c)}var MX,AX,IX,DN=N(()=>{MX=["date","datetime-local","month","number","range","time","week"],AX=["email","password","search","tel","text","url"],IX=["email","password","search","tel","text","textarea","url"]});var pn,O5,$N,LX,kX,bb,FN=N(()=>{Xt();g4();oc();Ii();ao();Uy();Er();Jp();dn();G4();ag();Cg();jy();Rs();kN();lf();NN();Ho();DN();un();pn={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",numberButtonItem:"number-button-item",hasSuffix:"has-suffix",hasPrefix:"has-prefix"},O5={validationMessage:"inputValidationMessage"},$N={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},LX={action:"action"},kX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) input[type=file],:host([scale=s]) textarea{min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea,:host([scale=m]) input[type=file]{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea,:host([scale=l]) input[type=file]{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-width:1px;border-style:solid;font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-text-color, var(--calcite-color-text-1));transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none}textarea:placeholder-shown,input:placeholder-shown{text-overflow:ellipsis}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}textarea{border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .clear-button,:host([number-button-type=horizontal][type=number]) .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host([number-button-type=horizontal]) input{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.has-prefix .prefix:first-child,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-text-color, var(--calcite-color-text-1))}input[readonly],textarea[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-input-text-color, var(--calcite-color-text-1))}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-icon-color, var(--calcite-color-text-3));z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block;--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;font-weight:var(--calcite-font-weight-medium);line-height:1;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-prefix-background-color, var(--calcite-color-background));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-suffix-background-color, var(--calcite-color-background));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal{border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));order:1;max-block-size:100%;min-block-size:100%;align-self:stretch;border-width:1px;border-style:solid}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{border-inline-start-width:0px;order:5}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center;border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));box-shadow:var(--calcite-input-shadow, var(--calcite-shadow-none))}input[type=date]::-webkit-input-placeholder{visibility:hidden!important}:host([type=color]) input{padding:.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;background-color:var(--calcite-color-foreground-1);text-align:center;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));block-size:initial}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:.5rem}:host([type=file][scale=m]) input{padding-block:.25rem;padding-inline:.75rem}:host([type=file][scale=l]) input{padding-block:.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`,bb=class extends gt{constructor(){super(),this.actionWrapperEl=mi(),this.attributeWatch=dy(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=mi(),this.onHiddenFormInputInput=e=>{e.target.name===this.name&&this.setValue({value:e.target.value,origin:"direct"}),this.setFocus(),e.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.loading=!1,this.localeFormat=!1,this.messages=Jr(),this.multiple=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputChange=Tt({cancelable:!1}),this.calciteInputInput=Tt(),this.calciteInternalInputBlur=Tt({cancelable:!1}),this.calciteInternalInputFocus=Tt({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:16,slottedActionElDisabledInternally:16,accept:1,alignment:3,autocomplete:0,clearable:7,disabled:7,editingEnabled:7,files:0,form:3,groupSeparator:7,icon:[3,{converter:ks}],iconFlipRtl:7,label:1,loading:7,localeFormat:5,max:11,maxLength:11,messageOverrides:0,min:11,minLength:11,multiple:5,name:3,numberButtonType:3,numberingSystem:3,pattern:1,placeholder:1,prefixText:1,readOnly:7,required:7,scale:3,status:3,step:3,suffixText:1,type:3,validationIcon:[3,{converter:ks}],validationMessage:1,validity:0,value:1}}static{this.styles=kX}get isClearable(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value?.length>0}get isTextarea(){return this.childElType==="textarea"}get value(){return this._value}set value(e){let r=this._value;e!==r&&(this._value=e,this.valueWatcher(e,r),e&&this._value===""&&this.setValue({origin:"reset",value:r}))}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}async setFocus(){await En(this),ec(this.type==="number"?this.childNumberEl:this.childEl)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),cf(this),BL(this),this.el.addEventListener(zy,this.onHiddenFormInputInput)}async load(){this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=Ns($N,this.icon,this.type),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:Zo(this.value)?this.value:""})))}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),(e.has("icon")||e.has("type")&&(this.hasUpdated||this.type!=="text"))&&(this.requestedIcon=Ns($N,this.icon,this.type))}updated(){nc(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),Gy(this),GL(this),this.el.removeEventListener(zy,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,r){if(!this.userChangedValue){if(this.type==="number"&&(e==="Infinity"||e==="-Infinity")){this.displayedValue=e,this.previousEmittedValue=e;return}this.setValue({origin:"direct",previousValue:r,value:e==null||e==""?"":this.type==="number"?Zo(e)?e:this.previousValue||"":e}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&e.key==="Escape"&&(this.clearInputValue(e),e.preventDefault()),e.key==="Enter"&&Vy(this)&&e.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=e==="up"?1:-1,c=this.step==="any"?1:Math.abs(this.step||1),a=new iu(o!==""?o:"0").add(`${c*s}`),d=()=>typeof n=="number"&&!isNaN(n)&&a.subtract(`${n}`).isNegative,h=()=>typeof r=="number"&&!isNaN(r)&&!a.subtract(`${r}`).isNegative,g=d()?`${n}`:h()?`${r}`:a.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:g})}clearInputValue(e){this.setValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))}inputBlurHandler(){window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;let r=e.composedPath();!r.includes(this.inputWrapperEl.value)||r.includes(this.actionWrapperEl.value)||this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputInputHandler(e){this.disabled||this.readOnly||(this.type==="file"&&(this.files=this.childEl.files),this.setValue({nativeEvent:e,origin:"user",value:e.target.value}))}inputKeyDownHandler(e){this.disabled||this.readOnly||e.key==="Enter"&&this.emitChangeIfUserModified()}inputNumberInputHandler(e){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=e.target.value;ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=ho.delocalize(r);e.inputType==="insertFromPaste"?(Zo(n)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:EN(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:e,origin:"user",value:n})}inputNumberKeyDownHandler(e){if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){e.preventDefault(),(e.key==="Backspace"||e.key==="Delete")&&this.clearInputValue(e);return}if(e.key==="ArrowUp"){e.preventDefault(),this.nudgeNumberValue("up",e);return}if(e.key==="ArrowDown"){this.nudgeNumberValue("down",e);return}let r=[...Eg,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;let n=e.shiftKey&&e.key==="Tab";if(r.includes(e.key)||n){e.key==="Enter"&&this.emitChangeIfUserModified();return}ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===ho.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(ho.decimal)===-1))&&(/[eE]/.test(e.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||e.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||e.preventDefault())}nudgeNumberValue(e,r){if(r instanceof KeyboardEvent&&r.repeat||this.type!=="number")return;let n=this.maxString?parseFloat(this.maxString):null,i=this.minString?parseFloat(this.minString):null,o=150;this.incrementOrDecrementNumberValue(e,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(e,n,i,r)},o)}numberButtonPointerUpAndOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}numberButtonPointerDownHandler(e){if(!xL(e))return;e.preventDefault();let r=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,e)}syncHiddenFormInput(e){RN(this.type,this,e)}setChildElRef(e){this.childEl=e}setChildNumberElRef(e){this.childNumberEl=e}setInputValue(e){this.type==="number"&&this.childNumberEl?this.childNumberEl.value=e:this.childEl&&(this.childEl.value=e)}setPreviousEmittedValue(e){this.previousEmittedValue=this.normalizeValue(e)}normalizeValue(e){return this.type==="number"?Zo(e)?e:"":e}setPreviousValue(e){this.previousValue=this.normalizeValue(e)}setValue({committing:e=!1,nativeEvent:r,origin:n,previousValue:i,value:o}){if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,c=o.charAt(o.length-1)===".",a=c&&s?o:TN(o),d=o&&!a?Zo(this.previousValue)?this.previousValue:"":a,h=ho.localize(d);n!=="connected"&&!c&&(h=PN(h,d,ho)),this.displayedValue=c&&s?`${h}${ho.decimal}`:h,this.userChangedValue=n==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d}else this.userChangedValue=n==="user"&&this.value!==o,this.value=o;n==="direct"&&(this.setInputValue(o),this.previousEmittedValue=o),r&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=this.type==="number"?ho.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){this.type==="number"&&e&&!Zo(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){let e=Qa(this.el),r=_e`<div class=${Se(pn.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=_e`<button .ariaLabel=${this.messages.clear} class=${Se(pn.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`,i=_e`<calcite-icon class=${Se(pn.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=_e`<button aria-hidden=true class=${Se({[pn.numberButtonItem]:!0,[pn.buttonItemHorizontal]:o})} data-adjustment=up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-up .scale=${Rn(this.scale)}></calcite-icon></button>`,c=_e`<button aria-hidden=true class=${Se({[pn.numberButtonItem]:!0,[pn.buttonItemHorizontal]:o})} data-adjustment=down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-down .scale=${Rn(this.scale)}></calcite-icon></button>`,a=_e`<div class=${Se(pn.numberButtonWrapper)}>${s}${c}</div>`,d=_e`<div class=${Se(pn.prefix)}>${this.prefixText}</div>`,h=_e`<div class=${Se(pn.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus,v=this.el.enterKeyHint,E=this.el.inputMode,M=this.type==="number"?Jt("localized-input",_e`<input accept=${this.accept??Oe} aria-errormessage=${O5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${pg(this)} autocomplete=${this.autocomplete??Oe} .autofocus=${g} value=${this.defaultValue??Oe} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Oe} inputmode=${E??Oe} maxlength=${this.maxLength??Oe} minlength=${this.minLength??Oe} .multiple=${this.multiple} name=${Oe} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Oe} placeholder=${(this.placeholder||"")??Oe} .readOnly=${this.readOnly} type=text .value=${Py(this.displayedValue??"")} ${wt(this.setChildNumberElRef)}>`):null,k=this.childElType==="input"?rc`input`:rc`textarea`,$=this.type!=="number"?sf`<${k} accept=${this.accept??Oe} aria-errormessage=${O5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${pg(this)} autocomplete=${this.autocomplete??Oe} .autofocus=${g} class=${Se({[pn.editingEnabled]:this.editingEnabled,[pn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Oe} inputmode=${E??Oe} max=${this.maxString??Oe} maxlength=${this.maxLength??Oe} min=${this.minString??Oe} minlength=${this.minLength??Oe} .multiple=${this.multiple} name=${this.name??Oe} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Oe} placeholder=${(this.placeholder||"")??Oe} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Oe} step=${this.step??Oe} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Oe} type=${this.type??Oe} .value=${Py(this.value??"")} ${wt(this.setChildElRef)}></${k}>`:null;return ic({disabled:this.disabled,children:_e`<div class=${Se({[pn.inputWrapper]:!0,[rg.rtl]:e==="rtl",[pn.hasSuffix]:this.suffixText,[pn.hasPrefix]:this.prefixText})} ${wt(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null}${this.prefixText?d:null}<div class=${Se(pn.wrapper)}>${M}${$}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${Se(pn.actionWrapper)} ${wt(this.actionWrapperEl)}><slot name=${LX.action}></slot></div>${this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?a:null}${this.suffixText?h:null}${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null}${qL({component:this})}</div>${this.validationMessage&&this.status==="invalid"?ON({icon:this.validationIcon,id:O5.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Lt("calcite-input",bb)});var UN={};Lo(UN,{Input:()=>bb});var VN=N(()=>{_N();xN();Zl();FN()});var OX,NX,vb,zN=N(()=>{Xt();Ii();Er();jy();un();OX={container:"container"},NX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,vb=class extends gt{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=Tt({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:3,for:3,layout:3,scale:3}}static{this.styles=NX}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(dg))}willUpdate(e){e.has("for")&&ek(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(lg))}labelClickHandler(e){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return _e`<div class=${Se(OX.container)}><slot></slot></div>`}};Lt("calcite-label",vb)});var WN={};Lo(WN,{Label:()=>vb});var BN=N(()=>{zN()});var N5,GN=N(()=>{N5={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var _b,Ig,RX,Sb,jN=N(()=>{Xt();Ii();ao();Er();dn();Rs();GN();ob();lf();Ho();un();_b={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Ig={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},RX=Ct`:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:.5rem}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent;background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);overflow:visible}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-close-text-color-hover, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-notice-spacing-token-small);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none;color:var(--calcite-notice-close-text-color, var(--calcite-color-text-3))}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-notice-close-background-color-focus, var(--calcite-color-foreground-2));color:var(--calcite-notice-close-text-color-hover, var(--calcite-color-text-1))}.notice-close:active{background-color:var(--calcite-notice-close-background-color-press, var(--calcite-color-foreground-3))}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,Sb=class extends gt{constructor(){super(...arguments),this.closeButton=mi(),this.transitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=Jr(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=Tt({cancelable:!1}),this.calciteNoticeBeforeOpen=Tt({cancelable:!1}),this.calciteNoticeClose=Tt({cancelable:!1}),this.calciteNoticeOpen=Tt({cancelable:!1})}static{this.properties={hasActionEnd:16,closable:7,icon:[3,{converter:ks}],iconFlipRtl:7,kind:3,messageOverrides:0,open:7,scale:3,width:3}}static{this.styles=RX}async setFocus(){await En(this);let e=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!e)){if(e)return e.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){this.requestedIcon=Ns(N5,this.icon,this.kind)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&gf(this),(e.has("icon")||e.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=Ns(N5,this.icon,this.kind))}loaded(){}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(e){this.transitionEl=e}close(){this.open=!1}handleActionsEndSlotChange(e){this.hasActionEnd=On(e)}render(){let e=_e`<button .ariaLabel=${this.messages.close} class=${Se(Ig.close)} @click=${this.close} ${wt(this.closeButton)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`;return _e`<div class=${Se(Ig.container)} ${wt(this.setTransitionEl)}>${this.requestedIcon?_e`<div class=${Se(Ig.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon></div>`:null}<div class=${Se(Ig.content)}><slot name=${_b.title}></slot><slot name=${_b.message}></slot><slot name=${_b.link}></slot></div><div class=${Se(Ig.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${_b.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?e:null}</div>`}};Lt("calcite-notice",Sb)});var qN={};Lo(qN,{Notice:()=>Sb});var HN=N(()=>{Zl();jN()});var R5,D5,DX,gi,$5,YN=N(()=>{ai();Sx();ci();St();Vt();Sa();qn();oL();v4();ry();sL();cL();uL();yx();R5="esri-identity-modal",D5={base:R5,info:`${R5}__info`,notice:`${R5}__notice`},DX="ArcGIS Online",gi=class extends iL{constructor(t,e){super(t,e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return XI({button:()=>Promise.resolve().then(()=>(nk(),rk)),dialog:()=>Promise.resolve().then(()=>(yN(),wN)),input:()=>Promise.resolve().then(()=>(VN(),UN)),label:()=>Promise.resolve().then(()=>(BN(),WN)),notice:()=>Promise.resolve().then(()=>(HN(),qN))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:t,title:e,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:c}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:v,lblUser:E,lblPwd:M,lblCancel:k,lblSigning:$,lblOk:z}=r;return fi("div",{class:this.classes(D5.base,lL())},fi("form",{bind:this,onsubmit:this._submit},fi("calcite-dialog",{bind:this,heading:e,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},fi("div",{class:D5.info},gx(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?DX:o,resource:`(${s||h})`})),c?fi("calcite-notice",{class:D5.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},fi("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[fi("calcite-label",null,E,fi("calcite-input",{afterCreate:B=>this._usernameInputNode=B,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),fi("calcite-label",null,M,fi("calcite-input",{afterCreate:B=>this._passwordInputNode=B,bind:this,name:"password",required:!0,type:"password",value:""}))],fi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},k),fi("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?$:z))))}_focusUsernameInput(){return bA(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(t){t.preventDefault(),this._set("signingIn",!0);let e=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",e)}};ae([fe({readOnly:!0})],gi.prototype,"container",void 0),ae([fe(),C4("esri/t9n/common")],gi.prototype,"commonMessages",void 0),ae([fe()],gi.prototype,"error",void 0),ae([fe(),C4("esri/identity/t9n/identity")],gi.prototype,"messages",void 0),ae([fe()],gi.prototype,"oAuthPrompt",void 0),ae([fe()],gi.prototype,"open",void 0),ae([fe()],gi.prototype,"signingIn",void 0),ae([fe()],gi.prototype,"server",void 0),ae([fe({readOnly:!0})],gi.prototype,"title",null),ae([fe()],gi.prototype,"resource",void 0),gi=ae([Et("esri.identity.IdentityModal")],gi);$5=gi});var F5,yf,ZN=N(()=>{F5="esriJSAPIOAuth",yf=class{constructor(e,r){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=r,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)e=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}}return e}save(){if(!this.storage)return!1;let e=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=e[r.authNamespace];n||(n=e[r.authNamespace]={}),this.appId||(this.appId=r.appId),n[r.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(F5,JSON.stringify(e))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let e=this._load(),r=this.oAuthInfo;if(r?.appId&&r?.portalUrl&&(this.expires==null||this.expires>Date.now())&&(this.refreshToken||this.token)){let n=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",i=new FormData;if(i.append("f","json"),i.append("auth_token",this.refreshToken||this.token),i.append("client_id",r.appId),i.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),typeof navigator.sendBeacon=="function")navigator.sendBeacon(n,i);else{let o=new XMLHttpRequest;o.open("POST",n),o.send(i)}}if(r?.authNamespace&&r.portalUrl&&this.storage){let n=e[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(F5,JSON.stringify(e))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let e=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=e[r.authNamespace];n&&(n=n[r.portalUrl],n&&(this.appId=n.appId,this.codeVerifier=n.codeVerifier,this.expires=n.expires,this.refreshToken=n.refreshToken,this.ssl=n.ssl,this.stateUID=n.stateUID,this.token=n.token,this.userId=n.userId))}}_load(){let e={};if(this.storage){let r=this.storage.getItem(F5);if(r)try{e=JSON.parse(r)}catch(n){console.warn(n)}}return e}};yf.prototype.declaredClass="esri.identity.OAuthCredential"});var U5,fn,V5,XN=N(()=>{ai();Ol();ci();St();Vt();Sa();qn();fn=class extends ui{static{U5=this}constructor(t){super(t),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return U5.fromJSON(this.toJSON())}};ae([fe({json:{write:!0}})],fn.prototype,"appId",void 0),ae([fe({json:{write:!0}})],fn.prototype,"authNamespace",void 0),ae([fe({json:{write:!0}})],fn.prototype,"expiration",void 0),ae([fe({json:{write:!0}})],fn.prototype,"flowType",void 0),ae([fe({json:{write:!0}})],fn.prototype,"forceLogin",void 0),ae([fe({json:{write:!0}})],fn.prototype,"forceUserId",void 0),ae([fe({json:{write:!0}})],fn.prototype,"locale",void 0),ae([fe({json:{write:!0}})],fn.prototype,"minTimeUntilExpiration",void 0),ae([fe({json:{write:!0}})],fn.prototype,"popup",void 0),ae([fe({json:{write:!0}})],fn.prototype,"popupCallbackUrl",void 0),ae([fe({json:{write:!0}})],fn.prototype,"popupWindowFeatures",void 0),ae([fe({json:{write:!0}})],fn.prototype,"portalUrl",void 0),ae([fe({json:{write:!0}})],fn.prototype,"preserveUrlHash",void 0),ae([fe({json:{write:!0}})],fn.prototype,"userId",void 0),fn=U5=ae([Et("esri.identity.OAuthInfo")],fn);V5=fn});var wi,xb,JN=N(()=>{ai();Ol();ci();St();Vt();Sa();qn();wi=class extends ui{constructor(t){super(t),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};ae([fe({json:{write:!0}})],wi.prototype,"adminTokenServiceUrl",void 0),ae([fe({json:{write:!0}})],wi.prototype,"currentVersion",void 0),ae([fe({json:{write:!0}})],wi.prototype,"hasPortal",void 0),ae([fe({json:{write:!0}})],wi.prototype,"hasServer",void 0),ae([fe({json:{write:!0}})],wi.prototype,"owningSystemUrl",void 0),ae([fe({json:{write:!0}})],wi.prototype,"owningTenant",void 0),ae([fe({json:{write:!0}})],wi.prototype,"server",void 0),ae([fe({json:{write:!0}})],wi.prototype,"shortLivedTokenValidity",void 0),ae([fe({json:{write:!0}})],wi.prototype,"tokenServiceUrl",void 0),ae([fe({json:{write:!0}})],wi.prototype,"webTierAuth",void 0),wi=ae([Et("esri.identity.ServerInfo")],wi);xb=wi});var Eb,QN,z5,Cb,Tb,Lg,Yt,KN=N(()=>{ai();$a();Lh();Ww();Ln();ux();vh();Mn();$o();io();Go();ci();St();Vt();qn();YN();ZN();XN();JN();Ah();Eb={},QN=t=>{let e=new an(t.owningSystemUrl).host,r=new an(t.server).host,n=/.+\.arcgis\.com$/i;return n.test(e)&&n.test(r)},z5=(t,e)=>!!(QN(t)&&e&&e.some(r=>r.test(t.server))),Cb=null,Tb=null;try{Cb=window.localStorage,Tb=window.sessionStorage}catch{}Lg=class extends Ts{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin=window.origin!=="null"?window.origin:window.location.origin,this._appUrlObj=Cs(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",e=>{this._pageShowHandler(e)})}registerServers(e){let r=this.serverInfos;r?(e=e.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(e)):this.serverInfos=e,e.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(e){let r=this.oAuthInfos;if(r){for(let n of e){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};let r=this._sanitizeUrl(e.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new xb,o.server=this._getServerInstanceRoot(r),n?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(r),o.hasPortal=!0),this.registerServers([o])),i=this._findCredential(r),i?(delete e.server,Object.assign(i,e),s=!1):(i=new Yt({userId:e.userId,server:o.server??void 0,token:e.token,expires:e.expires,ssl:e.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return h0({serverInfos:this.serverInfos.map(e=>e.toJSON()),oAuthInfos:this.oAuthInfos.map(e=>e.toJSON()),credentials:this.credentials.map(e=>e.toJSON())})}initialize(e){if(!e)return;typeof e=="string"&&(e=JSON.parse(e));let r=e.serverInfos,n=e.oAuthInfos,i=e.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new xb(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new V5(s))}),o.length&&this.registerOAuthInfos(o)}i&&i.forEach(o=>{o.server&&o.token&&o.expires&&o.expires>Date.now()&&((o=o.declaredClass?o:new Yt(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(e){let r;e=this._sanitizeUrl(e);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,e)){r=n;break}return r}findOAuthInfo(e){let r;e=this._sanitizeUrl(e);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,e)){r=n;break}return r}findCredential(e,r){if(!e)return;let n;e=this._sanitizeUrl(e);let i=this._isServerRsrc(e)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,e)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,e)&&this._getIdenticalSvcIdx(e,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(e,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},e=this._sanitizeUrl(e);let s=new AbortController,c=_n();if(r.signal&&li(r.signal,()=>{s.abort()}),li(s,()=>{c.reject(new We("identity-manager:user-aborted","ABORTED"))}),no(s))return c.promise;r.signal=s.signal;let a=this._isAdminResource(e),d=n?this.findCredential(e):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new We("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+e,{error:i}),c.reject(h),c.promise;let g=this._findCredential(e,r);if(g)return c.resolve(g),c.promise;let v=this.findServerInfo(e);if(v)!v.hasPortal&&v.server&&v.owningSystemUrl&&this._hasSameServerInstance(v.server,v.owningSystemUrl)&&(v.hasPortal=!0),!v.hasServer&&this._isServerRsrc(e)&&(v._restInfoPms=this._getTokenSvcUrl(e),v.hasServer=!0);else{let E=this._getTokenSvcUrl(e);if(!E)return h=new We("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),c.reject(h),c.promise;v=new xb,v.server=this._getServerInstanceRoot(e),typeof E=="string"?(v.tokenServiceUrl=E,v.hasPortal=!0):(v._restInfoPms=E,v.hasServer=!0),this.registerServers([v])}return v.hasPortal&&v._selfReq===void 0&&(o||cn(v.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(E=>E.tokenServiceUrl===v.tokenServiceUrl))&&(v._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(v.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,v,r,c,a)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,r,n){let i=this._rePortalTokenSvc.test(e.tokenServiceUrl),o=new an(this._appOrigin),s=e.shortLivedTokenValidity,c,a,d,h,g,v,E,M;r&&(M=this.tokenValidity||s||this._defaultTokenValidity,M>s&&s>0&&(M=s)),n&&(c=n.isAdmin,a=n.serverUrl,d=n.token,v=n.signal,E=n.ssl,e.customParameters=n.customParameters),c?h=e.adminTokenServiceUrl:(h=e.tokenServiceUrl,g=new an(h.toLowerCase()),e.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(cn(o.uri,h,!0)||g.scheme==="https"&&o.host===g.host&&o.port==="7080"&&g.port==="7443")&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let k={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:M,referer:c||i?this._appOrigin:null,client:c?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,n),signal:v,...n?.ioArgs};return i||(k.withCredentials=!1),ir(h,k).then($=>{let z=$.data;if(!z?.token)return new We("identity-manager:authentication-failed","Unable to generate token");let B=e.server;return Eb[B]||(Eb[B]={}),r&&(Eb[B][r.username]=r.password),z.validity=M,z})}isBusy(){return!!this._busy}async checkSignInStatus(e){return(await this.checkAppAccess(e,"")).credential}checkAppAccess(e,r,n){let i=!1;return this.getCredential(e,{prompt:!1}).then(o=>{let s,c={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(e)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",c.client_id=r;else{if(!o.token)return{credential:o};s=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};s=o.server+"/rest/services"}return o.token&&(c.token=o.token),ir(s,{query:c,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new We("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,a.data);return i=!!a.data.viewOnlyUserTypeApp,{credential:o}}).catch(a=>{if(a.name==="identity-manager:not-authorized")throw a;let d=a.details?.httpStatus;if(d===498)throw o.destroy(),new We("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new We("identity-manager:invalid-request","Bad request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(e){e&&(e.charAt(0)==="#"&&(e=e.slice(1)),this._processOAuthPopupParams(ja(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,r,n={}){let i=_n(),o=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=a=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new We("identity-manager:user-aborted","ABORTED"))};n.signal&&li(n.signal,()=>{s()});let c=new $5({open:!0,resource:this.getResourceName(e),server:r.server});this.dialog=c,this.emit("dialog-create");let a=c.on("cancel",s),d=c.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let v=new Yt({userId:h.username,server:r.server??void 0,token:g.token,expires:g.expires!=null?Number(g.expires):null,ssl:!!g.ssl,isAdmin:n.isAdmin,validity:g.validity});i.resolve(v)}).catch(g=>{c.error=g,c.signingIn=!1})});return i.promise}oAuthSignIn(e,r,n,i){this._oAuthDfd=_n();let o=this._oAuthDfd,s;i?.signal&&li(i.signal,()=>{let v=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;v&&!v.closed?v.close():this.dialog&&h()}),o.resUrl_=e,o.sinfo_=r,o.oinfo_=n;let c=n._oAuthCred;if(c.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let v=crypto.getRandomValues(new Uint8Array(32));s=Rw(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=Rw(v),c.save()||(c.codeVerifier=s=null)}else c.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(v=>{let E=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!E)return void this._doOAuthSignIn(e,r,n,v);let M=new $5({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=M,this.emit("dialog-create"),a=M.on("cancel",h),d=M.on("submit",()=>{g(),this._doOAuthSignIn(e,r,n,v)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new We("identity-manager:user-aborted","ABORTED"))},g=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(e=>{e.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Wa(window,"message",r=>{if((r.origin===this._appOrigin||r.origin.endsWith(".arcgis.com"))&&r.data?.type==="arcgis:auth:requestCredential"){let n=r.source;this.getCredential(e).then(i=>{n.postMessage({type:"arcgis:auth:credential",credential:{expires:i.expires,server:i.server,ssl:i.ssl,token:i.token,userId:i.userId}},r.origin)}).catch(i=>{n.postMessage({type:"arcgis:auth:error",error:{name:i.name,message:i.message}},r.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){e.charAt(0)==="#"&&(e=e.slice(1));let n=ja(e),i=!1;if(n.access_token&&n.expires_in&&n.state&&n.hasOwnProperty("username"))try{n.state=JSON.parse(n.state),n.state.portalUrl&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}i&&(window.location.hash=n.state?.hash||"")}let r=window.location.search;if(r){r.charAt(0)==="?"&&(r=r.slice(1));let n=ja(r),i=!1;if(n.code&&n.state)try{n.state=JSON.parse(n.state),n.state.portalUrl&&n.state.uid&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}if(i){let o={...n};["code","error","error_description","message_code","persist","state"].forEach(a=>{delete o[a]});let s=Rl(o),c=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",c)}}}_getOAuthToken(e,r,n,i,o){return e=e.replace(/^http:/i,"https:"),ir(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:r,redirect_uri:i,client_id:n,code_verifier:o}:{grant_type:"refresh_token",refresh_token:r,client_id:n}}).then(s=>s.data)}async _getCodeChallenge(e){if(e&&globalThis.isSecureContext){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Rw(new Uint8Array(n))}return null}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new We("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(e,r){let n,i,o,s,c=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(e)?"server":"portal",g=this.credentials.filter(v=>this._hasSameServerInstance(v.server,e)&&v.scope===h);if(e=d||e,g.length)if(g.length===1){if(n=g[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,c=this._getIdenticalSvcIdx(e,n),!a)return c===-1&&n.resources.push(e),this._addResource(e,s),n;c!==-1&&(n.resources.splice(c,1),this._removeResource(e,s))}else{let v,E;if(g.some(M=>(E=this._getIdenticalSvcIdx(e,M),E!==-1&&(v=M,o=this.findServerInfo(v.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,v.userId):void 0,c=E,!0))),a)v&&(v.resources.splice(c,1),this._removeResource(e,s));else if(v)return this._addResource(e,s),v}}_findOAuthInfo(e){let r=this.findOAuthInfo(e);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,e)){r=n;break}}return r}_addResource(e,r){r&&this._getIdenticalSvcIdx(e,r)===-1&&r.resources.push(e)}_removeResource(e,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(e,r),n>-1&&r.resources.splice(n,1))}_useProxy(e,r){return r?.isAdmin&&!cn(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&String(e.currentVersion)==="10.1"&&!cn(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){let r=new an(e);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(e){let r=e.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(e)&&(n=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),n!==-1||Iw(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?e.slice(0,n):e}_hasSameServerInstance(e,r){return e.endsWith("/")&&(e=e.slice(0,-1)),e=e.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),e=Op(e),r=Op(r),(e=e.slice(Math.max(0,e.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(e){let r=(bt.request.proxyUrl||"").toLowerCase(),n=r?e.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(e=e.slice(n+r.length+1)),e=Es(e),Cs(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,r){let n=!1;if(this._isRESTService(e)&&this._isRESTService(r)){let i=this._getSuffix(e).toLowerCase(),o=this._getSuffix(r).toLowerCase();if(n=i===o,!n){let s=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;n=i.replaceAll(s,"$1")===o.replaceAll(s,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(e)||this._isServerRsrc(r)||!this._isPortalDomain(e)||(n=!0);return n}_isPortalDomain(e){let r=new an(e.toLowerCase()),n=this._portalConfig,i=this._gwDomains.some(o=>o.regex.test(r.uri));return!i&&n&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(n.restBaseUrl),r.uri)),i||bt.portalUrl&&(i=cn(r,bt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(e,r){let n=-1,i=-1;this._gwDomains.forEach((s,c)=>{n===-1&&s.regex.test(e)&&(n=c),i===-1&&s.regex.test(r)&&(i=c)});let o=!1;if(n>-1&&i>-1&&(n===0||n===4?i!==0&&i!==4||(o=!0):n===1?i!==1&&i!==2||(o=!0):n===2?i===2&&(o=!0):n===3&&i===3&&(o=!0)),!o){let s=this.findServerInfo(r),c=s?.owningSystemUrl;c&&QN(s)&&this._isPortalDomain(c)&&this._isIdProvider(e,c)&&(o=!0)}return o}_getIdenticalSvcIdx(e,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(e,o)){n=i;break}}return n}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let r,n,i;if(this._isRESTService(e)||this._isAdminResource(e)){let o=this._getServerInstanceRoot(e);return r=o+"/admin/generateToken",n=ir(e=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(e)){let o="";if(this._gwDomains.some(s=>(s.regex.test(e)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,e)&&(o=s+this._gwTokenUrl),!!o)),o||(i=e.toLowerCase().indexOf("/sharing"),i!==-1&&(o=e.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(e)+this._gwTokenUrl),o){let s=new an(e).port;/^http:\/\//i.test(e)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(e,r,n){let i=r._oAuthCred;if(e.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,e.code,r.appId,this._getRedirectURI(r,!0),s).then(c=>{let a=new Yt({userId:c.username,server:n.server??void 0,token:c.access_token,expires:Date.now()+1e3*c.expires_in,ssl:c.ssl,oAuthState:e.state,_oAuthCred:i});return r.userId=a.userId,i.storage=c.persist?Cb:Tb,i.refreshToken=c.refresh_token,i.token=null,i.expires=c.refresh_token_expires_in?Date.now()+1e3*c.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new Yt({userId:e.username,server:n.server??void 0,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:e.ssl==="true",oAuthState:e.state,_oAuthCred:i});return r.userId=o.userId,i.storage=e.persist?Cb:Tb,i.refreshToken=null,i.token=o.token,i.expires=o.expires,i.userId=o.userId,i.ssl=o.ssl,i.save(),Promise.resolve(o)}_processOAuthPopupParams(e){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){let n=e.error==="access_denied",i=new We(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);r.reject(i)}else this._processOAuthResponseParams(e,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(e){e&&(e.charAt(0)==="?"&&(e=e.slice(1)),this._processOAuthPopupParams(ja(e)))}async _exchangeToken(e,r,n){return(await ir(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(e,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];e=e.replace(/^http:/i,"https:");try{let n=await ir(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":r,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,n.data}catch(n){throw n.details?.messageCode==="OAUTH_0066"&&(this._getPlatformSelfError=[n,Date.now()]),n}}_getPortalSelf(e,r){let n;return this._gwDomains.some(i=>(i.regex.test(e)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),ir(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(e){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(e);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(n,e)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),e)||this._isIdProvider(r.restBaseUrl,e))||cn(n,e,!0)))}_checkProtocol(e,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&Dp(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:r}),!o)&&n(new We("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(e,r,n,i,o,s){return i||(i=_n()),i.resUrl_=e,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(i)):this._xoReqs.push(i):this._doSignIn(i),i.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=e.options_?.resource,g=e.resUrl_,v=e.refresh_,E=!1;this.credentials.includes(d)||(v&&this.credentials.includes(v)?(v.userId=d.userId,v.token=d.token,v.expires=d.expires,v.validity=d.validity,v.ssl=d.ssl,v.creationTime=d.creationTime,E=!0,d=v):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(h||g)||d.resources.push(h||g),d.scope=this._isServerRsrc(g)?"server":"portal",d.emitTokenChange();let M=this._soReqs,k={};this._soReqs=[],M.forEach($=>{if(!this._isIdenticalService(g,$.resUrl_)){let z=this._getSuffix($.resUrl_);k[z]||(k[z]=!0,d.resources.push($.resUrl_))}}),e.resolve(d),M.forEach($=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),$.resUrl_)?$.resolve(d):this._soReqs.push($)}),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,E||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{e.reject(d),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,v)=>{let E=e.sinfo_,M=!e.options_||e.options_.prompt!==!1,k=E.hasPortal&&this._findOAuthInfo(e.resUrl_),$,z;if(d)r(new Yt({userId:d,server:E.server??void 0,token:g??void 0,expires:v!=null?Number(v):null,ssl:!!h}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let B=Wa(window,"message",q=>{q.source===window.parent&&q.data&&(q.data.type==="arcgis:auth:credential"?(B.remove(),q.data.credential.expires<Date.now()?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new Yt(q.data.credential))):q.data.type==="arcgis:auth:error"&&(B.remove(),q.data.error.name==="tokenExpiredError"?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):n(We.fromJSON(q.data.error))))});li(e.options_?.signal,()=>{B.remove()})}else if(k){let B=k._oAuthCred;if(!B){let q=new yf(k,Cb),V=new yf(k,Tb);q.isValid()&&V.isValid()?q.expires>V.expires?(B=q,V.destroy()):(B=V,q.destroy()):B=q.isValid()?q:V,k._oAuthCred=B}if(B.isValid()){$=new Yt({userId:B.userId??void 0,server:E.server??void 0,token:B.token??void 0,expires:B.expires,ssl:B.ssl??void 0,_oAuthCred:B});let q=k.appId!==B.appId&&this._doPortalSignIn(e.resUrl_);q||B.refreshToken?(e._pendingDfd=B.refreshToken?this._getOAuthToken(E.server,B.refreshToken,B.appId).then(V=>($.expires=Date.now()+1e3*V.expires_in,$.token=V.access_token,$)):Promise.resolve($),e._pendingDfd.then(V=>q?this._exchangeToken(V.server,k.appId,V.token).then(X=>(V.token=X,V)).catch(()=>V):V).then(V=>{r(V)}).catch(V=>{let X=V.details?.httpStatus;X>0&&X!==404?(B.destroy(),i()):n(V)})):r($)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(k.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===B.stateUID&&B.codeVerifier)){let q=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(q,k,E).then(V=>{r(V)}).catch(n)}else{let q=()=>{M?e._pendingDfd=this.oAuthSignIn(e.resUrl_,E,k,e.options_).then(r,n):(z=new We("identity-manager:not-authenticated","User is not signed in."),n(z))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(E.server,k.appId).then(V=>{cn(V.portalUrl,this._appOrigin,!0)?($=new Yt({userId:V.username,server:E.server??void 0,expires:Date.now()+1e3*V.expires_in,token:V.token}),r($)):q()}).catch(q):q()}}else if(M){if(this._checkProtocol(e.resUrl_,E,n,e.admin_)){let B=e.options_;e.admin_&&(B=B||{},B.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,E,B).then(r,n)}}else z=new We("identity-manager:not-authenticated","User is not signed in."),n(z)},o=()=>{let d=e.sinfo_,h=d.owningSystemUrl,g=e.options_,v,E,M,k;if(g&&(v=g.token,E=g.error,M=g.prompt),k=this._findCredential(h,{token:v,resource:e.resUrl_}),!k){for(let $ of this.credentials)if(this._isIdProvider(h,$.server)){k=$;break}}if(k){let $=this.findCredential(e.resUrl_,k.userId);if($)r($);else if(z5(d,this._legacyFed)){let z=k.toJSON();z.server=d.server,z.resources=null,r(new Yt(z))}else(e._pendingDfd=this.generateToken(this.findServerInfo(k.server),null,{serverUrl:e.resUrl_,token:k.token,signal:e.options_.signal,ssl:k.ssl})).then(z=>{r(new Yt({userId:k?.userId,server:d.server??void 0,token:z.token,expires:z.expires!=null?Number(z.expires):null,ssl:!!z.ssl,isAdmin:e.admin_,validity:z.validity}))},n)}else this._busy=null,v&&(e.options_.token=null),(e._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:d.owningTenant,signal:e.options_.signal,token:v,error:E,prompt:M})).then(()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)},$=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject($)})};this._errbackFunc=n;let s=e.sinfo_.owningSystemUrl,c=this._isServerRsrc(e.resUrl_),a=e.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=e.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(Ci("authInfo.tokenServicesUrl",d)||Ci("authInfo.tokenServiceUrl",d)||Ci("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=Ci("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}c&&h.owningSystemUrl?o():i()},()=>{e.sinfo_._restInfoPms=null;let d=new We("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):c&&s?o():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,v,E,M;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,v=d.supportsOAuth,M=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(E=d.customBaseUrl),e.sinfo_.currentVersion=M),e.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(k=>(h.portalToken=k?.token,h.tokenExpiration=k?.expires,h)):!g&&v&&M>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:E,owningTenant:e.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{e.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(e){let r,n=null,i=e.portalUrl,o=e.customBaseUrl,s=e.owningTenant,c=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(c){n=window.location.href;let a=n.indexOf("?");a>-1&&(n=n.slice(0,a)),a=n.search(/\/(apps|home)\//),n=a>-1?n.slice(0,a):null}return c&&n?(this._hasTestedIfAppIsOnPortal=!0,r=ir(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new V5({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),ir(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:Ai(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(a=>{if(a.data.valid){let d=this._defaultOAuthInfo.clone();a.data.urlKey&&o?d.portalUrl="https://"+a.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(cn(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(e,r,n,i){let o=n._oAuthCred,s={portalUrl:n.portalUrl};!n.popup&&n.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash),o.stateUID&&(s.uid=o.stateUID);let c={client_id:n.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(s),expiration:n.expiration,locale:n.locale,redirect_uri:this._getRedirectURI(n,!!o.codeVerifier)};n.forceLogin&&(c.force_login=!0),n.forceUserId&&n.userId&&(c.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(e)&&(c.redirectToUserOrgUrl=!0),o.codeVerifier&&(c.code_challenge=i||o.codeVerifier,c.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+Rl(c);if(n.popup){let h=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(h)h.focus(),this._oAuthDfd.oAuthWin_=h,this._oAuthIntervalId=setInterval(()=>{if(h.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let g=this._oAuthDfd;if(g){let v=new We("identity-manager:user-aborted","ABORTED");g.reject(v)}}},500),this._oAuthOnPopupHandle=Wa(window,["arcgis:auth:hash","arcgis:auth:location:search"],g=>{g.type==="arcgis:auth:hash"?this.setOAuthResponseHash(g.detail):this._setOAuthResponseQueryString(g.detail)});else{let g=new We("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:c,authorizeUrl:a,resourceUrl:e,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(e,r){let n=window.location.href.replace(/#.*$/,"");if(e.popup)return Ai(e.popupCallbackUrl);if(r){let i=Cs(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Fp(i.path,i.query)}return n}};Lg.prototype.declaredClass="esri.identity.IdentityManagerBase";Yt=class extends Ts.EventedAccessor{constructor(t){super(t),this._oAuthCred=null,this.tokenRefreshBuffer=2,t?._oAuthCred&&(this._oAuthCred=t._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let t=Zt,e=t.findServerInfo(this.server),r=e?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&z5(e,t._legacyFed),o=e.webTierAuth,s=o&&t.normalizeWebTierAuth,c=Eb[this.server],a=c?.[this.userId],d,h=this.resources&&this.resources[0],g=n?t.findServerInfo(r):null,v={username:this.userId,password:a};if(o&&!s)return;n&&!g&&t.serverInfos.some(M=>(t._isIdProvider(r,M.server)&&(g=M),!!g));let E=g?t.findCredential(g.server,this.userId):null;if(!n||E){if(!i){if(n)d={serverUrl:h,token:E?.token,ssl:E?.ssl};else if(s)v=null,d={ssl:this.ssl};else{if(!a){let M;return h&&(h=t._sanitizeUrl(h),this._enqueued=1,M=t._enqueue(h,e,null,null,this.isAdmin,this),M.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),M}this.isAdmin&&(d={isAdmin:!0})}return t.generateToken(n?g:e,n?null:v,d).then(M=>{this.token=M.token,this.expires=M.expires!=null?Number(M.expires):null,this.creationTime=Date.now(),this.validity=M.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}E?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let t=Zt;t.credentials.forEach(e=>{let r=t.findServerInfo(e.server),n=r?.owningSystemUrl;e!==this&&e.userId===this.userId&&n&&e.scope==="server"&&(t._hasSameServerInstance(this.server,n)||t._isIdProvider(n,this.server))&&(z5(r,t._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())})}}emitTokenChange(t){clearTimeout(this._refreshTimer);let e=Zt,r=this.server?e.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?e.findServerInfo(n):null;t===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||e.normalizeWebTierAuth)||this.expires==null&&this.validity==null||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);let t=Zt,e=t.credentials.indexOf(this);e>-1&&t.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let t=h0({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),e=this.resources;return e&&e.length>0&&(t.resources=e.slice()),t}_startRefreshTimer(){clearTimeout(this._refreshTimer);let t=6e4*this.tokenRefreshBuffer,e=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>e&&(r=e),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>t?r-t:r)}};ae([fe()],Yt.prototype,"creationTime",void 0),ae([fe()],Yt.prototype,"expires",void 0),ae([fe()],Yt.prototype,"isAdmin",void 0),ae([fe()],Yt.prototype,"oAuthState",void 0),ae([fe()],Yt.prototype,"resources",void 0),ae([fe()],Yt.prototype,"scope",void 0),ae([fe()],Yt.prototype,"server",void 0),ae([fe()],Yt.prototype,"ssl",void 0),ae([fe()],Yt.prototype,"token",void 0),ae([fe()],Yt.prototype,"tokenRefreshBuffer",void 0),ae([fe()],Yt.prototype,"userId",void 0),ae([fe()],Yt.prototype,"validity",void 0),Yt=ae([Et("esri.identity.Credential")],Yt)});var tR={};Lo(tR,{default:()=>eR});var Pb,eR,rR=N(()=>{Lh();KN();Pb=class extends Lg{};Pb.prototype.declaredClass="esri.identity.IdentityManager";eR=new Pb;sM(eR)});var dc,Mb=N(()=>{AS();dc=class extends Ap{notify(){let e=this._observers;if(e&&e.length>0){let r=e.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});var Ab,nR=N(()=>{xs();Mb();Ab=class{constructor(e=r=>r.values().next().value){this._peeker=e,this._observable=new dc,this._items=new Set}get length(){return lr(this._observable),this._items.size}clear(){this.length!==0&&(this._items.clear(),this._observable.notify())}last(){if(this.length===0)return;let e;for(e of this._items);return e}peek(){if(this.length!==0)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return lr(this._observable),this._items.has(e)}pop(){if(this.length===0)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(this.length===0)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let r=this.length;return this._items.forEach(n=>{e(n)||this._items.delete(n)}),r!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){lr(this._observable),yield*this._items}}});var bf,iR=N(()=>{xs();Mb();bf=class{constructor(e){this._observable=new dc,this._map=new Map(e)}get size(){return lr(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){let r=this._map.delete(e);return r&&this._observable.notify(),r}entries(){return lr(this._observable),this._map.entries()}forEach(e,r){lr(this._observable),this._map.forEach((n,i)=>e.call(r,n,i,this),r)}get(e){return lr(this._observable),this._map.get(e)}has(e){return lr(this._observable),this._map.has(e)}keys(){return lr(this._observable),this._map.keys()}set(e,r){return this._map.set(e,r),this._observable.notify(),this}values(){return lr(this._observable),this._map.values()}[Symbol.iterator](){return lr(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}});function oR(t,e=g0){return new W5(t,e)}var W5,sR=N(()=>{Mn();xs();Mb();W5=class{constructor(e,r){this._observable=new dc,this._value=e,this._equalityFunction=r}get value(){return lr(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}});var aR={};Lo(aR,{QueueProcessor:()=>G5});var B5,G5,cR=N(()=>{Il();io();nR();iR();ww();sR();B5=class{constructor(e,r){this.item=e,this.controller=r,this.promise=null}},G5=class{constructor(e){this._schedule=null,this._deferreds=new bf,this._controllers=new bf,this._processingItems=new bf,this._pausedSignal=oR(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new Ab(e.peeker),this.process=e.process}destroy(){this.clear(),this._schedule=hh(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(e){let r=this._controllers.get(e);r&&r.abort()}clear(){this._queue.clear();let e=[];this._controllers.forEach(r=>e.push(r)),this._controllers.clear(),e.forEach(r=>r.abort()),this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((r,n)=>e(n))}get(e){let r=this._deferreds.get(e);return r?r.promise:void 0}isOngoing(e){return this._processingItems.has(e)}has(e){return this._deferreds.has(e)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,r){let n=this.get(e);if(n)return n;let i=new AbortController,o=null;r&&(o=li(r,()=>i.abort()));let s=()=>{let h=this._processingItems.get(e);h&&h.controller.abort(),c(),d.reject(Sn())},c=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()},a=xP(i.signal,s),d=_n();return this._deferreds.set(e,d),this._controllers.set(e,i),d.promise.then(c,c),this._queue.push(e),this._scheduleNext(),d.promise}last(){return this._queue.last()}lastPromise(){let e=this.last();return e?this.get(e):null}peek(){return this._queue.peek()}popLast(){let e=this._queue.popLast();return e&&(this._deferreds.get(e)?.reject(Sn()),this._removeItem(e)),e}reset(){let e=Array.from(this._processingItems.values());this._processingItems.clear();for(let r of e)this._queue.push(r.item),r.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.delete(e)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=gw(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,r){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(r))}_processError(e,r){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(r))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(e==null)return;let r,n=new AbortController,i=new B5(e,n);this._processingItems.set(e,i);try{r=this.process(e,n.signal)}catch(o){this._processError(i,o)}VS(r)?(i.promise=r,r.then(o=>this._processResult(i,o),o=>this._processError(i,o))):this._processResult(i,r)}}});async function ir(t,e){t instanceof URL&&(t=t.toString()),e?.query instanceof URLSearchParams&&(e.query=ja(e.query.toString().replaceAll("+"," ")));let r=$p(t),n=Nw(t);n||r||(t=Es(t));let i={url:t,requestOptions:{...e}},o=E=>({data:E,getAllHeaders:vf,getHeader:vf,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=ix(t,Ri.internalInterceptors);if(s){let E=await uR(s,i);if(E!=null)return o(E)}let c=ix(t);if(c){let E=await uR(c,i);if(E!=null)return o(E);c.after||c.error||(c=null)}if(t=i.url,(e=i.requestOptions).responseType==="image"&&(pe("host-webworker")||pe("host-node")))throw go("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(e.method==="head"){if(e.body)throw go("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw go("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await zX(),Ib)return Ib.execute(t,e);let a=new AbortController,d=li(e,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:Ri.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=e.useRequestQueue?qX(h):q5(h),v=await g.finally(()=>d?.remove());return c?.after?.(v),v}function VX(t){let e=ln(t);e&&!ir._corsServers.includes(e)&&ir._corsServers.push(e)}function lR(t){let e=ln(t);return!e||e.endsWith(".arcgis.com")||ir._corsServers.includes(e)||kw(e)}function go(t,e,r,n){let i,o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:vf,getHeader:vf,ssl:!1};if(e instanceof We)return e.details?(e.details=Ht(e.details),e.details.url=r.url,e.details.requestOptions=r.requestOptions):e.details=o,e;if(e){let s=n&&(()=>Array.from(n.headers)),c=n&&(h=>n.headers.get(h)),a=n?.status,d=e.message;d&&(i=d),s&&c&&(o.getAllHeaders=s,o.getHeader=c),o.httpStatus=(e.httpCode!=null?e.httpCode:e.code)||a||0,o.subCode=e.subcode,o.messageCode=e.messageCode,typeof e.details=="string"?(o.messages=[e.details],i??=e.details):(o.messages=e.details,i??=o.messages?.[0]),o.raw=Lb in e?e[Lb]:e}return i??="Error",Sh(e)?Sn():new We(t,i,o)}async function zX(){pe("host-webworker")&&!Ib&&(Ib=await Promise.resolve().then(()=>(TM(),CM)))}async function j5(){Zt||await Promise.resolve().then(()=>(rR(),tR))}async function WX(t){let e=t.params.url,r=t.params.requestOptions,n=t.controller.signal,i=r.body,o=null,s=null;if(fR&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),t.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:Ri.priority,redirect:"follow",signal:n},(o||s)&&(t.fetchOptions.body=o||s),r.authMode==="anonymous"&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||r.query?.token||o?.get("token")),!t.hasToken&&gM(e)&&(r.query||(r.query={}),r.query.token=bt.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!mR(e)&&!no(n)){let c;r.authMode==="immediate"?(await j5(),c=await Zt.getCredential(e,{signal:n}),t.credential=c):r.authMode==="no-prompt"?(await j5(),c=await Zt.getCredential(e,{prompt:!1,signal:n}).catch(()=>{}),t.credential=c):Zt&&(c=Zt.findCredential(e)),c&&(t.credentialToken=c.token,t.useSSL=!!c.ssl)}}function mR(t){return UX.some(e=>e.test(t))}async function BX(t){let e=t.params.url,r=t.params.requestOptions,n=t.fetchOptions??{},i=Nw(e)||$p(e),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:Ri.timeout,c=!1;if(!i){t.useSSL&&(e=Dw(e));let v={...r.query};t.credentialToken&&(v.token=t.credentialToken);let E=Rl(v);pe("esri-url-encodes-apostrophe")&&(E=E.replaceAll("'","%27"));let M=e.length+1+E.length,k;c=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||M>Ri.maxUrlLength;let $=r.useProxy||!!Dp(e);if($){let z=tM(e);k=z.path,!c&&k.length+1+M>Ri.maxUrlLength&&(c=!0),z.query&&(v={...z.query,...v})}if(n.method==="HEAD"&&(c||$)){if(c)throw M>Ri.maxUrlLength?go("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params):go("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params);if($)throw go("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}c?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?e=Fp(e,v):(n.body=Rl(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=Fp(e,v),$&&(t.useProxy=!0,e=`${k}?${e}`),v.token&&fR&&n.body instanceof FormData&&!Iw(e)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?t.withCredentials=r.withCredentials:cn(e,Rp())||(kw(e)||Zt&&Zt.findServerInfo(e)?.webTierAuth)&&(t.withCredentials=!0),t.withCredentials&&(n.credentials="include",SM(e)&&await xM(c?Fp(e,v):e))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,t.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=e,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||c||GX(r.headers)||!i&&!t.useProxy&&Ri.proxyUrl&&!lR(e)){if(ir._beforeFetch&&await ir._beforeFetch(e,n),a=await fetch(e,n),ir._afterFetch&&await ir._afterFetch(a),t.useProxy||VX(e),r.responseType==="native")d=a;else if(n.method!=="HEAD")if(a.ok){switch(o){case"array-buffer":d=await a.arrayBuffer();break;case"blob":case"image":d=await a.blob();break;default:d=await a.text()}if(h&&(clearTimeout(h),h=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=dR(d,"application/xml");break;case"document":d=dR(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let v=a.headers.get("Content-Type");if(v&&/application\/json|text\/plain/i.test(v)&&d[o==="blob"?"size":"byteLength"]<=750)try{let E=await new Response(d).json();E.error&&(d=E)}catch{}}o==="image"&&d instanceof Blob&&(d=await pR(URL.createObjectURL(d),t,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await pR(e,t)}catch(v){if(v.name==="AbortError")throw g?vM():Sn("Request canceled");if(!(!a&&v instanceof TypeError&&Ri.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||t.useProxy||lR(e))throw v;t.redoRequest=!0,iM({proxyUrl:Ri.proxyUrl,urlPrefix:ln(e)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function uR(t,e){if(t.responseData!=null)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let r,n;try{n=await t.before(e)}catch(i){r=go("request:interceptor",i,e)}if((n instanceof Error||n instanceof We)&&(r=go("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}function GX(t){if(t){for(let e of Object.getOwnPropertyNames(t))if(t[e])return!0}return!1}function dR(t,e){let r;try{r=new DOMParser().parseFromString(t,e)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function qX(t){let e=YX(t.params.url);if(!e)return q5(t);let{QueueProcessor:r}=await Promise.resolve().then(()=>(cR(),aR));return bp(jX,e.origin,()=>{let i=e.isHosted?pe("request-queue-concurrency-hosted"):pe("request-queue-concurrency-non-hosted");return new r({concurrency:i,process:o=>{if(no(o.params.requestOptions))throw go("",Sn("Request canceled"),o.params);return q5(o)}})}).push(t)}async function q5(t){let e,r;await WX(t);try{do[e,r]=await BX(t);while(!await HX(t,e,r))}catch(o){let s=go("request:server",o,t.params,e);throw s.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(s),s}let n=t.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!t.hasToken&&!t.credentialToken&&r.user?.username&&!kw(n)){let o=ln(n,!0);o&&Ri.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&_M(r.authorizedCrossOriginNoCorsDomains)}let i=t.credential;if(i&&Zt){let s=Zt.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let c=Zt.findCredential(s,i.userId);c&&Zt._getIdenticalSvcIdx(s,c)===-1&&c.resources.unshift(s)}}return{data:r,getAllHeaders:e?()=>Array.from(e.headers):vf,getHeader:e?o=>e.headers.get(o):vf,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}async function HX(t,e,r){if(t.redoRequest)return t.redoRequest=!1,!1;let n=t.params.requestOptions;if(!e||n.responseType==="native"||n.responseType==="native-request-init")return!0;let i,o;if(r&&(r.error&&typeof r.error=="object"?i=r.error:r.status==="error"&&Array.isArray(r.messages)&&(i={...r},i[Lb]=r,i.details=r.messages)),!i&&!e.ok)throw i=new Error(`Unable to load ${e.url} status: ${e.status}`),i[Lb]=r,i;let s,c=null;i&&(o=Number(i.code),c=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(c===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&$X.has(o)&&!mR(t.params.url)&&(o!==403||(!s||!FX.has(s))&&(c==null||c===2&&t.credentialToken))){await j5();try{let d=await Zt.getCredential(t.params.url,{error:go("request:server",i,t.params),prompt:a!=="no-prompt",signal:t.controller.signal,token:t.credentialToken});return t.credential=d,t.credentialToken=d.token,t.useSSL=t.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return t.credential=void 0,t.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function pR(t,e,r=!1){let n=e.controller.signal,i=new Image;return e.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=Ri.priority,i.src=t,bM(i,t,r,n)}function YX(t){let e,r;return typeof t=="string"?(e=ln(t,!0),r=lx(t)):(e=t.origin,r=lx(t.toString())),e==null?null:{origin:e,isHosted:r}}var Ib,Ri,fR,$X,FX,UX,vf,Lb,jX,Ww=N(()=>{$a();Lh();Ln();St();Mn();z0();io();Go();hM();Ah();wM();EM();Ri=bt.request,fR="FormData"in globalThis,$X=new Set([499,498,403,401]),FX=new Set(["COM_0056","COM_0057","SB_0008"]),UX=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],vf=()=>null,Lb=Symbol();ir._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],ir._beforeFetch=void 0,ir._afterFetch=void 0;jX=new Map});function Bp(t){if(!bt.assetsPath)throw nt.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new We("assets:path-not-set","config.assetsPath is not set");return Ow(bt.assetsPath,t)}var Bw=N(()=>{$a();Ww();Ln();Vt();Go()});function hR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gR=N(()=>{});var wR=P3(()=>{});var yR=P3(()=>{});var _R={};Lo(_R,{p:()=>JX});function ZX(){return bR||(bR=1,t=vR,e=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(e=e||__filename),r=function(n={}){var i,o,s,c,a=n,d=new Promise((m,L)=>{i=m,o=L}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",v=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",E=Object.assign({},a),M="./this.program",k="";function $(m){return a.locateFile?a.locateFile(m,k):k+m}if(v){var z=wR(),B=yR();k=__dirname+"/",c=m=>(m=Di(m)?new URL(m):B.normalize(m),z.readFileSync(m)),s=(m,L=!0)=>(m=Di(m)?new URL(m):B.normalize(m),new Promise((j,ie)=>{z.readFile(m,L?void 0:"utf8",(le,Pe)=>{le?ie(le):j(L?Pe.buffer:Pe)})})),!a.thisProgram&&process.argv.length>1&&(M=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?k=self.location.href:typeof document<"u"&&document.currentScript&&(k=document.currentScript.src),e&&(k=e),k=k.startsWith("blob:")?"":k.substr(0,k.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(c=m=>{var L=new XMLHttpRequest;return L.open("GET",m,!1),L.responseType="arraybuffer",L.send(null),new Uint8Array(L.response)}),s=m=>Di(m)?new Promise((L,j)=>{var ie=new XMLHttpRequest;ie.open("GET",m,!0),ie.responseType="arraybuffer",ie.onload=()=>{ie.status==200||ie.status==0&&ie.response?L(ie.response):j(ie.status)},ie.onerror=j,ie.send(null)}):fetch(m,{credentials:"same-origin"}).then(L=>L.ok?L.arrayBuffer():Promise.reject(new Error(L.status+" : "+L.url))));var q,V,X=console.log.bind(console),te=console.error.bind(console);Object.assign(a,E),E=null;var F,me,Le,Ce,Ne,we,ce,H=!1;function ee(m,L){m||hn(L)}function de(){var m=V.buffer;a.HEAP8=F=new Int8Array(m),a.HEAP16=Le=new Int16Array(m),a.HEAPU8=me=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=Ce=new Int32Array(m),a.HEAPU32=Ne=new Uint32Array(m),a.HEAPF32=we=new Float32Array(m),a.HEAPF64=ce=new Float64Array(m)}var ue=[],ve=[],ye=[];function De(){So(ue)}function Qe(){So(ve)}function ft(){So(ye)}function mr(m){ve.unshift(m)}var Kt=0,er=null;function Jn(m){Kt++}function Cn(m){if(--Kt==0&&er){var L=er;er=null,L()}}function hn(m){te(m="Aborted("+m+")"),H=!0,m+=". Build with -sASSERTIONS for more info.";var L=new WebAssembly.RuntimeError(m);throw o(L),L}var Ue,gu="data:application/octet-stream;base64,",_o=m=>m.startsWith(gu),Di=m=>m.startsWith("file://");function gc(){var m="pe-wasm.wasm";return _o(m)?m:$(m)}function Vs(m){if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Qo(m){return s(m).then(L=>new Uint8Array(L),()=>Vs(m))}function yi(m,L,j){return Qo(m).then(ie=>WebAssembly.instantiate(ie,L)).then(j,ie=>{te(`failed to asynchronously prepare wasm: ${ie}`),hn(ie)})}function wu(m,L,j,ie){return typeof WebAssembly.instantiateStreaming!="function"||_o(L)||Di(L)||v||typeof fetch!="function"?yi(L,j,ie):fetch(L,{credentials:"same-origin"}).then(le=>WebAssembly.instantiateStreaming(le,j).then(ie,function(Pe){return te(`wasm streaming compile failed: ${Pe}`),te("falling back to ArrayBuffer instantiation"),yi(L,j,ie)}))}function Ko(){return{a:kf}}function Lf(){var m=Ko();function L(ie,le){return G=ie.exports,V=G.t,de(),mr(G.u),Cn(),G}function j(ie){L(ie.instance)}return Jn(),Ue??=gc(),wu(q,Ue,m,j).catch(o),{}}var So=m=>{for(;m.length>0;)m.shift()(a)};function zs(m,L="i8"){switch(L.endsWith("*")&&(L="*"),L){case"i1":case"i8":return F[m];case"i16":return Le[m>>1];case"i32":return Ce[m>>2];case"i64":hn("to do getValue(i64) use WASM_BIGINT");case"float":return we[m>>2];case"double":return ce[m>>3];case"*":return Ne[m>>2];default:hn(`invalid type for getValue: ${L}`)}}var wc=typeof TextDecoder<"u"?new TextDecoder:void 0,yc=(m,L=0,j=NaN)=>{for(var ie=L+j,le=L;m[le]&&!(le>=ie);)++le;if(le-L>16&&m.buffer&&wc)return wc.decode(m.subarray(L,le));for(var Pe="";L<le;){var Ve=m[L++];if(128&Ve){var Re=63&m[L++];if((224&Ve)!=192){var tt=63&m[L++];if((Ve=(240&Ve)==224?(15&Ve)<<12|Re<<6|tt:(7&Ve)<<18|Re<<12|tt<<6|63&m[L++])<65536)Pe+=String.fromCharCode(Ve);else{var yn=Ve-65536;Pe+=String.fromCharCode(55296|yn>>10,56320|1023&yn)}}else Pe+=String.fromCharCode((31&Ve)<<6|Re)}else Pe+=String.fromCharCode(Ve)}return Pe},hr=(m,L)=>m?yc(me,m,L):"";function yu(m,L,j){return 0}var xo=(m,L,j,ie)=>{if(!(ie>0))return 0;for(var le=j,Pe=j+ie-1,Ve=0;Ve<m.length;++Ve){var Re=m.charCodeAt(Ve);if(Re>=55296&&Re<=57343&&(Re=65536+((1023&Re)<<10)|1023&m.charCodeAt(++Ve)),Re<=127){if(j>=Pe)break;L[j++]=Re}else if(Re<=2047){if(j+1>=Pe)break;L[j++]=192|Re>>6,L[j++]=128|63&Re}else if(Re<=65535){if(j+2>=Pe)break;L[j++]=224|Re>>12,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}else{if(j+3>=Pe)break;L[j++]=240|Re>>18,L[j++]=128|Re>>12&63,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}}return L[j]=0,j-le},Ws=(m,L,j)=>xo(m,me,L,j);function bc(m,L,j){return 0}function bu(m,L,j,ie){}var vc=m=>m%4==0&&(m%100!=0||m%400==0),_c=[0,31,60,91,121,152,182,213,244,274,305,335],Sc=[0,31,59,90,120,151,181,212,243,273,304,334],xc=m=>(vc(m.getFullYear())?_c:Sc)[m.getMonth()]+m.getDate()-1,vu=(m,L)=>L+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*L:NaN;function $i(m,L,j){var ie=vu(m,L),le=new Date(1e3*ie);Ce[j>>2]=le.getSeconds(),Ce[j+4>>2]=le.getMinutes(),Ce[j+8>>2]=le.getHours(),Ce[j+12>>2]=le.getDate(),Ce[j+16>>2]=le.getMonth(),Ce[j+20>>2]=le.getFullYear()-1900,Ce[j+24>>2]=le.getDay();var Pe=0|xc(le);Ce[j+28>>2]=Pe,Ce[j+36>>2]=-60*le.getTimezoneOffset();var Ve=new Date(le.getFullYear(),0,1),Re=new Date(le.getFullYear(),6,1).getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=0|(Re!=tt&&le.getTimezoneOffset()==Math.min(tt,Re));Ce[j+32>>2]=yn}var _u=()=>2147483648,Ec=(m,L)=>Math.ceil(m/L)*L,es=m=>{var L=(m-V.buffer.byteLength+65535)/65536|0;try{return V.grow(L),de(),1}catch{}},bi={},Eo=()=>M||"./this.program",Fi=()=>{if(!Fi.strings){var m={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Eo()};for(var L in bi)bi[L]===void 0?delete m[L]:m[L]=bi[L];var j=[];for(var L in m)j.push(`${L}=${m[L]}`);Fi.strings=j}return Fi.strings},Cc=(m,L)=>{for(var j=0;j<m.length;++j)F[L++]=m.charCodeAt(j);F[L]=0};function Su(m,L,j,ie,le){return 70}var Tc=[null,[],[]],Bs=(m,L)=>{var j=Tc[m];L===0||L===10?((m===1?X:te)(yc(j)),j.length=0):j.push(L)},xu=m=>{for(var L=0,j=0;j<m.length;++j){var ie=m.charCodeAt(j);ie<=127?L++:ie<=2047?L+=2:ie>=55296&&ie<=57343?(L+=4,++j):L+=3}return L};function Eu(m,L,j){var ie=xu(m)+1,le=new Array(ie);return xo(m,le,0,le.length),le}var kf={c:yu,q:(m,L,j)=>{},h:bc,d:bu,o:m=>{},n:(m,L)=>{},p:(m,L,j)=>{},l:()=>{hn("")},s:(m,L,j)=>me.copyWithin(m,L,L+j),j:$i,r:(m,L,j,ie)=>{var le=new Date().getFullYear(),Pe=new Date(le,0,1),Ve=new Date(le,6,1),Re=Pe.getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=Math.max(Re,tt);Ne[m>>2]=60*yn,Ce[L>>2]=+(Re!=tt);var qg=Zg=>{var pv=Zg>=0?"-":"+",Xg=Math.abs(Zg);return`UTC${pv}${String(Math.floor(Xg/60)).padStart(2,"0")}${String(Xg%60).padStart(2,"0")}`},Hg=qg(Re),Yg=qg(tt);tt<Re?(Ws(Hg,j,17),Ws(Yg,ie,17)):(Ws(Hg,ie,17),Ws(Yg,j,17))},i:()=>Date.now(),m:m=>{var L=me.length;m>>>=0;var j=_u();if(m>j)return!1;for(var ie=1;ie<=4;ie*=2){var le=L*(1+.2/ie);le=Math.min(le,m+100663296);var Pe=Math.min(j,Ec(Math.max(m,le),65536));if(es(Pe))return!0}return!1},e:(m,L)=>{var j=0;return Fi().forEach((ie,le)=>{var Pe=L+j;Ne[m+4*le>>2]=Pe,Cc(ie,Pe),j+=ie.length+1}),0},f:(m,L)=>{var j=Fi();Ne[m>>2]=j.length;var ie=0;return j.forEach(le=>ie+=le.length+1),Ne[L>>2]=ie,0},a:m=>52,g:(m,L,j,ie)=>52,k:Su,b:(m,L,j,ie)=>{for(var le=0,Pe=0;Pe<j;Pe++){var Ve=Ne[L>>2],Re=Ne[L+4>>2];L+=8;for(var tt=0;tt<Re;tt++)Bs(m,me[Ve+tt]);le+=Re}return Ne[ie>>2]=le,0}},G=Lf();a._webidl_free=m=>(a._webidl_free=G.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=G.w)(m);var Co,Cu=a._emscripten_bind_PeObject_getCode_0=m=>(Cu=a._emscripten_bind_PeObject_getCode_0=G.x)(m),Tu=a._emscripten_bind_PeObject_getName_1=(m,L)=>(Tu=a._emscripten_bind_PeObject_getName_1=G.y)(m,L),Pc=a._emscripten_bind_PeObject_getType_0=m=>(Pc=a._emscripten_bind_PeObject_getType_0=G.z)(m),Kr=a._emscripten_bind_PeCoordsys_isEqual_1=(m,L)=>(Kr=a._emscripten_bind_PeCoordsys_isEqual_1=G.A)(m,L),vi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(vi=a._emscripten_bind_PeCoordsys_getCode_0=G.B)(m),Vn=a._emscripten_bind_PeCoordsys_getName_1=(m,L)=>(Vn=a._emscripten_bind_PeCoordsys_getName_1=G.C)(m,L),Pu=a._emscripten_bind_PeCoordsys_getType_0=m=>(Pu=a._emscripten_bind_PeCoordsys_getType_0=G.D)(m),Mu=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Mu=a._emscripten_bind_PeUnit_getUnitFactor_0=G.E)(m),Gs=a._emscripten_bind_PeUnit_getCode_0=m=>(Gs=a._emscripten_bind_PeUnit_getCode_0=G.F)(m),Qn=a._emscripten_bind_PeUnit_getName_1=(m,L)=>(Qn=a._emscripten_bind_PeUnit_getName_1=G.G)(m,L),je=a._emscripten_bind_PeUnit_getType_0=m=>(je=a._emscripten_bind_PeUnit_getType_0=G.H)(m),js=a._emscripten_bind_VoidPtr___destroy___0=m=>(js=a._emscripten_bind_VoidPtr___destroy___0=G.I)(m),Mc=a._emscripten_bind_PeAngunit_getCode_0=m=>(Mc=a._emscripten_bind_PeAngunit_getCode_0=G.J)(m),Ac=a._emscripten_bind_PeAngunit_getName_1=(m,L)=>(Ac=a._emscripten_bind_PeAngunit_getName_1=G.K)(m,L),Ic=a._emscripten_bind_PeAngunit_getType_0=m=>(Ic=a._emscripten_bind_PeAngunit_getType_0=G.L)(m),To=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(To=a._emscripten_bind_PeAngunit_getUnitFactor_0=G.M)(m),qs=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(qs=a._emscripten_bind_PeDatum_getSpheroid_0=G.N)(m),Au=a._emscripten_bind_PeDatum_getCode_0=m=>(Au=a._emscripten_bind_PeDatum_getCode_0=G.O)(m),Iu=a._emscripten_bind_PeDatum_getName_1=(m,L)=>(Iu=a._emscripten_bind_PeDatum_getName_1=G.P)(m,L),Lu=a._emscripten_bind_PeDatum_getType_0=m=>(Lu=a._emscripten_bind_PeDatum_getType_0=G.Q)(m),Lc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(Lc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=G.R)(m),ku=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(ku=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=G.S)(m),kc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(kc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=G.T)(m),Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=G.U)(m),ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=G.V)(m),Nc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Nc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=G.W)(m),Hs=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(Hs=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=G.X)(m),Rc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Rc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=G.Y)(m),Ou=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(Ou=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=G.Z)(m),Ys=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(Ys=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=G._)(m),Nu=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(Nu=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=G.$)(m),Zs=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Zs=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=G.aa)(m),Ru=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Ru=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=G.ba)(m),Du=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Du=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=G.ca)(m),$u=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>($u=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=G.da)(m),Fu=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(Fu=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=G.ea)(m),Uu=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Uu=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=G.fa)(m),Dc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Dc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=G.ga)(m),rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=G.ha)(m),Ui=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(Ui=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=G.ia)(m),Xs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Xs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=G.ja)(m),ns=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(ns=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=G.ka)(m),Kn=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(Kn=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=G.la)(m),Po=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(Po=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=G.ma)(m),Vu=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Vu=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=G.na)(m),$c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>($c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=G.oa)(m),Fc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Fc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=G.pa)(m),Js=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Js=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=G.qa)(m),zu=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(zu=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=G.ra)(m),Wu=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Wu=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=G.sa)(m),Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=G.ta)(m),Bu=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(Bu=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=G.ua)(m),Gu=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Gu=a._emscripten_bind_PeDouble_PeDouble_1=G.va)(m),Vc=a._emscripten_bind_PeDouble_get_val_0=m=>(Vc=a._emscripten_bind_PeDouble_get_val_0=G.wa)(m),zc=a._emscripten_bind_PeDouble_set_val_1=(m,L)=>(zc=a._emscripten_bind_PeDouble_set_val_1=G.xa)(m,L),ju=a._emscripten_bind_PeDouble___destroy___0=m=>(ju=a._emscripten_bind_PeDouble___destroy___0=G.ya)(m),Qs=a._emscripten_bind_PeFactory_initialize_1=m=>(Qs=a._emscripten_bind_PeFactory_initialize_1=G.za)(m),qu=a._emscripten_bind_PeFactory_factoryByType_2=(m,L)=>(qu=a._emscripten_bind_PeFactory_factoryByType_2=G.Aa)(m,L),Wc=a._emscripten_bind_PeFactory_fromString_2=(m,L)=>(Wc=a._emscripten_bind_PeFactory_fromString_2=G.Ba)(m,L),Hu=a._emscripten_bind_PeFactory_getCode_1=m=>(Hu=a._emscripten_bind_PeFactory_getCode_1=G.Ca)(m),is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,L,j,ie,le,Pe)=>(is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=G.Da)(m,L,j,ie,le,Pe),Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=G.Ea)(m),Bc=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Bc=a._emscripten_bind_PeGCSExtent_getSLat_0=G.Fa)(m),Gc=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(Gc=a._emscripten_bind_PeGCSExtent_getRLon_0=G.Ga)(m),Zu=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(Zu=a._emscripten_bind_PeGCSExtent_getNLat_0=G.Ha)(m),jc=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(jc=a._emscripten_bind_PeGCSExtent___destroy___0=G.Ia)(m),qc=a._emscripten_bind_PeGeogcs_Delete_0=m=>(qc=a._emscripten_bind_PeGeogcs_Delete_0=G.Ja)(m),Xu=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,L)=>(Xu=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=G.Ka)(m,L),Vi=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(Vi=a._emscripten_bind_PeGeogcs_getDatum_0=G.La)(m),Mo=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(Mo=a._emscripten_bind_PeGeogcs_getPrimem_0=G.Ma)(m),Ju=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(Ju=a._emscripten_bind_PeGeogcs_getUnit_0=G.Na)(m),Ks=a._emscripten_bind_PeGeogcs_isEqual_1=(m,L)=>(Ks=a._emscripten_bind_PeGeogcs_isEqual_1=G.Oa)(m,L),ea=a._emscripten_bind_PeGeogcs_getCode_0=m=>(ea=a._emscripten_bind_PeGeogcs_getCode_0=G.Pa)(m),Qu=a._emscripten_bind_PeGeogcs_getName_1=(m,L)=>(Qu=a._emscripten_bind_PeGeogcs_getName_1=G.Qa)(m,L),os=a._emscripten_bind_PeGeogcs_getType_0=m=>(os=a._emscripten_bind_PeGeogcs_getType_0=G.Ra)(m),Hc=a._emscripten_bind_PeGeogtran_isEqual_1=(m,L)=>(Hc=a._emscripten_bind_PeGeogtran_isEqual_1=G.Sa)(m,L),Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=G.Ta)(m),ta=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(ta=a._emscripten_bind_PeGeogtran_getGeogcs2_0=G.Ua)(m),Zc=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Zc=a._emscripten_bind_PeGeogtran_getParameters_0=G.Va)(m),Ku=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(Ku=a._emscripten_bind_PeGeogtran_loadConstants_0=G.Wa)(m),ei=a._emscripten_bind_PeGeogtran_getCode_0=m=>(ei=a._emscripten_bind_PeGeogtran_getCode_0=G.Xa)(m),ed=a._emscripten_bind_PeGeogtran_getName_1=(m,L)=>(ed=a._emscripten_bind_PeGeogtran_getName_1=G.Ya)(m,L),td=a._emscripten_bind_PeGeogtran_getType_0=m=>(td=a._emscripten_bind_PeGeogtran_getType_0=G.Za)(m),rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,L,j,ie,le,Pe)=>(rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=G._a)(m,L,j,ie,le,Pe),Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=G.$a)(m),Jc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Jc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=G.ab)(m),gr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(gr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=G.bb)(m),nd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(nd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=G.cb)(m),id=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(id=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=G.db)(m),od=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(od=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=G.eb)(m),sd=a._emscripten_bind_PeHorizon_getNump_0=m=>(sd=a._emscripten_bind_PeHorizon_getNump_0=G.fb)(m),ad=a._emscripten_bind_PeHorizon_getKind_0=m=>(ad=a._emscripten_bind_PeHorizon_getKind_0=G.gb)(m),Qc=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Qc=a._emscripten_bind_PeHorizon_getInclusive_0=G.hb)(m),cd=a._emscripten_bind_PeHorizon_getSize_0=m=>(cd=a._emscripten_bind_PeHorizon_getSize_0=G.ib)(m),Kc=a._emscripten_bind_PeHorizon_getCoord_0=m=>(Kc=a._emscripten_bind_PeHorizon_getCoord_0=G.jb)(m),el=a._emscripten_bind_PeInteger_PeInteger_1=m=>(el=a._emscripten_bind_PeInteger_PeInteger_1=G.kb)(m),ss=a._emscripten_bind_PeInteger_get_val_0=m=>(ss=a._emscripten_bind_PeInteger_get_val_0=G.lb)(m),_i=a._emscripten_bind_PeInteger_set_val_1=(m,L)=>(_i=a._emscripten_bind_PeInteger_set_val_1=G.mb)(m,L),as=a._emscripten_bind_PeInteger___destroy___0=m=>(as=a._emscripten_bind_PeInteger___destroy___0=G.nb)(m),ld=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,L,j,ie,le,Pe,Ve,Re,tt,yn)=>(ld=a._emscripten_bind_PeLineType_geodetic_distance_10=G.ob)(m,L,j,ie,le,Pe,Ve,Re,tt,yn),tl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,L,j,ie,le,Pe,Ve,Re,tt)=>(tl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=G.pb)(m,L,j,ie,le,Pe,Ve,Re,tt),rl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,L,j,ie,le,Pe,Ve,Re)=>(rl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=G.qb)(m,L,j,ie,le,Pe,Ve,Re),nl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,L,j,ie,le,Pe,Ve,Re,tt)=>(nl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=G.rb)(m,L,j,ie,le,Pe,Ve,Re,tt),Ao=a._emscripten_bind_PeMath_phi_to_eta_2=(m,L)=>(Ao=a._emscripten_bind_PeMath_phi_to_eta_2=G.sb)(m,L),ud=a._emscripten_bind_PeMath_eta_to_phi_2=(m,L)=>(ud=a._emscripten_bind_PeMath_eta_to_phi_2=G.tb)(m,L),dd=a._emscripten_bind_PeMath_phi_to_phig_2=(m,L)=>(dd=a._emscripten_bind_PeMath_phi_to_phig_2=G.ub)(m,L),pd=a._emscripten_bind_PeMath_q_3=(m,L,j)=>(pd=a._emscripten_bind_PeMath_q_3=G.vb)(m,L,j),fd=a._emscripten_bind_PeMath_q90_2=(m,L)=>(fd=a._emscripten_bind_PeMath_q90_2=G.wb)(m,L),md=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(md=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=G.xb)(m),hd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(hd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=G.yb)(m),ra=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(ra=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=G.zb)(m),gd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(gd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=G.Ab)(m),cs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(cs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=G.Bb)(m),wd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(wd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=G.Cb)(m),na=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(na=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=G.Db)(m),yd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(yd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=G.Eb)(m),bd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(bd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=G.Fb)(m),il=a._emscripten_bind_PeParameter_getValue_0=m=>(il=a._emscripten_bind_PeParameter_getValue_0=G.Gb)(m),Io=a._emscripten_bind_PeParameter_getCode_0=m=>(Io=a._emscripten_bind_PeParameter_getCode_0=G.Hb)(m),ti=a._emscripten_bind_PeParameter_getName_1=(m,L)=>(ti=a._emscripten_bind_PeParameter_getName_1=G.Ib)(m,L),ol=a._emscripten_bind_PeParameter_getType_0=m=>(ol=a._emscripten_bind_PeParameter_getType_0=G.Jb)(m),ia=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(ia=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=G.Kb)(m),vd=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(vd=a._emscripten_bind_PePCSInfo_getDomainMinx_0=G.Lb)(m),_d=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(_d=a._emscripten_bind_PePCSInfo_getDomainMiny_0=G.Mb)(m),Sd=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Sd=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=G.Nb)(m),xd=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(xd=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=G.Ob)(m),Ed=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(Ed=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=G.Pb)(m),Cd=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Cd=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=G.Qb)(m),Td=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(Td=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=G.Rb)(m),Pd=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Pd=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=G.Sb)(m),Md=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Md=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=G.Tb)(m),Ad=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(Ad=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=G.Ub)(m),f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=G.Vb)(m),p=a._emscripten_bind_PePCSInfo_generate_2=(m,L)=>(p=a._emscripten_bind_PePCSInfo_generate_2=G.Wb)(m,L),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=G.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=G.Yb)(m),C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=m=>(C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=G.Zb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=G._b)(m),A=a._emscripten_bind_PePrimem_getLongitude_0=m=>(A=a._emscripten_bind_PePrimem_getLongitude_0=G.$b)(m),O=a._emscripten_bind_PePrimem_getCode_0=m=>(O=a._emscripten_bind_PePrimem_getCode_0=G.ac)(m),R=a._emscripten_bind_PePrimem_getName_1=(m,L)=>(R=a._emscripten_bind_PePrimem_getName_1=G.bc)(m,L),U=a._emscripten_bind_PePrimem_getType_0=m=>(U=a._emscripten_bind_PePrimem_getType_0=G.cc)(m),D=a._emscripten_bind_PeProjcs_Delete_0=m=>(D=a._emscripten_bind_PeProjcs_Delete_0=G.dc)(m),Z=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Z=a._emscripten_bind_PeProjcs_getGeogcs_0=G.ec)(m),oe=a._emscripten_bind_PeProjcs_getProjection_0=m=>(oe=a._emscripten_bind_PeProjcs_getProjection_0=G.fc)(m),ge=a._emscripten_bind_PeProjcs_getParameters_0=m=>(ge=a._emscripten_bind_PeProjcs_getParameters_0=G.gc)(m),he=a._emscripten_bind_PeProjcs_getUnit_0=m=>(he=a._emscripten_bind_PeProjcs_getUnit_0=G.hc)(m),be=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(be=a._emscripten_bind_PeProjcs_loadConstants_0=G.ic)(m),ke=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(ke=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=G.jc)(m),Ae=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Ae=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=G.kc)(m),Fe=a._emscripten_bind_PeProjcs_isEqual_1=(m,L)=>(Fe=a._emscripten_bind_PeProjcs_isEqual_1=G.lc)(m,L),Xe=a._emscripten_bind_PeProjcs_getCode_0=m=>(Xe=a._emscripten_bind_PeProjcs_getCode_0=G.mc)(m),Ke=a._emscripten_bind_PeProjcs_getName_1=(m,L)=>(Ke=a._emscripten_bind_PeProjcs_getName_1=G.nc)(m,L),Be=a._emscripten_bind_PeProjcs_getType_0=m=>(Be=a._emscripten_bind_PeProjcs_getType_0=G.oc)(m),Je=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(Je=a._emscripten_bind_PeSpheroid_getAxis_0=G.pc)(m),wr=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(wr=a._emscripten_bind_PeSpheroid_getFlattening_0=G.qc)(m),vt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(vt=a._emscripten_bind_PeSpheroid_getCode_0=G.rc)(m),Dr=a._emscripten_bind_PeSpheroid_getName_1=(m,L)=>(Dr=a._emscripten_bind_PeSpheroid_getName_1=G.sc)(m,L),gn=a._emscripten_bind_PeSpheroid_getType_0=m=>(gn=a._emscripten_bind_PeSpheroid_getType_0=G.tc)(m),Tn=a._emscripten_bind_PeVersion_version_string_0=m=>(Tn=a._emscripten_bind_PeVersion_version_string_0=G.uc)(m);function ls(){function m(){Co||(Co=!0,a.calledRun=!0,H||(Qe(),i(a),ft()))}Kt>0||(De(),Kt>0||m())}function ot(){}function oa(m){return(m||ot).__cache__}function tr(m,L){var j=oa(L),ie=j[m];return ie||((ie=Object.create((L||ot).prototype)).ptr=m,j[m]=ie)}function nv(m,L){return tr(m.ptr,L)}function iv(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete oa(m.__class__)[m.ptr]}function ov(m,L){return m.ptr===L.ptr}function sv(m){return m.ptr}function av(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=G.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=G.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=G.xc)(),a._pe_geog_to_geog=(m,L,j,ie,le)=>(a._pe_geog_to_geog=G.zc)(m,L,j,ie,le),a._pe_geog_to_proj=(m,L,j)=>(a._pe_geog_to_proj=G.Ac)(m,L,j),a._pe_geog_to_dd=(m,L,j,ie,le)=>(a._pe_geog_to_dd=G.Bc)(m,L,j,ie,le),a._pe_dd_to_geog=(m,L,j,ie)=>(a._pe_dd_to_geog=G.Cc)(m,L,j,ie),a._pe_geog_to_ddm=(m,L,j,ie,le)=>(a._pe_geog_to_ddm=G.Dc)(m,L,j,ie,le),a._pe_ddm_to_geog=(m,L,j,ie)=>(a._pe_ddm_to_geog=G.Ec)(m,L,j,ie),a._pe_geog_to_dms=(m,L,j,ie,le)=>(a._pe_geog_to_dms=G.Fc)(m,L,j,ie,le),a._pe_dms_to_geog=(m,L,j,ie)=>(a._pe_dms_to_geog=G.Gc)(m,L,j,ie),a._pe_geog_to_mgrs_extended=(m,L,j,ie,le,Pe,Ve)=>(a._pe_geog_to_mgrs_extended=G.Hc)(m,L,j,ie,le,Pe,Ve),a._pe_mgrs_to_geog_extended=(m,L,j,ie,le)=>(a._pe_mgrs_to_geog_extended=G.Ic)(m,L,j,ie,le),a._pe_geog_to_usng=(m,L,j,ie,le,Pe,Ve)=>(a._pe_geog_to_usng=G.Jc)(m,L,j,ie,le,Pe,Ve),a._pe_usng_to_geog=(m,L,j,ie)=>(a._pe_usng_to_geog=G.Kc)(m,L,j,ie),a._pe_geog_to_utm=(m,L,j,ie,le)=>(a._pe_geog_to_utm=G.Lc)(m,L,j,ie,le),a._pe_utm_to_geog=(m,L,j,ie,le)=>(a._pe_utm_to_geog=G.Mc)(m,L,j,ie,le),a._pe_object_to_string_ext=(m,L,j)=>(a._pe_object_to_string_ext=G.Nc)(m,L,j),a._pe_proj_to_geog_center=(m,L,j,ie)=>(a._pe_proj_to_geog_center=G.Oc)(m,L,j,ie),a.getValue=zs,a.UTF8ToString=hr,er=function m(){Co||ls(),Co||(er=m)},ls(),ot.prototype=Object.create(ot.prototype),ot.prototype.constructor=ot,ot.prototype.__class__=ot,ot.__cache__={},a.WrapperObject=ot,a.getCache=oa,a.wrapPointer=tr,a.castObject=nv,a.NULL=tr(0),a.destroy=iv,a.compare=ov,a.getPointer=sv,a.getClass=av;var He={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(He.needed){for(var m=0;m<He.temps.length;m++)a._webidl_free(He.temps[m]);He.temps.length=0,a._webidl_free(He.buffer),He.buffer=0,He.size+=He.needed,He.needed=0}He.buffer||(He.size+=128,He.buffer=a._webidl_malloc(He.size),ee(He.buffer)),He.pos=0},alloc(m,L){ee(He.buffer);var j,ie=L.BYTES_PER_ELEMENT,le=m.length*ie;return le=Ec(le,8),He.pos+le>=He.size?(ee(le>0),He.needed+=le,j=a._webidl_malloc(le),He.temps.push(j)):(j=He.buffer+He.pos,He.pos+=le),j},copy(m,L,j){j/=L.BYTES_PER_ELEMENT;for(var ie=0;ie<m.length;ie++)L[j+ie]=m[ie]}};function Of(m){if(typeof m=="string"){var L=Eu(m),j=He.alloc(L,F);return He.copy(L,F,j),j}return m}function zn(m){if(typeof m=="object"){var L=He.alloc(m,F);return He.copy(m,F,L),L}return m}function cv(m){if(typeof m=="object"){var L=He.alloc(m,Le);return He.copy(m,Le,L),L}return m}function lv(m){if(typeof m=="object"){var L=He.alloc(m,Ce);return He.copy(m,Ce,L),L}return m}function uv(m){if(typeof m=="object"){var L=He.alloc(m,we);return He.copy(m,we,L),L}return m}function dv(m){if(typeof m=="object"){var L=He.alloc(m,ce);return He.copy(m,ce,L),L}return m}function Gt(){throw"cannot construct a PeObject, no constructor in IDL"}function Tr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Pr(){throw"cannot construct a PeUnit, no constructor in IDL"}function zi(){throw"cannot construct a VoidPtr, no constructor in IDL"}function $r(){throw"cannot construct a PeAngunit, no constructor in IDL"}function Fr(){throw"cannot construct a PeDatum, no constructor in IDL"}function se(){throw"cannot construct a PeDefs, no constructor in IDL"}function Mr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Gu(m),oa(Mr)[this.ptr]=this}function en(){throw"cannot construct a PeFactory, no constructor in IDL"}function yr(m,L,j,ie,le,Pe){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),this.ptr=is(m,L,j,ie,le,Pe),oa(yr)[this.ptr]=this}function mt(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function $t(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function Pn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function wn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Wn(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function dr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Ar(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=el(m),oa(Ar)[this.ptr]=this}function tn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Ir(){throw"cannot construct a PeMath, no constructor in IDL"}function _t(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function jt(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function rn(){throw"cannot construct a PeParameter, no constructor in IDL"}function qe(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Ur(){throw"cannot construct a PePrimem, no constructor in IDL"}function ut(){throw"cannot construct a PeProjcs, no constructor in IDL"}function br(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Wi(){throw"cannot construct a PeVersion, no constructor in IDL"}return Gt.prototype=Object.create(ot.prototype),Gt.prototype.constructor=Gt,Gt.prototype.__class__=Gt,Gt.__cache__={},a.PeObject=Gt,Gt.prototype.getCode=Gt.prototype.getCode=function(){var m=this.ptr;return Cu(m)},Gt.prototype.getName=Gt.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Tu(L,m))},Gt.prototype.getType=Gt.prototype.getType=function(){var m=this.ptr;return Pc(m)},Tr.prototype=Object.create(Gt.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},a.PeCoordsys=Tr,Tr.prototype.isEqual=Tr.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Kr(L,m)},Tr.prototype.getCode=Tr.prototype.getCode=function(){var m=this.ptr;return vi(m)},Tr.prototype.getName=Tr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Vn(L,m))},Tr.prototype.getType=Tr.prototype.getType=function(){var m=this.ptr;return Pu(m)},Pr.prototype=Object.create(Gt.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},a.PeUnit=Pr,Pr.prototype.getUnitFactor=Pr.prototype.getUnitFactor=function(){var m=this.ptr;return Mu(m)},Pr.prototype.getCode=Pr.prototype.getCode=function(){var m=this.ptr;return Gs(m)},Pr.prototype.getName=Pr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Qn(L,m))},Pr.prototype.getType=Pr.prototype.getType=function(){var m=this.ptr;return je(m)},zi.prototype=Object.create(ot.prototype),zi.prototype.constructor=zi,zi.prototype.__class__=zi,zi.__cache__={},a.VoidPtr=zi,zi.prototype.__destroy__=zi.prototype.__destroy__=function(){var m=this.ptr;js(m)},$r.prototype=Object.create(Pr.prototype),$r.prototype.constructor=$r,$r.prototype.__class__=$r,$r.__cache__={},a.PeAngunit=$r,$r.prototype.getCode=$r.prototype.getCode=function(){var m=this.ptr;return Mc(m)},$r.prototype.getName=$r.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ac(L,m))},$r.prototype.getType=$r.prototype.getType=function(){var m=this.ptr;return Ic(m)},$r.prototype.getUnitFactor=$r.prototype.getUnitFactor=function(){var m=this.ptr;return To(m)},Fr.prototype=Object.create(Gt.prototype),Fr.prototype.constructor=Fr,Fr.prototype.__class__=Fr,Fr.__cache__={},a.PeDatum=Fr,Fr.prototype.getSpheroid=Fr.prototype.getSpheroid=function(){var m=this.ptr;return tr(qs(m),br)},Fr.prototype.getCode=Fr.prototype.getCode=function(){var m=this.ptr;return Au(m)},Fr.prototype.getName=Fr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Iu(L,m))},Fr.prototype.getType=Fr.prototype.getType=function(){var m=this.ptr;return Lu(m)},se.prototype=Object.create(ot.prototype),se.prototype.constructor=se,se.prototype.__class__=se,se.__cache__={},a.PeDefs=se,se.prototype.get_PE_BUFFER_MAX=se.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return Lc(m)},Object.defineProperty(se.prototype,"PE_BUFFER_MAX",{get:se.prototype.get_PE_BUFFER_MAX}),se.prototype.get_PE_NAME_MAX=se.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return ku(m)},Object.defineProperty(se.prototype,"PE_NAME_MAX",{get:se.prototype.get_PE_NAME_MAX}),se.prototype.get_PE_MGRS_MAX=se.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return kc(m)},Object.defineProperty(se.prototype,"PE_MGRS_MAX",{get:se.prototype.get_PE_MGRS_MAX}),se.prototype.get_PE_USNG_MAX=se.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return Oc(m)},Object.defineProperty(se.prototype,"PE_USNG_MAX",{get:se.prototype.get_PE_USNG_MAX}),se.prototype.get_PE_DD_MAX=se.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return ts(m)},Object.defineProperty(se.prototype,"PE_DD_MAX",{get:se.prototype.get_PE_DD_MAX}),se.prototype.get_PE_DMS_MAX=se.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Nc(m)},Object.defineProperty(se.prototype,"PE_DMS_MAX",{get:se.prototype.get_PE_DMS_MAX}),se.prototype.get_PE_DDM_MAX=se.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return Hs(m)},Object.defineProperty(se.prototype,"PE_DDM_MAX",{get:se.prototype.get_PE_DDM_MAX}),se.prototype.get_PE_UTM_MAX=se.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return Rc(m)},Object.defineProperty(se.prototype,"PE_UTM_MAX",{get:se.prototype.get_PE_UTM_MAX}),se.prototype.get_PE_PARM_MAX=se.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return Ou(m)},Object.defineProperty(se.prototype,"PE_PARM_MAX",{get:se.prototype.get_PE_PARM_MAX}),se.prototype.get_PE_TYPE_NONE=se.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return Ys(m)},Object.defineProperty(se.prototype,"PE_TYPE_NONE",{get:se.prototype.get_PE_TYPE_NONE}),se.prototype.get_PE_TYPE_GEOGCS=se.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return Nu(m)},Object.defineProperty(se.prototype,"PE_TYPE_GEOGCS",{get:se.prototype.get_PE_TYPE_GEOGCS}),se.prototype.get_PE_TYPE_PROJCS=se.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return Zs(m)},Object.defineProperty(se.prototype,"PE_TYPE_PROJCS",{get:se.prototype.get_PE_TYPE_PROJCS}),se.prototype.get_PE_TYPE_GEOGTRAN=se.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Ru(m)},Object.defineProperty(se.prototype,"PE_TYPE_GEOGTRAN",{get:se.prototype.get_PE_TYPE_GEOGTRAN}),se.prototype.get_PE_TYPE_COORDSYS=se.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return Du(m)},Object.defineProperty(se.prototype,"PE_TYPE_COORDSYS",{get:se.prototype.get_PE_TYPE_COORDSYS}),se.prototype.get_PE_TYPE_UNIT=se.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return $u(m)},Object.defineProperty(se.prototype,"PE_TYPE_UNIT",{get:se.prototype.get_PE_TYPE_UNIT}),se.prototype.get_PE_TYPE_LINUNIT=se.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return Fu(m)},Object.defineProperty(se.prototype,"PE_TYPE_LINUNIT",{get:se.prototype.get_PE_TYPE_LINUNIT}),se.prototype.get_PE_STR_OPTS_NONE=se.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Uu(m)},Object.defineProperty(se.prototype,"PE_STR_OPTS_NONE",{get:se.prototype.get_PE_STR_OPTS_NONE}),se.prototype.get_PE_STR_AUTH_NONE=se.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Dc(m)},Object.defineProperty(se.prototype,"PE_STR_AUTH_NONE",{get:se.prototype.get_PE_STR_AUTH_NONE}),se.prototype.get_PE_STR_AUTH_TOP=se.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return rs(m)},Object.defineProperty(se.prototype,"PE_STR_AUTH_TOP",{get:se.prototype.get_PE_STR_AUTH_TOP}),se.prototype.get_PE_STR_NAME_CANON=se.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return Ui(m)},Object.defineProperty(se.prototype,"PE_STR_NAME_CANON",{get:se.prototype.get_PE_STR_NAME_CANON}),se.prototype.get_PE_STR_FMT_WKT=se.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return Xs(m)},Object.defineProperty(se.prototype,"PE_STR_FMT_WKT",{get:se.prototype.get_PE_STR_FMT_WKT}),se.prototype.get_PE_STR_FMT_WKT2=se.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return ns(m)},Object.defineProperty(se.prototype,"PE_STR_FMT_WKT2",{get:se.prototype.get_PE_STR_FMT_WKT2}),se.prototype.get_PE_PARM_X0=se.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return Kn(m)},Object.defineProperty(se.prototype,"PE_PARM_X0",{get:se.prototype.get_PE_PARM_X0}),se.prototype.get_PE_PARM_ND=se.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return Po(m)},Object.defineProperty(se.prototype,"PE_PARM_ND",{get:se.prototype.get_PE_PARM_ND}),se.prototype.get_PE_TRANSFORM_1_TO_2=se.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Vu(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_1_TO_2",{get:se.prototype.get_PE_TRANSFORM_1_TO_2}),se.prototype.get_PE_TRANSFORM_2_TO_1=se.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return $c(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_2_TO_1",{get:se.prototype.get_PE_TRANSFORM_2_TO_1}),se.prototype.get_PE_TRANSFORM_P_TO_G=se.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return Fc(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_P_TO_G",{get:se.prototype.get_PE_TRANSFORM_P_TO_G}),se.prototype.get_PE_TRANSFORM_G_TO_P=se.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Js(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_G_TO_P",{get:se.prototype.get_PE_TRANSFORM_G_TO_P}),se.prototype.get_PE_HORIZON_RECT=se.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return zu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_RECT",{get:se.prototype.get_PE_HORIZON_RECT}),se.prototype.get_PE_HORIZON_POLY=se.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return Wu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_POLY",{get:se.prototype.get_PE_HORIZON_POLY}),se.prototype.get_PE_HORIZON_LINE=se.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Uc(m)},Object.defineProperty(se.prototype,"PE_HORIZON_LINE",{get:se.prototype.get_PE_HORIZON_LINE}),se.prototype.get_PE_HORIZON_DELTA=se.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return Bu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_DELTA",{get:se.prototype.get_PE_HORIZON_DELTA}),Mr.prototype=Object.create(ot.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},a.PeDouble=Mr,Mr.prototype.get_val=Mr.prototype.get_val=function(){var m=this.ptr;return Vc(m)},Mr.prototype.set_val=Mr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),zc(L,m)},Object.defineProperty(Mr.prototype,"val",{get:Mr.prototype.get_val,set:Mr.prototype.set_val}),Mr.prototype.__destroy__=Mr.prototype.__destroy__=function(){var m=this.ptr;ju(m)},en.prototype=Object.create(ot.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeFactory=en,en.prototype.initialize=en.prototype.initialize=function(m){He.prepare(),m=m&&typeof m=="object"?m.ptr:Of(m),Qs(m)},en.prototype.factoryByType=en.prototype.factoryByType=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),tr(qu(m,L),Gt)},en.prototype.fromString=en.prototype.fromString=function(m,L){return He.prepare(),m&&typeof m=="object"&&(m=m.ptr),L=L&&typeof L=="object"?L.ptr:Of(L),tr(Wc(m,L),Gt)},en.prototype.getCode=en.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),Hu(m)},yr.prototype=Object.create(ot.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},a.PeGCSExtent=yr,yr.prototype.getLLon=yr.prototype.getLLon=function(){var m=this.ptr;return Yu(m)},yr.prototype.getSLat=yr.prototype.getSLat=function(){var m=this.ptr;return Bc(m)},yr.prototype.getRLon=yr.prototype.getRLon=function(){var m=this.ptr;return Gc(m)},yr.prototype.getNLat=yr.prototype.getNLat=function(){var m=this.ptr;return Zu(m)},yr.prototype.__destroy__=yr.prototype.__destroy__=function(){var m=this.ptr;jc(m)},mt.prototype=Object.create(Tr.prototype),mt.prototype.constructor=mt,mt.prototype.__class__=mt,mt.__cache__={},a.PeGeogcs=mt,mt.prototype.Delete=mt.prototype.Delete=function(){var m=this.ptr;qc(m)},mt.prototype.cloneAlterUnits=mt.prototype.cloneAlterUnits=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),tr(Xu(L,m),mt)},mt.prototype.getDatum=mt.prototype.getDatum=function(){var m=this.ptr;return tr(Vi(m),Fr)},mt.prototype.getPrimem=mt.prototype.getPrimem=function(){var m=this.ptr;return tr(Mo(m),Ur)},mt.prototype.getUnit=mt.prototype.getUnit=function(){var m=this.ptr;return tr(Ju(m),$r)},mt.prototype.isEqual=mt.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Ks(L,m)},mt.prototype.getCode=mt.prototype.getCode=function(){var m=this.ptr;return ea(m)},mt.prototype.getName=mt.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Qu(L,m))},mt.prototype.getType=mt.prototype.getType=function(){var m=this.ptr;return os(m)},$t.prototype=Object.create(Gt.prototype),$t.prototype.constructor=$t,$t.prototype.__class__=$t,$t.__cache__={},a.PeGeogtran=$t,$t.prototype.isEqual=$t.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Hc(L,m)},$t.prototype.getGeogcs1=$t.prototype.getGeogcs1=function(){var m=this.ptr;return tr(Yc(m),mt)},$t.prototype.getGeogcs2=$t.prototype.getGeogcs2=function(){var m=this.ptr;return tr(ta(m),mt)},$t.prototype.getParameters=$t.prototype.getParameters=function(){var m=this.ptr;return Zc(m)},$t.prototype.loadConstants=$t.prototype.loadConstants=function(){var m=this.ptr;return!!Ku(m)},$t.prototype.getCode=$t.prototype.getCode=function(){var m=this.ptr;return ei(m)},$t.prototype.getName=$t.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ed(L,m))},$t.prototype.getType=$t.prototype.getType=function(){var m=this.ptr;return td(m)},Pn.prototype=Object.create(ot.prototype),Pn.prototype.constructor=Pn,Pn.prototype.__class__=Pn,Pn.__cache__={},a.PeGTlistExtended=Pn,Pn.prototype.getGTlist=Pn.prototype.getGTlist=function(m,L,j,ie,le,Pe){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),tr(rd(m,L,j,ie,le,Pe),wn)},Pn.prototype.get_PE_GTLIST_OPTS_COMMON=Pn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Xc(m)},Object.defineProperty(Pn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Pn.prototype.get_PE_GTLIST_OPTS_COMMON}),wn.prototype=Object.create(ot.prototype),wn.prototype.constructor=wn,wn.prototype.__class__=wn,wn.__cache__={},a.PeGTlistExtendedEntry=wn,wn.prototype.getEntries=wn.prototype.getEntries=function(){var m=this.ptr;return tr(Jc(m),Wn)},wn.prototype.getSteps=wn.prototype.getSteps=function(){var m=this.ptr;return gr(m)},wn.prototype.Delete=wn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),nd(m)},Wn.prototype=Object.create(ot.prototype),Wn.prototype.constructor=Wn,Wn.prototype.__class__=Wn,Wn.__cache__={},a.PeGTlistExtendedGTs=Wn,Wn.prototype.getDirection=Wn.prototype.getDirection=function(){var m=this.ptr;return id(m)},Wn.prototype.getGeogtran=Wn.prototype.getGeogtran=function(){var m=this.ptr;return tr(od(m),$t)},dr.prototype=Object.create(ot.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},a.PeHorizon=dr,dr.prototype.getNump=dr.prototype.getNump=function(){var m=this.ptr;return sd(m)},dr.prototype.getKind=dr.prototype.getKind=function(){var m=this.ptr;return ad(m)},dr.prototype.getInclusive=dr.prototype.getInclusive=function(){var m=this.ptr;return Qc(m)},dr.prototype.getSize=dr.prototype.getSize=function(){var m=this.ptr;return cd(m)},dr.prototype.getCoord=dr.prototype.getCoord=function(){var m=this.ptr;return Kc(m)},Ar.prototype=Object.create(ot.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},a.PeInteger=Ar,Ar.prototype.get_val=Ar.prototype.get_val=function(){var m=this.ptr;return ss(m)},Ar.prototype.set_val=Ar.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),_i(L,m)},Object.defineProperty(Ar.prototype,"val",{get:Ar.prototype.get_val,set:Ar.prototype.set_val}),Ar.prototype.__destroy__=Ar.prototype.__destroy__=function(){var m=this.ptr;as(m)},tn.prototype=Object.create(ot.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeLineType=tn,tn.prototype.geodetic_distance=tn.prototype.geodetic_distance=function(m,L,j,ie,le,Pe,Ve,Re,tt,yn){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),yn&&typeof yn=="object"&&(yn=yn.ptr),ld(m,L,j,ie,le,Pe,Ve,Re,tt,yn)},tn.prototype.geodetic_coordinate=tn.prototype.geodetic_coordinate=function(m,L,j,ie,le,Pe,Ve,Re,tt){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),tl(m,L,j,ie,le,Pe,Ve,Re,tt)},tn.prototype.geodesic_coordinate=tn.prototype.geodesic_coordinate=function(m,L,j,ie,le,Pe,Ve,Re){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),rl(m,L,j,ie,le,Pe,Ve,Re)},tn.prototype.great_elliptic_distance=tn.prototype.great_elliptic_distance=function(m,L,j,ie,le,Pe,Ve,Re,tt){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),nl(m,L,j,ie,le,Pe,Ve,Re,tt)},Ir.prototype=Object.create(ot.prototype),Ir.prototype.constructor=Ir,Ir.prototype.__class__=Ir,Ir.__cache__={},a.PeMath=Ir,Ir.prototype.phi_to_eta=Ir.prototype.phi_to_eta=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),Ao(m,L)},Ir.prototype.eta_to_phi=Ir.prototype.eta_to_phi=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),ud(m,L)},Ir.prototype.phi_to_phig=Ir.prototype.phi_to_phig=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),dd(m,L)},Ir.prototype.q=Ir.prototype.q=function(m,L,j){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),pd(m,L,j)},Ir.prototype.q90=Ir.prototype.q90=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),fd(m,L)},_t.prototype=Object.create(ot.prototype),_t.prototype.constructor=_t,_t.prototype.__class__=_t,_t.__cache__={},a.PeNotationMgrs=_t,_t.prototype.get_PE_MGRS_STYLE_NEW=_t.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return md(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_NEW",{get:_t.prototype.get_PE_MGRS_STYLE_NEW}),_t.prototype.get_PE_MGRS_STYLE_OLD=_t.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return hd(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_OLD",{get:_t.prototype.get_PE_MGRS_STYLE_OLD}),_t.prototype.get_PE_MGRS_STYLE_AUTO=_t.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return ra(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_AUTO",{get:_t.prototype.get_PE_MGRS_STYLE_AUTO}),_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS=_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return gd(m)},Object.defineProperty(_t.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),_t.prototype.get_PE_MGRS_ADD_SPACES=_t.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return cs(m)},Object.defineProperty(_t.prototype,"PE_MGRS_ADD_SPACES",{get:_t.prototype.get_PE_MGRS_ADD_SPACES}),jt.prototype=Object.create(ot.prototype),jt.prototype.constructor=jt,jt.prototype.__class__=jt,jt.__cache__={},a.PeNotationUtm=jt,jt.prototype.get_PE_UTM_OPTS_NONE=jt.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return wd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NONE",{get:jt.prototype.get_PE_UTM_OPTS_NONE}),jt.prototype.get_PE_UTM_OPTS_NS=jt.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return na(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NS",{get:jt.prototype.get_PE_UTM_OPTS_NS}),jt.prototype.get_PE_UTM_OPTS_NS_STRICT=jt.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return yd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NS_STRICT",{get:jt.prototype.get_PE_UTM_OPTS_NS_STRICT}),jt.prototype.get_PE_UTM_OPTS_ADD_SPACES=jt.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return bd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:jt.prototype.get_PE_UTM_OPTS_ADD_SPACES}),rn.prototype=Object.create(Gt.prototype),rn.prototype.constructor=rn,rn.prototype.__class__=rn,rn.__cache__={},a.PeParameter=rn,rn.prototype.getValue=rn.prototype.getValue=function(){var m=this.ptr;return il(m)},rn.prototype.getCode=rn.prototype.getCode=function(){var m=this.ptr;return Io(m)},rn.prototype.getName=rn.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ti(L,m))},rn.prototype.getType=rn.prototype.getType=function(){var m=this.ptr;return ol(m)},qe.prototype=Object.create(ot.prototype),qe.prototype.constructor=qe,qe.prototype.__class__=qe,qe.__cache__={},a.PePCSInfo=qe,qe.prototype.getCentralMeridian=qe.prototype.getCentralMeridian=function(){var m=this.ptr;return ia(m)},qe.prototype.getDomainMinx=qe.prototype.getDomainMinx=function(){var m=this.ptr;return vd(m)},qe.prototype.getDomainMiny=qe.prototype.getDomainMiny=function(){var m=this.ptr;return _d(m)},qe.prototype.getDomainMaxx=qe.prototype.getDomainMaxx=function(){var m=this.ptr;return Sd(m)},qe.prototype.getDomainMaxy=qe.prototype.getDomainMaxy=function(){var m=this.ptr;return xd(m)},qe.prototype.getNorthPoleLocation=qe.prototype.getNorthPoleLocation=function(){var m=this.ptr;return Ed(m)},qe.prototype.getNorthPoleGeometry=qe.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Cd(m)},qe.prototype.getSouthPoleLocation=qe.prototype.getSouthPoleLocation=function(){var m=this.ptr;return Td(m)},qe.prototype.getSouthPoleGeometry=qe.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Pd(m)},qe.prototype.isDensificationNeeded=qe.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Md(m)},qe.prototype.isGcsHorizonMultiOverlap=qe.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!Ad(m)},qe.prototype.isPannableRectangle=qe.prototype.isPannableRectangle=function(){var m=this.ptr;return!!f(m)},qe.prototype.generate=qe.prototype.generate=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),tr(p(m,L),qe)},qe.prototype.get_PE_PCSINFO_OPTION_NONE=qe.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(qe.prototype,"PE_PCSINFO_OPTION_NONE",{get:qe.prototype.get_PE_PCSINFO_OPTION_NONE}),qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN=qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(qe.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return C(m)},Object.defineProperty(qe.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),qe.prototype.get_PE_POLE_POINT=qe.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return T(m)},Object.defineProperty(qe.prototype,"PE_POLE_POINT",{get:qe.prototype.get_PE_POLE_POINT}),Ur.prototype=Object.create(Gt.prototype),Ur.prototype.constructor=Ur,Ur.prototype.__class__=Ur,Ur.__cache__={},a.PePrimem=Ur,Ur.prototype.getLongitude=Ur.prototype.getLongitude=function(){var m=this.ptr;return A(m)},Ur.prototype.getCode=Ur.prototype.getCode=function(){var m=this.ptr;return O(m)},Ur.prototype.getName=Ur.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(R(L,m))},Ur.prototype.getType=Ur.prototype.getType=function(){var m=this.ptr;return U(m)},ut.prototype=Object.create(Tr.prototype),ut.prototype.constructor=ut,ut.prototype.__class__=ut,ut.__cache__={},a.PeProjcs=ut,ut.prototype.Delete=ut.prototype.Delete=function(){var m=this.ptr;D(m)},ut.prototype.getGeogcs=ut.prototype.getGeogcs=function(){var m=this.ptr;return tr(Z(m),mt)},ut.prototype.getProjection=ut.prototype.getProjection=function(){var m=this.ptr;return tr(oe(m),Gt)},ut.prototype.getParameters=ut.prototype.getParameters=function(){var m=this.ptr;return ge(m)},ut.prototype.getUnit=ut.prototype.getUnit=function(){var m=this.ptr;return tr(he(m),Pr)},ut.prototype.loadConstants=ut.prototype.loadConstants=function(){var m=this.ptr;return!!be(m)},ut.prototype.horizonGcsGenerate=ut.prototype.horizonGcsGenerate=function(){var m=this.ptr;return tr(ke(m),dr)},ut.prototype.horizonPcsGenerate=ut.prototype.horizonPcsGenerate=function(){var m=this.ptr;return tr(Ae(m),dr)},ut.prototype.isEqual=ut.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Fe(L,m)},ut.prototype.getCode=ut.prototype.getCode=function(){var m=this.ptr;return Xe(m)},ut.prototype.getName=ut.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ke(L,m))},ut.prototype.getType=ut.prototype.getType=function(){var m=this.ptr;return Be(m)},br.prototype=Object.create(Gt.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},a.PeSpheroid=br,br.prototype.getAxis=br.prototype.getAxis=function(){var m=this.ptr;return Je(m)},br.prototype.getFlattening=br.prototype.getFlattening=function(){var m=this.ptr;return wr(m)},br.prototype.getCode=br.prototype.getCode=function(){var m=this.ptr;return vt(m)},br.prototype.getName=br.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Dr(L,m))},br.prototype.getType=br.prototype.getType=function(){var m=this.ptr;return gn(m)},Wi.prototype=Object.create(ot.prototype),Wi.prototype.constructor=Wi,Wi.prototype.__class__=Wi,Wi.__cache__={},a.PeVersion=Wi,Wi.prototype.version_string=Wi.prototype.version_string=function(){var m=this.ptr;return hr(Tn(m))},a.ensureCache=He,a.ensureString=Of,a.ensureInt8=zn,a.ensureInt16=cv,a.ensureInt32=lv,a.ensureFloat32=uv,a.ensureFloat64=dv,d},t.exports=r),vR.exports;var t,e,r}var bR,vR,XX,JX,SR=N(()=>{gR();vR={exports:{}};XX=hR(ZX()),JX=Object.freeze(Object.defineProperty({__proto__:null,default:XX},Symbol.toStringTag,{value:"Module"}))});function xR(){return!!W}function QX(){return!!pe("esri-wasm")}function ER(){return H5||(H5=Promise.resolve().then(()=>(SR(),_R)).then(t=>t.p).then(({default:t})=>t({locateFile:e=>Bp(`esri/geometry/support/${e}`)})).then(t=>{PR(t)}),H5)}function PR(t){function e(o,s,c){o[s]=c(o[s])}W=t,zt.init(),Nb.init(),Rb.init(),Db.init(),$b.init(),CR=class extends W.PeDouble{constructor(o=NaN){super(o)}destroy(){W.destroy(this)}[Symbol.dispose](){this.destroy()}},TR=class extends W.PeGCSExtent{destroy(){W.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[W.PeAngunit,W.PeDatum,W.PeGeogcs,W.PeGeogtran,W.PeObject,W.PeParameter,W.PePrimem,W.PeProjcs,W.PeSpheroid,W.PeUnit];for(let o of r)e(o.prototype,"getName",s=>function(){return s.call(this,new Array(zt.PE_NAME_MAX))});for(let o of[W.PeGeogtran,W.PeProjcs])e(o.prototype,"getParameters",s=>function(){let c=new Array(zt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=W.getValue(a,"*");c[d]=h?W.wrapPointer(h,W.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});e(W.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return pc(a,c,o.call(this),s),a}),e(W.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=W._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!W.compare(a,W.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=W.getPointer(a);for(let g=1;g<d;g++)c.push(W.wrapPointer(h+s*g,W.PeGTlistExtendedGTs))}}return c}});let n=W._pe_getPeHorizonSize(),i=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let c=null,a=o.call(this);if(!W.compare(a,W.NULL)){c=[a];let d=a.getNump();if(d>1){let h=W.getPointer(a);for(let g=1;g<d;g++)c.push(W.wrapPointer(h+n*g,W.PeHorizon))}}return s.set(o,c),c};e(W.PeProjcs.prototype,"horizonGcsGenerate",i),e(W.PeProjcs.prototype,"horizonPcsGenerate",i),W.PeObject.prototype.toString=function(o=zt.PE_STR_OPTS_NONE){W.ensureCache.prepare();let s=W.getPointer(this),c=W.ensureInt8(new Array(zt.PE_BUFFER_MAX));return W.UTF8ToString(W._pe_object_to_string_ext(s,o,c))},W.PeGeogcs.prototype.destroy=function(){this.Delete(),wo(this),this.ptr=0},W.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},W.PeProjcs.prototype.destroy=function(){this.Delete(),wo(this),this.ptr=0},W.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function wo(t){if(!t)return;let e=W.getClass(t);if(!e)return;let r=W.getCache(e);if(!r)return;let n=W.getPointer(t);n&&delete r[n]}function kb(t,e){let r=[],n=new Array(e);for(let i=0;i<t;i++)r.push(W.ensureInt8(n));return r}function ou(t){return ArrayBuffer.isView(t)?t:Array.isArray(t[0])?t.flat():t}function pc(t,e,r,n=!1){if(n)for(let i=0;i<2*e;i++)t[i]=W.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=t.length===0;for(let o=0;o<e;o++)i&&(t[o]=new Array(2)),t[o][0]=W.getValue(r,"double"),t[o][1]=W.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var H5,W,Y5,zt,CR,Ob,TR,Nb,Z5,X5,J5,Q5,K5,Rb,eE,Db,$b,tE,sxe,MR=N(()=>{Bw();St();W=null;(function(t){function e(o,s,c){W.ensureCache.prepare();let a=ou(c),d=c===a,h=W.ensureFloat64(a),g=W._pe_geog_to_proj(W.getPointer(o),s,h);return g&&pc(c,s,h,d),g}function r(o,s,c,a){switch(a){case zt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case zt.PE_TRANSFORM_G_TO_P:return e(o,s,c)}return 0}function n(o,s,c){return i(o,s,c,0)}function i(o,s,c,a){W.ensureCache.prepare();let d=ou(c),h=c===d,g=W.ensureFloat64(d),v=W._pe_proj_to_geog_center(W.getPointer(o),s,g,a);return v&&pc(c,s,g,h),v}t.geogToProj=e,t.projGeog=r,t.projToGeog=n,t.projToGeogCenter=i})(Y5||(Y5={})),function(t){function e(){t.PE_BUFFER_MAX=W.PeDefs.prototype.PE_BUFFER_MAX,t.PE_NAME_MAX=W.PeDefs.prototype.PE_NAME_MAX,t.PE_MGRS_MAX=W.PeDefs.prototype.PE_MGRS_MAX,t.PE_USNG_MAX=W.PeDefs.prototype.PE_USNG_MAX,t.PE_DD_MAX=W.PeDefs.prototype.PE_DD_MAX,t.PE_DDM_MAX=W.PeDefs.prototype.PE_DDM_MAX,t.PE_DMS_MAX=W.PeDefs.prototype.PE_DMS_MAX,t.PE_UTM_MAX=W.PeDefs.prototype.PE_UTM_MAX,t.PE_PARM_MAX=W.PeDefs.prototype.PE_PARM_MAX,t.PE_TYPE_NONE=W.PeDefs.prototype.PE_TYPE_NONE,t.PE_TYPE_GEOGCS=W.PeDefs.prototype.PE_TYPE_GEOGCS,t.PE_TYPE_PROJCS=W.PeDefs.prototype.PE_TYPE_PROJCS,t.PE_TYPE_GEOGTRAN=W.PeDefs.prototype.PE_TYPE_GEOGTRAN,t.PE_TYPE_COORDSYS=W.PeDefs.prototype.PE_TYPE_COORDSYS,t.PE_TYPE_UNIT=W.PeDefs.prototype.PE_TYPE_UNIT,t.PE_TYPE_LINUNIT=W.PeDefs.prototype.PE_TYPE_LINUNIT,t.PE_STR_OPTS_NONE=W.PeDefs.prototype.PE_STR_OPTS_NONE,t.PE_STR_AUTH_NONE=W.PeDefs.prototype.PE_STR_AUTH_NONE,t.PE_STR_AUTH_TOP=W.PeDefs.prototype.PE_STR_AUTH_TOP,t.PE_STR_NAME_CANON=W.PeDefs.prototype.PE_STR_NAME_CANON,t.PE_STR_FMT_WKT=W.PeDefs.prototype.PE_STR_FMT_WKT,t.PE_STR_FMT_WKT2=W.PeDefs.prototype.PE_STR_FMT_WKT2,t.PE_PARM_X0=W.PeDefs.prototype.PE_PARM_X0,t.PE_PARM_ND=W.PeDefs.prototype.PE_PARM_ND,t.PE_TRANSFORM_1_TO_2=W.PeDefs.prototype.PE_TRANSFORM_1_TO_2,t.PE_TRANSFORM_2_TO_1=W.PeDefs.prototype.PE_TRANSFORM_2_TO_1,t.PE_TRANSFORM_P_TO_G=W.PeDefs.prototype.PE_TRANSFORM_P_TO_G,t.PE_TRANSFORM_G_TO_P=W.PeDefs.prototype.PE_TRANSFORM_G_TO_P,t.PE_HORIZON_RECT=W.PeDefs.prototype.PE_HORIZON_RECT,t.PE_HORIZON_POLY=W.PeDefs.prototype.PE_HORIZON_POLY,t.PE_HORIZON_LINE=W.PeDefs.prototype.PE_HORIZON_LINE,t.PE_HORIZON_DELTA=W.PeDefs.prototype.PE_HORIZON_DELTA}t.init=e}(zt||(zt={}));CR=null;(function(t){let e={},r={},n=E=>{let M=E.getType();switch(M){case zt.PE_TYPE_GEOGCS:E=W.castObject(E,W.PeGeogcs);break;case zt.PE_TYPE_PROJCS:E=W.castObject(E,W.PeProjcs);break;case zt.PE_TYPE_GEOGTRAN:E=W.castObject(E,W.PeGeogtran);break;default:M&zt.PE_TYPE_UNIT&&(E=W.castObject(E,W.PeUnit))}return E};function i(){W.PeFactory.prototype.initialize(null)}function o(E){return s(zt.PE_TYPE_COORDSYS,E)}function s(E,M){let k=null,$=e[E];if($||($={},e[E]=$),$.hasOwnProperty(String(M))&&(k=$[M],W.compare(k,W.NULL)&&(k=null)),!k){let z=W.PeFactory.prototype.factoryByType(E,M);W.compare(z,W.NULL)||(k=n(z),$[M]=k)}return k}function c(E,M){let k=null,$=r[E];if($||($={},r[E]=$),$.hasOwnProperty(M)&&(k=$[M],W.compare(k,W.NULL)&&(k=null)),!k){let z=W.PeFactory.prototype.fromString(E,M);W.compare(z,W.NULL)||(k=n(z),$[M]=k)}return k}function a(E){return s(zt.PE_TYPE_GEOGCS,E)}function d(E){return s(zt.PE_TYPE_GEOGTRAN,E)}function h(E){return W.PeFactory.prototype.getCode(E)}function g(E){return s(zt.PE_TYPE_PROJCS,E)}function v(E){return s(zt.PE_TYPE_UNIT,E)}t.initialize=i,t.coordsys=o,t.factoryByType=s,t.fromString=c,t.geogcs=a,t.geogtran=d,t.getCode=h,t.projcs=g,t.unit=v})(Ob||(Ob={}));TR=null;(function(t){let e;function r(){t.PE_GTLIST_OPTS_COMMON=W.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,e=W._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new W.PeInteger(d);try{let v=W.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=W.getPointer(v);for(let M=1;M<d;M++)h.push(W.wrapPointer(E+e*M,W.PeGTlistExtendedEntry))}}finally{W.destroy(g)}return h}t.init=r,t.getGTlist=n})(Nb||(Nb={})),function(t){function e(r){if(r?.length){for(let n of r)wo(n),n.getEntries().forEach(i=>{wo(i);let o=i.getGeogtran();wo(o),o.getParameters().forEach(wo),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{wo(s);let c=s.getDatum();wo(c),wo(c.getSpheroid()),wo(s.getPrimem()),wo(s.getUnit())})});W.PeGTlistExtendedEntry.prototype.Delete(r[0])}}t.destroy=e}(Z5||(Z5={})),function(t){function e(r,n,i,o,s){W.ensureCache.prepare();let c=ou(i),a=i===c,d=W.ensureFloat64(c),h=0;o&&(h=W.ensureFloat64(o));let g=W._pe_geog_to_geog(W.getPointer(r),n,d,h,s);return g&&pc(i,n,d,a),g}t.geogToGeog=e}(X5||(X5={})),function(t){function e(o,s,c,a,d,h,g,v){W.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){W.PeLineType.prototype.geodetic_coordinate(o,s,c,a,d,h,g,v,E)}function n(o,s,c,a,d,h,g,v,E,M){W.PeLineType.prototype.geodetic_distance(o,s,c,a,d,h,g,v,E,M)}function i(o,s,c,a,d,h,g,v,E){W.PeLineType.prototype.great_elliptic_distance(o,s,c,a,d,h,g,v,E)}t.geodesicCoordinate=e,t.geodeticCoordinate=r,t.geodeticDistance=n,t.greatEllipticDistance=i}(J5||(J5={})),function(t){function e(s,c){return W.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return W.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return W.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return W.PeMath.prototype.q(s,c,a)}function o(s,c){return W.PeMath.prototype.q90(s,c)}t.phiToEta=e,t.etaToPhi=r,t.phiToPhig=n,t.q=i,t.q90=o}(Q5||(Q5={})),function(t){let e=(d,h,g,v,E,M)=>{let k,$;switch(W.ensureCache.prepare(),d){case"dd":k=W._pe_geog_to_dd,$=zt.PE_DD_MAX;break;case"ddm":k=W._pe_geog_to_ddm,$=zt.PE_DDM_MAX;break;case"dms":k=W._pe_geog_to_dms,$=zt.PE_DMS_MAX}let z=0;h&&(z=W.getPointer(h));let B=ou(v),q=W.ensureFloat64(B),V=kb(g,$),X=k(z,g,q,E,W.ensureInt32(V));if(X)for(let te=0;te<g;te++)M[te]=W.UTF8ToString(V[te]);return X},r=(d,h,g,v,E)=>{let M;switch(W.ensureCache.prepare(),d){case"dd":M=W._pe_dd_to_geog;break;case"ddm":M=W._pe_ddm_to_geog;break;case"dms":M=W._pe_dms_to_geog}let k=0;h&&(k=W.getPointer(h));let $=v.map(V=>W.ensureString(V)),z=W.ensureInt32($),B=W.ensureFloat64(new Array(2*g)),q=M(k,g,z,B);return q&&pc(E,g,B),q};function n(d,h,g,v,E){return e("dms",d,h,g,v,E)}function i(d,h,g,v){return r("dms",d,h,g,v)}function o(d,h,g,v,E){return e("ddm",d,h,g,v,E)}function s(d,h,g,v){return r("ddm",d,h,g,v)}function c(d,h,g,v,E){return e("dd",d,h,g,v,E)}function a(d,h,g,v){return r("dd",d,h,g,v)}t.geogToDms=n,t.dmsToGeog=i,t.geogToDdm=o,t.ddmToGeog=s,t.geogToDd=c,t.ddToGeog=a}(K5||(K5={})),function(t){function e(){t.PE_MGRS_STYLE_NEW=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=W.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=W.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){W.ensureCache.prepare();let g=0;i&&(g=W.getPointer(i));let v=ou(s),E=W.ensureFloat64(v),M=kb(o,zt.PE_MGRS_MAX),k=W.ensureInt32(M),$=W._pe_geog_to_mgrs_extended(g,o,E,c,a,d,k);if($)for(let z=0;z<o;z++)h[z]=W.UTF8ToString(M[z]);return $}function n(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=s.map(M=>W.ensureString(M)),g=W.ensureInt32(h),v=W.ensureFloat64(new Array(2*o)),E=W._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToMgrsExtended=r,t.mgrsToGeogExtended=n}(Rb||(Rb={})),function(t){function e(n,i,o,s,c,a,d){W.ensureCache.prepare();let h=0;n&&(h=W.getPointer(n));let g=ou(o),v=W.ensureFloat64(g),E=kb(i,zt.PE_MGRS_MAX),M=W.ensureInt32(E),k=W._pe_geog_to_usng(h,i,v,s,c,a,M);if(k)for(let $=0;$<i;$++)d[$]=W.UTF8ToString(E[$]);return k}function r(n,i,o,s){W.ensureCache.prepare();let c=0;n&&(c=W.getPointer(n));let a=o.map(v=>W.ensureString(v)),d=W.ensureInt32(a),h=W.ensureFloat64(new Array(2*i)),g=W._pe_usng_to_geog(c,i,d,h);return g&&pc(s,i,h),g}t.geogToUsng=e,t.usngToGeog=r}(eE||(eE={})),function(t){function e(){t.PE_UTM_OPTS_NONE=W.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=W.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=W.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=ou(s),g=W.ensureFloat64(h),v=kb(o,zt.PE_UTM_MAX),E=W.ensureInt32(v),M=W._pe_geog_to_utm(d,o,g,c,E);if(M)for(let k=0;k<o;k++)a[k]=W.UTF8ToString(v[k]);return M}function n(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=s.map(M=>W.ensureString(M)),g=W.ensureInt32(h),v=W.ensureFloat64(new Array(2*o)),E=W._pe_utm_to_geog(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToUtm=r,t.utmToGeog=n}(Db||(Db={})),function(t){let e=new Map;function r(){t.PE_PCSINFO_OPTION_NONE=W.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=W.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=W.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=W.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=t.PE_PCSINFO_OPTION_DOMAIN){let s=null,c=null;return e.has(i)&&(c=e.get(i),c[o]&&(s=c[o])),s||(s=W.PePCSInfo.prototype.generate(i,o),c||(c=[],e.set(i,c)),c[o]=s),s}t.init=r,t.generate=n}($b||($b={})),function(t){function e(){return W.PeVersion.prototype.version_string()}t.versionString=e}(tE||(tE={}));sxe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return Y5},get PeDefs(){return zt},get PeDouble(){return CR},get PeFactory(){return Ob},get PeGCSExtent(){return TR},get PeGTTransformations(){return X5},get PeGTlistExtended(){return Nb},get PeGTlistExtendedEntry(){return Z5},get PeLineType(){return J5},get PeMath(){return Q5},get PeNotationDms(){return K5},get PeNotationMgrs(){return Rb},get PeNotationUsng(){return eE},get PeNotationUtm(){return Db},get PePCSInfo(){return $b},get PeVersion(){return tE},_init:PR,get _pe(){return W},isLoaded:xR,isSupported:QX,load:ER},Symbol.toStringTag,{value:"Module"}))});var _f,AR=N(()=>{(function(t){t[t.CGCS2000=4490]="CGCS2000",t[t.GCSMARS2000=104971]="GCSMARS2000",t[t.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",t[t.GCSMOON2000=104903]="GCSMOON2000"})(_f||(_f={}))});var l,P,rE=N(()=>{P={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(l=2e3;l<=2045;l++)P[l]=0;for(l=2056;l<=2065;l++)P[l]=0;for(l=2067;l<=2135;l++)P[l]=0;for(l=2137;l<=2154;l++)P[l]=0;for(l=2161;l<=2170;l++)P[l]=0;for(l=2172;l<=2193;l++)P[l]=0;for(l=2195;l<=2198;l++)P[l]=0;for(l=2200;l<=2203;l++)P[l]=0;for(l=2205;l<=2217;l++)P[l]=0;for(l=2222;l<=2224;l++)P[l]=1;for(l=2225;l<=2250;l++)P[l]=2;for(l=2251;l<=2253;l++)P[l]=1;for(l=2257;l<=2264;l++)P[l]=2;for(l=2274;l<=2279;l++)P[l]=2;for(l=2280;l<=2282;l++)P[l]=1;for(l=2283;l<=2289;l++)P[l]=2;for(l=2290;l<=2292;l++)P[l]=0;for(l=2308;l<=2313;l++)P[l]=0;for(l=2315;l<=2491;l++)P[l]=0;for(l=2494;l<=2866;l++)P[l]=0;for(l=2867;l<=2869;l++)P[l]=1;for(l=2870;l<=2888;l++)P[l]=2;for(l=2891;l<=2895;l++)P[l]=2;for(l=2896;l<=2898;l++)P[l]=1;for(l=2902;l<=2908;l++)P[l]=2;for(l=2915;l<=2920;l++)P[l]=2;for(l=2921;l<=2923;l++)P[l]=1;for(l=2924;l<=2930;l++)P[l]=2;for(l=2931;l<=2962;l++)P[l]=0;for(l=2964;l<=2968;l++)P[l]=2;for(l=2969;l<=2973;l++)P[l]=0;for(l=2975;l<=2991;l++)P[l]=0;for(l=2995;l<=3051;l++)P[l]=0;for(l=3054;l<=3079;l++)P[l]=0;for(l=3081;l<=3088;l++)P[l]=0;for(l=3092;l<=3101;l++)P[l]=0;for(l=3106;l<=3138;l++)P[l]=0;for(l=3146;l<=3151;l++)P[l]=0;for(l=3153;l<=3166;l++)P[l]=0;for(l=3168;l<=3172;l++)P[l]=0;for(l=3174;l<=3203;l++)P[l]=0;for(l=3294;l<=3358;l++)P[l]=0;for(l=3367;l<=3403;l++)P[l]=0;for(l=3408;l<=3416;l++)P[l]=0;for(l=3417;l<=3438;l++)P[l]=2;for(l=3441;l<=3446;l++)P[l]=2;for(l=3447;l<=3450;l++)P[l]=0;for(l=3451;l<=3459;l++)P[l]=2;for(l=3460;l<=3478;l++)P[l]=0;for(l=3554;l<=3559;l++)P[l]=0;for(l=3560;l<=3570;l++)P[l]=2;for(l=3571;l<=3581;l++)P[l]=0;for(l=3594;l<=3597;l++)P[l]=0;for(l=3601;l<=3604;l++)P[l]=0;for(l=3637;l<=3639;l++)P[l]=0;for(l=3665;l<=3667;l++)P[l]=0;for(l=3693;l<=3695;l++)P[l]=0;for(l=3701;l<=3727;l++)P[l]=0;for(l=3728;l<=3739;l++)P[l]=2;for(l=3740;l<=3751;l++)P[l]=0;for(l=3753;l<=3760;l++)P[l]=2;for(l=3761;l<=3773;l++)P[l]=0;for(l=3775;l<=3777;l++)P[l]=0;for(l=3779;l<=3781;l++)P[l]=0;for(l=3783;l<=3785;l++)P[l]=0;for(l=3788;l<=3791;l++)P[l]=0;for(l=3797;l<=3802;l++)P[l]=0;for(l=3814;l<=3816;l++)P[l]=0;for(l=3825;l<=3829;l++)P[l]=0;for(l=3832;l<=3841;l++)P[l]=0;for(l=3844;l<=3852;l++)P[l]=0;for(l=3873;l<=3885;l++)P[l]=0;for(l=3890;l<=3893;l++)P[l]=0;for(l=3907;l<=3912;l++)P[l]=0;for(l=3942;l<=3950;l++)P[l]=0;for(l=3968;l<=3970;l++)P[l]=0;for(l=3973;l<=3976;l++)P[l]=0;for(l=3986;l<=3989;l++)P[l]=0;for(l=3994;l<=3997;l++)P[l]=0;for(l=4048;l<=4051;l++)P[l]=0;for(l=4056;l<=4063;l++)P[l]=0;for(l=4093;l<=4096;l++)P[l]=0;for(l=4390;l<=4398;l++)P[l]=0;for(l=4399;l<=4413;l++)P[l]=2;for(l=4418;l<=4433;l++)P[l]=2;for(l=4455;l<=4457;l++)P[l]=2;for(l=4484;l<=4489;l++)P[l]=0;for(l=4491;l<=4554;l++)P[l]=0;for(l=4568;l<=4589;l++)P[l]=0;for(l=4652;l<=4656;l++)P[l]=0;for(l=4766;l<=4800;l++)P[l]=0;for(l=5014;l<=5016;l++)P[l]=0;for(l=5069;l<=5072;l++)P[l]=0;for(l=5105;l<=5130;l++)P[l]=0;for(l=5167;l<=5188;l++)P[l]=0;for(l=5253;l<=5259;l++)P[l]=0;for(l=5269;l<=5275;l++)P[l]=0;for(l=5292;l<=5311;l++)P[l]=0;for(l=5329;l<=5331;l++)P[l]=0;for(l=5343;l<=5349;l++)P[l]=0;for(l=5355;l<=5357;l++)P[l]=0;for(l=5387;l<=5389;l++)P[l]=0;for(l=5459;l<=5463;l++)P[l]=0;for(l=5479;l<=5482;l++)P[l]=0;for(l=5518;l<=5520;l++)P[l]=0;for(l=5530;l<=5539;l++)P[l]=0;for(l=5550;l<=5552;l++)P[l]=0;for(l=5562;l<=5583;l++)P[l]=0;for(l=5623;l<=5625;l++)P[l]=2;for(l=5631;l<=5639;l++)P[l]=0;for(l=5649;l<=5653;l++)P[l]=0;for(l=5663;l<=5680;l++)P[l]=0;for(l=5682;l<=5685;l++)P[l]=0;for(l=5875;l<=5877;l++)P[l]=0;for(l=5896;l<=5899;l++)P[l]=0;for(l=5921;l<=5940;l++)P[l]=0;for(l=6050;l<=6125;l++)P[l]=0;for(l=6244;l<=6275;l++)P[l]=0;for(l=6328;l<=6348;l++)P[l]=0;for(l=6350;l<=6356;l++)P[l]=0;for(l=6366;l<=6372;l++)P[l]=0;for(l=6381;l<=6387;l++)P[l]=0;for(l=6393;l<=6404;l++)P[l]=0;for(l=6480;l<=6483;l++)P[l]=0;for(l=6511;l<=6514;l++)P[l]=0;for(l=6579;l<=6581;l++)P[l]=0;for(l=6619;l<=6624;l++)P[l]=0;for(l=6625;l<=6627;l++)P[l]=2;for(l=6628;l<=6632;l++)P[l]=0;for(l=6634;l<=6637;l++)P[l]=0;for(l=6669;l<=6692;l++)P[l]=0;for(l=6707;l<=6709;l++)P[l]=0;for(l=6720;l<=6723;l++)P[l]=0;for(l=6732;l<=6738;l++)P[l]=0;for(l=6931;l<=6933;l++)P[l]=0;for(l=6956;l<=6959;l++)P[l]=0;for(l=7005;l<=7007;l++)P[l]=0;for(l=7057;l<=7070;l++)P[l]=2;for(l=7074;l<=7082;l++)P[l]=0;for(l=7109;l<=7118;l++)P[l]=0;for(l=7119;l<=7127;l++)P[l]=1;for(l=7374;l<=7376;l++)P[l]=0;for(l=7528;l<=7586;l++)P[l]=0;for(l=7587;l<=7645;l++)P[l]=2;for(l=7692;l<=7696;l++)P[l]=0;for(l=7755;l<=7787;l++)P[l]=0;for(l=7791;l<=7795;l++)P[l]=0;for(l=7799;l<=7801;l++)P[l]=0;for(l=7803;l<=7805;l++)P[l]=0;for(l=7825;l<=7831;l++)P[l]=0;for(l=7845;l<=7859;l++)P[l]=0;for(l=8013;l<=8032;l++)P[l]=0;for(l=8065;l<=8068;l++)P[l]=1;for(l=8518;l<=8529;l++)P[l]=2;for(l=8533;l<=8536;l++)P[l]=2;for(l=8538;l<=8540;l++)P[l]=2;for(l=8677;l<=8679;l++)P[l]=0;for(l=8836;l<=8840;l++)P[l]=0;for(l=8857;l<=8859;l++)P[l]=0;for(l=8908;l<=8910;l++)P[l]=0;for(l=9154;l<=9159;l++)P[l]=0;for(l=9205;l<=9218;l++)P[l]=0;for(l=9271;l<=9273;l++)P[l]=0;for(l=9295;l<=9297;l++)P[l]=0;for(l=9356;l<=9360;l++)P[l]=0;for(l=9404;l<=9407;l++)P[l]=0;for(l=9476;l<=9482;l++)P[l]=0;for(l=9487;l<=9494;l++)P[l]=0;for(l=9697;l<=9699;l++)P[l]=0;for(l=9821;l<=9865;l++)P[l]=0;for(l=10285;l<=10291;l++)P[l]=0;for(l=10314;l<=10317;l++)P[l]=0;for(l=10448;l<=10465;l++)P[l]=0;for(l=10731;l<=10733;l++)P[l]=0;for(l=11114;l<=11118;l++)P[l]=0;for(l=20004;l<=20032;l++)P[l]=0;for(l=20047;l<=20049;l++)P[l]=0;for(l=20062;l<=20092;l++)P[l]=0;for(l=20135;l<=20138;l++)P[l]=0;for(l=20248;l<=20258;l++)P[l]=0;for(l=20348;l<=20358;l++)P[l]=0;for(l=20436;l<=20440;l++)P[l]=0;for(l=20822;l<=20824;l++)P[l]=0;for(l=20904;l<=20932;l++)P[l]=0;for(l=20934;l<=20936;l++)P[l]=0;for(l=21004;l<=21032;l++)P[l]=0;for(l=21035;l<=21037;l++)P[l]=0;for(l=21095;l<=21097;l++)P[l]=0;for(l=21148;l<=21150;l++)P[l]=0;for(l=21207;l<=21264;l++)P[l]=0;for(l=21307;l<=21364;l++)P[l]=0;for(l=21413;l<=21423;l++)P[l]=0;for(l=21453;l<=21463;l++)P[l]=0;for(l=21473;l<=21483;l++)P[l]=0;for(l=21780;l<=21782;l++)P[l]=0;for(l=21891;l<=21894;l++)P[l]=0;for(l=21896;l<=21899;l++)P[l]=0;for(l=22171;l<=22177;l++)P[l]=0;for(l=22181;l<=22187;l++)P[l]=0;for(l=22191;l<=22197;l++)P[l]=0;for(l=22207;l<=22222;l++)P[l]=0;for(l=22229;l<=22232;l++)P[l]=0;for(l=22234;l<=22236;l++)P[l]=0;for(l=22243;l<=22250;l++)P[l]=0;for(l=22262;l<=22265;l++)P[l]=0;for(l=22307;l<=22322;l++)P[l]=0;for(l=22348;l<=22357;l++)P[l]=0;for(l=22407;l<=22422;l++)P[l]=0;for(l=22462;l<=22465;l++)P[l]=0;for(l=22521;l<=22525;l++)P[l]=0;for(l=22607;l<=22622;l++)P[l]=0;for(l=22641;l<=22646;l++)P[l]=0;for(l=22648;l<=22657;l++)P[l]=0;for(l=22707;l<=22722;l++)P[l]=0;for(l=22762;l<=22765;l++)P[l]=0;for(l=22807;l<=22822;l++)P[l]=0;for(l=22991;l<=22994;l++)P[l]=0;for(l=23028;l<=23038;l++)P[l]=0;for(l=23301;l<=23333;l++)P[l]=2;for(l=23830;l<=23853;l++)P[l]=0;for(l=23866;l<=23872;l++)P[l]=0;for(l=23877;l<=23884;l++)P[l]=0;for(l=23886;l<=23894;l++)P[l]=0;for(l=23946;l<=23948;l++)P[l]=0;for(l=24311;l<=24313;l++)P[l]=0;for(l=24342;l<=24347;l++)P[l]=0;for(l=24370;l<=24374;l++)P[l]=10;for(l=24375;l<=24381;l++)P[l]=0;for(l=24718;l<=24721;l++)P[l]=0;for(l=24817;l<=24821;l++)P[l]=0;for(l=24877;l<=24882;l++)P[l]=0;for(l=24891;l<=24893;l++)P[l]=0;for(l=25391;l<=25395;l++)P[l]=0;for(l=25828;l<=25838;l++)P[l]=0;for(l=26191;l<=26195;l++)P[l]=0;for(l=26391;l<=26393;l++)P[l]=0;for(l=26701;l<=26722;l++)P[l]=0;for(l=26729;l<=26799;l++)P[l]=2;for(l=26801;l<=26803;l++)P[l]=2;for(l=26811;l<=26813;l++)P[l]=2;for(l=26847;l<=26870;l++)P[l]=2;for(l=26891;l<=26899;l++)P[l]=0;for(l=26901;l<=26923;l++)P[l]=0;for(l=26929;l<=26946;l++)P[l]=0;for(l=26948;l<=26998;l++)P[l]=0;for(l=27037;l<=27040;l++)P[l]=0;for(l=27205;l<=27232;l++)P[l]=0;for(l=27258;l<=27260;l++)P[l]=0;for(l=27391;l<=27398;l++)P[l]=0;for(l=27561;l<=27564;l++)P[l]=0;for(l=27571;l<=27574;l++)P[l]=0;for(l=27581;l<=27584;l++)P[l]=0;for(l=27591;l<=27594;l++)P[l]=0;for(l=27700;l<=27707;l++)P[l]=0;for(l=28191;l<=28193;l++)P[l]=0;for(l=28348;l<=28358;l++)P[l]=0;for(l=28402;l<=28432;l++)P[l]=0;for(l=28462;l<=28492;l++)P[l]=0;for(l=29118;l<=29122;l++)P[l]=0;for(l=29168;l<=29172;l++)P[l]=0;for(l=29177;l<=29185;l++)P[l]=0;for(l=29187;l<=29195;l++)P[l]=0;for(l=29900;l<=29903;l++)P[l]=0;for(l=30161;l<=30179;l++)P[l]=0;for(l=30491;l<=30494;l++)P[l]=0;for(l=30729;l<=30732;l++)P[l]=0;for(l=31251;l<=31259;l++)P[l]=0;for(l=31265;l<=31268;l++)P[l]=0;for(l=31275;l<=31279;l++)P[l]=0;for(l=31281;l<=31297;l++)P[l]=0;for(l=31461;l<=31469;l++)P[l]=0;for(l=31491;l<=31495;l++)P[l]=0;for(l=31917;l<=31922;l++)P[l]=0;for(l=31965;l<=32e3;l++)P[l]=0;for(l=32001;l<=32003;l++)P[l]=2;for(l=32005;l<=32031;l++)P[l]=2;for(l=32033;l<=32060;l++)P[l]=2;for(l=32064;l<=32067;l++)P[l]=2;for(l=32074;l<=32077;l++)P[l]=2;for(l=32081;l<=32086;l++)P[l]=0;for(l=32107;l<=32130;l++)P[l]=0;for(l=32133;l<=32159;l++)P[l]=0;for(l=32164;l<=32167;l++)P[l]=2;for(l=32180;l<=32199;l++)P[l]=0;for(l=32201;l<=32260;l++)P[l]=0;for(l=32301;l<=32360;l++)P[l]=0;for(l=32401;l<=32460;l++)P[l]=0;for(l=32501;l<=32560;l++)P[l]=0;for(l=32601;l<=32662;l++)P[l]=0;for(l=32664;l<=32667;l++)P[l]=2;for(l=32701;l<=32761;l++)P[l]=0;for(l=53001;l<=53004;l++)P[l]=0;for(l=53008;l<=53019;l++)P[l]=0;for(l=53021;l<=53032;l++)P[l]=0;for(l=53034;l<=53037;l++)P[l]=0;for(l=53042;l<=53046;l++)P[l]=0;for(l=53074;l<=53080;l++)P[l]=0;for(l=54001;l<=54004;l++)P[l]=0;for(l=54008;l<=54019;l++)P[l]=0;for(l=54021;l<=54032;l++)P[l]=0;for(l=54034;l<=54037;l++)P[l]=0;for(l=54042;l<=54046;l++)P[l]=0;for(l=54048;l<=54053;l++)P[l]=0;for(l=54074;l<=54080;l++)P[l]=0;for(l=54098;l<=54101;l++)P[l]=0;for(l=102001;l<=102040;l++)P[l]=0;for(l=102042;l<=102063;l++)P[l]=0;for(l=102065;l<=102067;l++)P[l]=0;for(l=102070;l<=102117;l++)P[l]=0;for(l=102122;l<=102216;l++)P[l]=0;for(l=102221;l<=102377;l++)P[l]=0;for(l=102382;l<=102388;l++)P[l]=0;for(l=102389;l<=102398;l++)P[l]=2;for(l=102399;l<=102444;l++)P[l]=0;for(l=102445;l<=102447;l++)P[l]=2;for(l=102448;l<=102458;l++)P[l]=0;for(l=102459;l<=102468;l++)P[l]=2;for(l=102469;l<=102499;l++)P[l]=0;for(l=102500;l<=102519;l++)P[l]=1;for(l=102520;l<=102524;l++)P[l]=0;for(l=102525;l<=102529;l++)P[l]=2;for(l=102530;l<=102588;l++)P[l]=0;for(l=102590;l<=102598;l++)P[l]=0;for(l=102601;l<=102603;l++)P[l]=0;for(l=102605;l<=102628;l++)P[l]=0;for(l=102629;l<=102646;l++)P[l]=2;for(l=102648;l<=102700;l++)P[l]=2;for(l=102701;l<=102703;l++)P[l]=0;for(l=102707;l<=102730;l++)P[l]=2;for(l=102733;l<=102758;l++)P[l]=2;for(l=102767;l<=102900;l++)P[l]=0;for(l=102901;l<=102933;l++)P[l]=2;for(l=102934;l<=102950;l++)P[l]=13;for(l=102951;l<=102963;l++)P[l]=0;for(l=102965;l<=102969;l++)P[l]=0;for(l=102971;l<=102973;l++)P[l]=0;for(l=102975;l<=102989;l++)P[l]=0;for(l=102990;l<=102992;l++)P[l]=1;for(l=102997;l<=103002;l++)P[l]=0;for(l=103003;l<=103008;l++)P[l]=2;for(l=103009;l<=103011;l++)P[l]=0;for(l=103012;l<=103014;l++)P[l]=2;for(l=103019;l<=103021;l++)P[l]=0;for(l=103022;l<=103024;l++)P[l]=2;for(l=103029;l<=103031;l++)P[l]=0;for(l=103032;l<=103034;l++)P[l]=2;for(l=103065;l<=103068;l++)P[l]=0;for(l=103074;l<=103076;l++)P[l]=0;for(l=103077;l<=103079;l++)P[l]=1;for(l=103080;l<=103082;l++)P[l]=0;for(l=103083;l<=103085;l++)P[l]=2;for(l=103090;l<=103093;l++)P[l]=0;for(l=103097;l<=103099;l++)P[l]=0;for(l=103100;l<=103102;l++)P[l]=2;for(l=103107;l<=103109;l++)P[l]=0;for(l=103110;l<=103112;l++)P[l]=2;for(l=103113;l<=103116;l++)P[l]=0;for(l=103117;l<=103120;l++)P[l]=2;for(l=103153;l<=103157;l++)P[l]=0;for(l=103158;l<=103162;l++)P[l]=2;for(l=103163;l<=103165;l++)P[l]=0;for(l=103166;l<=103168;l++)P[l]=1;for(l=103169;l<=103171;l++)P[l]=2;for(l=103186;l<=103188;l++)P[l]=0;for(l=103189;l<=103191;l++)P[l]=2;for(l=103192;l<=103195;l++)P[l]=0;for(l=103196;l<=103199;l++)P[l]=2;for(l=103200;l<=103224;l++)P[l]=0;for(l=103225;l<=103227;l++)P[l]=1;for(l=103232;l<=103237;l++)P[l]=0;for(l=103238;l<=103243;l++)P[l]=2;for(l=103244;l<=103246;l++)P[l]=0;for(l=103247;l<=103249;l++)P[l]=2;for(l=103254;l<=103256;l++)P[l]=0;for(l=103257;l<=103259;l++)P[l]=2;for(l=103264;l<=103266;l++)P[l]=0;for(l=103267;l<=103269;l++)P[l]=2;for(l=103300;l<=103375;l++)P[l]=0;for(l=103381;l<=103383;l++)P[l]=0;for(l=103384;l<=103386;l++)P[l]=1;for(l=103387;l<=103389;l++)P[l]=0;for(l=103390;l<=103392;l++)P[l]=2;for(l=103397;l<=103399;l++)P[l]=0;for(l=103400;l<=103471;l++)P[l]=2;for(l=103476;l<=103478;l++)P[l]=0;for(l=103479;l<=103481;l++)P[l]=2;for(l=103486;l<=103488;l++)P[l]=0;for(l=103489;l<=103491;l++)P[l]=2;for(l=103492;l<=103495;l++)P[l]=0;for(l=103496;l<=103499;l++)P[l]=2;for(l=103528;l<=103543;l++)P[l]=0;for(l=103544;l<=103548;l++)P[l]=2;for(l=103549;l<=103551;l++)P[l]=0;for(l=103552;l<=103554;l++)P[l]=1;for(l=103555;l<=103557;l++)P[l]=2;for(l=103558;l<=103560;l++)P[l]=0;for(l=103571;l<=103573;l++)P[l]=0;for(l=103574;l<=103576;l++)P[l]=2;for(l=103577;l<=103580;l++)P[l]=0;for(l=103581;l<=103583;l++)P[l]=2;for(l=103595;l<=103694;l++)P[l]=0;for(l=103696;l<=103699;l++)P[l]=0;for(l=103700;l<=103793;l++)P[l]=2;for(l=103794;l<=103890;l++)P[l]=0;for(l=103891;l<=103896;l++)P[l]=2;for(l=103900;l<=103971;l++)P[l]=2;for(l=103972;l<=103977;l++)P[l]=0;for(l=112e3;l<=112101;l++)P[l]=0});function su(t,e){if(t===e)return!0;if(t==null||e==null)return!1;let r=t.wkid,n=e.wkid;if(r!=null||n!=null){if(r===n||Fs(t)&&Fs(e))return!0;let s=t.latestWkid;if(s!=null&&n===s)return!0;let c=e.latestWkid;return c!=null&&r===c}let i,o;return t.wkt2&&e.wkt2?(i=t.wkt2,o=e.wkt2):t.wkt&&e.wkt&&(i=t.wkt,o=e.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function xf(t){let e=t?.wkid;return e!=null&&e>=2e3&&LR[e]||null}function kg(t){if(!OR(t))return!1;let{wkid:e}=t;if(e)return P[e]==null;let r=t.wkt2||t.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function Og(t){return t?.wkid===4326}function Fs(t){let e=t?.wkid;return e!=null&&e>=2e3&&IR.includes(e)}function oE(t){return t===_f.GCSMARS2000||t===_f.GCSMARS2000_SPHERE}function sE(t){return t===_f.GCSMOON2000}function kR(t){let e=t?.wkid;return e!=null&&e>=2e3&&eJ.includes(e)}function OR(t){if(t==null)return!1;let e=t.wkid;return e!=null&&e>=2e3||t.wkt2!=null||t.wkt!=null}var IR,KX,eJ,Sf,iE,nE,LR,aE,cE,NR,fc=N(()=>{xa();MR();AR();rE();IR=[102100,102113,3857,3785,900913],KX=[104905,104971],eJ=[4326,...IR,...KX],Sf=[-20037508342788905e-9,20037508342788905e-9],iE=[-20037508342787e-6,20037508342787e-6],nE={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:Sf,origin:iE,dx:1e-5},LR={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Sf,origin:iE,dx:1e-5},102100:nE,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Sf,origin:iE,dx:1e-5},3857:nE,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:nE};aE={wkid:4326,wkt:Fo(LR[4326].wkTemplate,{Central_Meridian:"0.0"})},cE={wkid:102100,latestWkid:3857},NR={wkid:32662}});function lE(t){return{wkt:`GEOCCS["Spherical geocentric",
13
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function FO(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),r.push.apply(r,n)}return r}function UO(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?FO(Object(r),!0).forEach(function(n){ZZ(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):FO(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function QZ(t){return YZ(t)||XZ(t)||tX(t)||JZ()}function KZ(t,e){if(typeof t!="object"||!t)return t;var r=t[Symbol.toPrimitive];if(r!==void 0){var n=r.call(t,e||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function eX(t){var e=KZ(t,"string");return typeof e=="symbol"?e:e+""}function tX(t,e){if(t){if(typeof t=="string")return w5(t,e);var r={}.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?w5(t,e):void 0}}var VO,rX,nX,xg,iX,oX,zO,Sg,pb,sX,WO,BO=N(()=>{$O();VO={activateTrap:function(e,r){if(e.length>0){var n=e[e.length-1];n!==r&&n._setPausedState(!0)}var i=e.indexOf(r);i===-1||e.splice(i,1),e.push(r)},deactivateTrap:function(e,r){var n=e.indexOf(r);n!==-1&&e.splice(n,1),e.length>0&&!e[e.length-1]._isManuallyPaused()&&e[e.length-1]._setPausedState(!1)}},rX=function(e){return e.tagName&&e.tagName.toLowerCase()==="input"&&typeof e.select=="function"},nX=function(e){return e?.key==="Escape"||e?.key==="Esc"||e?.keyCode===27},xg=function(e){return e?.key==="Tab"||e?.keyCode===9},iX=function(e){return xg(e)&&!e.shiftKey},oX=function(e){return xg(e)&&e.shiftKey},zO=function(e){return setTimeout(e,0)},Sg=function(e){for(var r=arguments.length,n=new Array(r>1?r-1:0),i=1;i<r;i++)n[i-1]=arguments[i];return typeof e=="function"?e.apply(void 0,n):e},pb=function(e){return e.target.shadowRoot&&typeof e.composedPath=="function"?e.composedPath()[0]:e.target},sX=[],WO=function(e,r){var n=r?.document||document,i=r?.trapStack||sX,o=UO({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:iX,isKeyBackward:oX},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,manuallyPaused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},c,a=function(ce,H,ee){return ce&&ce[H]!==void 0?ce[H]:o[ee||H]},d=function(ce,H){var ee=typeof H?.composedPath=="function"?H.composedPath():void 0;return s.containerGroups.findIndex(function(de){var ue=de.container,ve=de.tabbableNodes;return ue.contains(ce)||ee?.includes(ue)||ve.find(function(ye){return ye===ce})})},h=function(ce){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=H.hasFallback,de=ee===void 0?!1:ee,ue=H.params,ve=ue===void 0?[]:ue,ye=o[ce];if(typeof ye=="function"&&(ye=ye.apply(void 0,QZ(ve))),ye===!0&&(ye=void 0),!ye){if(ye===void 0||ye===!1)return ye;throw new Error("`".concat(ce,"` was specified but was not a node, or did not return a node"))}var De=ye;if(typeof ye=="string"){try{De=n.querySelector(ye)}catch(Qe){throw new Error("`".concat(ce,'` appears to be an invalid selector; error="').concat(Qe.message,'"'))}if(!De&&!de)throw new Error("`".concat(ce,"` as selector refers to no known node"))}return De},g=function(){var ce=h("initialFocus",{hasFallback:!0});if(ce===!1)return!1;if(ce===void 0||ce&&!db(ce,o.tabbableOptions))if(d(n.activeElement)>=0)ce=n.activeElement;else{var H=s.tabbableGroups[0],ee=H&&H.firstTabbableNode;ce=ee||h("fallbackFocus")}else ce===null&&(ce=h("fallbackFocus"));if(!ce)throw new Error("Your focus-trap needs to have at least one focusable element");return ce},v=function(){if(s.containerGroups=s.containers.map(function(ce){var H=RO(ce,o.tabbableOptions),ee=DO(ce,o.tabbableOptions),de=H.length>0?H[0]:void 0,ue=H.length>0?H[H.length-1]:void 0,ve=ee.find(function(Qe){return nu(Qe)}),ye=ee.slice().reverse().find(function(Qe){return nu(Qe)}),De=!!H.find(function(Qe){return cc(Qe)>0});return{container:ce,tabbableNodes:H,focusableNodes:ee,posTabIndexesFound:De,firstTabbableNode:de,lastTabbableNode:ue,firstDomTabbableNode:ve,lastDomTabbableNode:ye,nextTabbableNode:function(ft){var mr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,Kt=H.indexOf(ft);return Kt<0?mr?ee.slice(ee.indexOf(ft)+1).find(function(er){return nu(er)}):ee.slice(0,ee.indexOf(ft)).reverse().find(function(er){return nu(er)}):H[Kt+(mr?1:-1)]}}}),s.tabbableGroups=s.containerGroups.filter(function(ce){return ce.tabbableNodes.length>0}),s.tabbableGroups.length<=0&&!h("fallbackFocus"))throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");if(s.containerGroups.find(function(ce){return ce.posTabIndexesFound})&&s.containerGroups.length>1)throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.")},E=function(ce){var H=ce.activeElement;if(H)return H.shadowRoot&&H.shadowRoot.activeElement!==null?E(H.shadowRoot):H},M=function(ce){if(ce!==!1&&ce!==E(document)){if(!ce||!ce.focus){M(g());return}ce.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=ce,rX(ce)&&ce.select()}},k=function(ce){var H=h("setReturnFocus",{params:[ce]});return H||(H===!1?!1:ce)},$=function(ce){var H=ce.target,ee=ce.event,de=ce.isBackward,ue=de===void 0?!1:de;H=H||pb(ee),v();var ve=null;if(s.tabbableGroups.length>0){var ye=d(H,ee),De=ye>=0?s.containerGroups[ye]:void 0;if(ye<0)ue?ve=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:ve=s.tabbableGroups[0].firstTabbableNode;else if(ue){var Qe=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.firstTabbableNode;return H===hn});if(Qe<0&&(De.container===H||db(H,o.tabbableOptions)&&!nu(H,o.tabbableOptions)&&!De.nextTabbableNode(H,!1))&&(Qe=ye),Qe>=0){var ft=Qe===0?s.tabbableGroups.length-1:Qe-1,mr=s.tabbableGroups[ft];ve=cc(H)>=0?mr.lastTabbableNode:mr.lastDomTabbableNode}else xg(ee)||(ve=De.nextTabbableNode(H,!1))}else{var Kt=s.tabbableGroups.findIndex(function(Cn){var hn=Cn.lastTabbableNode;return H===hn});if(Kt<0&&(De.container===H||db(H,o.tabbableOptions)&&!nu(H,o.tabbableOptions)&&!De.nextTabbableNode(H))&&(Kt=ye),Kt>=0){var er=Kt===s.tabbableGroups.length-1?0:Kt+1,Jn=s.tabbableGroups[er];ve=cc(H)>=0?Jn.firstTabbableNode:Jn.firstDomTabbableNode}else xg(ee)||(ve=De.nextTabbableNode(H))}}else ve=h("fallbackFocus");return ve},z=function(ce){var H=pb(ce);if(!(d(H,ce)>=0)){if(Sg(o.clickOutsideDeactivates,ce)){c.deactivate({returnFocus:o.returnFocusOnDeactivate});return}Sg(o.allowOutsideClick,ce)||ce.preventDefault()}},B=function(ce){var H=pb(ce),ee=d(H,ce)>=0;if(ee||H instanceof Document)ee&&(s.mostRecentlyFocusedNode=H);else{ce.stopImmediatePropagation();var de,ue=!0;if(s.mostRecentlyFocusedNode)if(cc(s.mostRecentlyFocusedNode)>0){var ve=d(s.mostRecentlyFocusedNode),ye=s.containerGroups[ve].tabbableNodes;if(ye.length>0){var De=ye.findIndex(function(Qe){return Qe===s.mostRecentlyFocusedNode});De>=0&&(o.isKeyForward(s.recentNavEvent)?De+1<ye.length&&(de=ye[De+1],ue=!1):De-1>=0&&(de=ye[De-1],ue=!1))}}else s.containerGroups.some(function(Qe){return Qe.tabbableNodes.some(function(ft){return cc(ft)>0})})||(ue=!1);else ue=!1;ue&&(de=$({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),M(de||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},q=function(ce){var H=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=ce;var ee=$({event:ce,isBackward:H});ee&&(xg(ce)&&ce.preventDefault(),M(ee))},V=function(ce){(o.isKeyForward(ce)||o.isKeyBackward(ce))&&q(ce,o.isKeyBackward(ce))},X=function(ce){nX(ce)&&Sg(o.escapeDeactivates,ce)!==!1&&(ce.preventDefault(),c.deactivate())},te=function(ce){var H=pb(ce);d(H,ce)>=0||Sg(o.clickOutsideDeactivates,ce)||Sg(o.allowOutsideClick,ce)||(ce.preventDefault(),ce.stopImmediatePropagation())},F=function(){if(s.active)return VO.activateTrap(i,c),s.delayInitialFocusTimer=o.delayInitialFocus?zO(function(){M(g())}):M(g()),n.addEventListener("focusin",B,!0),n.addEventListener("mousedown",z,{capture:!0,passive:!1}),n.addEventListener("touchstart",z,{capture:!0,passive:!1}),n.addEventListener("click",te,{capture:!0,passive:!1}),n.addEventListener("keydown",V,{capture:!0,passive:!1}),n.addEventListener("keydown",X),c},me=function(){if(s.active)return n.removeEventListener("focusin",B,!0),n.removeEventListener("mousedown",z,!0),n.removeEventListener("touchstart",z,!0),n.removeEventListener("click",te,!0),n.removeEventListener("keydown",V,!0),n.removeEventListener("keydown",X),c},Le=function(ce){var H=ce.some(function(ee){var de=Array.from(ee.removedNodes);return de.some(function(ue){return ue===s.mostRecentlyFocusedNode})});H&&M(g())},Ce=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Le):void 0,Ne=function(){Ce&&(Ce.disconnect(),s.active&&!s.paused&&s.containers.map(function(ce){Ce.observe(ce,{subtree:!0,childList:!0})}))};return c={get active(){return s.active},get paused(){return s.paused},activate:function(ce){if(s.active)return this;var H=a(ce,"onActivate"),ee=a(ce,"onPostActivate"),de=a(ce,"checkCanFocusTrap");de||v(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,H?.();var ue=function(){de&&v(),F(),Ne(),ee?.()};return de?(de(s.containers.concat()).then(ue,ue),this):(ue(),this)},deactivate:function(ce){if(!s.active)return this;var H=UO({onDeactivate:o.onDeactivate,onPostDeactivate:o.onPostDeactivate,checkCanReturnFocus:o.checkCanReturnFocus},ce);clearTimeout(s.delayInitialFocusTimer),s.delayInitialFocusTimer=void 0,me(),s.active=!1,s.paused=!1,Ne(),VO.deactivateTrap(i,c);var ee=a(H,"onDeactivate"),de=a(H,"onPostDeactivate"),ue=a(H,"checkCanReturnFocus"),ve=a(H,"returnFocus","returnFocusOnDeactivate");ee?.();var ye=function(){zO(function(){ve&&M(k(s.nodeFocusedBeforeActivation)),de?.()})};return ve&&ue?(ue(k(s.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(ce){return s.active?(s.manuallyPaused=!0,this._setPausedState(!0,ce)):this},unpause:function(ce){return s.active?(s.manuallyPaused=!1,i[i.length-1]!==this?this:this._setPausedState(!1,ce)):this},updateContainerElements:function(ce){var H=[].concat(ce).filter(Boolean);return s.containers=H.map(function(ee){return typeof ee=="string"?n.querySelector(ee):ee}),s.active&&v(),Ne(),this}},Object.defineProperties(c,{_isManuallyPaused:{value:function(){return s.manuallyPaused}},_setPausedState:{value:function(ce,H){if(s.paused===ce)return this;if(s.paused=ce,ce){var ee=a(H,"onPause"),de=a(H,"onPostPause");ee?.(),me(),Ne(),de?.()}else{var ue=a(H,"onUnpause"),ve=a(H,"onPostUnpause");ue?.(),v(),F(),Ne(),ve?.()}return this}}}),c.updateContainerElements(e),c}});function GO(t,e){return{clickOutsideDeactivates:!0,fallbackFocus:e?.fallbackFocus||t,setReturnFocus:r=>(Ry(r),!1),...e,document:t.ownerDocument,tabbableOptions:A4,trapStack:BI}}var jO=N(()=>{dn();Xt();});function qO(t,{focusTrapOptions:e},r){return!e?.extraContainers&&!r?t:[t,...HO(e?.extraContainers),...HO(r)]}function HO(t=[]){return Array.isArray(t)?t:[t]}var fb,y5=N(()=>{Jp();BO();jO();fb=t=>QA((e,r)=>{let n,i,o,s=t.focusTrapOptions;r.onConnected(()=>{e[t.triggerProp]&&n&&c.activate()}),r.onUpdate(a=>{e.hasUpdated&&a.has("focusTrapDisabled")&&(e.focusTrapDisabled?c.deactivate():c.activate())}),r.onDisconnected(()=>c.deactivate());let c={activate:()=>{let a=i||e.el;if(a.isConnected){if(!n){let d={...s,...e.focusTrapOptions};o||=qO(a,e),n=WO(o,GO(a,d))}(typeof e.focusTrapDisabledOverride=="function"?!e.focusTrapDisabledOverride():!e.focusTrapDisabled)&&n.activate()}},deactivate:()=>n?.deactivate(),overrideFocusTrapEl:a=>{if(n)throw new Error("Focus trap already created");i=a},setExtraContainers:a=>{let d=i||e.el;o=qO(d,e,a)},updateContainerElements:()=>n?.updateContainerElements(o)};return c})});function mb(t){return t==="Enter"||t===" "}var Eg,Cg=N(()=>{Eg=["0","1","2","3","4","5","6","7","8","9"]});var b5,mo,YO,ZO,XO,aX,JO,v5,QO=N(()=>{Xt();oc();Ii();ao();Er();m5();dn();tf();ob();h5();Rs();tc();PO();lf();Ho();y5();Cg();un();b5=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=e=>{let{registeredElements:r}=this,n=e.find(i=>r.has(i));return r.get(n)},this.togglePopovers=e=>{let r=e.composedPath(),n=this.queryPopover(r);n&&!n.triggerDisabled&&(n.open=!n.open),Array.from(this.registeredElements.values()).filter(i=>i!==n&&i.autoClose&&i.open&&!r.includes(i)).forEach(i=>i.open=!1)},this.keyDownHandler=e=>{e.defaultPrevented||(e.key==="Escape"?this.closeAllPopovers():mb(e.key)&&this.togglePopovers(e))},this.clickHandler=e=>{EL(e)||e.defaultPrevented||this.togglePopovers(e)}}registerElement(e,r){this.registeredElementCount++,this.registeredElements.set(e,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(e){this.registeredElements.delete(e)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(e=>e.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},mo={positionContainer:"position-container",container:"container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",heading:"heading"},YO="auto",ZO="aria-controls",XO="aria-expanded",aX=Ct`:host{display:contents;--calcite-floating-ui-z-index: var(--calcite-popover-z-index, var(--calcite-z-index-popup))}.position-container{inline-size:max-content;display:none;inset-block-start:0;left:0;z-index:var(--calcite-floating-ui-z-index)}.position-container .calcite-floating-ui-anim{position:relative;transition:var(--calcite-floating-ui-transition);transition-property:inset,left,opacity;opacity:0;box-shadow:0 0 16px #00000029;z-index:var(--calcite-z-index);border-radius:.25rem}.position-container[data-placement^=bottom] .calcite-floating-ui-anim{inset-block-start:-5px}.position-container[data-placement^=top] .calcite-floating-ui-anim{inset-block-start:5px}.position-container[data-placement^=left] .calcite-floating-ui-anim{left:5px}.position-container[data-placement^=right] .calcite-floating-ui-anim{left:-5px}.position-container[data-placement] .calcite-floating-ui-anim--active{opacity:1;inset-block-start:0;left:0}.calcite-floating-ui-arrow{pointer-events:none;position:absolute;z-index:calc(var(--calcite-z-index) * -1);fill:var(--calcite-color-foreground-1)}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-color-border-3)}:host([scale=s]) .heading{padding:.5rem .75rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding:.75rem 1rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding:1rem 1.25rem;font-size:var(--calcite-font-size-1);line-height:1.375}.position-container .calcite-floating-ui-anim{border-width:1px;border-style:solid;background-color:var(--calcite-popover-background-color, var(--calcite-color-foreground-1));border-color:var(--calcite-popover-border-color, var(--calcite-color-border-3));border-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round))}.calcite-floating-ui-arrow{fill:var(--calcite-popover-background-color, var(--calcite-color-foreground-1))}.calcite-floating-ui-arrow__stroke{stroke:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.header{display:flex;flex:1 1 auto;align-items:stretch;justify-content:flex-start;border-width:0px;border-bottom-width:1px;border-style:solid;border-block-end-color:var(--calcite-popover-border-color, var(--calcite-color-border-3))}.heading{margin:0;display:block;flex:1 1 auto;align-self:center;white-space:normal;font-weight:var(--calcite-font-weight-medium);word-wrap:break-word;word-break:break-word;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer{position:relative;display:flex;height:100%;flex-direction:row;flex-wrap:nowrap;border-radius:.25rem;color:var(--calcite-popover-text-color, var(--calcite-color-text-1))}.headerContainer.has-header{flex-direction:column}.content{display:flex;height:100%;width:100%;flex-direction:column;flex-wrap:nowrap;align-self:center;word-wrap:break-word;word-break:break-word}.close-button-container{display:flex;overflow:hidden;flex:0 0 auto;border-start-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));border-end-end-radius:var(--calcite-popover-corner-radius, var(--calcite-corner-radius-round));--calcite-action-corner-radius-start-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp));--calcite-action-corner-radius-end-end: var(--calcite-popover-corner-radius, var(--calcite-corner-radius-sharp))}::slotted(calcite-panel),::slotted(calcite-flow){height:100%}:host([hidden]){display:none}[hidden]{display:none}`,JO=new b5,v5=class extends gt{constructor(){super(...arguments),this.closeButtonEl=mi(),this.focusTrap=fb({triggerProp:"open",focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:e=>(e.defaultPrevented||(this.open=!1,e.preventDefault()),!1)}})(this),this.guid=`calcite-popover-${Os()}`,this.hasLoaded=!1,this.mutationObserver=Nn("mutation",()=>this.focusTrap.updateContainerElements()),this.transitionProp="opacity",this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.messages=Jr(),this.offsetDistance=f5,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=YO,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=Tt({cancelable:!1}),this.calcitePopoverBeforeOpen=Tt({cancelable:!1}),this.calcitePopoverClose=Tt({cancelable:!1}),this.calcitePopoverOpen=Tt({cancelable:!1})}static{this.properties={floatingLayout:16,referenceEl:16,autoClose:7,closable:7,flipDisabled:7,flipPlacements:0,focusTrapDisabled:7,focusTrapOptions:0,heading:1,headingLevel:11,label:1,messageOverrides:0,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,pointerDisabled:7,referenceElement:1,scale:3,triggerDisabled:7}}static{this.styles=aX}async reposition(e=!1){let{referenceEl:r,placement:n,overlayPositioning:i,flipDisabled:o,filteredFlipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,floatingEl:h}=this;return _O(this,{floatingEl:h,referenceEl:r,overlayPositioning:i,placement:n,flipDisabled:o,flipPlacements:s,offsetDistance:c,offsetSkidding:a,arrowEl:d,type:"popover"},e)}async setFocus(){await En(this),this.requestUpdate(),ec(this.el)}async updateFocusTrapElements(){this.focusTrap.updateContainerElements()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){}willUpdate(e){e.has("flipPlacements")&&this.flipPlacementsHandler(),e.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(e.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==f5)||e.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||e.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||e.has("placement")&&(this.hasUpdated||this.placement!==YO))&&this.reposition(!0),e.has("referenceElement")&&this.referenceElementHandler()}loaded(){this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),p5(this)}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){gf(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(e){this.floatingEl=e,e&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(e){this.transitionEl=e}setFilteredPlacements(){let{el:e,flipPlacements:r}=this;this.filteredFlipPlacements=r?vO(r,e):null}setUpReferenceElement(e=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),xO(this);let{el:r,referenceElement:n,referenceEl:i}=this;e&&n&&!i&&console.warn(`${r.tagName}: reference-element id "${n}" was not found.`,{el:r}),this.addReferences()}getId(){return this.el.id||this.guid}setExpandedAttr(){let{referenceEl:e,open:r}=this;e&&"setAttribute"in e&&e.setAttribute(XO,nf(r))}addReferences(){let{referenceEl:e}=this;if(!e)return;let r=this.getId();"setAttribute"in e&&e.setAttribute(ZO,r),JO.registerElement(e,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:e}=this;e&&("removeAttribute"in e&&(e.removeAttribute(ZO),e.removeAttribute(XO)),JO.unregisterElement(e))}getReferenceElement(){let{referenceElement:e,el:r}=this;return(typeof e=="string"?Yl(r,{id:e}):e)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),d5(this),this.focusTrap.deactivate()}storeArrowEl(e){this.arrowEl=e,this.reposition(!0)}renderCloseButton(){let{messages:e,closable:r}=this;return r?Jt(mo.closeButtonContainer,_e`<div class=${Se(mo.closeButtonContainer)}><calcite-action appearance=transparent class=${Se(mo.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${e.close} ${wt(this.closeButtonEl)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:e,headingLevel:r}=this,n=e?sb({class:mo.heading,level:r,children:e}):null;return n?Jt(mo.header,_e`<div class=${Se(mo.header)}>${n}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:e,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,c=e&&i,a=!c,d=o?null:Jt("floating-arrow",TO({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",Kp(this.el,"id",this.getId()),this.el.role="dialog",_e`<div class=${Se(mo.positionContainer)} ${wt(this.setFloatingEl)}><div class=${Se({[mo.container]:!0,[u5.animation]:!0,[u5.animationActive]:c})} ${wt(this.setTransitionEl)}>${d}<div class=${Se({[mo.hasHeader]:!!r,[mo.headerContainer]:!0})}>${this.renderHeader()}<div class=${Se(mo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Lt("calcite-popover",v5)});var KO=N(()=>{Hy();Zl();QO()});function _5(t,e){return(t+e)%e}var eN=N(()=>{});var S5,Tg,tN,rN,x5=N(()=>{S5={menu:"menu",defaultTrigger:"default-trigger"},Tg={tooltip:"tooltip",trigger:"trigger"},tN={menu:"ellipsis"},rN="data-active"});var cX,lX,E5,nN=N(()=>{Xt();ao();Ii();Er();eN();dn();tf();Cg();Rs();x5();un();cX=Ct`:host{box-sizing:border-box;display:flex;flex-direction:column;font-size:var(--calcite-font-size-1)}::slotted(calcite-action-group:not(:last-of-type)){border-block-end-width:var(--calcite-border-width-sm)}.default-trigger{position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}slot[name=trigger]::slotted(calcite-action),calcite-action::slotted([slot=trigger]){position:relative;block-size:100%;flex:0 1 auto;align-self:stretch}.menu{display:flex;max-block-size:45vh;flex-direction:column;flex-wrap:nowrap;overflow-y:auto;overflow-x:hidden;outline:2px solid transparent;outline-offset:2px;gap:var(--calcite-action-menu-items-space, 0)}:host([hidden]){display:none}[hidden]{display:none}`,lX=["ArrowUp","ArrowDown","End","Home"],E5=class extends gt{constructor(){super(...arguments),this.guid=`calcite-action-menu-${Os()}`,this.actionElements=[],this.menuButtonClick=()=>{this.toggleOpen()},this.menuButtonId=`${this.guid}-menu-button`,this.menuButtonKeyDown=e=>{let{key:r}=e,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(mb(r)){if(e.preventDefault(),!o){this.toggleOpen();return}let s=n[i];s?s.click():this.toggleOpen(!1)}if(r==="Tab"){this.open=!1;return}if(r==="Escape"){this.toggleOpen(!1),e.preventDefault();return}this.handleActionNavigation(e,r,n)}},this.menuId=`${this.guid}-menu`,this._open=!1,this.updateAction=(e,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;e.tabIndex=-1,e.setAttribute("role","menuitem"),e.id||(e.id=o),e.toggleAttribute(rN,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=Tt({cancelable:!1})}static{this.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3}}static{this.styles=cX}get open(){return this._open}set open(e){let r=this._open;e!==r&&(this._open=e,this.openHandler(e))}async setFocus(){return await En(this),Ry(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){}willUpdate(e){e.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.expandedHandler(),e.has("activeMenuItemIndex")&&(this.hasUpdated||this.activeMenuItemIndex!==-1)&&this.updateActions(this.actionElements)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(e){this.menuButtonEl&&(this.menuButtonEl.active=e),this.popoverEl&&(this.popoverEl.open=e),this.activeMenuItemIndex=this.open?0:-1,this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}connectMenuButtonEl(){let{menuButtonId:e,menuId:r,open:n,label:i}=this,o=this.slottedMenuButtonEl||this.defaultMenuButtonEl;this.menuButtonEl!==o&&(this.disconnectMenuButtonEl(),this.menuButtonEl=o,this.setTooltipReferenceElement(),o&&(o.active=n,o.setAttribute("aria-controls",r),o.setAttribute("aria-expanded",nf(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=e),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))}disconnectMenuButtonEl(){let{menuButtonEl:e}=this;e&&(e.removeEventListener("click",this.menuButtonClick),e.removeEventListener("keydown",this.menuButtonKeyDown),this.menuButtonEl=null)}setMenuButtonEl(e){let r=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()}setDefaultMenuButtonEl(e){this.defaultMenuButtonEl=e,e&&this.connectMenuButtonEl()}setPopoverEl(e){e&&(this.popoverEl=e,e.open=this.open)}handleCalciteActionClick(){this.open=!1,this.setFocus()}updateTooltip(e){let r=e.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()}setTooltipReferenceElement(){let{tooltipEl:e,expanded:r,menuButtonEl:n,open:i}=this;e&&(e.referenceElement=!r&&!i?n:null)}updateActions(e){e?.forEach(this.updateAction)}handleDefaultSlotChange(e){let r=e.target.assignedElements({flatten:!0}).reduce((n,i)=>i?.matches("calcite-action")?(n.push(i),n):i?.matches("calcite-action-group")?n.concat(Array.from(i.querySelectorAll("calcite-action"))):n,[]);this.actionElements=r.filter(n=>!n.disabled&&!n.hidden)}isValidKey(e,r){return!!r.find(n=>n===e)}handleActionNavigation(e,r,n){if(!this.isValidKey(r,lX))return;if(e.preventDefault(),!this.open){this.toggleOpen(),(r==="Home"||r==="ArrowDown")&&(this.activeMenuItemIndex=0),(r==="End"||r==="ArrowUp")&&(this.activeMenuItemIndex=n.length-1);return}r==="Home"&&(this.activeMenuItemIndex=0),r==="End"&&(this.activeMenuItemIndex=n.length-1);let i=this.activeMenuItemIndex;r==="ArrowUp"&&(this.activeMenuItemIndex=_5(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=_5(i+1,n.length))}toggleOpen(e=!this.open){this.open=e}handlePopoverOpen(){this.open=!0,this.setFocus()}handlePopoverClose(){this.open=!1}renderMenuButton(){let{appearance:e,label:r,scale:n,expanded:i}=this;return _e`<slot name=${Tg.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${e} class=${Se(S5.defaultTrigger)} .icon=${tN.menu} .scale=${n} .text=${r} .textEnabled=${i} ${wt(this.setDefaultMenuButtonEl)}></calcite-action></slot>`}renderMenuItems(){let{actionElements:e,activeMenuItemIndex:r,menuId:n,menuButtonEl:i,label:o,placement:s,overlayPositioning:c,flipPlacements:a}=this,d=e[r]?.id||null;return _e`<calcite-popover auto-close .flipPlacements=${a} focus-trap-disabled .label=${o} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${c} .placement=${s} pointer-disabled .referenceElement=${i} trigger-disabled ${wt(this.setPopoverEl)}><div aria-activedescendant=${d??Oe} aria-labelledby=${i?.id??Oe} class=${Se(S5.menu)} id=${n??Oe} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return _e`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${Tg.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Lt("calcite-action-menu",E5)});var iN=N(()=>{Hy();KO();nN()});var Qt,C5,Pg,Rt,T5=N(()=>{Qt={actionBarContainer:"action-bar-container",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",description:"description",headerContent:"header-content",headerActions:"header-actions",headerActionsEnd:"header-actions--end",headerActionsStart:"header-actions--start",contentWrapper:"content-wrapper",fabContainer:"fab-container",footer:"footer",footerContent:"footer-content",footerActions:"footer-actions",footerStart:"footer-start",footerEnd:"footer-end",headerSlottedContent:"header-slotted-content"},C5={close:"close",collapse:"collapse"},Pg={close:"x",menu:"ellipsis",expand:"chevron-down",collapse:"chevron-up"},Rt={actionBar:"action-bar",alerts:"alerts",contentBottom:"content-bottom",contentTop:"content-top",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerEnd:"footer-end",footerStart:"footer-start",footerActions:"footer-actions"}});var uX,P5,oN=N(()=>{Xt();oc();ao();Ii();Er();dn();ag();Rs();tc();x5();h5();m5();Ho();T5();un();uX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{position:relative;box-sizing:border-box;display:flex;block-size:100%;inline-size:100%;flex:1 1 auto;overflow:hidden;--calcite-min-header-height: calc(var(--calcite-icon-size) * 3)}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}.header{margin:0;display:flex;align-content:space-between;align-items:center;fill:var(--calcite-color-text-2);color:var(--calcite-color-text-2)}.heading{margin:0;padding:0;font-weight:var(--calcite-font-weight-medium)}.header .heading{flex:1 1 auto;padding:.5rem}:host([scale=s]){--calcite-internal-panel-default-space: var(--calcite-spacing-sm);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-sm-plus)}:host([scale=s]) .header-content .heading{font-size:var(--calcite-font-size--1)}:host([scale=s]) .header-content .description{font-size:var(--calcite-font-size--2)}:host([scale=m]){--calcite-internal-panel-default-space: var(--calcite-spacing-md);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-md-plus)}:host([scale=m]) .header-content .heading{font-size:var(--calcite-font-size-0)}:host([scale=m]) .header-content .description{font-size:var(--calcite-font-size--1)}:host([scale=l]){--calcite-internal-panel-default-space: var(--calcite-spacing-lg);--calcite-internal-panel-header-vertical-padding: var(--calcite-spacing-xl)}:host([scale=l]) .header-content .heading{font-size:var(--calcite-font-size-1)}:host([scale=l]) .header-content .description{font-size:var(--calcite-font-size-0)}.content-top,.content-bottom{display:flex;align-items:flex-start;align-self:stretch;padding:var(--calcite-internal-panel-default-space);border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));background-color:var(--calcite-panel-background-color, var(--calcite-color-foreground-1))}.container{position:relative;margin:0;display:flex;inline-size:100%;flex:1 1 auto;flex-direction:column;align-items:stretch;overflow:hidden;background-color:var(--calcite-color-background);padding:0;color:var(--calcite-color-text-2);transition:max-block-size var(--calcite-animation-timing),inline-size var(--calcite-animation-timing);border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none));box-sizing:border-box;font-size:var(--calcite-font-size--1)}.container *{box-sizing:border-box}.container[hidden]{display:none}.header{z-index:var(--calcite-z-index-header);display:flex;flex-direction:column;border-radius:var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) 0 0;background-color:var(--calcite-panel-header-background-color, var(--calcite-color-foreground-1));border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-panel-header-border-block-end, var(--calcite-color-border-3)))}.header-container{display:flex;inline-size:100%;flex-direction:row;align-items:stretch;justify-content:flex-start;flex:0 0 auto}.header-container--border-end{border-block-end:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3))}.action-bar-container{inline-size:100%}.action-bar-container ::slotted(calcite-action-bar){inline-size:100%}.header-content{display:flex;flex-direction:column;overflow:hidden;padding-inline:.75rem;padding-block:.875rem;margin-inline-end:auto;justify-content:center}.header-content .header-actions{--calcite-action-background-color-hover: var(--calcite-panel-header-action-background-color-hover);--calcite-action-background-color-press: var(--calcite-panel-header-action-background-color-press);--calcite-action-background-color: var(--calcite-panel-header-action-background-color);--calcite-action-indicator-color: var(--calcite-panel-header-action-indicator-color);--calcite-action-text-color-press: var(--calcite-panel-header-action-text-color-press);--calcite-action-text-color: var(--calcite-panel-header-action-text-color)}.header-content .heading,.header-content .description{display:block;flex:none;overflow-wrap:break-word;padding:0;line-height:var(--calcite-font-line-height-relative-snug)}.header-content .heading{font-weight:var(--calcite-font-weight-medium);color:var(--calcite-panel-heading-text-color, var(--calcite-color-text-1))}.header-content .heading:only-child{margin-block-end:0px}.header-content .description{color:var(--calcite-panel-description-text-color, var(--calcite-color-text-2))}.back-button{border-width:0px;border-style:solid;border-inline-end-width:1px;border-color:var(--calcite-panel-border-color, var(--calcite-color-border-3))}.header-actions{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:stretch}.header-actions--end{margin-inline-start:auto}#close:last-child,#collapse:last-child,calcite-action-menu:last-child{--calcite-action-corner-radius-start-end: var(--calcite-panel-corner-radius)}.back-button{--calcite-action-corner-radius-start-start: var(--calcite-panel-corner-radius)}.content-wrapper{position:relative;display:flex;block-size:100%;flex:1 1 auto;flex-direction:column;flex-wrap:nowrap;align-items:stretch;overflow:auto;color:var(--calcite-color-text-2);outline-color:transparent;padding:var(--calcite-panel-space, var(--calcite-panel-content-space, 0));background:var(--calcite-panel-background-color, var(--calcite-color-background))}.content-wrapper:focus-visible{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.header-content{flex:1 1 auto;justify-content:center;padding-block:var(--calcite-internal-panel-header-vertical-padding);padding-inline:var(--calcite-internal-panel-default-space)}.header-content.header-slotted-content{padding:var(--calcite-panel-header-content-space, var(--calcite-internal-panel-header-vertical-padding) var(--calcite-internal-panel-default-space))}.footer{margin-block-start:auto;display:flex;flex-direction:row;align-content:space-between;align-items:center;justify-content:center;font-size:var(--calcite-font-size--2);line-height:1.375;border-block-start:1px solid var(--calcite-panel-border-color, var(--calcite-color-border-3));padding:var(--calcite-panel-footer-space, var(--calcite-panel-footer-padding, var(--calcite-internal-panel-default-space)));background-color:var(--calcite-panel-footer-background-color, var(--calcite-color-foreground-1));border-radius:0 0 var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none)) var(--calcite-panel-corner-radius, var(--calcite-corner-radius-none))}.footer-content{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:center}.footer-actions{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:space-evenly;gap:var(--calcite-internal-panel-default-space)}.footer-start{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-start;margin-inline-end:auto;gap:var(--calcite-internal-panel-default-space)}.footer-end{display:flex;flex:1 1 0%;flex-direction:row;align-items:center;justify-content:flex-end;margin-inline-start:auto;gap:var(--calcite-internal-panel-default-space)}.fab-container{position:sticky;inset-block-end:0px;z-index:var(--calcite-z-index-sticky);margin-block:0px;margin-inline:auto;display:block;padding:.5rem;inset-inline:0;inline-size:fit-content}:host([hidden]){display:none}[hidden]{display:none}`,P5=class extends gt{constructor(){super(),this.resizeObserver=Nn("resize",()=>this.resizeHandler()),this.hasActionBar=!1,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasEndActions=!1,this.hasFab=!1,this.hasFooterActions=!1,this.hasFooterContent=!1,this.hasFooterEndContent=!1,this.hasFooterStartContent=!1,this.hasHeaderContent=!1,this.hasMenuItems=!1,this.hasStartActions=!1,this.isClosed=!1,this.showHeaderContent=!1,this.closable=!1,this.closed=!1,this.collapseDirection="down",this.collapsed=!1,this.collapsible=!1,this.disabled=!1,this.loading=!1,this.menuOpen=!1,this.menuPlacement=bO,this.messages=Jr(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=Tt({cancelable:!1}),this.calcitePanelScroll=Tt({cancelable:!1}),this.calcitePanelToggle=Tt({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}static{this.properties={hasActionBar:16,hasContentBottom:16,hasContentTop:16,hasEndActions:16,hasFab:16,hasFooterActions:16,hasFooterContent:16,hasFooterEndContent:16,hasFooterStartContent:16,hasHeaderContent:16,hasMenuItems:16,hasStartActions:16,isClosed:16,showHeaderContent:16,beforeClose:0,closable:7,closed:7,collapseDirection:1,collapsed:7,collapsible:7,description:1,disabled:7,heading:1,headingLevel:11,loading:7,menuFlipPlacements:0,menuOpen:7,menuPlacement:3,messageOverrides:0,overlayPositioning:3,scale:3}}static{this.styles=uX}async scrollContentTo(e){this.panelScrollEl?.scrollTo(e)}async setFocus(){await En(this),ec(this.containerEl)}async load(){this.isClosed=this.closed}willUpdate(e){e.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){nc(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:e}=this;!e||typeof e.scrollHeight!="number"||typeof e.offsetHeight!="number"||(e.scrollHeight>e.offsetHeight?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex"))}setContainerRef(e){this.containerEl=e}panelKeyDownHandler(e){this.closable&&e.key==="Escape"&&!e.defaultPrevented&&(this.handleUserClose(),e.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let e=this.beforeClose??(()=>Promise.resolve());try{await e()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(e){this.hasStartActions=On(e)}handleHeaderActionsEndSlotChange(e){this.hasEndActions=On(e)}handleHeaderMenuActionsSlotChange(e){this.hasMenuItems=On(e)}handleActionBarSlotChange(e){let r=Dy(e).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(e){this.hasHeaderContent=On(e)}handleFabSlotChange(e){this.hasFab=On(e)}handleFooterActionsSlotChange(e){this.hasFooterActions=On(e)}handleFooterEndSlotChange(e){this.hasFooterEndContent=On(e)}handleFooterStartSlotChange(e){this.hasFooterStartContent=On(e)}handleFooterSlotChange(e){this.hasFooterContent=On(e)}contentBottomSlotChangeHandler(e){this.hasContentBottom=On(e)}contentTopSlotChangeHandler(e){this.hasContentTop=On(e)}setPanelScrollEl(e){this.panelScrollEl=e,this.resizeObserver?.disconnect(),e&&(this.resizeObserver?.observe(e),this.resizeHandler())}handleAlertsSlotChange(e){Dy(e)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:e,headingLevel:r,description:n,hasHeaderContent:i}=this,o=e?sb({class:Qt.heading,level:r,children:e}):null,s=n?_e`<span class=${Se(Qt.description)}>${n}</span>`:null;return!i&&(o||s)?Jt("header-content",_e`<div class=${Se(Qt.headerContent)}>${o}${s}</div>`):null}renderActionBar(){return _e`<div class=${Se(Qt.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${Rt.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return Jt("slotted-header-content",_e`<div class=${Se({[Qt.headerContent]:!0,[Qt.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${Rt.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:e}=this;return Jt("header-actions-start",_e`<div class=${Se({[Qt.headerActionsStart]:!0,[Qt.headerActions]:!0})} .hidden=${!e}><slot name=${Rt.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:e,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:c}=this,{collapse:a,expand:d,close:h}=r,g=[Pg.expand,Pg.collapse];o==="up"&&g.reverse();let v=s?_e`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${C5.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Oe}></calcite-action>`:null,E=n?_e`<calcite-action .ariaLabel=${h} .icon=${Pg.close} id=${C5.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Oe}></calcite-action>`:null,M=_e`<slot name=${Rt.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,k=e||v||E||c;return Jt("header-actions-end",_e`<div class=${Se({[Qt.headerActionsEnd]:!0,[Qt.headerActions]:!0})} .hidden=${!k}>${M}${this.renderMenu()}${v}${E}</div>`)}renderMenu(){let{hasMenuItems:e,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return Jt("menu",_e`<calcite-action-menu .flipPlacements=${i??["top","bottom"]} .hidden=${!e} .label=${r.options} .open=${n} .overlayPositioning=${this.overlayPositioning} .placement=${o}><calcite-action .icon=${Pg.menu} .scale=${this.scale} slot=${Tg.trigger} .text=${r.options}></calcite-action><slot name=${Rt.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:e,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:c}=this,a=this.renderHeaderContent(),d=e||!!a||r||n||o||i||s;return this.showHeaderContent=d,_e`<header class=${Se(Qt.header)} .hidden=${!(d||c)}><div class=${Se({[Qt.headerContainer]:!0,[Qt.headerContainerBorderEnd]:c})} .hidden=${!d}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${a}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:e,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||e||n||i;return _e`<footer class=${Se(Qt.footer)} .hidden=${!o}><div class=${Se(Qt.footerContent)} .hidden=${!n}><slot name=${Rt.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${Se(Qt.footerStart)} .hidden=${n||!r}><slot name=${Rt.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${Se(Qt.footerEnd)} .hidden=${n||!e}><slot name=${Rt.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${Se(Qt.footerActions)} .hidden=${n||!i}>${Jt("footer-actions-slot",_e`<slot name=${Rt.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return _e`<div class=${Se(Qt.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${wt(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return _e`<div class=${Se(Qt.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${Rt.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return _e`<div class=${Se(Qt.contentTop)} .hidden=${!this.hasContentTop}><slot name=${Rt.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return _e`<div class=${Se(Qt.fabContainer)} .hidden=${!this.hasFab}><slot name=${Rt.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:e,loading:r,isClosed:n}=this,i=_e`<article .ariaBusy=${r} class=${Se(Qt.container)} .hidden=${n} ${wt(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${Jt("alerts",_e`<slot name=${Rt.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return ic({disabled:e,children:_e`${r?_e`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Lt("calcite-panel",P5)});var sN=N(()=>{Hy();iN();q4();oN()});function cN(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var aN,lN=N(()=>{aN=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}});var hb,dX,Mg,uN=N(()=>{lN();hb={exports:{}};hb.exports;(function(t,e){(function(r,n){t.exports=n()})(aN,function(){function r(f,p){var w=Object.keys(f);if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(f);p&&(_=_.filter(function(C){return Object.getOwnPropertyDescriptor(f,C).enumerable})),w.push.apply(w,_)}return w}function n(f){for(var p=1;p<arguments.length;p++){var w=arguments[p]!=null?arguments[p]:{};p%2?r(Object(w),!0).forEach(function(_){a(f,_,w[_])}):Object.getOwnPropertyDescriptors?Object.defineProperties(f,Object.getOwnPropertyDescriptors(w)):r(Object(w)).forEach(function(_){Object.defineProperty(f,_,Object.getOwnPropertyDescriptor(w,_))})}return f}function i(f){return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(p){return typeof p}:function(p){return p&&typeof Symbol=="function"&&p.constructor===Symbol&&p!==Symbol.prototype?"symbol":typeof p},i(f)}function o(f,p){if(!(f instanceof p))throw new TypeError("Cannot call a class as a function")}function s(f,p){for(var w=0;w<p.length;w++){var _=p[w];_.enumerable=_.enumerable||!1,_.configurable=!0,"value"in _&&(_.writable=!0),Object.defineProperty(f,k(_.key),_)}}function c(f,p,w){return p&&s(f.prototype,p),Object.defineProperty(f,"prototype",{writable:!1}),f}function a(f,p,w){return(p=k(p))in f?Object.defineProperty(f,p,{value:w,enumerable:!0,configurable:!0,writable:!0}):f[p]=w,f}function d(f,p){if(typeof p!="function"&&p!==null)throw new TypeError("Super expression must either be null or a function");f.prototype=Object.create(p&&p.prototype,{constructor:{value:f,writable:!0,configurable:!0}}),Object.defineProperty(f,"prototype",{writable:!1}),p&&g(f,p)}function h(f){return h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(p){return p.__proto__||Object.getPrototypeOf(p)},h(f)}function g(f,p){return g=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(w,_){return w.__proto__=_,w},g(f,p)}function v(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function E(f){var p=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}();return function(){var w,_=h(f);if(p){var C=h(this).constructor;w=Reflect.construct(_,arguments,C)}else w=_.apply(this,arguments);return function(T,A){if(A&&(typeof A=="object"||typeof A=="function"))return A;if(A!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return v(T)}(this,w)}}function M(){return M=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,p,w){var _=function(T,A){for(;!Object.prototype.hasOwnProperty.call(T,A)&&(T=h(T))!==null;);return T}(f,p);if(_){var C=Object.getOwnPropertyDescriptor(_,p);return C.get?C.get.call(arguments.length<3?f:w):C.value}},M.apply(this,arguments)}function k(f){var p=function(w,_){if(typeof w!="object"||w===null)return w;var C=w[Symbol.toPrimitive];if(C!==void 0){var T=C.call(w,_);if(typeof T!="object")return T;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(w)}(f,"string");return typeof p=="symbol"?p:p+""}var $=function(f){return!(!f||!f.Window)&&f instanceof f.Window},z=void 0,B=void 0;function q(f){z=f;var p=f.document.createTextNode("");p.ownerDocument!==f.document&&typeof f.wrap=="function"&&f.wrap(p)===p&&(f=f.wrap(f)),B=f}function V(f){return $(f)?f:(f.ownerDocument||f).defaultView||B.window}typeof window<"u"&&window&&q(window);var X=function(f){return!!f&&i(f)==="object"},te=function(f){return typeof f=="function"},F={window:function(f){return f===B||$(f)},docFrag:function(f){return X(f)&&f.nodeType===11},object:X,func:te,number:function(f){return typeof f=="number"},bool:function(f){return typeof f=="boolean"},string:function(f){return typeof f=="string"},element:function(f){if(!f||i(f)!=="object")return!1;var p=V(f)||B;return/object|function/.test(typeof Element>"u"?"undefined":i(Element))?f instanceof Element||f instanceof p.Element:f.nodeType===1&&typeof f.nodeName=="string"},plainObject:function(f){return X(f)&&!!f.constructor&&/function Object\b/.test(f.constructor.toString())},array:function(f){return X(f)&&f.length!==void 0&&te(f.splice)}};function me(f){var p=f.interaction;if(p.prepared.name==="drag"){var w=p.prepared.axis;w==="x"?(p.coords.cur.page.y=p.coords.start.page.y,p.coords.cur.client.y=p.coords.start.client.y,p.coords.velocity.client.y=0,p.coords.velocity.page.y=0):w==="y"&&(p.coords.cur.page.x=p.coords.start.page.x,p.coords.cur.client.x=p.coords.start.client.x,p.coords.velocity.client.x=0,p.coords.velocity.page.x=0)}}function Le(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="drag"){var _=w.prepared.axis;if(_==="x"||_==="y"){var C=_==="x"?"y":"x";p.page[C]=w.coords.start.page[C],p.client[C]=w.coords.start.client[C],p.delta[C]=0}}}var Ce={id:"actions/drag",install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.draggable=Ce.draggable,p.map.drag=Ce,p.methodDict.drag="draggable",_.actions.drag=Ce.defaults},listeners:{"interactions:before-action-move":me,"interactions:action-resume":me,"interactions:action-move":Le,"auto-start:check":function(f){var p=f.interaction,w=f.interactable,_=f.buttons,C=w.options.drag;if(C&&C.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||_&w.options.drag.mouseButtons))return f.action={name:"drag",axis:C.lockAxis==="start"?C.startAxis:C.lockAxis},!1}},draggable:function(f){return F.object(f)?(this.options.drag.enabled=f.enabled!==!1,this.setPerAction("drag",f),this.setOnEvents("drag",f),/^(xy|x|y|start)$/.test(f.lockAxis)&&(this.options.drag.lockAxis=f.lockAxis),/^(xy|x|y)$/.test(f.startAxis)&&(this.options.drag.startAxis=f.startAxis),this):F.bool(f)?(this.options.drag.enabled=f,this):this.options.drag},beforeMove:me,move:Le,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(f){return f.search("drag")===0}},Ne=Ce,we={init:function(f){var p=f;we.document=p.document,we.DocumentFragment=p.DocumentFragment||ce,we.SVGElement=p.SVGElement||ce,we.SVGSVGElement=p.SVGSVGElement||ce,we.SVGElementInstance=p.SVGElementInstance||ce,we.Element=p.Element||ce,we.HTMLElement=p.HTMLElement||we.Element,we.Event=p.Event,we.Touch=p.Touch||ce,we.PointerEvent=p.PointerEvent||p.MSPointerEvent},document:null,DocumentFragment:null,SVGElement:null,SVGSVGElement:null,SVGElementInstance:null,Element:null,HTMLElement:null,Event:null,Touch:null,PointerEvent:null};function ce(){}var H=we,ee={init:function(f){var p=H.Element,w=f.navigator||{};ee.supportsTouch="ontouchstart"in f||F.func(f.DocumentTouch)&&H.document instanceof f.DocumentTouch,ee.supportsPointerEvent=w.pointerEnabled!==!1&&!!H.PointerEvent,ee.isIOS=/iP(hone|od|ad)/.test(w.platform),ee.isIOS7=/iP(hone|od|ad)/.test(w.platform)&&/OS 7[^\d]/.test(w.appVersion),ee.isIe9=/MSIE 9/.test(w.userAgent),ee.isOperaMobile=w.appName==="Opera"&&ee.supportsTouch&&/Presto/.test(w.userAgent),ee.prefixedMatchesSelector="matches"in p.prototype?"matches":"webkitMatchesSelector"in p.prototype?"webkitMatchesSelector":"mozMatchesSelector"in p.prototype?"mozMatchesSelector":"oMatchesSelector"in p.prototype?"oMatchesSelector":"msMatchesSelector",ee.pEventTypes=ee.supportsPointerEvent?H.PointerEvent===f.MSPointerEvent?{up:"MSPointerUp",down:"MSPointerDown",over:"mouseover",out:"mouseout",move:"MSPointerMove",cancel:"MSPointerCancel"}:{up:"pointerup",down:"pointerdown",over:"pointerover",out:"pointerout",move:"pointermove",cancel:"pointercancel"}:null,ee.wheelEvent=H.document&&"onmousewheel"in H.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},de=ee;function ue(f,p){if(f.contains)return f.contains(p);for(;p;){if(p===f)return!0;p=p.parentNode}return!1}function ve(f,p){for(;F.element(f);){if(De(f,p))return f;f=ye(f)}return null}function ye(f){var p=f.parentNode;if(F.docFrag(p)){for(;(p=p.host)&&F.docFrag(p););return p}return p}function De(f,p){return B!==z&&(p=p.replace(/\/deep\//g," ")),f[de.prefixedMatchesSelector](p)}var Qe=function(f){return f.parentNode||f.host};function ft(f,p){for(var w,_=[],C=f;(w=Qe(C))&&C!==p&&w!==C.ownerDocument;)_.unshift(C),C=w;return _}function mr(f,p,w){for(;F.element(f);){if(De(f,p))return!0;if((f=ye(f))===w)return De(f,p)}return!1}function Kt(f){return f.correspondingUseElement||f}function er(f){var p=f instanceof H.SVGElement?f.getBoundingClientRect():f.getClientRects()[0];return p&&{left:p.left,right:p.right,top:p.top,bottom:p.bottom,width:p.width||p.right-p.left,height:p.height||p.bottom-p.top}}function Jn(f){var p,w=er(f);if(!de.isIOS7&&w){var _={x:(p=(p=V(f))||B).scrollX||p.document.documentElement.scrollLeft,y:p.scrollY||p.document.documentElement.scrollTop};w.left+=_.x,w.right+=_.x,w.top+=_.y,w.bottom+=_.y}return w}function Cn(f){for(var p=[];f;)p.push(f),f=ye(f);return p}function hn(f){return!!F.string(f)&&(H.document.querySelector(f),!0)}function Ue(f,p){for(var w in p)f[w]=p[w];return f}function gu(f,p,w){return f==="parent"?ye(w):f==="self"?p.getRect(w):ve(w,f)}function _o(f,p,w,_){var C=f;return F.string(C)?C=gu(C,p,w):F.func(C)&&(C=C.apply(void 0,_)),F.element(C)&&(C=Jn(C)),C}function Di(f){return f&&{x:"x"in f?f.x:f.left,y:"y"in f?f.y:f.top}}function gc(f){return!f||"x"in f&&"y"in f||((f=Ue({},f)).x=f.left||0,f.y=f.top||0,f.width=f.width||(f.right||0)-f.x,f.height=f.height||(f.bottom||0)-f.y),f}function Vs(f,p,w){f.left&&(p.left+=w.x),f.right&&(p.right+=w.x),f.top&&(p.top+=w.y),f.bottom&&(p.bottom+=w.y),p.width=p.right-p.left,p.height=p.bottom-p.top}function Qo(f,p,w){var _=w&&f.options[w];return Di(_o(_&&_.origin||f.options.origin,f,p,[f&&p]))||{x:0,y:0}}function yi(f,p){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(R){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},F.string(f)&&f.search(" ")!==-1&&(f=wu(f)),F.array(f))return f.forEach(function(R){return yi(R,p,w,_)}),_;if(F.object(f)&&(p=f,f=""),F.func(p)&&w(f))_[f]=_[f]||[],_[f].push(p);else if(F.array(p))for(var C=0,T=p;C<T.length;C++){var A=T[C];yi(f,A,w,_)}else if(F.object(p))for(var O in p)yi(wu(O).map(function(R){return"".concat(f).concat(R)}),p[O],w,_);return _}function wu(f){return f.trim().split(/ +/)}var Ko=function(f,p){return Math.sqrt(f*f+p*p)},Lf=["webkit","moz"];function So(f,p){f.__set||(f.__set={});var w=function(C){if(Lf.some(function(T){return C.indexOf(T)===0}))return 1;typeof f[C]!="function"&&C!=="__set"&&Object.defineProperty(f,C,{get:function(){return C in f.__set?f.__set[C]:f.__set[C]=p[C]},set:function(T){f.__set[C]=T},configurable:!0})};for(var _ in p)w(_);return f}function zs(f,p){f.page=f.page||{},f.page.x=p.page.x,f.page.y=p.page.y,f.client=f.client||{},f.client.x=p.client.x,f.client.y=p.client.y,f.timeStamp=p.timeStamp}function wc(f){f.page.x=0,f.page.y=0,f.client.x=0,f.client.y=0}function yc(f){return f instanceof H.Event||f instanceof H.Touch}function hr(f,p,w){return f=f||"page",(w=w||{}).x=p[f+"X"],w.y=p[f+"Y"],w}function yu(f,p){return p=p||{x:0,y:0},de.isOperaMobile&&yc(f)?(hr("screen",f,p),p.x+=window.scrollX,p.y+=window.scrollY):hr("page",f,p),p}function xo(f){return F.number(f.pointerId)?f.pointerId:f.identifier}function Ws(f,p,w){var _=p.length>1?bu(p):p[0];yu(_,f.page),function(C,T){T=T||{},de.isOperaMobile&&yc(C)?hr("screen",C,T):hr("client",C,T)}(_,f.client),f.timeStamp=w}function bc(f){var p=[];return F.array(f)?(p[0]=f[0],p[1]=f[1]):f.type==="touchend"?f.touches.length===1?(p[0]=f.touches[0],p[1]=f.changedTouches[0]):f.touches.length===0&&(p[0]=f.changedTouches[0],p[1]=f.changedTouches[1]):(p[0]=f.touches[0],p[1]=f.touches[1]),p}function bu(f){for(var p={pageX:0,pageY:0,clientX:0,clientY:0,screenX:0,screenY:0},w=0;w<f.length;w++){var _=f[w];for(var C in p)p[C]+=_[C]}for(var T in p)p[T]/=f.length;return p}function vc(f){if(!f.length)return null;var p=bc(f),w=Math.min(p[0].pageX,p[1].pageX),_=Math.min(p[0].pageY,p[1].pageY),C=Math.max(p[0].pageX,p[1].pageX),T=Math.max(p[0].pageY,p[1].pageY);return{x:w,y:_,left:w,top:_,right:C,bottom:T,width:C-w,height:T-_}}function _c(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[0][w]-C[1][w],A=C[0][_]-C[1][_];return Ko(T,A)}function Sc(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[1][w]-C[0][w],A=C[1][_]-C[0][_];return 180*Math.atan2(A,T)/Math.PI}function xc(f){return F.string(f.pointerType)?f.pointerType:F.number(f.pointerType)?[void 0,void 0,"touch","pen","mouse"][f.pointerType]:/touch/.test(f.type||"")||f instanceof H.Touch?"touch":"mouse"}function vu(f){var p=F.func(f.composedPath)?f.composedPath():f.path;return[Kt(p?p[0]:f.target),Kt(f.currentTarget)]}var $i=function(){function f(p){o(this,f),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=p}return c(f,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}();Object.defineProperty($i.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var _u=function(f,p){for(var w=0;w<p.length;w++){var _=p[w];f.push(_)}return f},Ec=function(f){return _u([],f)},es=function(f,p){for(var w=0;w<f.length;w++)if(p(f[w],w,f))return w;return-1},bi=function(f,p){return f[es(f,p)]},Eo=function(f){d(w,f);var p=E(w);function w(_,C,T){var A;o(this,w),(A=p.call(this,C._interaction)).dropzone=void 0,A.dragEvent=void 0,A.relatedTarget=void 0,A.draggable=void 0,A.propagationStopped=!1,A.immediatePropagationStopped=!1;var O=T==="dragleave"?_.prev:_.cur,R=O.element,U=O.dropzone;return A.type=T,A.target=R,A.currentTarget=R,A.dropzone=U,A.dragEvent=C,A.relatedTarget=C.target,A.draggable=C.interactable,A.timeStamp=C.timeStamp,A}return c(w,[{key:"reject",value:function(){var _=this,C=this._interaction.dropState;if(this.type==="dropactivate"||this.dropzone&&C.cur.dropzone===this.dropzone&&C.cur.element===this.target)if(C.prev.dropzone=this.dropzone,C.prev.element=this.target,C.rejected=!0,C.events.enter=null,this.stopImmediatePropagation(),this.type==="dropactivate"){var T=C.activeDrops,A=es(T,function(R){var U=R.dropzone,D=R.element;return U===_.dropzone&&D===_.target});C.activeDrops.splice(A,1);var O=new w(C,this.dragEvent,"dropdeactivate");O.dropzone=this.dropzone,O.target=this.target,this.dropzone.fire(O)}else this.dropzone.fire(new w(C,this.dragEvent,"dragleave"))}},{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),w}($i);function Fi(f,p){for(var w=0,_=f.slice();w<_.length;w++){var C=_[w],T=C.dropzone,A=C.element;p.dropzone=T,p.target=A,T.fire(p),p.propagationStopped=p.immediatePropagationStopped=!1}}function Cc(f,p){for(var w=function(T,A){for(var O=[],R=0,U=T.interactables.list;R<U.length;R++){var D=U[R];if(D.options.drop.enabled){var Z=D.options.drop.accept;if(!(F.element(Z)&&Z!==A||F.string(Z)&&!De(A,Z)||F.func(Z)&&!Z({dropzone:D,draggableElement:A})))for(var oe=0,ge=D.getAllElements();oe<ge.length;oe++){var he=ge[oe];he!==A&&O.push({dropzone:D,element:he,rect:D.getRect(he)})}}}return O}(f,p),_=0;_<w.length;_++){var C=w[_];C.rect=C.dropzone.getRect(C.element)}return w}function Su(f,p,w){for(var _=f.dropState,C=f.interactable,T=f.element,A=[],O=0,R=_.activeDrops;O<R.length;O++){var U=R[O],D=U.dropzone,Z=U.element,oe=U.rect,ge=D.dropCheck(p,w,C,T,Z,oe);A.push(ge?Z:null)}var he=function(be){for(var ke,Ae,Fe,Xe=[],Ke=0;Ke<be.length;Ke++){var Be=be[Ke],Je=be[ke];if(Be&&Ke!==ke)if(Je){var wr=Qe(Be),vt=Qe(Je);if(wr!==Be.ownerDocument)if(vt!==Be.ownerDocument)if(wr!==vt){Xe=Xe.length?Xe:ft(Je);var Dr=void 0;if(Je instanceof H.HTMLElement&&Be instanceof H.SVGElement&&!(Be instanceof H.SVGSVGElement)){if(Be===vt)continue;Dr=Be.ownerSVGElement}else Dr=Be;for(var gn=ft(Dr,Je.ownerDocument),Tn=0;gn[Tn]&&gn[Tn]===Xe[Tn];)Tn++;var ls=[gn[Tn-1],gn[Tn],Xe[Tn]];if(ls[0])for(var ot=ls[0].lastChild;ot;){if(ot===ls[1]){ke=Ke,Xe=gn;break}if(ot===ls[2])break;ot=ot.previousSibling}}else Fe=Je,(parseInt(V(Ae=Be).getComputedStyle(Ae).zIndex,10)||0)>=(parseInt(V(Fe).getComputedStyle(Fe).zIndex,10)||0)&&(ke=Ke);else ke=Ke}else ke=Ke}return ke}(A);return _.activeDrops[he]||null}function Tc(f,p,w){var _=f.dropState,C={enter:null,leave:null,activate:null,deactivate:null,move:null,drop:null};return w.type==="dragstart"&&(C.activate=new Eo(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new Eo(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new Eo(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new Eo(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new Eo(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new Eo(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Bs(f,p){var w=f.dropState,_=w.activeDrops,C=w.cur,T=w.prev;p.leave&&T.dropzone.fire(p.leave),p.enter&&C.dropzone.fire(p.enter),p.move&&C.dropzone.fire(p.move),p.drop&&C.dropzone.fire(p.drop),p.deactivate&&Fi(_,p.deactivate),w.prev.dropzone=C.dropzone,w.prev.element=C.element}function xu(f,p){var w=f.interaction,_=f.iEvent,C=f.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;p.dynamicDrop&&(T.activeDrops=Cc(p,w.element));var A=_,O=Su(w,A,C);T.rejected=T.rejected&&!!O&&O.dropzone===T.cur.dropzone&&O.element===T.cur.element,T.cur.dropzone=O&&O.dropzone,T.cur.element=O&&O.element,T.events=Tc(w,0,A)}}var Eu={id:"actions/drop",install:function(f){var p=f.actions,w=f.interactStatic,_=f.Interactable,C=f.defaults;f.usePlugin(Ne),_.prototype.dropzone=function(T){return function(A,O){if(F.object(O)){if(A.options.drop.enabled=O.enabled!==!1,O.listeners){var R=yi(O.listeners),U=Object.keys(R).reduce(function(Z,oe){return Z[/^(enter|leave)/.test(oe)?"drag".concat(oe):/^(activate|deactivate|move)/.test(oe)?"drop".concat(oe):oe]=R[oe],Z},{}),D=A.options.drop.listeners;D&&A.off(D),A.on(U),A.options.drop.listeners=U}return F.func(O.ondrop)&&A.on("drop",O.ondrop),F.func(O.ondropactivate)&&A.on("dropactivate",O.ondropactivate),F.func(O.ondropdeactivate)&&A.on("dropdeactivate",O.ondropdeactivate),F.func(O.ondragenter)&&A.on("dragenter",O.ondragenter),F.func(O.ondragleave)&&A.on("dragleave",O.ondragleave),F.func(O.ondropmove)&&A.on("dropmove",O.ondropmove),/^(pointer|center)$/.test(O.overlap)?A.options.drop.overlap=O.overlap:F.number(O.overlap)&&(A.options.drop.overlap=Math.max(Math.min(1,O.overlap),0)),"accept"in O&&(A.options.drop.accept=O.accept),"checker"in O&&(A.options.drop.checker=O.checker),A}return F.bool(O)?(A.options.drop.enabled=O,A):A.options.drop}(this,T)},_.prototype.dropCheck=function(T,A,O,R,U,D){return function(Z,oe,ge,he,be,ke,Ae){var Fe=!1;if(!(Ae=Ae||Z.getRect(ke)))return!!Z.options.drop.checker&&Z.options.drop.checker(oe,ge,Fe,Z,ke,he,be);var Xe=Z.options.drop.overlap;if(Xe==="pointer"){var Ke=Qo(he,be,"drag"),Be=yu(oe);Be.x+=Ke.x,Be.y+=Ke.y;var Je=Be.x>Ae.left&&Be.x<Ae.right,wr=Be.y>Ae.top&&Be.y<Ae.bottom;Fe=Je&&wr}var vt=he.getRect(be);if(vt&&Xe==="center"){var Dr=vt.left+vt.width/2,gn=vt.top+vt.height/2;Fe=Dr>=Ae.left&&Dr<=Ae.right&&gn>=Ae.top&&gn<=Ae.bottom}return vt&&F.number(Xe)&&(Fe=Math.max(0,Math.min(Ae.right,vt.right)-Math.max(Ae.left,vt.left))*Math.max(0,Math.min(Ae.bottom,vt.bottom)-Math.max(Ae.top,vt.top))/(vt.width*vt.height)>=Xe),Z.options.drop.checker&&(Fe=Z.options.drop.checker(oe,ge,Fe,Z,ke,he,be)),Fe}(this,T,A,O,R,U,D)},w.dynamicDrop=function(T){return F.bool(T)?(f.dynamicDrop=T,w):f.dynamicDrop},Ue(p.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),p.methodDict.drop="dropzone",f.dynamicDrop=!1,C.actions.drop=Eu.defaults},listeners:{"interactions:before-action-start":function(f){var p=f.interaction;p.prepared.name==="drag"&&(p.dropState={cur:{dropzone:null,element:null},prev:{dropzone:null,element:null},rejected:null,events:null,activeDrops:[]})},"interactions:after-action-start":function(f,p){var w=f.interaction,_=(f.event,f.iEvent);if(w.prepared.name==="drag"){var C=w.dropState;C.activeDrops=[],C.events={},C.activeDrops=Cc(p,w.element),C.events=Tc(w,0,_),C.events.activate&&(Fi(C.activeDrops,C.events.activate),p.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":xu,"interactions:after-action-move":function(f,p){var w=f.interaction,_=f.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Bs(w,C.events),p.fire("actions/drop:move",{interaction:w,dragEvent:_}),C.events={}}},"interactions:action-end":function(f,p){if(f.interaction.prepared.name==="drag"){var w=f.interaction,_=f.iEvent;xu(f,p),Bs(w,w.dropState.events),p.fire("actions/drop:end",{interaction:w,dragEvent:_})}},"interactions:stop":function(f){var p=f.interaction;if(p.prepared.name==="drag"){var w=p.dropState;w&&(w.activeDrops=null,w.events=null,w.cur.dropzone=null,w.cur.element=null,w.prev.dropzone=null,w.prev.element=null,w.rejected=!1)}}},getActiveDrops:Cc,getDrop:Su,getDropEvents:Tc,fireDropEvents:Bs,filterEventType:function(f){return f.search("drag")===0||f.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},kf=Eu;function G(f){var p=f.interaction,w=f.iEvent,_=f.phase;if(p.prepared.name==="gesture"){var C=p.pointers.map(function(U){return U.pointer}),T=_==="start",A=_==="end",O=p.interactable.options.deltaSource;if(w.touches=[C[0],C[1]],T)w.distance=_c(C,O),w.box=vc(C),w.scale=1,w.ds=0,w.angle=Sc(C,O),w.da=0,p.gesture.startDistance=w.distance,p.gesture.startAngle=w.angle;else if(A||p.pointers.length<2){var R=p.prevEvent;w.distance=R.distance,w.box=R.box,w.scale=R.scale,w.ds=0,w.angle=R.angle,w.da=0}else w.distance=_c(C,O),w.box=vc(C),w.scale=w.distance/p.gesture.startDistance,w.angle=Sc(C,O),w.ds=w.scale-p.gesture.scale,w.da=w.angle-p.gesture.angle;p.gesture.distance=w.distance,p.gesture.angle=w.angle,F.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(p.gesture.scale=w.scale)}}var Co={id:"actions/gesture",before:["actions/drag","actions/resize"],install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.gesturable=function(C){return F.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):F.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},p.map.gesture=Co,p.methodDict.gesture="gesturable",_.actions.gesture=Co.defaults},listeners:{"interactions:action-start":G,"interactions:action-move":G,"interactions:action-end":G,"interactions:new":function(f){f.interaction.gesture={angle:0,distance:0,scale:1,startAngle:0,startDistance:0}},"auto-start:check":function(f){if(!(f.interaction.pointers.length<2)){var p=f.interactable.options.gesture;if(p&&p.enabled)return f.action={name:"gesture"},!1}}},defaults:{},getCursor:function(){return""},filterEventType:function(f){return f.search("gesture")===0}},Cu=Co;function Tu(f,p,w,_,C,T,A){if(!p)return!1;if(p===!0){var O=F.number(T.width)?T.width:T.right-T.left,R=F.number(T.height)?T.height:T.bottom-T.top;if(A=Math.min(A,Math.abs((f==="left"||f==="right"?O:R)/2)),O<0&&(f==="left"?f="right":f==="right"&&(f="left")),R<0&&(f==="top"?f="bottom":f==="bottom"&&(f="top")),f==="left"){var U=O>=0?T.left:T.right;return w.x<U+A}if(f==="top"){var D=R>=0?T.top:T.bottom;return w.y<D+A}if(f==="right")return w.x>(O>=0?T.right:T.left)-A;if(f==="bottom")return w.y>(R>=0?T.bottom:T.top)-A}return!!F.element(_)&&(F.element(p)?p===_:mr(_,p,C))}function Pc(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="resize"&&w.resizeAxes){var _=p;w.interactable.options.resize.square?(w.resizeAxes==="y"?_.delta.x=_.delta.y:_.delta.y=_.delta.x,_.axes="xy"):(_.axes=w.resizeAxes,w.resizeAxes==="x"?_.delta.y=0:w.resizeAxes==="y"&&(_.delta.x=0))}}var Kr,vi,Vn={id:"actions/resize",before:["actions/drag"],install:function(f){var p=f.actions,w=f.browser,_=f.Interactable,C=f.defaults;Vn.cursors=function(T){return T.isIe9?{x:"e-resize",y:"s-resize",xy:"se-resize",top:"n-resize",left:"w-resize",bottom:"s-resize",right:"e-resize",topleft:"se-resize",bottomright:"se-resize",topright:"ne-resize",bottomleft:"ne-resize"}:{x:"ew-resize",y:"ns-resize",xy:"nwse-resize",top:"ns-resize",left:"ew-resize",bottom:"ns-resize",right:"ew-resize",topleft:"nwse-resize",bottomright:"nwse-resize",topright:"nesw-resize",bottomleft:"nesw-resize"}}(w),Vn.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(T){return function(A,O,R){return F.object(O)?(A.options.resize.enabled=O.enabled!==!1,A.setPerAction("resize",O),A.setOnEvents("resize",O),F.string(O.axis)&&/^x$|^y$|^xy$/.test(O.axis)?A.options.resize.axis=O.axis:O.axis===null&&(A.options.resize.axis=R.defaults.actions.resize.axis),F.bool(O.preserveAspectRatio)?A.options.resize.preserveAspectRatio=O.preserveAspectRatio:F.bool(O.square)&&(A.options.resize.square=O.square),A):F.bool(O)?(A.options.resize.enabled=O,A):A.options.resize}(this,T,f)},p.map.resize=Vn,p.methodDict.resize="resizable",C.actions.resize=Vn.defaults},listeners:{"interactions:new":function(f){f.interaction.resizeAxes="xy"},"interactions:action-start":function(f){(function(p){var w=p.iEvent,_=p.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.rect;_._rects={start:Ue({},T),corrected:Ue({},T),previous:Ue({},T),delta:{left:0,right:0,width:0,top:0,bottom:0,height:0}},C.edges=_.prepared.edges,C.rect=_._rects.corrected,C.deltaRect=_._rects.delta}})(f),Pc(f)},"interactions:action-move":function(f){(function(p){var w=p.iEvent,_=p.interaction;if(_.prepared.name==="resize"&&_.prepared.edges){var C=w,T=_.interactable.options.resize.invert,A=T==="reposition"||T==="negate",O=_.rect,R=_._rects,U=R.start,D=R.corrected,Z=R.delta,oe=R.previous;if(Ue(oe,D),A){if(Ue(D,O),T==="reposition"){if(D.top>D.bottom){var ge=D.top;D.top=D.bottom,D.bottom=ge}if(D.left>D.right){var he=D.left;D.left=D.right,D.right=he}}}else D.top=Math.min(O.top,U.bottom),D.bottom=Math.max(O.bottom,U.top),D.left=Math.min(O.left,U.right),D.right=Math.max(O.right,U.left);for(var be in D.width=D.right-D.left,D.height=D.bottom-D.top,D)Z[be]=D[be]-oe[be];C.edges=_.prepared.edges,C.rect=D,C.deltaRect=Z}})(f),Pc(f)},"interactions:action-end":function(f){var p=f.iEvent,w=f.interaction;if(w.prepared.name==="resize"&&w.prepared.edges){var _=p;_.edges=w.prepared.edges,_.rect=w._rects.corrected,_.deltaRect=w._rects.delta}},"auto-start:check":function(f){var p=f.interaction,w=f.interactable,_=f.element,C=f.rect,T=f.buttons;if(C){var A=Ue({},p.coords.cur.page),O=w.options.resize;if(O&&O.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||T&O.mouseButtons)){if(F.object(O.edges)){var R={left:!1,right:!1,top:!1,bottom:!1};for(var U in R)R[U]=Tu(U,O.edges[U],A,p._latestPointer.eventTarget,_,C,O.margin||Vn.defaultMargin);R.left=R.left&&!R.right,R.top=R.top&&!R.bottom,(R.left||R.right||R.top||R.bottom)&&(f.action={name:"resize",edges:R})}else{var D=O.axis!=="y"&&A.x>C.right-Vn.defaultMargin,Z=O.axis!=="x"&&A.y>C.bottom-Vn.defaultMargin;(D||Z)&&(f.action={name:"resize",axes:(D?"x":"")+(Z?"y":"")})}return!f.action&&void 0}}}},defaults:{square:!1,preserveAspectRatio:!1,axis:"xy",margin:NaN,edges:null,invert:"none"},cursors:null,getCursor:function(f){var p=f.edges,w=f.axis,_=f.name,C=Vn.cursors,T=null;if(w)T=C[_+w];else if(p){for(var A="",O=0,R=["top","bottom","left","right"];O<R.length;O++){var U=R[O];p[U]&&(A+=U)}T=C[A]}return T},filterEventType:function(f){return f.search("resize")===0},defaultMargin:null},Pu=Vn,Mu={id:"actions",install:function(f){f.usePlugin(Cu),f.usePlugin(Pu),f.usePlugin(Ne),f.usePlugin(kf)}},Gs=0,Qn={request:function(f){return Kr(f)},cancel:function(f){return vi(f)},init:function(f){if(Kr=f.requestAnimationFrame,vi=f.cancelAnimationFrame,!Kr)for(var p=["ms","moz","webkit","o"],w=0;w<p.length;w++){var _=p[w];Kr=f["".concat(_,"RequestAnimationFrame")],vi=f["".concat(_,"CancelAnimationFrame")]||f["".concat(_,"CancelRequestAnimationFrame")]}Kr=Kr&&Kr.bind(f),vi=vi&&vi.bind(f),Kr||(Kr=function(C){var T=Date.now(),A=Math.max(0,16-(T-Gs)),O=f.setTimeout(function(){C(T+A)},A);return Gs=T+A,O},vi=function(C){return clearTimeout(C)})}},je={defaults:{enabled:!1,margin:60,container:null,speed:300},now:Date.now,interaction:null,i:0,x:0,y:0,isScrolling:!1,prevTime:0,margin:0,speed:0,start:function(f){je.isScrolling=!0,Qn.cancel(je.i),f.autoScroll=je,je.interaction=f,je.prevTime=je.now(),je.i=Qn.request(je.scroll)},stop:function(){je.isScrolling=!1,je.interaction&&(je.interaction.autoScroll=null),Qn.cancel(je.i)},scroll:function(){var f=je.interaction,p=f.interactable,w=f.element,_=f.prepared.name,C=p.options[_].autoScroll,T=js(C.container,p,w),A=je.now(),O=(A-je.prevTime)/1e3,R=C.speed*O;if(R>=1){var U={x:je.x*R,y:je.y*R};if(U.x||U.y){var D=Mc(T);F.window(T)?T.scrollBy(U.x,U.y):T&&(T.scrollLeft+=U.x,T.scrollTop+=U.y);var Z=Mc(T),oe={x:Z.x-D.x,y:Z.y-D.y};(oe.x||oe.y)&&p.fire({type:"autoscroll",target:w,interactable:p,delta:oe,interaction:f,container:T})}je.prevTime=A}je.isScrolling&&(Qn.cancel(je.i),je.i=Qn.request(je.scroll))},check:function(f,p){var w;return(w=f.options[p].autoScroll)==null?void 0:w.enabled},onInteractionMove:function(f){var p=f.interaction,w=f.pointer;if(p.interacting()&&je.check(p.interactable,p.prepared.name))if(p.simulation)je.x=je.y=0;else{var _,C,T,A,O=p.interactable,R=p.element,U=p.prepared.name,D=O.options[U].autoScroll,Z=js(D.container,O,R);if(F.window(Z))A=w.clientX<je.margin,_=w.clientY<je.margin,C=w.clientX>Z.innerWidth-je.margin,T=w.clientY>Z.innerHeight-je.margin;else{var oe=er(Z);A=w.clientX<oe.left+je.margin,_=w.clientY<oe.top+je.margin,C=w.clientX>oe.right-je.margin,T=w.clientY>oe.bottom-je.margin}je.x=C?1:A?-1:0,je.y=T?1:_?-1:0,je.isScrolling||(je.margin=D.margin,je.speed=D.speed,je.start(p))}}};function js(f,p,w){return(F.string(f)?gu(f,p,w):f)||V(w)}function Mc(f){return F.window(f)&&(f=window.document.body),{x:f.scrollLeft,y:f.scrollTop}}var Ac={id:"auto-scroll",install:function(f){var p=f.defaults,w=f.actions;f.autoScroll=je,je.now=function(){return f.now()},w.phaselessTypes.autoscroll=!0,p.perAction.autoScroll=je.defaults},listeners:{"interactions:new":function(f){f.interaction.autoScroll=null},"interactions:destroy":function(f){f.interaction.autoScroll=null,je.stop(),je.interaction&&(je.interaction=null)},"interactions:stop":je.stop,"interactions:action-move":function(f){return je.onInteractionMove(f)}}},Ic=Ac;function To(f,p){var w=!1;return function(){return w||(B.console.warn(p),w=!0),f.apply(this,arguments)}}function qs(f,p){return f.name=p.name,f.axis=p.axis,f.edges=p.edges,f}function Au(f){return F.bool(f)?(this.options.styleCursor=f,this):f===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Iu(f){return F.func(f)?(this.options.actionChecker=f,this):f===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Lu={id:"auto-start/interactableMethods",install:function(f){var p=f.Interactable;p.prototype.getAction=function(w,_,C,T){var A=function(O,R,U,D,Z){var oe=O.getRect(D),ge=R.buttons||{0:1,1:4,3:8,4:16}[R.button],he={action:null,interactable:O,interaction:U,element:D,rect:oe,buttons:ge};return Z.fire("auto-start:check",he),he.action}(this,_,C,T,f);return this.options.actionChecker?this.options.actionChecker(w,_,A,this,T,C):A},p.prototype.ignoreFrom=To(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),p.prototype.allowFrom=To(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),p.prototype.actionChecker=Iu,p.prototype.styleCursor=Au}};function Lc(f,p,w,_,C){return p.testIgnoreAllow(p.options[f.name],w,_)&&p.options[f.name].enabled&&ts(p,w,f,C)?f:null}function ku(f,p,w,_,C,T,A){for(var O=0,R=_.length;O<R;O++){var U=_[O],D=C[O],Z=U.getAction(p,w,f,D);if(Z){var oe=Lc(Z,U,D,T,A);if(oe)return{action:oe,interactable:U,element:D}}}return{action:null,interactable:null,element:null}}function kc(f,p,w,_,C){var T=[],A=[],O=_;function R(D){T.push(D),A.push(O)}for(;F.element(O);){T=[],A=[],C.interactables.forEachMatch(O,R);var U=ku(f,p,w,T,A,_,C);if(U.action&&!U.interactable.options[U.action.name].manualStart)return U;O=ye(O)}return{action:null,interactable:null,element:null}}function Oc(f,p,w){var _=p.action,C=p.interactable,T=p.element;_=_||{name:null},f.interactable=C,f.element=T,qs(f.prepared,_),f.rect=C&&_.name?C.getRect(T):null,Rc(f,w),w.fire("autoStart:prepared",{interaction:f})}function ts(f,p,w,_){var C=f.options,T=C[w.name].max,A=C[w.name].maxPerElement,O=_.autoStart.maxInteractions,R=0,U=0,D=0;if(!(T&&A&&O))return!1;for(var Z=0,oe=_.interactions.list;Z<oe.length;Z++){var ge=oe[Z],he=ge.prepared.name;if(ge.interacting()&&(++R>=O||ge.interactable===f&&((U+=he===w.name?1:0)>=T||ge.element===p&&(D++,he===w.name&&D>=A))))return!1}return O>0}function Nc(f,p){return F.number(f)?(p.autoStart.maxInteractions=f,this):p.autoStart.maxInteractions}function Hs(f,p,w){var _=w.autoStart.cursorElement;_&&_!==f&&(_.style.cursor=""),f.ownerDocument.documentElement.style.cursor=p,f.style.cursor=p,w.autoStart.cursorElement=p?f:null}function Rc(f,p){var w=f.interactable,_=f.element,C=f.prepared;if(f.pointerType==="mouse"&&w&&w.options.styleCursor){var T="";if(C.name){var A=w.options[C.name].cursorChecker;T=F.func(A)?A(C,w,_,f._interacting):p.actions.map[C.name].getCursor(C)}Hs(f.element,T||"",p)}else p.autoStart.cursorElement&&Hs(p.autoStart.cursorElement,"",p)}var Ou={id:"auto-start/base",before:["actions"],install:function(f){var p=f.interactStatic,w=f.defaults;f.usePlugin(Lu),w.base.actionChecker=null,w.base.styleCursor=!0,Ue(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),p.maxInteractions=function(_){return Nc(_,f)},f.autoStart={maxInteractions:1/0,withinInteractionLimit:ts,cursorElement:null}},listeners:{"interactions:down":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;w.interacting()||Oc(w,kc(w,_,C,T,p),p)},"interactions:move":function(f,p){(function(w,_){var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||Oc(C,kc(C,T,A,O,_),_)})(f,p),function(w,_){var C=w.interaction;if(C.pointerIsDown&&!C.interacting()&&C.pointerWasMoved&&C.prepared.name){_.fire("autoStart:before-start",w);var T=C.interactable,A=C.prepared.name;A&&T&&(T.options[A].manualStart||!ts(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Rc(C,_)))}}(f,p)},"interactions:stop":function(f,p){var w=f.interaction,_=w.interactable;_&&_.options.styleCursor&&Hs(w.element,"",p)}},maxInteractions:Nc,withinInteractionLimit:ts,validateAction:Lc},Ys=Ou,Nu={id:"auto-start/dragAxis",listeners:{"autoStart:before-start":function(f,p){var w=f.interaction,_=f.eventTarget,C=f.dx,T=f.dy;if(w.prepared.name==="drag"){var A=Math.abs(C),O=Math.abs(T),R=w.interactable.options.drag,U=R.startAxis,D=A>O?"x":A<O?"y":"xy";if(w.prepared.axis=R.lockAxis==="start"?D[0]:R.lockAxis,D!=="xy"&&U!=="xy"&&U!==D){w.prepared.name=null;for(var Z=_,oe=function(he){if(he!==w.interactable){var be=w.interactable.options.drag;if(!be.manualStart&&he.testIgnoreAllow(be,Z,_)){var ke=he.getAction(w.downPointer,w.downEvent,w,Z);if(ke&&ke.name==="drag"&&function(Ae,Fe){if(!Fe)return!1;var Xe=Fe.options.drag.startAxis;return Ae==="xy"||Xe==="xy"||Xe===Ae}(D,he)&&Ys.validateAction(ke,he,Z,_,p))return he}}};F.element(Z);){var ge=p.interactables.forEachMatch(Z,oe);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Z;break}Z=ye(Z)}}}}}};function Zs(f){var p=f.prepared&&f.prepared.name;if(!p)return null;var w=f.interactable.options;return w[p].hold||w[p].delay}var Ru={id:"auto-start/hold",install:function(f){var p=f.defaults;f.usePlugin(Ys),p.perAction.hold=0,p.perAction.delay=0},listeners:{"interactions:new":function(f){f.interaction.autoStartHoldTimer=null},"autoStart:prepared":function(f){var p=f.interaction,w=Zs(p);w>0&&(p.autoStartHoldTimer=setTimeout(function(){p.start(p.prepared,p.interactable,p.element)},w))},"interactions:move":function(f){var p=f.interaction,w=f.duplicate;p.autoStartHoldTimer&&p.pointerWasMoved&&!w&&(clearTimeout(p.autoStartHoldTimer),p.autoStartHoldTimer=null)},"autoStart:before-start":function(f){var p=f.interaction;Zs(p)>0&&(p.prepared.name=null)}},getHoldDuration:Zs},Du=Ru,$u={id:"auto-start",install:function(f){f.usePlugin(Ys),f.usePlugin(Du),f.usePlugin(Nu)}},Fu=function(f){return/^(always|never|auto)$/.test(f)?(this.options.preventDefault=f,this):F.bool(f)?(this.options.preventDefault=f?"always":"never",this):this.options.preventDefault};function Uu(f){var p=f.interaction,w=f.event;p.interactable&&p.interactable.checkAndPreventDefault(w)}var Dc={id:"core/interactablePreventDefault",install:function(f){var p=f.Interactable;p.prototype.preventDefault=Fu,p.prototype.checkAndPreventDefault=function(w){return function(_,C,T){var A=_.options.preventDefault;if(A!=="never")if(A!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(T.type)){var O=V(T.target).document,R=C.getDocOptions(O);if(!R||!R.events||R.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(T.type)||F.element(T.target)&&De(T.target,"input,select,textarea,[contenteditable=true],[contenteditable=true] *")||T.preventDefault()}else T.preventDefault()}(this,f,w)},f.interactions.docEvents.push({type:"dragstart",listener:function(w){for(var _=0,C=f.interactions.list;_<C.length;_++){var T=C[_];if(T.element&&(T.element===w.target||ue(T.element,w.target)))return void T.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(f,p){return f["interactions:".concat(p)]=Uu,f},{})};function rs(f,p){if(p.phaselessTypes[f])return!0;for(var w in p.map)if(f.indexOf(w)===0&&f.substr(w.length)in p.phases)return!0;return!1}function Ui(f){var p={};for(var w in f){var _=f[w];F.plainObject(_)?p[w]=Ui(_):F.array(_)?p[w]=Ec(_):p[w]=_}return p}var Xs=function(){function f(p){o(this,f),this.states=[],this.startOffset={left:0,right:0,top:0,bottom:0},this.startDelta=void 0,this.result=void 0,this.endResult=void 0,this.startEdges=void 0,this.edges=void 0,this.interaction=void 0,this.interaction=p,this.result=ns(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return c(f,[{key:"start",value:function(p,w){var _,C,T=p.phase,A=this.interaction,O=function(U){var D=U.interactable.options[U.prepared.name],Z=D.modifiers;return Z&&Z.length?Z:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(oe){var ge=D[oe];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(oe){return!!oe})}(A);this.prepareStates(O),this.startEdges=Ue({},A.edges),this.edges=Ue({},this.startEdges),this.startOffset=(_=A.rect,C=w,_?{left:C.x-_.left,top:C.y-_.top,right:_.right-C.x,bottom:_.bottom-C.y}:{left:0,top:0,right:0,bottom:0}),this.startDelta={x:0,y:0};var R=this.fillArg({phase:T,pageCoords:w,preEnd:!1});return this.result=ns(),this.startAll(R),this.result=this.setAll(R)}},{key:"fillArg",value:function(p){var w=this.interaction;return p.interaction=w,p.interactable=w.interactable,p.element=w.element,p.rect||(p.rect=w.rect),p.edges||(p.edges=this.startEdges),p.startOffset=this.startOffset,p}},{key:"startAll",value:function(p){for(var w=0,_=this.states;w<_.length;w++){var C=_[w];C.methods.start&&(p.state=C,C.methods.start(p))}}},{key:"setAll",value:function(p){var w=p.phase,_=p.preEnd,C=p.skipModifiers,T=p.rect,A=p.edges;p.coords=Ue({},p.pageCoords),p.rect=Ue({},T),p.edges=Ue({},A);for(var O=C?this.states.slice(C):this.states,R=ns(p.coords,p.rect),U=0;U<O.length;U++){var D,Z=O[U],oe=Z.options,ge=Ue({},p.coords),he=null;(D=Z.methods)!=null&&D.set&&this.shouldDo(oe,_,w)&&(p.state=Z,he=Z.methods.set(p),Vs(p.edges,p.rect,{x:p.coords.x-ge.x,y:p.coords.y-ge.y})),R.eventProps.push(he)}Ue(this.edges,p.edges),R.delta.x=p.coords.x-p.pageCoords.x,R.delta.y=p.coords.y-p.pageCoords.y,R.rectDelta.left=p.rect.left-T.left,R.rectDelta.right=p.rect.right-T.right,R.rectDelta.top=p.rect.top-T.top,R.rectDelta.bottom=p.rect.bottom-T.bottom;var be=this.result.coords,ke=this.result.rect;if(be&&ke){var Ae=R.rect.left!==ke.left||R.rect.right!==ke.right||R.rect.top!==ke.top||R.rect.bottom!==ke.bottom;R.changed=Ae||be.x!==R.coords.x||be.y!==R.coords.y}return R}},{key:"applyToInteraction",value:function(p){var w=this.interaction,_=p.phase,C=w.coords.cur,T=w.coords.start,A=this.result,O=this.startDelta,R=A.delta;_==="start"&&Ue(this.startDelta,A.delta);for(var U=0,D=[[T,O],[C,R]];U<D.length;U++){var Z=D[U],oe=Z[0],ge=Z[1];oe.page.x+=ge.x,oe.page.y+=ge.y,oe.client.x+=ge.x,oe.client.y+=ge.y}var he=this.result.rectDelta,be=p.rect||w.rect;be.left+=he.left,be.right+=he.right,be.top+=he.top,be.bottom+=he.bottom,be.width=be.right-be.left,be.height=be.bottom-be.top}},{key:"setAndApply",value:function(p){var w=this.interaction,_=p.phase,C=p.preEnd,T=p.skipModifiers,A=this.setAll(this.fillArg({preEnd:C,phase:_,pageCoords:p.modifiedCoords||w.coords.cur.page}));if(this.result=A,!A.changed&&(!T||T<this.states.length)&&w.interacting())return!1;if(p.modifiedCoords){var O=w.coords.cur.page,R={x:p.modifiedCoords.x-O.x,y:p.modifiedCoords.y-O.y};A.coords.x+=R.x,A.coords.y+=R.y,A.delta.x+=R.x,A.delta.y+=R.y}this.applyToInteraction(p)}},{key:"beforeEnd",value:function(p){var w=p.interaction,_=p.event,C=this.states;if(C&&C.length){for(var T=!1,A=0;A<C.length;A++){var O=C[A];p.state=O;var R=O.options,U=O.methods,D=U.beforeEnd&&U.beforeEnd(p);if(D)return this.endResult=D,!1;T=T||!T&&this.shouldDo(R,!0,p.phase,!0)}T&&w.move({event:_,preEnd:!0})}}},{key:"stop",value:function(p){var w=p.interaction;if(this.states&&this.states.length){var _=Ue({states:this.states,interactable:w.interactable,element:w.element,rect:null},p);this.fillArg(_);for(var C=0,T=this.states;C<T.length;C++){var A=T[C];_.state=A,A.methods.stop&&A.methods.stop(_)}this.states=null,this.endResult=null}}},{key:"prepareStates",value:function(p){this.states=[];for(var w=0;w<p.length;w++){var _=p[w],C=_.options,T=_.methods,A=_.name;this.states.push({options:C,methods:T,index:w,name:A})}return this.states}},{key:"restoreInteractionCoords",value:function(p){var w=p.interaction,_=w.coords,C=w.rect,T=w.modification;if(T.result){for(var A=T.startDelta,O=T.result,R=O.delta,U=O.rectDelta,D=0,Z=[[_.start,A],[_.cur,R]];D<Z.length;D++){var oe=Z[D],ge=oe[0],he=oe[1];ge.page.x-=he.x,ge.page.y-=he.y,ge.client.x-=he.x,ge.client.y-=he.y}C.left-=U.left,C.right-=U.right,C.top-=U.top,C.bottom-=U.bottom}}},{key:"shouldDo",value:function(p,w,_,C){return!(!p||p.enabled===!1||C&&!p.endOnly||p.endOnly&&!w||_==="start"&&!p.setStart)}},{key:"copyFrom",value:function(p){this.startOffset=p.startOffset,this.startDelta=p.startDelta,this.startEdges=p.startEdges,this.edges=p.edges,this.states=p.states.map(function(w){return Ui(w)}),this.result=ns(Ue({},p.result.coords),Ue({},p.result.rect))}},{key:"destroy",value:function(){for(var p in this)this[p]=null}}]),f}();function ns(f,p){return{rect:p,coords:f,delta:{x:0,y:0},rectDelta:{left:0,right:0,top:0,bottom:0},eventProps:[],changed:!0}}function Kn(f,p){var w=f.defaults,_={start:f.start,set:f.set,beforeEnd:f.beforeEnd,stop:f.stop},C=function(T){var A=T||{};for(var O in A.enabled=A.enabled!==!1,w)O in A||(A[O]=w[O]);var R={options:A,methods:_,name:p,enable:function(){return A.enabled=!0,R},disable:function(){return A.enabled=!1,R}};return R};return p&&typeof p=="string"&&(C._defaults=w,C._methods=_),C}function Po(f){var p=f.iEvent,w=f.interaction.modification.result;w&&(p.modifiers=w.eventProps)}var Vu={id:"modifiers/base",before:["actions"],install:function(f){f.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(f){var p=f.interaction;p.modification=new Xs(p)},"interactions:before-action-start":function(f){var p=f.interaction,w=f.interaction.modification;w.start(f,p.coords.start.page),p.edges=w.edges,w.applyToInteraction(f)},"interactions:before-action-move":function(f){var p=f.interaction,w=p.modification,_=w.setAndApply(f);return p.edges=w.edges,_},"interactions:before-action-end":function(f){var p=f.interaction,w=p.modification,_=w.beforeEnd(f);return p.edges=w.startEdges,_},"interactions:action-start":Po,"interactions:action-move":Po,"interactions:action-end":Po,"interactions:after-action-start":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:after-action-move":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:stop":function(f){return f.interaction.modification.stop(f)}}},$c=Vu,Fc={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Js=function(f){d(w,f);var p=E(w);function w(_,C,T,A,O,R,U){var D;o(this,w),(D=p.call(this,_)).relatedTarget=null,D.screenX=void 0,D.screenY=void 0,D.button=void 0,D.buttons=void 0,D.ctrlKey=void 0,D.shiftKey=void 0,D.altKey=void 0,D.metaKey=void 0,D.page=void 0,D.client=void 0,D.delta=void 0,D.rect=void 0,D.x0=void 0,D.y0=void 0,D.t0=void 0,D.dt=void 0,D.duration=void 0,D.clientX0=void 0,D.clientY0=void 0,D.velocity=void 0,D.speed=void 0,D.swipe=void 0,D.axes=void 0,D.preEnd=void 0,O=O||_.element;var Z=_.interactable,oe=(Z&&Z.options||Fc).deltaSource,ge=Qo(Z,O,T),he=A==="start",be=A==="end",ke=he?v(D):_.prevEvent,Ae=he?_.coords.start:be?{page:ke.page,client:ke.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return D.page=Ue({},Ae.page),D.client=Ue({},Ae.client),D.rect=Ue({},_.rect),D.timeStamp=Ae.timeStamp,be||(D.page.x-=ge.x,D.page.y-=ge.y,D.client.x-=ge.x,D.client.y-=ge.y),D.ctrlKey=C.ctrlKey,D.altKey=C.altKey,D.shiftKey=C.shiftKey,D.metaKey=C.metaKey,D.button=C.button,D.buttons=C.buttons,D.target=O,D.currentTarget=O,D.preEnd=R,D.type=U||T+(A||""),D.interactable=Z,D.t0=he?_.pointers[_.pointers.length-1].downTime:ke.t0,D.x0=_.coords.start.page.x-ge.x,D.y0=_.coords.start.page.y-ge.y,D.clientX0=_.coords.start.client.x-ge.x,D.clientY0=_.coords.start.client.y-ge.y,D.delta=he||be?{x:0,y:0}:{x:D[oe].x-ke[oe].x,y:D[oe].y-ke[oe].y},D.dt=_.coords.delta.timeStamp,D.duration=D.timeStamp-D.t0,D.velocity=Ue({},_.coords.velocity[oe]),D.speed=Ko(D.velocity.x,D.velocity.y),D.swipe=be||A==="inertiastart"?D.getSwipe():null,D}return c(w,[{key:"getSwipe",value:function(){var _=this._interaction;if(_.prevEvent.speed<600||this.timeStamp-_.prevEvent.timeStamp>150)return null;var C=180*Math.atan2(_.prevEvent.velocityY,_.prevEvent.velocityX)/Math.PI;C<0&&(C+=360);var T=112.5<=C&&C<247.5,A=202.5<=C&&C<337.5;return{up:A,down:!A&&22.5<=C&&C<157.5,left:T,right:!T&&(292.5<=C||C<67.5),angle:C,speed:_.prevEvent.speed,velocity:{x:_.prevEvent.velocityX,y:_.prevEvent.velocityY}}}},{key:"preventDefault",value:function(){}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}}]),w}($i);Object.defineProperties(Js.prototype,{pageX:{get:function(){return this.page.x},set:function(f){this.page.x=f}},pageY:{get:function(){return this.page.y},set:function(f){this.page.y=f}},clientX:{get:function(){return this.client.x},set:function(f){this.client.x=f}},clientY:{get:function(){return this.client.y},set:function(f){this.client.y=f}},dx:{get:function(){return this.delta.x},set:function(f){this.delta.x=f}},dy:{get:function(){return this.delta.y},set:function(f){this.delta.y=f}},velocityX:{get:function(){return this.velocity.x},set:function(f){this.velocity.x=f}},velocityY:{get:function(){return this.velocity.y},set:function(f){this.velocity.y=f}}});var zu=c(function f(p,w,_,C,T){o(this,f),this.id=void 0,this.pointer=void 0,this.event=void 0,this.downTime=void 0,this.downTarget=void 0,this.id=p,this.pointer=w,this.event=_,this.downTime=C,this.downTarget=T}),Wu=function(f){return f.interactable="",f.element="",f.prepared="",f.pointerIsDown="",f.pointerWasMoved="",f._proxy="",f}({}),Uc=function(f){return f.start="",f.move="",f.end="",f.stop="",f.interacting="",f}({}),Bu=0,Gu=function(){function f(p){var w=this,_=p.pointerType,C=p.scopeFire;o(this,f),this.interactable=null,this.element=null,this.rect=null,this._rects=void 0,this.edges=null,this._scopeFire=void 0,this.prepared={name:null,axis:null,edges:null},this.pointerType=void 0,this.pointers=[],this.downEvent=null,this.downPointer={},this._latestPointer={pointer:null,event:null,eventTarget:null},this.prevEvent=null,this.pointerIsDown=!1,this.pointerWasMoved=!1,this._interacting=!1,this._ending=!1,this._stopped=!0,this._proxy=void 0,this.simulation=null,this.doMove=To(function(D){this.move(D)},"The interaction.doMove() method has been renamed to interaction.move()"),this.coords={start:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},prev:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},cur:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},delta:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0},velocity:{page:{x:0,y:0},client:{x:0,y:0},timeStamp:0}},this._id=Bu++,this._scopeFire=C,this.pointerType=_;var T=this;this._proxy={};var A=function(D){Object.defineProperty(w._proxy,D,{get:function(){return T[D]}})};for(var O in Wu)A(O);var R=function(D){Object.defineProperty(w._proxy,D,{value:function(){return T[D].apply(T,arguments)}})};for(var U in Uc)R(U);this._scopeFire("interactions:new",{interaction:this})}return c(f,[{key:"pointerMoveTolerance",get:function(){return 1}},{key:"pointerDown",value:function(p,w,_){var C=this.updatePointer(p,w,_,!0),T=this.pointers[C];this._scopeFire("interactions:down",{pointer:p,event:w,eventTarget:_,pointerIndex:C,pointerInfo:T,type:"down",interaction:this})}},{key:"start",value:function(p,w,_){return!(this.interacting()||!this.pointerIsDown||this.pointers.length<(p.name==="gesture"?2:1)||!w.options[p.name].enabled)&&(qs(this.prepared,p),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?Ue({},this.prepared.edges):{left:!0,right:!0,top:!0,bottom:!0},this._stopped=!1,this._interacting=this._doPhase({interaction:this,event:this.downEvent,phase:"start"})&&!this._stopped,this._interacting)}},{key:"pointerMove",value:function(p,w,_){this.simulation||this.modification&&this.modification.endResult||this.updatePointer(p,w,_,!1);var C,T,A=this.coords.cur.page.x===this.coords.prev.page.x&&this.coords.cur.page.y===this.coords.prev.page.y&&this.coords.cur.client.x===this.coords.prev.client.x&&this.coords.cur.client.y===this.coords.prev.client.y;this.pointerIsDown&&!this.pointerWasMoved&&(C=this.coords.cur.client.x-this.coords.start.client.x,T=this.coords.cur.client.y-this.coords.start.client.y,this.pointerWasMoved=Ko(C,T)>this.pointerMoveTolerance);var O,R,U,D=this.getPointerIndex(p),Z={pointer:p,pointerIndex:D,pointerInfo:this.pointers[D],event:w,type:"move",eventTarget:_,dx:C,dy:T,duplicate:A,interaction:this};A||(O=this.coords.velocity,R=this.coords.delta,U=Math.max(R.timeStamp/1e3,.001),O.page.x=R.page.x/U,O.page.y=R.page.y/U,O.client.x=R.client.x/U,O.client.y=R.client.y/U,O.timeStamp=U),this._scopeFire("interactions:move",Z),A||this.simulation||(this.interacting()&&(Z.type=null,this.move(Z)),this.pointerWasMoved&&zs(this.coords.prev,this.coords.cur))}},{key:"move",value:function(p){p&&p.event||wc(this.coords.delta),(p=Ue({pointer:this._latestPointer.pointer,event:this._latestPointer.event,eventTarget:this._latestPointer.eventTarget,interaction:this},p||{})).phase="move",this._doPhase(p)}},{key:"pointerUp",value:function(p,w,_,C){var T=this.getPointerIndex(p);T===-1&&(T=this.updatePointer(p,w,_,!1));var A=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(A),{pointer:p,pointerIndex:T,pointerInfo:this.pointers[T],event:w,eventTarget:_,type:A,curEventTarget:C,interaction:this}),this.simulation||this.end(w),this.removePointer(p,w)}},{key:"documentBlur",value:function(p){this.end(p),this._scopeFire("interactions:blur",{event:p,type:"blur",interaction:this})}},{key:"end",value:function(p){var w;this._ending=!0,p=p||this._latestPointer.event,this.interacting()&&(w=this._doPhase({event:p,interaction:this,phase:"end"})),this._ending=!1,w===!0&&this.stop()}},{key:"currentAction",value:function(){return this._interacting?this.prepared.name:null}},{key:"interacting",value:function(){return this._interacting}},{key:"stop",value:function(){this._scopeFire("interactions:stop",{interaction:this}),this.interactable=this.element=null,this._interacting=!1,this._stopped=!0,this.prepared.name=this.prevEvent=null}},{key:"getPointerIndex",value:function(p){var w=xo(p);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:es(this.pointers,function(_){return _.id===w})}},{key:"getPointerInfo",value:function(p){return this.pointers[this.getPointerIndex(p)]}},{key:"updatePointer",value:function(p,w,_,C){var T,A,O,R=xo(p),U=this.getPointerIndex(p),D=this.pointers[U];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),D?D.pointer=p:(D=new zu(R,p,w,null,null),U=this.pointers.length,this.pointers.push(D)),Ws(this.coords.cur,this.pointers.map(function(Z){return Z.pointer}),this._now()),T=this.coords.delta,A=this.coords.prev,O=this.coords.cur,T.page.x=O.page.x-A.page.x,T.page.y=O.page.y-A.page.y,T.client.x=O.client.x-A.client.x,T.client.y=O.client.y-A.client.y,T.timeStamp=O.timeStamp-A.timeStamp,C&&(this.pointerIsDown=!0,D.downTime=this.coords.cur.timeStamp,D.downTarget=_,So(this.downPointer,p),this.interacting()||(zs(this.coords.start,this.coords.cur),zs(this.coords.prev,this.coords.cur),this.downEvent=w,this.pointerWasMoved=!1)),this._updateLatestPointer(p,w,_),this._scopeFire("interactions:update-pointer",{pointer:p,event:w,eventTarget:_,down:C,pointerInfo:D,pointerIndex:U,interaction:this}),U}},{key:"removePointer",value:function(p,w){var _=this.getPointerIndex(p);if(_!==-1){var C=this.pointers[_];this._scopeFire("interactions:remove-pointer",{pointer:p,event:w,eventTarget:null,pointerIndex:_,pointerInfo:C,interaction:this}),this.pointers.splice(_,1),this.pointerIsDown=!1}}},{key:"_updateLatestPointer",value:function(p,w,_){this._latestPointer.pointer=p,this._latestPointer.event=w,this._latestPointer.eventTarget=_}},{key:"destroy",value:function(){this._latestPointer.pointer=null,this._latestPointer.event=null,this._latestPointer.eventTarget=null}},{key:"_createPreparedEvent",value:function(p,w,_,C){return new Js(this,p,this.prepared.name,w,this.element,_,C)}},{key:"_fireEvent",value:function(p){var w;(w=this.interactable)==null||w.fire(p),(!this.prevEvent||p.timeStamp>=this.prevEvent.timeStamp)&&(this.prevEvent=p)}},{key:"_doPhase",value:function(p){var w=p.event,_=p.phase,C=p.preEnd,T=p.type,A=this.rect;if(A&&_==="move"&&(Vs(this.edges,A,this.coords.delta[this.interactable.options.deltaSource]),A.width=A.right-A.left,A.height=A.bottom-A.top),this._scopeFire("interactions:before-action-".concat(_),p)===!1)return!1;var O=p.iEvent=this._createPreparedEvent(w,_,C,T);return this._scopeFire("interactions:action-".concat(_),p),_==="start"&&(this.prevEvent=O),this._fireEvent(O),this._scopeFire("interactions:after-action-".concat(_),p),!0}},{key:"_now",value:function(){return Date.now()}}]),f}();function Vc(f){zc(f.interaction)}function zc(f){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(f))return!1;var p=f.offset.pending;return Qs(f.coords.cur,p),Qs(f.coords.delta,p),Vs(f.edges,f.rect,p),p.x=0,p.y=0,!0}function ju(f){var p=f.x,w=f.y;this.offset.pending.x+=p,this.offset.pending.y+=w,this.offset.total.x+=p,this.offset.total.y+=w}function Qs(f,p){var w=f.page,_=f.client,C=p.x,T=p.y;w.x+=C,w.y+=T,_.x+=C,_.y+=T}Uc.offsetBy="";var qu={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(f){f.Interaction.prototype.offsetBy=ju},listeners:{"interactions:new":function(f){f.interaction.offset={total:{x:0,y:0},pending:{x:0,y:0}}},"interactions:update-pointer":function(f){return function(p){p.pointerIsDown&&(Qs(p.coords.cur,p.offset.total),p.offset.pending.x=0,p.offset.pending.y=0)}(f.interaction)},"interactions:before-action-start":Vc,"interactions:before-action-move":Vc,"interactions:before-action-end":function(f){var p=f.interaction;if(zc(p))return p.move({offset:!0}),p.end(),!1},"interactions:stop":function(f){var p=f.interaction;p.offset.total.x=0,p.offset.total.y=0,p.offset.pending.x=0,p.offset.pending.y=0}}},Wc=qu,Hu=function(){function f(p){o(this,f),this.active=!1,this.isModified=!1,this.smoothEnd=!1,this.allowResume=!1,this.modification=void 0,this.modifierCount=0,this.modifierArg=void 0,this.startCoords=void 0,this.t0=0,this.v0=0,this.te=0,this.targetOffset=void 0,this.modifiedOffset=void 0,this.currentOffset=void 0,this.lambda_v0=0,this.one_ve_v0=0,this.timeout=void 0,this.interaction=void 0,this.interaction=p}return c(f,[{key:"start",value:function(p){var w=this.interaction,_=is(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Ko(C.x,C.y),A=this.modification||(this.modification=new Xs(w));if(A.copyFrom(w.modification),this.t0=w._now(),this.allowResume=_.allowResume,this.v0=T,this.currentOffset={x:0,y:0},this.startCoords=w.coords.cur.page,this.modifierArg=A.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&T>_.minSpeed&&T>_.endSpeed)this.startInertia();else{if(A.result=A.setAll(this.modifierArg),!A.result.changed)return!1;this.startSmoothEnd()}return w.modification.result.rect=null,w.offsetBy(this.targetOffset),w._doPhase({interaction:w,event:p,phase:"inertiastart"}),w.offsetBy({x:-this.targetOffset.x,y:-this.targetOffset.y}),w.modification.result.rect=null,this.active=!0,w.simulation=this,!0}},{key:"startInertia",value:function(){var p=this,w=this.interaction.coords.velocity.client,_=is(this.interaction),C=_.resistance,T=-Math.log(_.endSpeed/this.v0)/C;this.targetOffset={x:(w.x-T)/C,y:(w.y-T)/C},this.te=T,this.lambda_v0=C/this.v0,this.one_ve_v0=1-_.endSpeed/this.v0;var A=this.modification,O=this.modifierArg;O.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},A.result=A.setAll(O),A.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+A.result.delta.x,y:this.targetOffset.y+A.result.delta.y}),this.onNextFrame(function(){return p.inertiaTick()})}},{key:"startSmoothEnd",value:function(){var p=this;this.smoothEnd=!0,this.isModified=!0,this.targetOffset={x:this.modification.result.delta.x,y:this.modification.result.delta.y},this.onNextFrame(function(){return p.smoothEndTick()})}},{key:"onNextFrame",value:function(p){var w=this;this.timeout=Qn.request(function(){w.active&&p()})}},{key:"inertiaTick",value:function(){var p,w,_,C,T,A,O,R=this,U=this.interaction,D=is(U).resistance,Z=(U._now()-this.t0)/1e3;if(Z<this.te){var oe,ge=1-(Math.exp(-D*Z)-this.lambda_v0)/this.one_ve_v0;this.isModified?(p=0,w=0,_=this.targetOffset.x,C=this.targetOffset.y,T=this.modifiedOffset.x,A=this.modifiedOffset.y,oe={x:Bc(O=ge,p,_,T),y:Bc(O,w,C,A)}):oe={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var he={x:oe.x-this.currentOffset.x,y:oe.y-this.currentOffset.y};this.currentOffset.x+=he.x,this.currentOffset.y+=he.y,U.offsetBy(he),U.move(),this.onNextFrame(function(){return R.inertiaTick()})}else U.offsetBy({x:this.modifiedOffset.x-this.currentOffset.x,y:this.modifiedOffset.y-this.currentOffset.y}),this.end()}},{key:"smoothEndTick",value:function(){var p=this,w=this.interaction,_=w._now()-this.t0,C=is(w).smoothEndDuration;if(_<C){var T={x:Gc(_,0,this.targetOffset.x,C),y:Gc(_,0,this.targetOffset.y,C)},A={x:T.x-this.currentOffset.x,y:T.y-this.currentOffset.y};this.currentOffset.x+=A.x,this.currentOffset.y+=A.y,w.offsetBy(A),w.move({skipModifiers:this.modifierCount}),this.onNextFrame(function(){return p.smoothEndTick()})}else w.offsetBy({x:this.targetOffset.x-this.currentOffset.x,y:this.targetOffset.y-this.currentOffset.y}),this.end()}},{key:"resume",value:function(p){var w=p.pointer,_=p.event,C=p.eventTarget,T=this.interaction;T.offsetBy({x:-this.currentOffset.x,y:-this.currentOffset.y}),T.updatePointer(w,_,C,!0),T._doPhase({interaction:T,event:_,phase:"resume"}),zs(T.coords.prev,T.coords.cur),this.stop()}},{key:"end",value:function(){this.interaction.move(),this.interaction.end(),this.stop()}},{key:"stop",value:function(){this.active=this.smoothEnd=!1,this.interaction.simulation=null,Qn.cancel(this.timeout)}}]),f}();function is(f){var p=f.interactable,w=f.prepared;return p&&p.options&&w.name&&p.options[w.name].inertia}var Yu={id:"inertia",before:["modifiers","actions"],install:function(f){var p=f.defaults;f.usePlugin(Wc),f.usePlugin($c),f.actions.phases.inertiastart=!0,f.actions.phases.resume=!0,p.perAction.inertia={enabled:!1,resistance:10,minSpeed:100,endSpeed:10,allowResume:!0,smoothEndDuration:300}},listeners:{"interactions:new":function(f){var p=f.interaction;p.inertia=new Hu(p)},"interactions:before-action-end":function(f){var p=f.interaction,w=f.event;return(!p._interacting||p.simulation||!p.inertia.start(w))&&null},"interactions:down":function(f){var p=f.interaction,w=f.eventTarget,_=p.inertia;if(_.active)for(var C=w;F.element(C);){if(C===p.element){_.resume(f);break}C=ye(C)}},"interactions:stop":function(f){var p=f.interaction.inertia;p.active&&p.stop()},"interactions:before-action-resume":function(f){var p=f.interaction.modification;p.stop(f),p.start(f,f.interaction.coords.cur.page),p.applyToInteraction(f)},"interactions:before-action-inertiastart":function(f){return f.interaction.modification.setAndApply(f)},"interactions:action-resume":Po,"interactions:action-inertiastart":Po,"interactions:after-action-inertiastart":function(f){return f.interaction.modification.restoreInteractionCoords(f)},"interactions:after-action-resume":function(f){return f.interaction.modification.restoreInteractionCoords(f)}}};function Bc(f,p,w,_){var C=1-f;return C*C*p+2*C*f*w+f*f*_}function Gc(f,p,w,_){return-w*(f/=_)*(f-2)+p}var Zu=Yu;function jc(f,p){for(var w=0;w<p.length;w++){var _=p[w];if(f.immediatePropagationStopped)break;_(f)}}var qc=function(){function f(p){o(this,f),this.options=void 0,this.types={},this.propagationStopped=!1,this.immediatePropagationStopped=!1,this.global=void 0,this.options=Ue({},p||{})}return c(f,[{key:"fire",value:function(p){var w,_=this.global;(w=this.types[p.type])&&jc(p,w),!p.propagationStopped&&_&&(w=_[p.type])&&jc(p,w)}},{key:"on",value:function(p,w){var _=yi(p,w);for(p in _)this.types[p]=_u(this.types[p]||[],_[p])}},{key:"off",value:function(p,w){var _=yi(p,w);for(p in _){var C=this.types[p];if(C&&C.length)for(var T=0,A=_[p];T<A.length;T++){var O=A[T],R=C.indexOf(O);R!==-1&&C.splice(R,1)}}}},{key:"getRect",value:function(p){return null}}]),f}(),Xu=function(){function f(p){o(this,f),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=p,So(this,p)}return c(f,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),f}();function Vi(f){return F.object(f)?{capture:!!f.capture,passive:!!f.passive}:{capture:!!f,passive:!1}}function Mo(f,p){return f===p||(typeof f=="boolean"?!!p.capture===f&&!p.passive:!!f.capture==!!p.capture&&!!f.passive==!!p.passive)}var Ju={id:"events",install:function(f){var p,w=[],_={},C=[],T={add:A,remove:O,addDelegate:function(D,Z,oe,ge,he){var be=Vi(he);if(!_[oe]){_[oe]=[];for(var ke=0;ke<C.length;ke++){var Ae=C[ke];A(Ae,oe,R),A(Ae,oe,U,!0)}}var Fe=_[oe],Xe=bi(Fe,function(Ke){return Ke.selector===D&&Ke.context===Z});Xe||(Xe={selector:D,context:Z,listeners:[]},Fe.push(Xe)),Xe.listeners.push({func:ge,options:be})},removeDelegate:function(D,Z,oe,ge,he){var be,ke=Vi(he),Ae=_[oe],Fe=!1;if(Ae)for(be=Ae.length-1;be>=0;be--){var Xe=Ae[be];if(Xe.selector===D&&Xe.context===Z){for(var Ke=Xe.listeners,Be=Ke.length-1;Be>=0;Be--){var Je=Ke[Be];if(Je.func===ge&&Mo(Je.options,ke)){Ke.splice(Be,1),Ke.length||(Ae.splice(be,1),O(Z,oe,R),O(Z,oe,U,!0)),Fe=!0;break}}if(Fe)break}}},delegateListener:R,delegateUseCapture:U,delegatedEvents:_,documents:C,targets:w,supportsOptions:!1,supportsPassive:!1};function A(D,Z,oe,ge){if(D.addEventListener){var he=Vi(ge),be=bi(w,function(ke){return ke.eventTarget===D});be||(be={eventTarget:D,events:{}},w.push(be)),be.events[Z]||(be.events[Z]=[]),bi(be.events[Z],function(ke){return ke.func===oe&&Mo(ke.options,he)})||(D.addEventListener(Z,oe,T.supportsOptions?he:he.capture),be.events[Z].push({func:oe,options:he}))}}function O(D,Z,oe,ge){if(D.addEventListener&&D.removeEventListener){var he=es(w,function(wr){return wr.eventTarget===D}),be=w[he];if(be&&be.events)if(Z!=="all"){var ke=!1,Ae=be.events[Z];if(Ae){if(oe==="all"){for(var Fe=Ae.length-1;Fe>=0;Fe--){var Xe=Ae[Fe];O(D,Z,Xe.func,Xe.options)}return}for(var Ke=Vi(ge),Be=0;Be<Ae.length;Be++){var Je=Ae[Be];if(Je.func===oe&&Mo(Je.options,Ke)){D.removeEventListener(Z,oe,T.supportsOptions?Ke:Ke.capture),Ae.splice(Be,1),Ae.length===0&&(delete be.events[Z],ke=!0);break}}}ke&&!Object.keys(be.events).length&&w.splice(he,1)}else for(Z in be.events)be.events.hasOwnProperty(Z)&&O(D,Z,"all")}}function R(D,Z){for(var oe=Vi(Z),ge=new Xu(D),he=_[D.type],be=vu(D)[0],ke=be;F.element(ke);){for(var Ae=0;Ae<he.length;Ae++){var Fe=he[Ae],Xe=Fe.selector,Ke=Fe.context;if(De(ke,Xe)&&ue(Ke,be)&&ue(Ke,ke)){var Be=Fe.listeners;ge.currentTarget=ke;for(var Je=0;Je<Be.length;Je++){var wr=Be[Je];Mo(wr.options,oe)&&wr.func(ge)}}}ke=ye(ke)}}function U(D){return R(D,!0)}return(p=f.document)==null||p.createElement("div").addEventListener("test",null,{get capture(){return T.supportsOptions=!0},get passive(){return T.supportsPassive=!0}}),f.events=T,T}},Ks={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(f){for(var p=0,w=Ks.methodOrder;p<w.length;p++){var _=w[p],C=Ks[_](f);if(C)return C}return null},simulationResume:function(f){var p=f.pointerType,w=f.eventType,_=f.eventTarget,C=f.scope;if(!/down|start/i.test(w))return null;for(var T=0,A=C.interactions.list;T<A.length;T++){var O=A[T],R=_;if(O.simulation&&O.simulation.allowResume&&O.pointerType===p)for(;R;){if(R===O.element)return O;R=ye(R)}}return null},mouseOrPen:function(f){var p,w=f.pointerId,_=f.pointerType,C=f.eventType,T=f.scope;if(_!=="mouse"&&_!=="pen")return null;for(var A=0,O=T.interactions.list;A<O.length;A++){var R=O[A];if(R.pointerType===_){if(R.simulation&&!ea(R,w))continue;if(R.interacting())return R;p||(p=R)}}if(p)return p;for(var U=0,D=T.interactions.list;U<D.length;U++){var Z=D[U];if(!(Z.pointerType!==_||/down/i.test(C)&&Z.simulation))return Z}return null},hasPointer:function(f){for(var p=f.pointerId,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(ea(C,p))return C}return null},idle:function(f){for(var p=f.pointerType,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(C.pointers.length===1){var T=C.interactable;if(T&&(!T.options.gesture||!T.options.gesture.enabled))continue}else if(C.pointers.length>=2)continue;if(!C.interacting()&&p===C.pointerType)return C}return null}};function ea(f,p){return f.pointers.some(function(w){return w.id===p})}var Qu=Ks,os=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Hc(f,p){return function(w){var _=p.interactions.list,C=xc(w),T=vu(w),A=T[0],O=T[1],R=[];if(/^touch/.test(w.type)){p.prevTouchTime=p.now();for(var U=0,D=w.changedTouches;U<D.length;U++){var Z=D[U],oe={pointer:Z,pointerId:xo(Z),pointerType:C,eventType:w.type,eventTarget:A,curEventTarget:O,scope:p},ge=Yc(oe);R.push([oe.pointer,oe.eventTarget,oe.curEventTarget,ge])}}else{var he=!1;if(!de.supportsPointerEvent&&/mouse/.test(w.type)){for(var be=0;be<_.length&&!he;be++)he=_[be].pointerType!=="mouse"&&_[be].pointerIsDown;he=he||p.now()-p.prevTouchTime<500||w.timeStamp===0}if(!he){var ke={pointer:w,pointerId:xo(w),pointerType:C,eventType:w.type,curEventTarget:O,eventTarget:A,scope:p},Ae=Yc(ke);R.push([ke.pointer,ke.eventTarget,ke.curEventTarget,Ae])}}for(var Fe=0;Fe<R.length;Fe++){var Xe=R[Fe],Ke=Xe[0],Be=Xe[1],Je=Xe[2];Xe[3][f](Ke,w,Be,Je)}}}function Yc(f){var p=f.pointerType,w=f.scope,_={interaction:Qu.search(f),searchDetails:f};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:p})}function ta(f,p){var w=f.doc,_=f.scope,C=f.options,T=_.interactions.docEvents,A=_.events,O=A[p];for(var R in _.browser.isIOS&&!C.events&&(C.events={passive:!1}),A.delegatedEvents)O(w,R,A.delegateListener),O(w,R,A.delegateUseCapture,!0);for(var U=C&&C.events,D=0;D<T.length;D++){var Z=T[D];O(w,Z.type,Z.listener,U)}}var Zc={id:"core/interactions",install:function(f){for(var p={},w=0;w<os.length;w++){var _=os[w];p[_]=Hc(_,f)}var C,T=de.pEventTypes;function A(){for(var O=0,R=f.interactions.list;O<R.length;O++){var U=R[O];if(U.pointerIsDown&&U.pointerType==="touch"&&!U._interacting)for(var D=function(){var ge=oe[Z];f.documents.some(function(he){return ue(he.doc,ge.downTarget)})||U.removePointer(ge.pointer,ge.event)},Z=0,oe=U.pointers;Z<oe.length;Z++)D()}}(C=H.PointerEvent?[{type:T.down,listener:A},{type:T.down,listener:p.pointerDown},{type:T.move,listener:p.pointerMove},{type:T.up,listener:p.pointerUp},{type:T.cancel,listener:p.pointerUp}]:[{type:"mousedown",listener:p.pointerDown},{type:"mousemove",listener:p.pointerMove},{type:"mouseup",listener:p.pointerUp},{type:"touchstart",listener:A},{type:"touchstart",listener:p.pointerDown},{type:"touchmove",listener:p.pointerMove},{type:"touchend",listener:p.pointerUp},{type:"touchcancel",listener:p.pointerUp}]).push({type:"blur",listener:function(O){for(var R=0,U=f.interactions.list;R<U.length;R++)U[R].documentBlur(O)}}),f.prevTouchTime=0,f.Interaction=function(O){d(U,O);var R=E(U);function U(){return o(this,U),R.apply(this,arguments)}return c(U,[{key:"pointerMoveTolerance",get:function(){return f.interactions.pointerMoveTolerance},set:function(D){f.interactions.pointerMoveTolerance=D}},{key:"_now",value:function(){return f.now()}}]),U}(Gu),f.interactions={list:[],new:function(O){O.scopeFire=function(U,D){return f.fire(U,D)};var R=new f.Interaction(O);return f.interactions.list.push(R),R},listeners:p,docEvents:C,pointerMoveTolerance:1},f.usePlugin(Dc)},listeners:{"scope:add-document":function(f){return ta(f,"add")},"scope:remove-document":function(f){return ta(f,"remove")},"interactable:unset":function(f,p){for(var w=f.interactable,_=p.interactions.list.length-1;_>=0;_--){var C=p.interactions.list[_];C.interactable===w&&(C.stop(),p.fire("interactions:destroy",{interaction:C}),C.destroy(),p.interactions.list.length>2&&p.interactions.list.splice(_,1))}}},onDocSignal:ta,doOnInteractions:Hc,methodNames:os},Ku=Zc,ei=function(f){return f[f.On=0]="On",f[f.Off=1]="Off",f}(ei||{}),ed=function(){function f(p,w,_,C){o(this,f),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new qc,this._context=void 0,this._win=void 0,this._doc=void 0,this._scopeEvents=void 0,this._actions=w.actions,this.target=p,this._context=w.context||_,this._win=V(hn(p)?this._context:p),this._doc=this._win.document,this._scopeEvents=C,this.set(w)}return c(f,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(p,w){return F.func(w.onstart)&&this.on("".concat(p,"start"),w.onstart),F.func(w.onmove)&&this.on("".concat(p,"move"),w.onmove),F.func(w.onend)&&this.on("".concat(p,"end"),w.onend),F.func(w.oninertiastart)&&this.on("".concat(p,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(p,w,_){var C,T=this,A=(C=this._actions.map[p])==null?void 0:C.filterEventType,O=function(R){return(A==null||A(R))&&rs(R,T._actions)};(F.array(w)||F.object(w))&&this._onOff(ei.Off,p,w,void 0,O),(F.array(_)||F.object(_))&&this._onOff(ei.On,p,_,void 0,O)}},{key:"setPerAction",value:function(p,w){var _=this._defaults;for(var C in w){var T=C,A=this.options[p],O=w[T];T==="listeners"&&this.updatePerActionListeners(p,A.listeners,O),F.array(O)?A[T]=Ec(O):F.plainObject(O)?(A[T]=Ue(A[T]||{},Ui(O)),F.object(_.perAction[T])&&"enabled"in _.perAction[T]&&(A[T].enabled=O.enabled!==!1)):F.bool(O)&&F.object(_.perAction[T])?A[T].enabled=O:A[T]=O}}},{key:"getRect",value:function(p){return p=p||(F.element(this.target)?this.target:null),F.string(this.target)&&(p=p||this._context.querySelector(this.target)),Jn(p)}},{key:"rectChecker",value:function(p){var w=this;return F.func(p)?(this.getRect=function(_){var C=Ue({},p.apply(w,_));return"width"in C||(C.width=C.right-C.left,C.height=C.bottom-C.top),C},this):p===null?(delete this.getRect,this):this.getRect}},{key:"_backCompatOption",value:function(p,w){if(hn(w)||F.object(w)){for(var _ in this.options[p]=w,this._actions.map)this.options[_][p]=w;return this}return this.options[p]}},{key:"origin",value:function(p){return this._backCompatOption("origin",p)}},{key:"deltaSource",value:function(p){return p==="page"||p==="client"?(this.options.deltaSource=p,this):this.options.deltaSource}},{key:"getAllElements",value:function(){var p=this.target;return F.string(p)?Array.from(this._context.querySelectorAll(p)):F.func(p)&&p.getAllElements?p.getAllElements():F.element(p)?[p]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(p){return this._context===p.ownerDocument||ue(this._context,p)}},{key:"testIgnoreAllow",value:function(p,w,_){return!this.testIgnore(p.ignoreFrom,w,_)&&this.testAllow(p.allowFrom,w,_)}},{key:"testAllow",value:function(p,w,_){return!p||!!F.element(_)&&(F.string(p)?mr(_,p,w):!!F.element(p)&&ue(p,_))}},{key:"testIgnore",value:function(p,w,_){return!(!p||!F.element(_))&&(F.string(p)?mr(_,p,w):!!F.element(p)&&ue(p,_))}},{key:"fire",value:function(p){return this.events.fire(p),this}},{key:"_onOff",value:function(p,w,_,C,T){F.object(w)&&!F.array(w)&&(C=_,_=null);var A=yi(w,_,T);for(var O in A){O==="wheel"&&(O=de.wheelEvent);for(var R=0,U=A[O];R<U.length;R++){var D=U[R];rs(O,this._actions)?this.events[p===ei.On?"on":"off"](O,D):F.string(this.target)?this._scopeEvents[p===ei.On?"addDelegate":"removeDelegate"](this.target,this._context,O,D,C):this._scopeEvents[p===ei.On?"add":"remove"](this.target,O,D,C)}}return this}},{key:"on",value:function(p,w,_){return this._onOff(ei.On,p,w,_)}},{key:"off",value:function(p,w,_){return this._onOff(ei.Off,p,w,_)}},{key:"set",value:function(p){var w=this._defaults;for(var _ in F.object(p)||(p={}),this.options=Ui(w.base),this._actions.methodDict){var C=_,T=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,Ue(Ue({},w.perAction),w.actions[C])),this[T](p[C])}for(var A in p)A!=="getRect"?F.func(this[A])&&this[A](p[A]):this.rectChecker(p.getRect);return this}},{key:"unset",value:function(){if(F.string(this.target))for(var p in this._scopeEvents.delegatedEvents)for(var w=this._scopeEvents.delegatedEvents[p],_=w.length-1;_>=0;_--){var C=w[_],T=C.selector,A=C.context,O=C.listeners;T===this.target&&A===this._context&&w.splice(_,1);for(var R=O.length-1;R>=0;R--)this._scopeEvents.removeDelegate(this.target,this._context,p,O[R][0],O[R][1])}else this._scopeEvents.remove(this.target,"all")}}]),f}(),td=function(){function f(p){var w=this;o(this,f),this.list=[],this.selectorMap={},this.scope=void 0,this.scope=p,p.addListeners({"interactable:unset":function(_){var C=_.interactable,T=C.target,A=F.string(T)?w.selectorMap[T]:T[w.scope.id],O=es(A,function(R){return R===C});A.splice(O,1)}})}return c(f,[{key:"new",value:function(p,w){w=Ue(w||{},{actions:this.scope.actions});var _=new this.scope.Interactable(p,w,this.scope.document,this.scope.events);return this.scope.addDocument(_._doc),this.list.push(_),F.string(p)?(this.selectorMap[p]||(this.selectorMap[p]=[]),this.selectorMap[p].push(_)):(_.target[this.scope.id]||Object.defineProperty(p,this.scope.id,{value:[],configurable:!0}),p[this.scope.id].push(_)),this.scope.fire("interactable:new",{target:p,options:w,interactable:_,win:this.scope._win}),_}},{key:"getExisting",value:function(p,w){var _=w&&w.context||this.scope.document,C=F.string(p),T=C?this.selectorMap[p]:p[this.scope.id];if(T)return bi(T,function(A){return A._context===_&&(C||A.inContext(p))})}},{key:"forEachMatch",value:function(p,w){for(var _=0,C=this.list;_<C.length;_++){var T=C[_],A=void 0;if((F.string(T.target)?F.element(p)&&De(p,T.target):p===T.target)&&T.inContext(p)&&(A=w(T)),A!==void 0)return A}}}]),f}(),rd=function(){function f(){var p=this;o(this,f),this.id="__interact_scope_".concat(Math.floor(100*Math.random())),this.isInitialized=!1,this.listenerMaps=[],this.browser=de,this.defaults=Ui(Fc),this.Eventable=qc,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var C=function T(A,O){var R=_.interactables.getExisting(A,O);return R||((R=_.interactables.new(A,O)).events.global=T.globalEvents),R};return C.getPointerAverage=bu,C.getTouchBBox=vc,C.getTouchDistance=_c,C.getTouchAngle=Sc,C.getElementRect=Jn,C.getElementClientRect=er,C.matchesSelector=De,C.closest=ve,C.globalEvents={},C.version="1.10.27",C.scope=_,C.use=function(T,A){return this.scope.usePlugin(T,A),this},C.isSet=function(T,A){return!!this.scope.interactables.get(T,A&&A.context)},C.on=To(function(T,A,O){if(F.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),F.array(T)){for(var R=0,U=T;R<U.length;R++){var D=U[R];this.on(D,A,O)}return this}if(F.object(T)){for(var Z in T)this.on(Z,T[Z],A);return this}return rs(T,this.scope.actions)?this.globalEvents[T]?this.globalEvents[T].push(A):this.globalEvents[T]=[A]:this.scope.events.add(this.scope.document,T,A,{options:O}),this},"The interact.on() method is being deprecated"),C.off=To(function(T,A,O){if(F.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),F.array(T)){for(var R=0,U=T;R<U.length;R++){var D=U[R];this.off(D,A,O)}return this}if(F.object(T)){for(var Z in T)this.off(Z,T[Z],A);return this}var oe;return rs(T,this.scope.actions)?T in this.globalEvents&&(oe=this.globalEvents[T].indexOf(A))!==-1&&this.globalEvents[T].splice(oe,1):this.scope.events.remove(this.scope.document,T,A,O),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return de.supportsTouch},C.supportsPointerEvent=function(){return de.supportsPointerEvent},C.stop=function(){for(var T=0,A=this.scope.interactions.list;T<A.length;T++)A[T].stop();return this},C.pointerMoveTolerance=function(T){return F.number(T)?(this.scope.interactions.pointerMoveTolerance=T,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(T,A){this.scope.addDocument(T,A)},C.removeDocument=function(T){this.scope.removeDocument(T)},C}(this),this.InteractEvent=Js,this.Interactable=void 0,this.interactables=new td(this),this._win=void 0,this.document=void 0,this.window=void 0,this.documents=[],this._plugins={list:[],map:{}},this.onWindowUnload=function(_){return p.removeDocument(_.target)};var w=this;this.Interactable=function(_){d(T,_);var C=E(T);function T(){return o(this,T),C.apply(this,arguments)}return c(T,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(A){return M(h(T.prototype),"set",this).call(this,A),w.fire("interactable:set",{options:A,interactable:this}),this}},{key:"unset",value:function(){M(h(T.prototype),"unset",this).call(this);var A=w.interactables.list.indexOf(this);A<0||(w.interactables.list.splice(A,1),w.fire("interactable:unset",{interactable:this}))}}]),T}(ed)}return c(f,[{key:"addListeners",value:function(p,w){this.listenerMaps.push({id:w,map:p})}},{key:"fire",value:function(p,w){for(var _=0,C=this.listenerMaps;_<C.length;_++){var T=C[_].map[p];if(T&&T(w,this,p)===!1)return!1}}},{key:"init",value:function(p){return this.isInitialized?this:function(w,_){return w.isInitialized=!0,F.window(_)&&q(_),H.init(_),de.init(_),Qn.init(_),w.window=_,w.document=_.document,w.usePlugin(Ku),w.usePlugin(Ju),w}(this,p)}},{key:"pluginIsInstalled",value:function(p){var w=p.id;return w?!!this._plugins.map[w]:this._plugins.list.indexOf(p)!==-1}},{key:"usePlugin",value:function(p,w){if(!this.isInitialized)return this;if(this.pluginIsInstalled(p))return this;if(p.id&&(this._plugins.map[p.id]=p),this._plugins.list.push(p),p.install&&p.install(this,w),p.listeners&&p.before){for(var _=0,C=this.listenerMaps.length,T=p.before.reduce(function(O,R){return O[R]=!0,O[Xc(R)]=!0,O},{});_<C;_++){var A=this.listenerMaps[_].id;if(A&&(T[A]||T[Xc(A)]))break}this.listenerMaps.splice(_,0,{id:p.id,map:p.listeners})}else p.listeners&&this.listenerMaps.push({id:p.id,map:p.listeners});return this}},{key:"addDocument",value:function(p,w){if(this.getDocIndex(p)!==-1)return!1;var _=V(p);w=w?Ue({},w):{},this.documents.push({doc:p,options:w}),this.events.documents.push(p),p!==this.document&&this.events.add(_,"unload",this.onWindowUnload),this.fire("scope:add-document",{doc:p,window:_,scope:this,options:w})}},{key:"removeDocument",value:function(p){var w=this.getDocIndex(p),_=V(p),C=this.documents[w].options;this.events.remove(_,"unload",this.onWindowUnload),this.documents.splice(w,1),this.events.documents.splice(w,1),this.fire("scope:remove-document",{doc:p,window:_,scope:this,options:C})}},{key:"getDocIndex",value:function(p){for(var w=0;w<this.documents.length;w++)if(this.documents[w].doc===p)return w;return-1}},{key:"getDocOptions",value:function(p){var w=this.getDocIndex(p);return w===-1?null:this.documents[w].options}},{key:"now",value:function(){return(this.window.Date||Date).now()}}]),f}();function Xc(f){return f&&f.replace(/\/.*$/,"")}var Jc=new rd,gr=Jc.interactStatic,nd=typeof globalThis<"u"?globalThis:window;Jc.init(nd);var id=Object.freeze({__proto__:null,edgeTarget:function(){},elements:function(){},grid:function(f){var p=[["x","y"],["left","top"],["right","bottom"],["width","height"]].filter(function(_){var C=_[0],T=_[1];return C in f||T in f}),w=function(_,C){for(var T=f.range,A=f.limits,O=A===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:A,R=f.offset,U=R===void 0?{x:0,y:0}:R,D={range:T,grid:f,x:null,y:null},Z=0;Z<p.length;Z++){var oe=p[Z],ge=oe[0],he=oe[1],be=Math.round((_-U.x)/f[ge]),ke=Math.round((C-U.y)/f[he]);D[ge]=Math.max(O.left,Math.min(O.right,be*f[ge]+U.x)),D[he]=Math.max(O.top,Math.min(O.bottom,ke*f[he]+U.y))}return D};return w.grid=f,w.coordFields=p,w}}),od={id:"snappers",install:function(f){var p=f.interactStatic;p.snappers=Ue(p.snappers||{},id),p.createSnapGrid=p.snappers.grid}},sd=od,ad={start:function(f){var p=f.state,w=f.rect,_=f.edges,C=f.pageCoords,T=p.options,A=T.ratio,O=T.enabled,R=p.options,U=R.equalDelta,D=R.modifiers;A==="preserve"&&(A=w.width/w.height),p.startCoords=Ue({},C),p.startRect=Ue({},w),p.ratio=A,p.equalDelta=U;var Z=p.linkedEdges={top:_.top||_.left&&!_.bottom,left:_.left||_.top&&!_.right,bottom:_.bottom||_.right&&!_.top,right:_.right||_.bottom&&!_.left};if(p.xIsPrimaryAxis=!(!_.left&&!_.right),p.equalDelta){var oe=(Z.left?1:-1)*(Z.top?1:-1);p.edgeSign={x:oe,y:oe}}else p.edgeSign={x:Z.left?-1:1,y:Z.top?-1:1};if(O!==!1&&Ue(_,Z),D!=null&&D.length){var ge=new Xs(f.interaction);ge.copyFrom(f.interaction.modification),ge.prepareStates(D),p.subModification=ge,ge.startAll(n({},f))}},set:function(f){var p=f.state,w=f.rect,_=f.coords,C=p.linkedEdges,T=Ue({},_),A=p.equalDelta?Qc:cd;if(Ue(f.edges,C),A(p,p.xIsPrimaryAxis,_,w),!p.subModification)return null;var O=Ue({},w);Vs(C,O,{x:_.x-T.x,y:_.y-T.y});var R=p.subModification.setAll(n(n({},f),{},{rect:O,edges:C,pageCoords:_,prevCoords:_,prevRect:O})),U=R.delta;return R.changed&&(A(p,Math.abs(U.x)>Math.abs(U.y),R.coords,R.rect),Ue(_,R.coords)),R.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Qc(f,p,w){var _=f.startCoords,C=f.edgeSign;p?w.y=_.y+(w.x-_.x)*C.y:w.x=_.x+(w.y-_.y)*C.x}function cd(f,p,w,_){var C=f.startRect,T=f.startCoords,A=f.ratio,O=f.edgeSign;if(p){var R=_.width/A;w.y=T.y+(R-C.height)*O.y}else{var U=_.height*A;w.x=T.x+(U-C.width)*O.x}}var Kc=Kn(ad,"aspectRatio"),el=function(){};el._defaults={};var ss=el;function _i(f,p,w){return F.func(f)?_o(f,p.interactable,p.element,[w.x,w.y,p]):_o(f,p.interactable,p.element)}var as={start:function(f){var p=f.rect,w=f.startOffset,_=f.state,C=f.interaction,T=f.pageCoords,A=_.options,O=A.elementRect,R=Ue({left:0,top:0,right:0,bottom:0},A.offset||{});if(p&&O){var U=_i(A.restriction,C,T);if(U){var D=U.right-U.left-p.width,Z=U.bottom-U.top-p.height;D<0&&(R.left+=D,R.right+=D),Z<0&&(R.top+=Z,R.bottom+=Z)}R.left+=w.left-p.width*O.left,R.top+=w.top-p.height*O.top,R.right+=w.right-p.width*(1-O.right),R.bottom+=w.bottom-p.height*(1-O.bottom)}_.offset=R},set:function(f){var p=f.coords,w=f.interaction,_=f.state,C=_.options,T=_.offset,A=_i(C.restriction,w,p);if(A){var O=function(R){return!R||"left"in R&&"top"in R||((R=Ue({},R)).left=R.x||0,R.top=R.y||0,R.right=R.right||R.left+R.width,R.bottom=R.bottom||R.top+R.height),R}(A);p.x=Math.max(Math.min(O.right-T.right,p.x),O.left+T.left),p.y=Math.max(Math.min(O.bottom-T.bottom,p.y),O.top+T.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},ld=Kn(as,"restrict"),tl={top:1/0,left:1/0,bottom:-1/0,right:-1/0},rl={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function nl(f,p){for(var w=0,_=["top","left","bottom","right"];w<_.length;w++){var C=_[w];C in f||(f[C]=p[C])}return f}var Ao={noInner:tl,noOuter:rl,start:function(f){var p,w=f.interaction,_=f.startOffset,C=f.state,T=C.options;T&&(p=Di(_i(T.offset,w,w.coords.start.page))),p=p||{x:0,y:0},C.offset={top:p.y+_.top,left:p.x+_.left,bottom:p.y-_.bottom,right:p.x-_.right}},set:function(f){var p=f.coords,w=f.edges,_=f.interaction,C=f.state,T=C.offset,A=C.options;if(w){var O=Ue({},p),R=_i(A.inner,_,O)||{},U=_i(A.outer,_,O)||{};nl(R,tl),nl(U,rl),w.top?p.y=Math.min(Math.max(U.top+T.top,O.y),R.top+T.top):w.bottom&&(p.y=Math.max(Math.min(U.bottom+T.bottom,O.y),R.bottom+T.bottom)),w.left?p.x=Math.min(Math.max(U.left+T.left,O.x),R.left+T.left):w.right&&(p.x=Math.max(Math.min(U.right+T.right,O.x),R.right+T.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},ud=Kn(Ao,"restrictEdges"),dd=Ue({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(f){}},as.defaults),pd=Kn({start:as.start,set:as.set,defaults:dd},"restrictRect"),fd={width:-1/0,height:-1/0},md={width:1/0,height:1/0},hd=Kn({start:function(f){return Ao.start(f)},set:function(f){var p=f.interaction,w=f.state,_=f.rect,C=f.edges,T=w.options;if(C){var A=gc(_i(T.min,p,f.coords))||fd,O=gc(_i(T.max,p,f.coords))||md;w.options={endOnly:T.endOnly,inner:Ue({},Ao.noInner),outer:Ue({},Ao.noOuter)},C.top?(w.options.inner.top=_.bottom-A.height,w.options.outer.top=_.bottom-O.height):C.bottom&&(w.options.inner.bottom=_.top+A.height,w.options.outer.bottom=_.top+O.height),C.left?(w.options.inner.left=_.right-A.width,w.options.outer.left=_.right-O.width):C.right&&(w.options.inner.right=_.left+A.width,w.options.outer.right=_.left+O.width),Ao.set(f),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),ra={start:function(f){var p,w=f.interaction,_=f.interactable,C=f.element,T=f.rect,A=f.state,O=f.startOffset,R=A.options,U=R.offsetWithOrigin?function(oe){var ge=oe.interaction.element,he=Di(_o(oe.state.options.origin,null,null,[ge])),be=he||Qo(oe.interactable,ge,oe.interaction.prepared.name);return be}(f):{x:0,y:0};if(R.offset==="startCoords")p={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var D=_o(R.offset,_,C,[w]);(p=Di(D)||{x:0,y:0}).x+=U.x,p.y+=U.y}var Z=R.relativePoints;A.offsets=T&&Z&&Z.length?Z.map(function(oe,ge){return{index:ge,relativePoint:oe,x:O.left-T.width*oe.x+p.x,y:O.top-T.height*oe.y+p.y}}):[{index:0,relativePoint:null,x:p.x,y:p.y}]},set:function(f){var p=f.interaction,w=f.coords,_=f.state,C=_.options,T=_.offsets,A=Qo(p.interactable,p.element,p.prepared.name),O=Ue({},w),R=[];C.offsetWithOrigin||(O.x-=A.x,O.y-=A.y);for(var U=0,D=T;U<D.length;U++)for(var Z=D[U],oe=O.x-Z.x,ge=O.y-Z.y,he=0,be=C.targets.length;he<be;he++){var ke=C.targets[he],Ae=void 0;(Ae=F.func(ke)?ke(oe,ge,p._proxy,Z,he):ke)&&R.push({x:(F.number(Ae.x)?Ae.x:oe)+Z.x,y:(F.number(Ae.y)?Ae.y:ge)+Z.y,range:F.number(Ae.range)?Ae.range:C.range,source:ke,index:he,offset:Z})}for(var Fe={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},Xe=0;Xe<R.length;Xe++){var Ke=R[Xe],Be=Ke.range,Je=Ke.x-O.x,wr=Ke.y-O.y,vt=Ko(Je,wr),Dr=vt<=Be;Be===1/0&&Fe.inRange&&Fe.range!==1/0&&(Dr=!1),Fe.target&&!(Dr?Fe.inRange&&Be!==1/0?vt/Be<Fe.distance/Fe.range:Be===1/0&&Fe.range!==1/0||vt<Fe.distance:!Fe.inRange&&vt<Fe.distance)||(Fe.target=Ke,Fe.distance=vt,Fe.range=Be,Fe.inRange=Dr,Fe.delta.x=Je,Fe.delta.y=wr)}return Fe.inRange&&(w.x=Fe.target.x,w.y=Fe.target.y),_.closest=Fe,Fe},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},gd=Kn(ra,"snap"),cs={start:function(f){var p=f.state,w=f.edges,_=p.options;if(!w)return null;f.state={options:{targets:null,relativePoints:[{x:w.left?0:1,y:w.top?0:1}],offset:_.offset||"self",origin:{x:0,y:0},range:_.range}},p.targetFields=p.targetFields||[["width","height"],["x","y"]],ra.start(f),p.offsets=f.state.offsets,f.state=p},set:function(f){var p=f.interaction,w=f.state,_=f.coords,C=w.options,T=w.offsets,A={x:_.x-T[0].x,y:_.y-T[0].y};w.options=Ue({},C),w.options.targets=[];for(var O=0,R=C.targets||[];O<R.length;O++){var U=R[O],D=void 0;if(D=F.func(U)?U(A.x,A.y,p):U){for(var Z=0,oe=w.targetFields;Z<oe.length;Z++){var ge=oe[Z],he=ge[0],be=ge[1];if(he in D||be in D){D.x=D[he],D.y=D[be];break}}w.options.targets.push(D)}}var ke=ra.set(f);return w.options=C,ke},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},wd=Kn(cs,"snapSize"),na={aspectRatio:Kc,restrictEdges:ud,restrict:ld,restrictRect:pd,restrictSize:hd,snapEdges:Kn({start:function(f){var p=f.edges;return p?(f.state.targetFields=f.state.targetFields||[[p.left?"left":"right",p.top?"top":"bottom"]],cs.start(f)):null},set:cs.set,defaults:Ue(Ui(cs.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:gd,snapSize:wd,spring:ss,avoid:ss,transform:ss,rubberband:ss},yd={id:"modifiers",install:function(f){var p=f.interactStatic;for(var w in f.usePlugin($c),f.usePlugin(sd),p.modifiers=na,na){var _=na[w],C=_._defaults,T=_._methods;C._methods=T,f.defaults.perAction[w]=C}}},bd=yd,il=function(f){d(w,f);var p=E(w);function w(_,C,T,A,O,R){var U;if(o(this,w),So(v(U=p.call(this,O)),T),T!==C&&So(v(U),C),U.timeStamp=R,U.originalEvent=T,U.type=_,U.pointerId=xo(C),U.pointerType=xc(C),U.target=A,U.currentTarget=null,_==="tap"){var D=O.getPointerIndex(C);U.dt=U.timeStamp-O.pointers[D].downTime;var Z=U.timeStamp-O.tapTime;U.double=!!O.prevTap&&O.prevTap.type!=="doubletap"&&O.prevTap.target===U.target&&Z<500}else _==="doubletap"&&(U.dt=C.timeStamp-O.tapTime,U.double=!0);return U}return c(w,[{key:"_subtractOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX-=C,this.pageY-=T,this.clientX-=C,this.clientY-=T,this}},{key:"_addOrigin",value:function(_){var C=_.x,T=_.y;return this.pageX+=C,this.pageY+=T,this.clientX+=C,this.clientY+=T,this}},{key:"preventDefault",value:function(){this.originalEvent.preventDefault()}}]),w}($i),Io={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(f){f.pointerEvents=Io,f.defaults.actions.pointerEvents=Io.defaults,Ue(f.actions.phaselessTypes,Io.types)},listeners:{"interactions:new":function(f){var p=f.interaction;p.prevTap=null,p.tapTime=0},"interactions:update-pointer":function(f){var p=f.down,w=f.pointerInfo;!p&&w.hold||(w.hold={duration:1/0,timeout:null})},"interactions:move":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;f.duplicate||w.pointerIsDown&&!w.pointerWasMoved||(w.pointerIsDown&&ia(f),ti({interaction:w,pointer:_,event:C,eventTarget:T,type:"move"},p))},"interactions:down":function(f,p){(function(w,_){for(var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget,R=w.pointerIndex,U=C.pointers[R].hold,D=Cn(O),Z={interaction:C,pointer:T,event:A,eventTarget:O,type:"hold",targets:[],path:D,node:null},oe=0;oe<D.length;oe++){var ge=D[oe];Z.node=ge,_.fire("pointerEvents:collect-targets",Z)}if(Z.targets.length){for(var he=1/0,be=0,ke=Z.targets;be<ke.length;be++){var Ae=ke[be].eventable.options.holdDuration;Ae<he&&(he=Ae)}U.duration=he,U.timeout=setTimeout(function(){ti({interaction:C,eventTarget:O,pointer:T,event:A,type:"hold"},_)},he)}})(f,p),ti(f,p)},"interactions:up":function(f,p){ia(f),ti(f,p),function(w,_){var C=w.interaction,T=w.pointer,A=w.event,O=w.eventTarget;C.pointerWasMoved||ti({interaction:C,eventTarget:O,pointer:T,event:A,type:"tap"},_)}(f,p)},"interactions:cancel":function(f,p){ia(f),ti(f,p)}},PointerEvent:il,fire:ti,collectEventTargets:ol,defaults:{holdDuration:600,ignoreFrom:null,allowFrom:null,origin:{x:0,y:0}},types:{down:!0,move:!0,up:!0,cancel:!0,tap:!0,doubletap:!0,hold:!0}};function ti(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,A=f.type,O=f.targets,R=O===void 0?ol(f,p):O,U=new il(A,_,C,T,w,p.now());p.fire("pointerEvents:new",{pointerEvent:U});for(var D={interaction:w,pointer:_,event:C,eventTarget:T,targets:R,type:A,pointerEvent:U},Z=0;Z<R.length;Z++){var oe=R[Z];for(var ge in oe.props||{})U[ge]=oe.props[ge];var he=Qo(oe.eventable,oe.node);if(U._subtractOrigin(he),U.eventable=oe.eventable,U.currentTarget=oe.node,oe.eventable.fire(U),U._addOrigin(he),U.immediatePropagationStopped||U.propagationStopped&&Z+1<R.length&&R[Z+1].node!==U.currentTarget)break}if(p.fire("pointerEvents:fired",D),A==="tap"){var be=U.double?ti({interaction:w,pointer:_,event:C,eventTarget:T,type:"doubletap"},p):U;w.prevTap=be,w.tapTime=be.timeStamp}return U}function ol(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,A=f.type,O=w.getPointerIndex(_),R=w.pointers[O];if(A==="tap"&&(w.pointerWasMoved||!R||R.downTarget!==T))return[];for(var U=Cn(T),D={interaction:w,pointer:_,event:C,eventTarget:T,type:A,path:U,targets:[],node:null},Z=0;Z<U.length;Z++){var oe=U[Z];D.node=oe,p.fire("pointerEvents:collect-targets",D)}return A==="hold"&&(D.targets=D.targets.filter(function(ge){var he,be;return ge.eventable.options.holdDuration===((he=w.pointers[O])==null||(be=he.hold)==null?void 0:be.duration)})),D.targets}function ia(f){var p=f.interaction,w=f.pointerIndex,_=p.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var vd=Object.freeze({__proto__:null,default:Io});function _d(f){var p=f.interaction;p.holdIntervalHandle&&(clearInterval(p.holdIntervalHandle),p.holdIntervalHandle=null)}var Sd={id:"pointer-events/holdRepeat",install:function(f){f.usePlugin(Io);var p=f.pointerEvents;p.defaults.holdRepeatInterval=0,p.types.holdrepeat=f.actions.phaselessTypes.holdrepeat=!0},listeners:["move","up","cancel","endall"].reduce(function(f,p){return f["pointerEvents:".concat(p)]=_d,f},{"pointerEvents:new":function(f){var p=f.pointerEvent;p.type==="hold"&&(p.count=(p.count||0)+1)},"pointerEvents:fired":function(f,p){var w=f.interaction,_=f.pointerEvent,C=f.eventTarget,T=f.targets;if(_.type==="hold"&&T.length){var A=T[0].eventable.options.holdRepeatInterval;A<=0||(w.holdIntervalHandle=setTimeout(function(){p.pointerEvents.fire({interaction:w,eventTarget:C,type:"hold",pointer:_,event:_},p)},A))}}})},xd=Sd,Ed={id:"pointer-events/interactableTargets",install:function(f){var p=f.Interactable;p.prototype.pointerEvents=function(_){return Ue(this.events.options,_),this};var w=p.prototype._backCompatOption;p.prototype._backCompatOption=function(_,C){var T=w.call(this,_,C);return T===this&&(this.events.options[_]=C),T}},listeners:{"pointerEvents:collect-targets":function(f,p){var w=f.targets,_=f.node,C=f.type,T=f.eventTarget;p.interactables.forEachMatch(_,function(A){var O=A.events,R=O.options;O.types[C]&&O.types[C].length&&A.testIgnoreAllow(R,_,T)&&w.push({node:_,eventable:O,props:{interactable:A}})})},"interactable:new":function(f){var p=f.interactable;p.events.getRect=function(w){return p.getRect(w)}},"interactable:set":function(f,p){var w=f.interactable,_=f.options;Ue(w.events.options,p.pointerEvents.defaults),Ue(w.events.options,_.pointerEvents||{})}}},Cd=Ed,Td={id:"pointer-events",install:function(f){f.usePlugin(vd),f.usePlugin(xd),f.usePlugin(Cd)}},Pd=Td,Md={id:"reflow",install:function(f){var p=f.Interactable;f.actions.phases.reflow=!0,p.prototype.reflow=function(w){return function(_,C,T){for(var A=_.getAllElements(),O=T.window.Promise,R=O?[]:null,U=function(){var Z=A[D],oe=_.getRect(Z);if(!oe)return 1;var ge,he=bi(T.interactions.list,function(Ae){return Ae.interacting()&&Ae.interactable===_&&Ae.element===Z&&Ae.prepared.name===C.name});if(he)he.move(),R&&(ge=he._reflowPromise||new O(function(Ae){he._reflowResolve=Ae}));else{var be=gc(oe),ke=function(Ae){return{coords:Ae,get page(){return this.coords.page},get client(){return this.coords.client},get timeStamp(){return this.coords.timeStamp},get pageX(){return this.coords.page.x},get pageY(){return this.coords.page.y},get clientX(){return this.coords.client.x},get clientY(){return this.coords.client.y},get pointerId(){return this.coords.pointerId},get target(){return this.coords.target},get type(){return this.coords.type},get pointerType(){return this.coords.pointerType},get buttons(){return this.coords.buttons},preventDefault:function(){}}}({page:{x:be.x,y:be.y},client:{x:be.x,y:be.y},timeStamp:T.now()});ge=function(Ae,Fe,Xe,Ke,Be){var Je=Ae.interactions.new({pointerType:"reflow"}),wr={interaction:Je,event:Be,pointer:Be,eventTarget:Xe,phase:"reflow"};Je.interactable=Fe,Je.element=Xe,Je.prevEvent=Be,Je.updatePointer(Be,Be,Xe,!0),wc(Je.coords.delta),qs(Je.prepared,Ke),Je._doPhase(wr);var vt=Ae.window,Dr=vt.Promise,gn=Dr?new Dr(function(Tn){Je._reflowResolve=Tn}):void 0;return Je._reflowPromise=gn,Je.start(Ke,Fe,Xe),Je._interacting?(Je.move(wr),Je.end(Be)):(Je.stop(),Je._reflowResolve()),Je.removePointer(Be,Be),gn}(T,_,Z,C,ke)}R&&R.push(ge)},D=0;D<A.length&&!U();D++);return R&&O.all(R).then(function(){return _})}(this,w,f)}},listeners:{"interactions:stop":function(f,p){var w=f.interaction;w.pointerType==="reflow"&&(w._reflowResolve&&w._reflowResolve(),function(_,C){_.splice(_.indexOf(C),1)}(p.interactions.list,w))}}},Ad=Md;if(gr.use(Dc),gr.use(Wc),gr.use(Pd),gr.use(Zu),gr.use(bd),gr.use($u),gr.use(Mu),gr.use(Ic),gr.use(Ad),gr.default=gr,i(t)==="object"&&t)try{t.exports=gr}catch{}return gr.default=gr,gr})})(hb,hb.exports);dX=hb.exports,Mg=cN(dX)});function dN(t,e,r){return e?`${t}-${e}`:r?`${t}-${r}`:`${t}-m`}var pN=N(()=>{});var lc,Yn,uc,gb,fN,mN,pX,M5,hN,wb,gN=N(()=>{Xt();oc();uN();Ii();ao();Er();dn();Rs();tc();pN();ob();T5();Ho();y5();un();lc={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},Yn={actionBar:"action-bar",alerts:"alerts",content:"content",customContent:"custom-content",contentTop:"content-top",contentBottom:"content-bottom",headerActionsStart:"header-actions-start",headerActionsEnd:"header-actions-end",headerMenuActions:"header-menu-actions",headerContent:"header-content",fab:"fab",footer:"footer",footerStart:"footer-start",footerEnd:"footer-end"},uc=25,gb=25,fN={x:0,y:0},mN={top:0,right:0,bottom:0,left:0},pX=Ct`:host{--calcite-dialog-scrim-background-color: rgba(0, 0, 0, .85);pointer-events:none;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;--calcite-internal-dialog-animation-offset: 20px}:host([modal]){position:absolute}.container{pointer-events:auto;position:fixed;inset:0;z-index:var(--calcite-z-index-overlay);display:flex;align-items:center;justify-content:center;overflow:hidden;color:var(--calcite-color-text-2);opacity:0;visibility:hidden;transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}:host([placement=top]) .container{align-items:flex-start;justify-content:center}:host([placement=top-start]) .container{align-items:flex-start;justify-content:flex-start}:host([placement=top-end]) .container{align-items:flex-start;justify-content:flex-end}:host([placement=bottom]) .container{align-items:flex-end;justify-content:center}:host([placement=bottom-start]) .container{align-items:flex-end;justify-content:flex-start}:host([placement=bottom-end]) .container{align-items:flex-end;justify-content:flex-end}:host(:not([modal])) .container{pointer-events:none}:host([scale=s]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-sm));--calcite-internal-dialog-min-size-x: 198px;--calcite-internal-dialog-min-size-y: 140px}:host([scale=m]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md));--calcite-internal-dialog-min-size-x: 288px;--calcite-internal-dialog-min-size-y: 180px}:host([scale=l]){--calcite-internal-dialog-content-padding: var(--calcite-dialog-content-space, var(--calcite-spacing-md-plus));--calcite-internal-dialog-min-size-x: 388px;--calcite-internal-dialog-min-size-y: 220px}.scrim{--calcite-scrim-background: var(--calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim));--calcite-scrim-background-color: var( --calcite-dialog-scrim-background-color, var(--calcite-color-transparent-scrim) );position:fixed;inset:0;display:flex;overflow-y:hidden}calcite-panel{--calcite-panel-content-space: var(--calcite-dialog-content-space, var(--calcite-internal-dialog-content-padding));--calcite-panel-footer-space: var(--calcite-dialog-footer-space);--calcite-panel-border-color: var(--calcite-dialog-border-color);--calcite-panel-background-color: var(--calcite-dialog-background-color, var(--calcite-color-foreground-1))}::slotted(*){--calcite-panel-background-color: initial}.dialog{pointer-events:none;position:relative;z-index:var(--calcite-z-index-modal);margin:1.5rem;box-sizing:border-box;display:flex;inline-size:100%;flex-direction:column;border-radius:.25rem;opacity:0;--tw-shadow: 0 2px 12px -4px rgba(0, 0, 0, .2), 0 2px 4px -2px rgba(0, 0, 0, .16);--tw-shadow-colored: 0 2px 12px -4px var(--tw-shadow-color), 0 2px 4px -2px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);-webkit-overflow-scrolling:touch;visibility:hidden;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);min-inline-size:var(--calcite-dialog-min-size-x, var(--calcite-internal-dialog-min-size-x));max-inline-size:var(--calcite-dialog-max-size-x, 100%);min-block-size:var(--calcite-dialog-min-size-y, var(--calcite-internal-dialog-min-size-y));max-block-size:var(--calcite-dialog-max-size-y, 100%);--calcite-internal-dialog-hidden-position: calc( var(--calcite-dialog-offset-y, 0px) + var(--calcite-internal-dialog-animation-offset) );--calcite-internal-dialog-shown-position: var(--calcite-dialog-offset-y, 0);inset-inline-start:var(--calcite-dialog-offset-x, 0);inset-block-start:var(--calcite-internal-dialog-hidden-position)}.dialog--opening-active{inset-block-start:var(--calcite-internal-dialog-shown-position)}:host([menu-open]) .dialog{transition:visibility 0ms linear var(--calcite-internal-animation-timing-slow),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88)}.panel{border-radius:.25rem}.container--open{opacity:1;visibility:visible;transition-delay:0ms}.container--open .dialog{pointer-events:auto;visibility:visible;opacity:1;transition:inset-block var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88),opacity var(--calcite-internal-animation-timing-slow) cubic-bezier(.215,.44,.42,.88);transition-delay:0ms}.width-s{inline-size:auto;inline-size:var(--calcite-dialog-size-x, 32rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 35rem){.width-s{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-s.dialog--opening-active{inset-block-start:0}}.width-m{inline-size:var(--calcite-dialog-size-x, 48rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 51rem){.width-m{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-m.dialog--opening-active{inset-block-start:0}}.width-l{inline-size:var(--calcite-dialog-size-x, 94rem);block-size:var(--calcite-dialog-size-y, auto)}@media screen and (max-width: 97rem){.width-l{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;inset-inline-start:0;inset-block-start:var(--calcite-internal-dialog-animation-offset)}.width-l.dialog--opening-active{inset-block-start:0}}:host([placement=cover]) .dialog{margin:0;block-size:100%;max-block-size:100%;inline-size:100%;max-inline-size:100%;border-radius:0}:host([placement=cover]) .panel{border-radius:0}:host([kind]) .panel{border-start-start-radius:0px;border-start-end-radius:0px}:host([kind=brand]) .dialog{border-color:var(--calcite-color-brand)}:host([kind=danger]) .dialog{border-color:var(--calcite-color-status-danger)}:host([kind=info]) .dialog{border-color:var(--calcite-color-status-info)}:host([kind=success]) .dialog{border-color:var(--calcite-color-status-success)}:host([kind=warning]) .dialog{border-color:var(--calcite-color-status-warning)}:host([kind=brand][open]) .dialog,:host([kind=danger][open]) .dialog,:host([kind=info][open]) .dialog,:host([kind=success][open]) .dialog,:host([kind=warning][open]) .dialog{border-width:0px;border-block-start-width:4px;border-style:solid}.container--embedded{position:absolute;pointer-events:auto}.container--embedded calcite-scrim{position:absolute}.assistive-text{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}:host([hidden]){display:none}[hidden]{display:none}`,M5=0,hN="",wb=class extends gt{constructor(){super(...arguments),this.dragPosition={...fN},this.focusTrap=fb({triggerProp:"open",focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:e=>(!e.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,e.preventDefault()),!1)}})(this),this.ignoreOpenChange=!1,this.mutationObserver=Nn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openProp="opened",this.transitionProp="opacity",this.panelEl=mi(),this.resizePosition={...mN},this.assistiveText=null,this.hasContentBottom=!1,this.hasContentTop=!1,this.hasFooter=!0,this.opened=!1,this.closeDisabled=!1,this.dragEnabled=!1,this.embedded=!1,this.escapeDisabled=!1,this.loading=!1,this.menuOpen=!1,this.messages=Jr(),this.modal=!1,this.focusTrapDisabled=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=Tt({cancelable:!1}),this.calciteDialogBeforeOpen=Tt({cancelable:!1}),this.calciteDialogClose=Tt({cancelable:!1}),this.calciteDialogOpen=Tt({cancelable:!1}),this.calciteDialogScroll=Tt({cancelable:!1})}static{this.properties={assistiveText:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,opened:16,beforeClose:0,closeDisabled:7,description:1,dragEnabled:7,embedded:5,escapeDisabled:7,focusTrapOptions:0,heading:1,headingLevel:11,kind:3,loading:7,menuOpen:7,messageOverrides:0,modal:7,focusTrapDisabled:7,open:7,outsideCloseDisabled:7,overlayPositioning:3,placement:3,resizable:7,scale:3,widthScale:3,width:3}}static{this.styles=pX}get open(){return this._open}set open(e){let r=this._open;e!==r&&(this._open=e,this.toggleDialog(e))}async scrollContentTo(e){await this.panelEl.value?.scrollContentTo(e)}async setFocus(){return await En(this),this.panelEl.value?.setFocus()??ec(this.el)}async updateFocusTrapElements(e){this.focusTrap.setExtraContainers(e),this.focusTrap.updateContainerElements()}focusTrapDisabledOverride(){return!this.modal&&this.focusTrapDisabled}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setupInteractions()}async load(){}willUpdate(e){e.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(e.has("open")&&(this.hasUpdated||this.open!==!1)||e.has("placement")&&(this.hasUpdated||this.placement!=="center")||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(e.has("messages")||e.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||e.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),e.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:e}=this;this.assistiveText=e&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?e.dragEnabled:""} ${this.resizable?e.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),this.focusTrap.activate()}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),this.focusTrap.deactivate()}toggleDialog(e){this.ignoreOpenChange||(e?this.openDialog():this.closeDialog())}handleOpenedChange(e){let{transitionEl:r}=this;r&&(r.classList.toggle(lc.openingActive,e),gf(this))}async triggerInteractModifiers(){let{interaction:e}=this;e&&(await e.reflow({name:"drag"}),await e.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(e){let{key:r,shiftKey:n,defaultPrevented:i}=e,{dragEnabled:o,resizable:s,resizePosition:c,dragPosition:a,transitionEl:d}=this;if(!(i||!["ArrowUp","ArrowDown","ArrowLeft","ArrowRight"].includes(r)))switch(r){case"ArrowUp":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height-uc,type:"blockSize"}),c.bottom-=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y-=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+uc,type:"blockSize"}),c.bottom+=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.y+=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-uc,type:"inlineSize"}),c.right-=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x-=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+uc,type:"inlineSize"}),c.right+=uc,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault()):o&&(a.x+=gb,this.updateTransform(),this.triggerInteractModifiers(),e.preventDefault());break}}updateTransform(){let{dragPosition:{x:e,y:r},resizePosition:n,transitionEl:i,dragEnabled:o,resizable:s}=this;if(!i)return;if(!o&&!s){i.style.transform=null;return}let{top:c,right:a,bottom:d,left:h}=this.getAdjustedResizePosition(n),g=Math.round(e+h+a),v=Math.round(r+c+d);i.style.transform=g||v?`translate(${g}px, ${v}px)`:null}updateSize({type:e,size:r}){let{transitionEl:n}=this;n&&(n.style[e]=r!==null?`${Math.round(r)}px`:null)}cleanupInteractions(){this.interaction?.unset(),this.updateSize({size:null,type:"inlineSize"}),this.updateSize({size:null,type:"blockSize"}),this.dragPosition={...fN},this.resizePosition={...mN},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:e,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=Mg(r,{context:e.ownerDocument})),n){let{minInlineSize:c,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[Mg.modifiers.restrictSize({min:{width:og(c)?parseInt(c):0,height:og(a)?parseInt(a):0},max:{width:og(d)?parseInt(d):window.innerWidth,height:og(h)?parseInt(h):window.innerHeight}}),Mg.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:v})=>{v&&(o.top+=v.top,o.right+=v.right,o.bottom+=v.bottom,o.left+=v.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[Mg.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:c,dy:a})=>{s.x+=c,s.y+=a,this.updateTransform()}}})}}getAdjustedResizePosition({top:e,right:r,bottom:n,left:i}){let o=e/2,s=r/2,c=n/2,a=i/2;switch(this.placement){case"top":return{top:e,right:s,bottom:0,left:a};case"top-start":return{top:e,right:0,bottom:0,left:i};case"top-end":return{top:e,right:r,bottom:0,left:0};case"bottom":return{top:0,right:s,bottom:n,left:a};case"bottom-start":return{top:0,right:0,bottom:n,left:i};case"bottom-end":return{top:0,right:r,bottom:n,left:0};case"cover":case"center":default:return{top:o,right:s,bottom:c,left:a}}}setTransitionEl(e){this.transitionEl=e,this.setupInteractions()}handleInternalPanelScroll(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(e){e.target===this.panelEl.value&&(e.stopPropagation(),this.open=!1)}handlePanelKeyDown(e){this.escapeDisabled&&e.key==="Escape"&&e.preventDefault()}async openDialog(){await this.componentOnReady(),this.el.addEventListener("calciteDialogOpen",this.openEnd),this.opened=!0,this.updateOverflowHiddenClass()}handleOutsideClose(){this.outsideCloseDisabled||(this.open=!1)}async closeDialog(){if(this.beforeClose)try{await this.beforeClose()}catch{requestAnimationFrame(()=>{this.ignoreOpenChange=!0,this.open=!0,this.ignoreOpenChange=!1});return}M5--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){M5===0&&(hN=document.documentElement.style.overflow),M5++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",hN)}handleMutationObserver(){this.focusTrap.updateContainerElements()}render(){let{assistiveText:e,description:r,heading:n,opened:i}=this;return _e`<div class=${Se({[lc.container]:!0,[lc.containerOpen]:i,[lc.containerEmbedded]:this.embedded})}>${this.modal?_e`<calcite-scrim class=${Se(lc.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${Se({[lc.dialog]:!0,[dN("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${wt(this.setTransitionEl)}>${e?Jt("assistive-text",_e`<div aria-live=polite class=${Se(lc.assistiveText)}>${e}</div>`):null}<slot name=${Yn.customContent}><slot name=${Yn.content}><calcite-panel .beforeClose=${this.beforeClose} class=${Se(lc.panel)} .closable=${!this.closeDisabled} .closed=${!i} .description=${r} .heading=${n} .headingLevel=${this.headingLevel} .loading=${this.loading} .menuOpen=${this.menuOpen} .messageOverrides=${this.messageOverrides} @keydown=${this.handlePanelKeyDown} @calcitePanelClose=${this.handleInternalPanelCloseClick} @calcitePanelScroll=${this.handleInternalPanelScroll} .overlayPositioning=${this.overlayPositioning} .scale=${this.scale} ${wt(this.panelEl)}><slot name=${Yn.actionBar} slot=${Rt.actionBar}></slot><slot name=${Yn.alerts} slot=${Rt.alerts}></slot><slot name=${Yn.headerActionsStart} slot=${Rt.headerActionsStart}></slot><slot name=${Yn.headerActionsEnd} slot=${Rt.headerActionsEnd}></slot><slot name=${Yn.headerContent} slot=${Rt.headerContent}></slot><slot name=${Yn.headerMenuActions} slot=${Rt.headerMenuActions}></slot><slot name=${Yn.fab} slot=${Rt.fab}></slot><slot name=${Yn.contentTop} slot=${Rt.contentTop}></slot><slot name=${Yn.contentBottom} slot=${Rt.contentBottom}></slot><slot name=${Yn.footerStart} slot=${Rt.footerStart}></slot><slot name=${Yn.footer} slot=${Rt.footer}></slot><slot name=${Yn.footerEnd} slot=${Rt.footerEnd}></slot><slot></slot></calcite-panel></slot></slot></div></div>`}};Lt("calcite-dialog",wb)});var wN={};Lo(wN,{Dialog:()=>wb});var yN=N(()=>{q4();sN();gN()});var bN,fX,A5,vN=N(()=>{Xt();Ii();Er();dn();un();bN={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},fX=Ct`:host{box-sizing:border-box;display:flex;block-size:auto;inline-size:100%;align-items:center;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-color-text-1);opacity:1;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;--calcite-input-message-spacing-value: .25rem;margin-block-start:var(--calcite-input-message-spacing-value)}.calcite-input-message-icon{pointer-events:none;display:inline-flex;flex-shrink:0;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;margin-inline-end:.5rem}:host([status=invalid]) .calcite-input-message-icon{color:var(--calcite-color-status-danger)}:host([status=warning]) .calcite-input-message-icon{color:var(--calcite-color-status-warning)}:host([status=valid]) .calcite-input-message-icon{color:var(--calcite-color-status-success)}:host([status=idle]) .calcite-input-message-icon{color:var(--calcite-color-brand)}:host([scale=s]){font-size:var(--calcite-font-size--3);line-height:.75rem}:host([scale=m]){font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=l]){font-size:var(--calcite-font-size--1);line-height:1rem}:host([hidden]){display:none}[hidden]{display:none}`,A5=class extends gt{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}static{this.properties={icon:[3,{converter:ks}],iconFlipRtl:7,scale:3,status:3}}static{this.styles=fX}connectedCallback(){super.connectedCallback(),this.requestedIcon=Ns(bN,this.icon,this.status)}willUpdate(e){(e.has("status")&&(this.hasUpdated||this.status!=="idle")||e.has("icon"))&&(this.requestedIcon=Ns(bN,this.icon,this.status))}render(){let e=this.el.hidden;return Kp(this.el,"calcite-hydrated-hidden",e),_e`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(e){if(e)return _e`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${e} scale=s></calcite-icon>`}};Lt("calcite-input-message",A5)});var _N=N(()=>{Zl();vN()});var mX,I5,SN=N(()=>{Xt();xr();Er();dn();un();mX=Ct`:host{position:relative;display:block;inline-size:100%}.track,.bar{position:absolute;inset-block-start:0px;block-size:2px}.track{z-index:var(--calcite-z-index);inline-size:100%;overflow:hidden;background-color:var(--calcite-progress-background-color, var(--calcite-color-border-3))}.bar{z-index:var(--calcite-z-index);background-color:var(--calcite-progress-fill-color, var(--calcite-color-brand))}@media (forced-colors: active){.track{background-color:highlightText}.bar{background-color:linkText}}.indeterminate{inline-size:20%;animation:looping-progress-bar-ani calc(var(--calcite-internal-animation-timing-medium) / var(--calcite-internal-duration-factor) * 11 / var(--calcite-internal-duration-factor)) linear infinite}.indeterminate.calcite--rtl{animation-name:looping-progress-bar-ani-rtl}.reversed{animation-direction:reverse}.text{padding-inline:0px;padding-block:1rem 0px;text-align:center;font-size:var(--calcite-font-size--2);line-height:1rem;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-progress-text-color, var(--calcite-color-text-2))}@keyframes looping-progress-bar-ani{0%{transform:translate3d(-100%,0,0)}50%{inline-size:40%}to{transform:translate3d(600%,0,0)}}@keyframes looping-progress-bar-ani-rtl{0%{transform:translate3d(100%,0,0)}50%{inline-size:40%}to{transform:translate3d(-600%,0,0)}}:host([hidden]){display:none}[hidden]{display:none}`,I5=class extends gt{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}static{this.properties={label:1,reversed:7,text:1,type:3,value:9}}static{this.styles=mX}render(){let e=this.type==="determinate",r=e?{width:`${this.value}%`}:{},n=Qa(this.el);return _e`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${e?"100":void 0} .ariaValueMin=${e?"0":void 0} .ariaValueNow=${e?this.value:void 0} role=progressbar><div class="track"><div class=${Se({bar:!0,indeterminate:this.type==="indeterminate",[rg.rtl]:n==="rtl",reversed:this.reversed})} style=${My(r)}></div></div>${this.text?_e`<div class="text">${this.text}</div>`:null}</div>`}};Lt("calcite-progress",I5)});var xN=N(()=>{SN()});function Zo(t){return!(!t||isNaN(Number(t)))}function EN(t){return!t||!xX(t)?"":yb(t,e=>{let r=!1,n=e.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:Eg.includes(i)).join("");return Zo(n)?new iu(n).toString():""})}function _X(t){let e=t.split(".")[1],r=new iu(t).toString(),[n,i]=r.split(".");return e&&i!==e?`${n}.${e}`:r}function yb(t,e){if(!t)return t;let r=t.toLowerCase().indexOf("e")+1;return r?t.replace(/[eE]*$/g,"").substring(0,r).concat(t.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>e(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):e(t)}function SX(t){let e=t.split(/[eE]/);if(e.length===1)return t;let r=+t;if(Number.isSafeInteger(r))return`${r}`;let n=t.charAt(0)==="-",i=+e[1],o=e[0].split("."),s=(n?o[0].substring(1):o[0])||"",c=o[1]||"",a=(g,v)=>{let E=Math.abs(v)-g.length,M=E>0?`${"0".repeat(E)}${g}`:g;return`${M.slice(0,v)}.${M.slice(v)}`},d=(g,v)=>{let E=v>g.length?`${g}${"0".repeat(v-g.length)}`:g;return`${E.slice(0,v)}.${E.slice(v)}`},h=i>0?`${s}${d(c,i)}`:`${a(s,i)}${c}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(hX,"").replace(CN,"")}`}function xX(t){return Eg.some(e=>t.includes(e))}function PN(t,e,r){let n=e.split(".")[1];if(n){let i=n.match(vX)[0];if(i&&r.delocalize(t).length!==e.length&&n.indexOf("e")===-1){let o=r.decimal;return t=t.includes(o)?t:`${t}${o}`,t.padEnd(t.length+i.length,r.localize("0"))}}return t}function TX(t,e="cldr"){let r=e==="cldr"?AN:MN;return t?r.includes(t)?t:(t=t.toLowerCase(),t==="nb"?"no":e==="t9n"&&t==="pt"?"pt-BR":(t.includes("-")&&(t=t.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(t)||(t=t.split("-")[0])),t==="zh"?"zh-CN":r.includes(t)?t:(console.warn(`Translations for the "${t}" locale are not available and will fall back to the default, English (en).`),Ag))):Ag}var hX,gX,iu,CN,wX,yX,bX,vX,TN,Ag,MN,AN,d_e,EX,IN,L5,LN,CX,k5,ho,kN=N(()=>{Cg();hX=new RegExp("\\.(0+)?$"),gX=new RegExp("0+$"),iu=class t{static{this.DECIMALS=100}static{this.ROUNDED=!0}static{this.SHIFT=BigInt("1"+"0".repeat(this.DECIMALS))}constructor(e){if(e instanceof t)return e;let[r,n]=SX(e).split(".").concat("");this.value=BigInt(r+n.padEnd(t.DECIMALS,"0").slice(0,t.DECIMALS))+BigInt(t.ROUNDED&&n[t.DECIMALS]>="5"),this.isNegative=e.charAt(0)==="-"}static{this._divRound=(e,r)=>t.fromBigInt(e/r+(t.ROUNDED?e*BigInt(2)/r%BigInt(2):BigInt(0)))}static{this.fromBigInt=e=>Object.assign(Object.create(t.prototype),{value:e,isNegative:e<BigInt(0)})}getIntegersAndDecimals(){let e=this.value.toString().replace("-","").padStart(t.DECIMALS+1,"0"),r=e.slice(0,-t.DECIMALS),n=e.slice(-t.DECIMALS).replace(gX,"");return{integers:r,decimals:n}}toString(){let{integers:e,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${e}${r.length?"."+r:""}`}formatToParts(e){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=e.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:e.minusSign}),n.length&&(i.push({type:"decimal",value:e.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(e){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?e.minusSign:""}${e.numberFormatter.format(BigInt(r))}`,o=n.length?`${e.decimal}${n.split("").map(s=>e.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(e){return t.fromBigInt(this.value+new t(e).value)}subtract(e){return t.fromBigInt(this.value-new t(e).value)}multiply(e){return t._divRound(this.value*new t(e).value,t.SHIFT)}divide(e){return t._divRound(this.value*t.SHIFT,new t(e).value)}};CN=/^([-0])0+(?=\d)/,wX=/(?!^\.)\.$/,yX=/(?!^-)-/g,bX=/^-\b0\b\.?0*$/,vX=/0*$/,TN=t=>yb(t,e=>{let r=e.replace(yX,"").replace(wX,"").replace(CN,"$1");return Zo(r)?bX.test(r)?r:_X(r):e});Ag="en",MN=["ar","bg","bs","ca","cs","da","de","el",Ag,"es","et","fi","fr","he","hr","hu","id","it","ja","ko","lt","lv","no","nl","pl","pt-BR","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],AN=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",Ag,"en-AU","en-CA","en-GB","es","es-MX","et","fi","fr","fr-CH","he","hi","hr","hu","id","it","it-CH","ja","ko","lt","lv","mk","no","nl","pl","pt","pt-PT","ro","ru","sk","sl","sr","sv","th","tr","uk","vi","zh-CN","zh-HK","zh-TW"],d_e=new Map(Object.entries({bg:{am:"\u043F\u0440.\u043E\u0431.",pm:"\u0441\u043B.\u043E\u0431."},bs:{am:"prijepodne",pm:"popodne"},ca:{am:"a.\xA0m.",pm:"p.\xA0m."},cs:{am:"dop.",pm:"odp."},es:{am:"a.\xA0m.",pm:"p.\xA0m."},"es-mx":{am:"a.m.",pm:"p.m."},"es-MX":{am:"a.m.",pm:"p.m."},fi:{am:"ap.",pm:"ip."},he:{am:"\u05DC\u05E4\u05E0\u05D4\u05F4\u05E6",pm:"\u05D0\u05D7\u05D4\u05F4\u05E6"},hu:{am:"de. ",pm:"du."},lt:{am:"prie\u0161piet",pm:"popiet"},lv:{am:"priek\u0161pusdien\u0101",pm:"p\u0113cpusdien\u0101"},mk:{am:"\u043F\u0440\u0435\u0442\u043F\u043B.",pm:"\u043F\u043E\u043F\u043B."},no:{am:"a.m.",pm:"p.m."},nl:{am:"a.m.",pm:"p.m."},"pt-pt":{am:"da manh\xE3",pm:"da tarde"},"pt-PT":{am:"da manh\xE3",pm:"da tarde"},ro:{am:"a.m.",pm:"p.m."},sl:{am:"dop.",pm:"pop."},sv:{am:"fm",pm:"em"},th:{am:"\u0E01\u0E48\u0E2D\u0E19\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07",pm:"\u0E2B\u0E25\u0E31\u0E07\u0E40\u0E17\u0E35\u0E48\u0E22\u0E07"},tr:{am:"\xD6\xD6",pm:"\xD6S"},uk:{am:"\u0434\u043F",pm:"\u043F\u043F"},vi:{am:"SA",pm:"CH"}})),EX=["arab","arabext","latn"];[...new Set([...MN,...AN])];IN=t=>EX.includes(t),L5=new Intl.NumberFormat().resolvedOptions().numberingSystem,LN=L5==="arab"||!IN(L5)?"latn":L5,CX=t=>IN(t)?t:LN;k5=class{constructor(){this.delocalize=e=>this._numberFormatOptions?yb(e,r=>r.replace(new RegExp(`[${this._minusSign}]`,"g"),"-").replace(new RegExp(`[${this._group}]`,"g"),"").replace(new RegExp(`[${this._decimal}]`,"g"),".").replace(new RegExp(`[${this._digits.join("")}]`,"g"),this._getDigitIndex)):e,this.localize=e=>this._numberFormatOptions?yb(e,r=>Zo(r.trim())?new iu(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):e}get group(){return this._group}get decimal(){return this._decimal}get minusSign(){return this._minusSign}get digits(){return this._digits}get numberFormatter(){return this._numberFormatter}get numberFormatOptions(){return this._numberFormatOptions}set numberFormatOptions(e){if(e.locale=TX(e?.locale),e.numberingSystem=CX(e?.numberingSystem),!this._numberFormatOptions&&e.locale===Ag&&e.numberingSystem===LN&&Object.keys(e).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(e))return;this._numberFormatOptions=e,this._numberFormatter=new Intl.NumberFormat(this._numberFormatOptions.locale,this._numberFormatOptions),this._digits=[...new Intl.NumberFormat(this._numberFormatOptions.locale,{useGrouping:!1,numberingSystem:this._numberFormatOptions.numberingSystem}).format(9876543210)].reverse();let r=new Map(this._digits.map((i,o)=>[i,o])),n=new Intl.NumberFormat(this._numberFormatOptions.locale,{numberingSystem:this._numberFormatOptions.numberingSystem}).formatToParts(-123456789e-1);this._actualGroup=n.find(i=>i.type==="group").value,this._group=this._actualGroup.trim().length===0||this._actualGroup==" "?"\xA0":this._actualGroup,this._decimal=e.locale==="bs"||e.locale==="mk"?",":n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},ho=new k5});var PX,ON,NN=N(()=>{xr();Er();PX={validationContainer:"validation-container"},ON=({scale:t,status:e,id:r,icon:n,message:i})=>_e`<div class=${Se(PX.validationContainer)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Oe} .scale=${t} .status=${e}>${i}</calcite-input-message></div>`});function wf(t,e,r,n){let i=r.toLowerCase(),o=t[r];n&&o!=null?e.setAttribute(i,`${o}`):e.removeAttribute(i)}function RN(t,e,r){r.type=t==="textarea"?"text":t;let n=MX.includes(t),i=e;wf(i,r,"min",n),wf(i,r,"max",n),wf(i,r,"step",n);let o=IX.includes(t),s=e;wf(s,r,"minLength",o),wf(s,r,"maxLength",o);let c=AX.includes(t);wf(s,r,"pattern",c)}var MX,AX,IX,DN=N(()=>{MX=["date","datetime-local","month","number","range","time","week"],AX=["email","password","search","tel","text","url"],IX=["email","password","search","tel","text","textarea","url"]});var pn,O5,$N,LX,kX,bb,FN=N(()=>{Xt();g4();oc();Ii();ao();Uy();Er();Jp();dn();G4();ag();Cg();jy();Rs();kN();lf();NN();Ho();DN();un();pn={loader:"loader",clearButton:"clear-button",editingEnabled:"editing-enabled",inlineChild:"inline-child",inputIcon:"icon",prefix:"prefix",suffix:"suffix",numberButtonWrapper:"number-button-wrapper",buttonItemHorizontal:"number-button-item--horizontal",wrapper:"element-wrapper",inputWrapper:"wrapper",actionWrapper:"action-wrapper",numberButtonItem:"number-button-item",hasSuffix:"has-suffix",hasPrefix:"has-prefix"},O5={validationMessage:"inputValidationMessage"},$N={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},LX={action:"action"},kX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:block}:host([scale=s]) input,:host([scale=s]) .prefix,:host([scale=s]) .suffix{block-size:1.5rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=s]) input[type=file],:host([scale=s]) textarea{min-block-size:1.5rem}:host([scale=s]) .number-button-wrapper,:host([scale=s]) .action-wrapper calcite-button,:host([scale=s]) .action-wrapper calcite-button button{block-size:1.5rem}:host([scale=s]) .clear-button{min-block-size:1.5rem;min-inline-size:1.5rem}:host([scale=s]) textarea{block-size:auto;padding-block:.25rem;padding-inline:.5rem;font-size:var(--calcite-font-size--2);line-height:1rem}:host([scale=m]) input,:host([scale=m]) .prefix,:host([scale=m]) .suffix{block-size:2rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) textarea,:host([scale=m]) input[type=file]{min-block-size:2rem}:host([scale=m]) .number-button-wrapper,:host([scale=m]) .action-wrapper calcite-button,:host([scale=m]) .action-wrapper calcite-button button{block-size:2rem}:host([scale=m]) .clear-button{min-block-size:2rem;min-inline-size:2rem}:host([scale=m]) textarea{block-size:auto;padding-block:.5rem;padding-inline:.75rem;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=l]) input,:host([scale=l]) .prefix,:host([scale=l]) .suffix{block-size:2.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) textarea,:host([scale=l]) input[type=file]{min-block-size:2.75rem}:host([scale=l]) .number-button-wrapper,:host([scale=l]) .action-wrapper calcite-button,:host([scale=l]) .action-wrapper calcite-button button{block-size:2.75rem}:host([scale=l]) .clear-button{min-block-size:2.75rem;min-inline-size:2.75rem}:host([scale=l]) textarea{block-size:auto;padding-block:.75rem;padding-inline:1rem;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([disabled]) textarea{resize:none}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}textarea,input{position:relative;margin:0;box-sizing:border-box;display:flex;max-block-size:100%;inline-size:100%;max-inline-size:100%;flex:1 1 0%;text-overflow:ellipsis;border-width:1px;border-style:solid;font-family:inherit;font-weight:var(--calcite-font-weight-normal);border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-background-color, var(--calcite-color-foreground-1));color:var(--calcite-input-text-color, var(--calcite-color-text-1));transition:var(--calcite-animation-timing),block-size 0,outline-offset 0s;-webkit-appearance:none}textarea:placeholder-shown,input:placeholder-shown{text-overflow:ellipsis}::placeholder{font-weight:var(--calcite-font-weight-normal);color:var(--calcite-input-placeholder-text-color, var(--calcite-color-text-3))}textarea{border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-prefix input{border-start-start-radius:0;border-end-start-radius:0}.has-suffix input,.element-wrapper:has(.clear-button) input,:host([number-button-type=vertical][type=number]) input,:host([number-button-type=horizontal]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .has-suffix .suffix,:host([number-button-type=vertical][type=number]) .clear-button,:host([number-button-type=horizontal][type=number]) .clear-button{border-start-end-radius:0;border-end-end-radius:0}:host([number-button-type=horizontal]) input{border-start-start-radius:0;border-start-end-radius:0;border-end-start-radius:0;border-end-end-radius:0}.has-prefix .prefix:first-child,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=down]{border-start-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-end-start-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}.has-suffix .suffix,:host([number-button-type=vertical][type=number][read-only]) .has-suffix .suffix,:host([clearable]) .clear-button,:host([number-button-type=horizontal]) .number-button-item[data-adjustment=up]{border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([clearable]) .has-suffix .clear-button{border-end-end-radius:0;border-start-end-radius:0}:host([number-button-type=vertical]) .number-button-item[data-adjustment=down]{border-block-start-width:0px;border-end-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}:host([number-button-type=vertical]) .number-button-item[data-adjustment=up]{border-start-end-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp))}input[type=search]::-webkit-search-decoration{-webkit-appearance:none}input:focus,textarea:focus{border-color:var(--calcite-color-brand);color:var(--calcite-input-text-color, var(--calcite-color-text-1))}input[readonly],textarea[readonly]{font-weight:var(--calcite-font-weight-medium);background-color:var(--calcite-input-background-color, var(--calcite-color-background))}input[readonly]:focus,textarea[readonly]:focus{color:var(--calcite-input-text-color, var(--calcite-color-text-1))}textarea,input{outline-color:transparent}textarea:focus,input:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([status=invalid]) input,:host([status=invalid]) textarea{border-color:var(--calcite-color-status-danger)}:host([status=invalid]) input:focus,:host([status=invalid]) textarea:focus{outline:2px solid var(--calcite-color-status-danger);outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host([scale=s]) .icon{inset-inline-start:.5rem}:host([scale=m]) .icon{inset-inline-start:.75rem}:host([scale=l]) .icon{inset-inline-start:1rem}:host([icon][scale=s]) input{padding-inline-start:2rem}:host([icon][scale=m]) input{padding-inline-start:2.5rem}:host([icon][scale=l]) input{padding-inline-start:3.5rem}.element-wrapper{position:relative;order:3;display:inline-flex;flex:1 1 0%;align-items:center}.icon{pointer-events:none;position:absolute;display:block;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-icon-color, var(--calcite-color-text-3));z-index:var(--calcite-z-index)}input[type=text]::-ms-clear,input[type=text]::-ms-reveal{display:none;block-size:0px;inline-size:0px}input[type=search]::-webkit-search-decoration,input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-results-button,input[type=search]::-webkit-search-results-decoration,input[type=date]::-webkit-clear-button,input[type=time]::-webkit-clear-button{display:none}.clear-button{pointer-events:initial;order:4;margin:0;box-sizing:border-box;display:flex;min-block-size:100%;cursor:pointer;align-items:center;justify-content:center;align-self:stretch;border-width:1px;border-style:solid;outline-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.clear-button calcite-icon{transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.clear-button:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.clear-button:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.clear-button:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.clear-button:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.clear-button:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}.clear-button:disabled{opacity:var(--calcite-opacity-disabled)}.loader{inset-block-start:1px;inset-inline:1px;pointer-events:none;position:absolute;display:block;--calcite-progress-background-color: var(--calcite-input-loading-background-color);--calcite-progress-fill-color: var(--calcite-input-loading-fill-color)}.action-wrapper{order:7;display:flex}.prefix,.suffix{box-sizing:border-box;display:flex;block-size:auto;min-block-size:100%;-webkit-user-select:none;user-select:none;align-content:center;align-items:center;overflow-wrap:break-word;border-width:1px;border-style:solid;font-weight:var(--calcite-font-weight-medium);line-height:1;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input))}.prefix{order:2;border-inline-end-width:0px;inline-size:var(--calcite-input-prefix-size, auto);background-color:var(--calcite-input-prefix-background-color, var(--calcite-color-background));color:var(--calcite-input-prefix-text-color, var(--calcite-color-text-2))}.suffix{order:5;border-inline-start-width:0px;inline-size:var(--calcite-input-suffix-size, auto);background-color:var(--calcite-input-suffix-background-color, var(--calcite-color-background));color:var(--calcite-input-suffix-text-color, var(--calcite-color-text-2))}:host([alignment=start]) textarea,:host([alignment=start]) input{text-align:start}:host([alignment=end]) textarea,:host([alignment=end]) input{text-align:end}input[type=number]{-moz-appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:textfield;margin:0}.number-button-wrapper{pointer-events:none;order:6;box-sizing:border-box;display:flex;flex-direction:column;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}:host([number-button-type=vertical]) .wrapper{flex-direction:row;display:flex}:host([number-button-type=vertical]) input,:host([number-button-type=vertical]) textarea{order:2}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=down] calcite-icon{transform:rotate(-90deg)}:host([number-button-type=horizontal]) .calcite--rtl .number-button-item[data-adjustment=up] calcite-icon{transform:rotate(-90deg)}.number-button-item.number-button-item--horizontal{border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));order:1;max-block-size:100%;min-block-size:100%;align-self:stretch;border-width:1px;border-style:solid}.number-button-item.number-button-item--horizontal[data-adjustment=down] calcite-icon,.number-button-item.number-button-item--horizontal[data-adjustment=up] calcite-icon{transform:rotate(90deg)}.number-button-item.number-button-item--horizontal[data-adjustment=down]{border-inline-end-width:0px}.number-button-item.number-button-item--horizontal[data-adjustment=up]{border-inline-start-width:0px;order:5}.number-button-item{max-block-size:50%;min-block-size:50%;pointer-events:initial;margin:0;box-sizing:border-box;display:flex;cursor:pointer;align-items:center;align-self:center;border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);padding-block:0px;padding-inline:.5rem;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));background-color:var(--calcite-input-actions-background-color, var(--calcite-color-foreground-1));border-inline-start-width:0px}.number-button-item calcite-icon{pointer-events:none;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;color:var(--calcite-input-actions-icon-color, var(--calcite-color-text-3))}.number-button-item:hover{background-color:var(--calcite-input-actions-background-color-hover, var(--calcite-color-foreground-2))}.number-button-item:hover calcite-icon{color:var(--calcite-input-actions-icon-color-hover, var(--calcite-color-text-1))}.number-button-item:active{background-color:var(--calcite-input-actions-background-color-press, var(--calcite-color-foreground-3))}.number-button-item:active calcite-icon{color:var(--calcite-input-actions-icon-color-press, var(--calcite-color-text-1))}.number-button-item:disabled{pointer-events:none}.wrapper{position:relative;display:flex;flex-direction:row;align-items:center;border-radius:var(--calcite-input-corner-radius, var(--calcite-corner-radius-sharp));box-shadow:var(--calcite-input-shadow, var(--calcite-shadow-none))}input[type=date]::-webkit-input-placeholder{visibility:hidden!important}:host([type=color]) input{padding:.25rem}:host([type=file]) input{cursor:pointer;border-width:1px;border-style:dashed;background-color:var(--calcite-color-foreground-1);text-align:center;border-color:var(--calcite-input-border-color, var(--calcite-color-border-input));block-size:initial}:host([type=file][scale=s]) input{padding-block:1px;padding-inline:.5rem}:host([type=file][scale=m]) input{padding-block:.25rem;padding-inline:.75rem}:host([type=file][scale=l]) input{padding-block:.5rem;padding-inline:1rem}:host(.no-bottom-border) input{border-block-end-width:0px}:host(.border-top-color-one) input{border-block-start-color:var(--calcite-color-border-1)}input.inline-child{background-color:transparent;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out}input.inline-child .editing-enabled{background-color:inherit}input.inline-child:not(.editing-enabled){display:flex;cursor:pointer;text-overflow:ellipsis;border-color:transparent;padding-inline-start:0}.validation-container{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch}:host([scale=m]) .validation-container,:host([scale=l]) .validation-container{padding-block-start:.5rem}:host([scale=s]) .validation-container{padding-block-start:.25rem}::slotted(input[slot=hidden-form-input]){margin:0!important;opacity:0!important;outline:none!important;padding:0!important;position:absolute!important;inset:0!important;transform:none!important;-webkit-appearance:none!important;z-index:-1!important}:host([hidden]){display:none}[hidden]{display:none}`,bb=class extends gt{constructor(){super(),this.actionWrapperEl=mi(),this.attributeWatch=dy(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=mi(),this.onHiddenFormInputInput=e=>{e.target.name===this.name&&this.setValue({value:e.target.value,origin:"direct"}),this.setFocus(),e.stopPropagation()},this.previousValueOrigin="initial",this.userChangedValue=!1,this._value="",this.slottedActionElDisabledInternally=!1,this.alignment="start",this.clearable=!1,this.disabled=!1,this.editingEnabled=!1,this.groupSeparator=!1,this.iconFlipRtl=!1,this.loading=!1,this.localeFormat=!1,this.messages=Jr(),this.multiple=!1,this.numberButtonType="vertical",this.readOnly=!1,this.required=!1,this.scale="m",this.status="idle",this.type="text",this.validity={valid:!1,badInput:!1,customError:!1,patternMismatch:!1,rangeOverflow:!1,rangeUnderflow:!1,stepMismatch:!1,tooLong:!1,tooShort:!1,typeMismatch:!1,valueMissing:!1},this.calciteInputChange=Tt({cancelable:!1}),this.calciteInputInput=Tt(),this.calciteInternalInputBlur=Tt({cancelable:!1}),this.calciteInternalInputFocus=Tt({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}static{this.properties={displayedValue:16,slottedActionElDisabledInternally:16,accept:1,alignment:3,autocomplete:0,clearable:7,disabled:7,editingEnabled:7,files:0,form:3,groupSeparator:7,icon:[3,{converter:ks}],iconFlipRtl:7,label:1,loading:7,localeFormat:5,max:11,maxLength:11,messageOverrides:0,min:11,minLength:11,multiple:5,name:3,numberButtonType:3,numberingSystem:3,pattern:1,placeholder:1,prefixText:1,readOnly:7,required:7,scale:3,status:3,step:3,suffixText:1,type:3,validationIcon:[3,{converter:ks}],validationMessage:1,validity:0,value:1}}static{this.styles=kX}get isClearable(){return!this.isTextarea&&(this.clearable||this.type==="search")&&this.value?.length>0}get isTextarea(){return this.childElType==="textarea"}get value(){return this._value}set value(e){let r=this._value;e!==r&&(this._value=e,this.valueWatcher(e,r),e&&this._value===""&&this.setValue({origin:"reset",value:r}))}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}async setFocus(){await En(this),ec(this.type==="number"?this.childNumberEl:this.childEl)}connectedCallback(){super.connectedCallback(),this.inlineEditableEl=this.el.closest("calcite-inline-editable"),this.inlineEditableEl&&(this.editingEnabled=this.inlineEditableEl.editingEnabled||!1),cf(this),BL(this),this.el.addEventListener(zy,this.onHiddenFormInputInput)}async load(){this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=Ns($N,this.icon,this.type),this.setPreviousEmittedValue(this.value),this.setPreviousValue(this.value),this.type==="number"&&(this.value==="Infinity"||this.value==="-Infinity"?(this.displayedValue=this.value,this.previousEmittedValue=this.value):(this.warnAboutInvalidNumberValue(this.value),this.setValue({origin:"connected",value:Zo(this.value)?this.value:""})))}willUpdate(e){e.has("max")&&(this.maxString=this.max?.toString()||null),e.has("min")&&(this.minString=this.min?.toString()||null),(e.has("icon")||e.has("type")&&(this.hasUpdated||this.type!=="text"))&&(this.requestedIcon=Ns($N,this.icon,this.type))}updated(){nc(this)}loaded(){}disconnectedCallback(){super.disconnectedCallback(),Gy(this),GL(this),this.el.removeEventListener(zy,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(e,r){if(!this.userChangedValue){if(this.type==="number"&&(e==="Infinity"||e==="-Infinity")){this.displayedValue=e,this.previousEmittedValue=e;return}this.setValue({origin:"direct",previousValue:r,value:e==null||e==""?"":this.type==="number"?Zo(e)?e:this.previousValue||"":e}),this.warnAboutInvalidNumberValue(e)}this.userChangedValue=!1}keyDownHandler(e){this.readOnly||this.disabled||e.defaultPrevented||(this.isClearable&&e.key==="Escape"&&(this.clearInputValue(e),e.preventDefault()),e.key==="Enter"&&Vy(this)&&e.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(e,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=e==="up"?1:-1,c=this.step==="any"?1:Math.abs(this.step||1),a=new iu(o!==""?o:"0").add(`${c*s}`),d=()=>typeof n=="number"&&!isNaN(n)&&a.subtract(`${n}`).isNegative,h=()=>typeof r=="number"&&!isNaN(r)&&!a.subtract(`${r}`).isNegative,g=d()?`${n}`:h()?`${r}`:a.toString();this.setValue({committing:!0,nativeEvent:i,origin:"user",value:g})}clearInputValue(e){this.setValue({committing:!0,nativeEvent:e,origin:"user",value:""})}emitChangeIfUserModified(){this.previousValueOrigin==="user"&&this.value!==this.previousEmittedValue&&(this.calciteInputChange.emit(),this.setPreviousEmittedValue(this.value))}inputBlurHandler(){window.clearInterval(this.nudgeNumberValueIntervalId),this.calciteInternalInputBlur.emit(),this.emitChangeIfUserModified()}clickHandler(e){if(this.disabled)return;let r=e.composedPath();!r.includes(this.inputWrapperEl.value)||r.includes(this.actionWrapperEl.value)||this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputInputHandler(e){this.disabled||this.readOnly||(this.type==="file"&&(this.files=this.childEl.files),this.setValue({nativeEvent:e,origin:"user",value:e.target.value}))}inputKeyDownHandler(e){this.disabled||this.readOnly||e.key==="Enter"&&this.emitChangeIfUserModified()}inputNumberInputHandler(e){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=e.target.value;ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=ho.delocalize(r);e.inputType==="insertFromPaste"?(Zo(n)||e.preventDefault(),this.setValue({nativeEvent:e,origin:"user",value:EN(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:e,origin:"user",value:n})}inputNumberKeyDownHandler(e){if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){e.preventDefault(),(e.key==="Backspace"||e.key==="Delete")&&this.clearInputValue(e);return}if(e.key==="ArrowUp"){e.preventDefault(),this.nudgeNumberValue("up",e);return}if(e.key==="ArrowDown"){this.nudgeNumberValue("down",e);return}let r=[...Eg,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(e.altKey||e.ctrlKey||e.metaKey)return;let n=e.shiftKey&&e.key==="Tab";if(r.includes(e.key)||n){e.key==="Enter"&&this.emitChangeIfUserModified();return}ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(e.key===ho.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(ho.decimal)===-1))&&(/[eE]/.test(e.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||e.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||e.preventDefault())}nudgeNumberValue(e,r){if(r instanceof KeyboardEvent&&r.repeat||this.type!=="number")return;let n=this.maxString?parseFloat(this.maxString):null,i=this.minString?parseFloat(this.minString):null,o=150;this.incrementOrDecrementNumberValue(e,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(e,n,i,r)},o)}numberButtonPointerUpAndOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}numberButtonPointerDownHandler(e){if(!xL(e))return;e.preventDefault();let r=e.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,e)}syncHiddenFormInput(e){RN(this.type,this,e)}setChildElRef(e){this.childEl=e}setChildNumberElRef(e){this.childNumberEl=e}setInputValue(e){this.type==="number"&&this.childNumberEl?this.childNumberEl.value=e:this.childEl&&(this.childEl.value=e)}setPreviousEmittedValue(e){this.previousEmittedValue=this.normalizeValue(e)}normalizeValue(e){return this.type==="number"?Zo(e)?e:"":e}setPreviousValue(e){this.previousValue=this.normalizeValue(e)}setValue({committing:e=!1,nativeEvent:r,origin:n,previousValue:i,value:o}){if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){ho.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator,signDisplay:"never"};let s=this.previousValue?.length>o.length||this.value?.length>o.length,c=o.charAt(o.length-1)===".",a=c&&s?o:TN(o),d=o&&!a?Zo(this.previousValue)?this.previousValue:"":a,h=ho.localize(d);n!=="connected"&&!c&&(h=PN(h,d,ho)),this.displayedValue=c&&s?`${h}${ho.decimal}`:h,this.userChangedValue=n==="user"&&this.value!==d,this.value=["-","."].includes(d)?"":d}else this.userChangedValue=n==="user"&&this.value!==o,this.value=o;n==="direct"&&(this.setInputValue(o),this.previousEmittedValue=o),r&&(this.calciteInputInput.emit().defaultPrevented?(this.value=this.previousValue,this.displayedValue=this.type==="number"?ho.localize(this.previousValue):this.previousValue):e&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(e){this.type==="number"&&e&&!Zo(e)&&console.warn(`The specified value "${e}" cannot be parsed, or is out of range.`)}render(){let e=Qa(this.el),r=_e`<div class=${Se(pn.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=_e`<button .ariaLabel=${this.messages.clear} class=${Se(pn.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`,i=_e`<calcite-icon class=${Se(pn.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=_e`<button aria-hidden=true class=${Se({[pn.numberButtonItem]:!0,[pn.buttonItemHorizontal]:o})} data-adjustment=up .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-up .scale=${Rn(this.scale)}></calcite-icon></button>`,c=_e`<button aria-hidden=true class=${Se({[pn.numberButtonItem]:!0,[pn.buttonItemHorizontal]:o})} data-adjustment=down .disabled=${this.disabled||this.readOnly} @pointerdown=${this.numberButtonPointerDownHandler} @pointerout=${this.numberButtonPointerUpAndOutHandler} @pointerup=${this.numberButtonPointerUpAndOutHandler} tabindex=-1 type=button><calcite-icon icon=chevron-down .scale=${Rn(this.scale)}></calcite-icon></button>`,a=_e`<div class=${Se(pn.numberButtonWrapper)}>${s}${c}</div>`,d=_e`<div class=${Se(pn.prefix)}>${this.prefixText}</div>`,h=_e`<div class=${Se(pn.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus,v=this.el.enterKeyHint,E=this.el.inputMode,M=this.type==="number"?Jt("localized-input",_e`<input accept=${this.accept??Oe} aria-errormessage=${O5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${pg(this)} autocomplete=${this.autocomplete??Oe} .autofocus=${g} value=${this.defaultValue??Oe} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Oe} inputmode=${E??Oe} maxlength=${this.maxLength??Oe} minlength=${this.minLength??Oe} .multiple=${this.multiple} name=${Oe} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Oe} placeholder=${(this.placeholder||"")??Oe} .readOnly=${this.readOnly} type=text .value=${Py(this.displayedValue??"")} ${wt(this.setChildNumberElRef)}>`):null,k=this.childElType==="input"?rc`input`:rc`textarea`,$=this.type!=="number"?sf`<${k} accept=${this.accept??Oe} aria-errormessage=${O5.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${pg(this)} autocomplete=${this.autocomplete??Oe} .autofocus=${g} class=${Se({[pn.editingEnabled]:this.editingEnabled,[pn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${v??Oe} inputmode=${E??Oe} max=${this.maxString??Oe} maxlength=${this.maxLength??Oe} min=${this.minString??Oe} minlength=${this.minLength??Oe} .multiple=${this.multiple} name=${this.name??Oe} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Oe} placeholder=${(this.placeholder||"")??Oe} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Oe} step=${this.step??Oe} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Oe} type=${this.type??Oe} .value=${Py(this.value??"")} ${wt(this.setChildElRef)}></${k}>`:null;return ic({disabled:this.disabled,children:_e`<div class=${Se({[pn.inputWrapper]:!0,[rg.rtl]:e==="rtl",[pn.hasSuffix]:this.suffixText,[pn.hasPrefix]:this.prefixText})} ${wt(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?c:null}${this.prefixText?d:null}<div class=${Se(pn.wrapper)}>${M}${$}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${Se(pn.actionWrapper)} ${wt(this.actionWrapperEl)}><slot name=${LX.action}></slot></div>${this.type==="number"&&this.numberButtonType==="vertical"&&!this.readOnly?a:null}${this.suffixText?h:null}${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?s:null}${qL({component:this})}</div>${this.validationMessage&&this.status==="invalid"?ON({icon:this.validationIcon,id:O5.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};Lt("calcite-input",bb)});var UN={};Lo(UN,{Input:()=>bb});var VN=N(()=>{_N();xN();Zl();FN()});var OX,NX,vb,zN=N(()=>{Xt();Ii();Er();jy();un();OX={container:"container"},NX=Ct`:host([disabled]){cursor:default;-webkit-user-select:none;user-select:none;opacity:var(--calcite-opacity-disabled)}:host([disabled]) *,:host([disabled]) ::slotted(*){pointer-events:none}:host{display:flex}:host([alignment=start]){text-align:start}:host([alignment=end]){text-align:end}:host([alignment=center]){text-align:center}:host([scale=s]) .container{gap:.25rem;font-size:var(--calcite-font-size--2);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .5rem)}:host([scale=m]) .container{gap:.5rem;font-size:var(--calcite-font-size--1);line-height:1rem;margin-block-end:var(--calcite-label-margin-bottom, .75rem)}:host([scale=l]) .container{gap:.5rem;font-size:var(--calcite-font-size-0);line-height:1.25rem;margin-block-end:var(--calcite-label-margin-bottom, 1rem)}:host .container{margin-inline:0px;margin-block-start:0px;inline-size:100%;line-height:1.375;color:var(--calcite-color-text-1);color:var(--calcite-label-text-color, var(--calcite-color-text-1))}:host([layout=default]) .container{display:flex;flex-direction:column}:host([layout=inline]) .container,:host([layout=inline-space-between]) .container{display:flex;flex-direction:row;align-items:center;gap:.5rem}:host([layout=inline][scale=l]) .container{gap:.75rem}:host([layout=inline-space-between]) .container{justify-content:space-between}:host([disabled])>.container{opacity:var(--calcite-opacity-disabled)}:host([disabled]) ::slotted(*[disabled]),:host([disabled]) ::slotted(*[disabled] *){--tw-bg-opacity: 1}:host([disabled]) ::slotted(calcite-input-message:not([active])){--tw-bg-opacity: 0}:host([disabled]) ::slotted([calcite-hydrated][disabled]),:host([disabled]) [calcite-hydrated][disabled]{opacity:1}.interaction-container{display:contents}:host([hidden]){display:none}[hidden]{display:none}`,vb=class extends gt{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=Tt({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}static{this.properties={alignment:3,for:3,layout:3,scale:3}}static{this.styles=NX}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(dg))}willUpdate(e){e.has("for")&&ek(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(lg))}labelClickHandler(e){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:e})}render(){return _e`<div class=${Se(OX.container)}><slot></slot></div>`}};Lt("calcite-label",vb)});var WN={};Lo(WN,{Label:()=>vb});var BN=N(()=>{zN()});var N5,GN=N(()=>{N5={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var _b,Ig,RX,Sb,jN=N(()=>{Xt();Ii();ao();Er();dn();Rs();GN();ob();lf();Ho();un();_b={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Ig={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},RX=Ct`:host([scale=s]){--calcite-notice-spacing-token-small: .5rem;--calcite-notice-spacing-token-large: .75rem}:host([scale=s]) .container slot[name=title]::slotted(*),:host([scale=s]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=s]) .container slot[name=message]::slotted(*),:host([scale=s]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--2);line-height:1.375}:host([scale=s]) .notice-close{padding:.5rem}:host([scale=m]){--calcite-notice-spacing-token-small: .75rem;--calcite-notice-spacing-token-large: 1rem}:host([scale=m]) .container slot[name=title]::slotted(*),:host([scale=m]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=m]) .container slot[name=message]::slotted(*),:host([scale=m]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=l]){--calcite-notice-spacing-token-small: 1rem;--calcite-notice-spacing-token-large: 1.25rem}:host([scale=l]) .container slot[name=title]::slotted(*),:host([scale=l]) .container *::slotted([slot=title]){margin-block:.125rem;font-size:var(--calcite-font-size-1);line-height:1.375}:host([scale=l]) .container slot[name=message]::slotted(*),:host([scale=l]) .container *::slotted([slot=message]){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) ::slotted(calcite-link){margin-block:.125rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([width=auto]){--calcite-notice-width: auto}:host([width=half]){--calcite-notice-width: 50%}:host([width=full]){--calcite-notice-width: 100%}:host{margin-inline:auto;display:none;max-inline-size:100%;align-items:center;inline-size:var(--calcite-notice-width)}.container{pointer-events:none;margin-block:0px;box-sizing:border-box;display:flex;inline-size:100%;opacity:0;overflow:hidden;max-block-size:0;transition-property:opacity,max-block-size;transition-duration:var(--calcite-animation-timing);text-align:start;border-inline-start:var(--calcite-border-width-md) solid;box-shadow:0 0 0 0 transparent;background-color:var(--calcite-notice-background-color, var(--calcite-color-foreground-1))}.notice-close{outline-color:transparent}.notice-close:focus{outline:2px solid var(--calcite-color-focus, var(--calcite-ui-focus-color, var(--calcite-color-brand)));outline-offset:calc(-2px*(1 - (2*clamp(0,var(--calcite-offset-invert-focus),1))))}:host{display:flex}:host([open]) .container{pointer-events:auto;max-block-size:100%;align-items:center;opacity:1;--tw-shadow: 0 4px 8px -1px rgba(0, 0, 0, .08), 0 2px 4px -1px rgba(0, 0, 0, .04);--tw-shadow-colored: 0 4px 8px -1px var(--tw-shadow-color), 0 2px 4px -1px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);overflow:visible}.container slot[name=title]::slotted(*),.container *::slotted([slot=title]){margin:0;font-weight:var(--calcite-font-weight-medium);color:var(--calcite-notice-close-text-color-hover, var(--calcite-color-text-1))}.container slot[name=message]::slotted(*),.container *::slotted([slot=message]){margin:0;display:inline;font-weight:var(--calcite-font-weight-normal);margin-inline-end:var(--calcite-notice-spacing-token-small);color:var(--calcite-notice-content-text-color, var(--calcite-color-text-2))}.notice-content{box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;display:flex;min-inline-size:0px;flex-direction:column;overflow-wrap:break-word;flex:1 1 0;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:0 var(--calcite-notice-spacing-token-small)}.notice-content:first-of-type:not(:only-child){padding-inline-start:var(--calcite-notice-spacing-token-large)}.notice-content:only-of-type{padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large)}.notice-icon{display:flex;align-items:center;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto}.notice-close{display:flex;cursor:pointer;align-items:center;align-self:stretch;border-style:none;background-color:transparent;outline:2px solid transparent;outline-offset:2px;box-sizing:border-box;transition-property:background-color,block-size,border-color,box-shadow,color,inset-block-end,inset-block-start,inset-inline-end,inset-inline-start,inset-size,opacity,outline-color,transform;transition-duration:var(--calcite-animation-timing);transition-timing-function:ease-in-out;padding-block:var(--calcite-notice-spacing-token-small);padding-inline:var(--calcite-notice-spacing-token-large);flex:0 0 auto;-webkit-appearance:none;color:var(--calcite-notice-close-text-color, var(--calcite-color-text-3))}.notice-close:hover,.notice-close:focus{background-color:var(--calcite-notice-close-background-color-focus, var(--calcite-color-foreground-2));color:var(--calcite-notice-close-text-color-hover, var(--calcite-color-text-1))}.notice-close:active{background-color:var(--calcite-notice-close-background-color-press, var(--calcite-color-foreground-3))}.actions-end{display:flex;align-self:stretch}:host([kind=brand]) .container{border-color:var(--calcite-color-brand)}:host([kind=brand]) .container .notice-icon{color:var(--calcite-color-brand)}:host([kind=info]) .container{border-color:var(--calcite-color-status-info)}:host([kind=info]) .container .notice-icon{color:var(--calcite-color-status-info)}:host([kind=danger]) .container{border-color:var(--calcite-color-status-danger)}:host([kind=danger]) .container .notice-icon{color:var(--calcite-color-status-danger)}:host([kind=success]) .container{border-color:var(--calcite-color-status-success)}:host([kind=success]) .container .notice-icon{color:var(--calcite-color-status-success)}:host([kind=warning]) .container{border-color:var(--calcite-color-status-warning)}:host([kind=warning]) .container .notice-icon{color:var(--calcite-color-status-warning)}:host([hidden]){display:none}[hidden]{display:none}`,Sb=class extends gt{constructor(){super(...arguments),this.closeButton=mi(),this.transitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=Jr(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=Tt({cancelable:!1}),this.calciteNoticeBeforeOpen=Tt({cancelable:!1}),this.calciteNoticeClose=Tt({cancelable:!1}),this.calciteNoticeOpen=Tt({cancelable:!1})}static{this.properties={hasActionEnd:16,closable:7,icon:[3,{converter:ks}],iconFlipRtl:7,kind:3,messageOverrides:0,open:7,scale:3,width:3}}static{this.styles=RX}async setFocus(){await En(this);let e=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!e)){if(e)return e.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){this.requestedIcon=Ns(N5,this.icon,this.kind)}willUpdate(e){e.has("open")&&(this.hasUpdated||this.open!==!1)&&gf(this),(e.has("icon")||e.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=Ns(N5,this.icon,this.kind))}loaded(){}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(e){this.transitionEl=e}close(){this.open=!1}handleActionsEndSlotChange(e){this.hasActionEnd=On(e)}render(){let e=_e`<button .ariaLabel=${this.messages.close} class=${Se(Ig.close)} @click=${this.close} ${wt(this.closeButton)}><calcite-icon icon=x .scale=${Rn(this.scale)}></calcite-icon></button>`;return _e`<div class=${Se(Ig.container)} ${wt(this.setTransitionEl)}>${this.requestedIcon?_e`<div class=${Se(Ig.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${Rn(this.scale)}></calcite-icon></div>`:null}<div class=${Se(Ig.content)}><slot name=${_b.title}></slot><slot name=${_b.message}></slot><slot name=${_b.link}></slot></div><div class=${Se(Ig.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${_b.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?e:null}</div>`}};Lt("calcite-notice",Sb)});var qN={};Lo(qN,{Notice:()=>Sb});var HN=N(()=>{Zl();jN()});var R5,D5,DX,gi,$5,YN=N(()=>{ai();Sx();ci();St();Vt();Sa();qn();oL();v4();ry();sL();cL();uL();yx();R5="esri-identity-modal",D5={base:R5,info:`${R5}__info`,notice:`${R5}__notice`},DX="ArcGIS Online",gi=class extends iL{constructor(t,e){super(t,e),this.container=document.createElement("div"),this.error=null,this.oAuthPrompt=!1,this.open=!1,this.signingIn=!1,this.server=null,this.resource=null,this._usernameInputNode=null,this._passwordInputNode=null,document.body.appendChild(this.container)}loadDependencies(){return XI({button:()=>Promise.resolve().then(()=>(nk(),rk)),dialog:()=>Promise.resolve().then(()=>(yN(),wN)),input:()=>Promise.resolve().then(()=>(VN(),UN)),label:()=>Promise.resolve().then(()=>(BN(),WN)),notice:()=>Promise.resolve().then(()=>(HN(),qN))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:t,title:e,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:c}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:v,lblUser:E,lblPwd:M,lblCancel:k,lblSigning:$,lblOk:z}=r;return fi("div",{class:this.classes(D5.base,lL())},fi("form",{bind:this,onsubmit:this._submit},fi("calcite-dialog",{bind:this,heading:e,modal:!0,open:t,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},fi("div",{class:D5.info},gx(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?DX:o,resource:`(${s||h})`})),c?fi("calcite-notice",{class:D5.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},fi("div",{slot:"message"},c.details?.httpStatus?g:v)):null,i?null:[fi("calcite-label",null,E,fi("calcite-input",{afterCreate:B=>this._usernameInputNode=B,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),fi("calcite-label",null,M,fi("calcite-input",{afterCreate:B=>this._passwordInputNode=B,bind:this,name:"password",required:!0,type:"password",value:""}))],fi("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},k),fi("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?$:z))))}_focusUsernameInput(){return bA(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(t){t.preventDefault(),this._set("signingIn",!0);let e=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",e)}};ae([fe({readOnly:!0})],gi.prototype,"container",void 0),ae([fe(),C4("esri/t9n/common")],gi.prototype,"commonMessages",void 0),ae([fe()],gi.prototype,"error",void 0),ae([fe(),C4("esri/identity/t9n/identity")],gi.prototype,"messages",void 0),ae([fe()],gi.prototype,"oAuthPrompt",void 0),ae([fe()],gi.prototype,"open",void 0),ae([fe()],gi.prototype,"signingIn",void 0),ae([fe()],gi.prototype,"server",void 0),ae([fe({readOnly:!0})],gi.prototype,"title",null),ae([fe()],gi.prototype,"resource",void 0),gi=ae([Et("esri.identity.IdentityModal")],gi);$5=gi});var F5,yf,ZN=N(()=>{F5="esriJSAPIOAuth",yf=class{constructor(e,r){this.oAuthInfo=null,this.storage=null,this.appId=null,this.codeVerifier=null,this.expires=null,this.refreshToken=null,this.ssl=null,this.stateUID=null,this.token=null,this.userId=null,this.oAuthInfo=e,this.storage=r,this._init()}isValid(){let e=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)e=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(e=!0)}}return e}save(){if(!this.storage)return!1;let e=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=e[r.authNamespace];n||(n=e[r.authNamespace]={}),this.appId||(this.appId=r.appId),n[r.portalUrl]={appId:this.appId,codeVerifier:this.codeVerifier,expires:this.expires,refreshToken:this.refreshToken,ssl:this.ssl,stateUID:this.stateUID,token:this.token,userId:this.userId};try{this.storage.setItem(F5,JSON.stringify(e))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let e=this._load(),r=this.oAuthInfo;if(r?.appId&&r?.portalUrl&&(this.expires==null||this.expires>Date.now())&&(this.refreshToken||this.token)){let n=r.portalUrl.replace(/^http:/i,"https:")+"/sharing/rest/oauth2/revokeToken",i=new FormData;if(i.append("f","json"),i.append("auth_token",this.refreshToken||this.token),i.append("client_id",r.appId),i.append("token_type_hint",this.refreshToken?"refresh_token":"access_token"),typeof navigator.sendBeacon=="function")navigator.sendBeacon(n,i);else{let o=new XMLHttpRequest;o.open("POST",n),o.send(i)}}if(r?.authNamespace&&r.portalUrl&&this.storage){let n=e[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(F5,JSON.stringify(e))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let e=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=e[r.authNamespace];n&&(n=n[r.portalUrl],n&&(this.appId=n.appId,this.codeVerifier=n.codeVerifier,this.expires=n.expires,this.refreshToken=n.refreshToken,this.ssl=n.ssl,this.stateUID=n.stateUID,this.token=n.token,this.userId=n.userId))}}_load(){let e={};if(this.storage){let r=this.storage.getItem(F5);if(r)try{e=JSON.parse(r)}catch(n){console.warn(n)}}return e}};yf.prototype.declaredClass="esri.identity.OAuthCredential"});var U5,fn,V5,XN=N(()=>{ai();Ol();ci();St();Vt();Sa();qn();fn=class extends ui{static{U5=this}constructor(t){super(t),this._oAuthCred=null,this.appId=null,this.authNamespace="/",this.expiration=20160,this.flowType="auto",this.forceLogin=!1,this.forceUserId=!1,this.locale=null,this.minTimeUntilExpiration=30,this.popup=!1,this.popupCallbackUrl="oauth-callback.html",this.popupWindowFeatures="height=490,width=800,resizable,scrollbars,status",this.portalUrl="https://www.arcgis.com",this.preserveUrlHash=!1,this.userId=null}clone(){return U5.fromJSON(this.toJSON())}};ae([fe({json:{write:!0}})],fn.prototype,"appId",void 0),ae([fe({json:{write:!0}})],fn.prototype,"authNamespace",void 0),ae([fe({json:{write:!0}})],fn.prototype,"expiration",void 0),ae([fe({json:{write:!0}})],fn.prototype,"flowType",void 0),ae([fe({json:{write:!0}})],fn.prototype,"forceLogin",void 0),ae([fe({json:{write:!0}})],fn.prototype,"forceUserId",void 0),ae([fe({json:{write:!0}})],fn.prototype,"locale",void 0),ae([fe({json:{write:!0}})],fn.prototype,"minTimeUntilExpiration",void 0),ae([fe({json:{write:!0}})],fn.prototype,"popup",void 0),ae([fe({json:{write:!0}})],fn.prototype,"popupCallbackUrl",void 0),ae([fe({json:{write:!0}})],fn.prototype,"popupWindowFeatures",void 0),ae([fe({json:{write:!0}})],fn.prototype,"portalUrl",void 0),ae([fe({json:{write:!0}})],fn.prototype,"preserveUrlHash",void 0),ae([fe({json:{write:!0}})],fn.prototype,"userId",void 0),fn=U5=ae([Et("esri.identity.OAuthInfo")],fn);V5=fn});var wi,xb,JN=N(()=>{ai();Ol();ci();St();Vt();Sa();qn();wi=class extends ui{constructor(t){super(t),this.adminTokenServiceUrl=null,this.currentVersion=null,this.hasPortal=null,this.hasServer=null,this.owningSystemUrl=null,this.owningTenant=null,this.server=null,this.shortLivedTokenValidity=null,this.tokenServiceUrl=null,this.webTierAuth=null}};ae([fe({json:{write:!0}})],wi.prototype,"adminTokenServiceUrl",void 0),ae([fe({json:{write:!0}})],wi.prototype,"currentVersion",void 0),ae([fe({json:{write:!0}})],wi.prototype,"hasPortal",void 0),ae([fe({json:{write:!0}})],wi.prototype,"hasServer",void 0),ae([fe({json:{write:!0}})],wi.prototype,"owningSystemUrl",void 0),ae([fe({json:{write:!0}})],wi.prototype,"owningTenant",void 0),ae([fe({json:{write:!0}})],wi.prototype,"server",void 0),ae([fe({json:{write:!0}})],wi.prototype,"shortLivedTokenValidity",void 0),ae([fe({json:{write:!0}})],wi.prototype,"tokenServiceUrl",void 0),ae([fe({json:{write:!0}})],wi.prototype,"webTierAuth",void 0),wi=ae([Et("esri.identity.ServerInfo")],wi);xb=wi});var Eb,QN,z5,Cb,Tb,Lg,Yt,KN=N(()=>{ai();$a();Lh();Ww();Ln();ux();vh();Mn();$o();io();Go();ci();St();Vt();qn();YN();ZN();XN();JN();Ah();Eb={},QN=t=>{let e=new an(t.owningSystemUrl).host,r=new an(t.server).host,n=/.+\.arcgis\.com$/i;return n.test(e)&&n.test(r)},z5=(t,e)=>!!(QN(t)&&e&&e.some(r=>r.test(t.server))),Cb=null,Tb=null;try{Cb=window.localStorage,Tb=window.sessionStorage}catch{}Lg=class extends Ts{constructor(){super(),this._portalConfig=globalThis.esriGeowConfig,this.serverInfos=[],this.oAuthInfos=[],this.credentials=[],this._soReqs=[],this._xoReqs=[],this._portals=[],this._defaultOAuthInfo=null,this._defaultTokenValidity=60,this.dialog=null,this.tokenValidity=null,this.normalizeWebTierAuth=!1,this._appOrigin=window.origin!=="null"?window.origin:window.location.origin,this._appUrlObj=Cs(window.location.href),this._busy=null,this._rejectOnPersistedPageShow=!1,this._oAuthLocationParams=null,this._gwTokenUrl="/sharing/rest/generateToken",this._agsRest="/rest/services",this._agsPortal=/\/sharing(\/|$)/i,this._agsAdmin=/(https?:\/\/[^/]+\/[^/]+)\/admin\/?(\/.*)?$/i,this._adminSvcs=/\/rest\/admin\/services(\/|$)/i,this._gwDomains=[{regex:/^https?:\/\/www\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:dev|[a-z\d-]+\.mapsdev)\.arcgis\.com/i,customBaseUrl:"mapsdev.arcgis.com",tokenServiceUrl:"https://dev.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:devext|[a-z\d-]+\.mapsdevext)\.arcgis\.com/i,customBaseUrl:"mapsdevext.arcgis.com",tokenServiceUrl:"https://devext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/(?:qaext|[a-z\d-]+\.mapsqa)\.arcgis\.com/i,customBaseUrl:"mapsqa.arcgis.com",tokenServiceUrl:"https://qaext.arcgis.com/sharing/rest/generateToken"},{regex:/^https?:\/\/[a-z\d-]+\.maps\.arcgis\.com/i,customBaseUrl:"maps.arcgis.com",tokenServiceUrl:"https://www.arcgis.com/sharing/rest/generateToken"}],this._legacyFed=[],this._regexSDirUrl=/http.+\/rest\/services\/?/gi,this._regexServerType=/(\/(FeatureServer|GPServer|GeoDataServer|GeocodeServer|GeoenrichmentServer|GeometryServer|GlobeServer|ImageServer|KnowledgeGraphServer|MapServer|MissionServer|MobileServer|NAServer|NetworkDiagramServer|OGCFeatureServer|ParcelFabricServer|RelationalCatalogServer|SceneServer|StreamServer|UtilityNetworkServer|ValidationServer|VectorTileServer|VersionManagementServer|VideoServer)).*/gi,this._gwUser=/http.+\/users\/([^/]+).*/i,this._gwItem=/http.+\/items\/([^/]+).*/i,this._gwGroup=/http.+\/groups\/([^/]+).*/i,this._rePortalTokenSvc=/\/sharing(\/rest)?\/generatetoken/i,this._createDefaultOAuthInfo=!0,this._hasTestedIfAppIsOnPortal=!1,this._getPlatformSelfError=null,this._getOAuthLocationParams(),window.addEventListener("pageshow",e=>{this._pageShowHandler(e)})}registerServers(e){let r=this.serverInfos;r?(e=e.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(e)):this.serverInfos=e,e.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(e){let r=this.oAuthInfos;if(r){for(let n of e){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(e)}else this.oAuthInfos=e}registerToken(e){e={...e};let r=this._sanitizeUrl(e.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new xb,o.server=this._getServerInstanceRoot(r),n?o.hasServer=!0:(o.tokenServiceUrl=this._getTokenSvcUrl(r),o.hasPortal=!0),this.registerServers([o])),i=this._findCredential(r),i?(delete e.server,Object.assign(i,e),s=!1):(i=new Yt({userId:e.userId,server:o.server??void 0,token:e.token,expires:e.expires,ssl:e.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return h0({serverInfos:this.serverInfos.map(e=>e.toJSON()),oAuthInfos:this.oAuthInfos.map(e=>e.toJSON()),credentials:this.credentials.map(e=>e.toJSON())})}initialize(e){if(!e)return;typeof e=="string"&&(e=JSON.parse(e));let r=e.serverInfos,n=e.oAuthInfos,i=e.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new xb(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new V5(s))}),o.length&&this.registerOAuthInfos(o)}i&&i.forEach(o=>{o.server&&o.token&&o.expires&&o.expires>Date.now()&&((o=o.declaredClass?o:new Yt(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(e){let r;e=this._sanitizeUrl(e);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,e)){r=n;break}return r}findOAuthInfo(e){let r;e=this._sanitizeUrl(e);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,e)){r=n;break}return r}findCredential(e,r){if(!e)return;let n;e=this._sanitizeUrl(e);let i=this._isServerRsrc(e)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,e)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,e)&&this._getIdenticalSvcIdx(e,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(e,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},e=this._sanitizeUrl(e);let s=new AbortController,c=_n();if(r.signal&&li(r.signal,()=>{s.abort()}),li(s,()=>{c.reject(new We("identity-manager:user-aborted","ABORTED"))}),no(s))return c.promise;r.signal=s.signal;let a=this._isAdminResource(e),d=n?this.findCredential(e):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new We("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+e,{error:i}),c.reject(h),c.promise;let g=this._findCredential(e,r);if(g)return c.resolve(g),c.promise;let v=this.findServerInfo(e);if(v)!v.hasPortal&&v.server&&v.owningSystemUrl&&this._hasSameServerInstance(v.server,v.owningSystemUrl)&&(v.hasPortal=!0),!v.hasServer&&this._isServerRsrc(e)&&(v._restInfoPms=this._getTokenSvcUrl(e),v.hasServer=!0);else{let E=this._getTokenSvcUrl(e);if(!E)return h=new We("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),c.reject(h),c.promise;v=new xb,v.server=this._getServerInstanceRoot(e),typeof E=="string"?(v.tokenServiceUrl=E,v.hasPortal=!0):(v._restInfoPms=E,v.hasServer=!0),this.registerServers([v])}return v.hasPortal&&v._selfReq===void 0&&(o||cn(v.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(E=>E.tokenServiceUrl===v.tokenServiceUrl))&&(v._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(v.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),e)}),this._enqueue(e,v,r,c,a)}getResourceName(e){return this._isRESTService(e)?e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(e)&&e.replace(this._gwUser,"$1")||this._gwItem.test(e)&&e.replace(this._gwItem,"$1")||this._gwGroup.test(e)&&e.replace(this._gwGroup,"$1")||""}generateToken(e,r,n){let i=this._rePortalTokenSvc.test(e.tokenServiceUrl),o=new an(this._appOrigin),s=e.shortLivedTokenValidity,c,a,d,h,g,v,E,M;r&&(M=this.tokenValidity||s||this._defaultTokenValidity,M>s&&s>0&&(M=s)),n&&(c=n.isAdmin,a=n.serverUrl,d=n.token,v=n.signal,E=n.ssl,e.customParameters=n.customParameters),c?h=e.adminTokenServiceUrl:(h=e.tokenServiceUrl,g=new an(h.toLowerCase()),e.webTierAuth&&n?.serverUrl&&!E&&o.scheme==="http"&&(cn(o.uri,h,!0)||g.scheme==="https"&&o.host===g.host&&o.port==="7080"&&g.port==="7443")&&(h=h.replace(/^https:/i,"http:").replace(/:7443/i,":7080")));let k={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:M,referer:c||i?this._appOrigin:null,client:c?"referer":null,f:"json",...e.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(e,n),signal:v,...n?.ioArgs};return i||(k.withCredentials=!1),ir(h,k).then($=>{let z=$.data;if(!z?.token)return new We("identity-manager:authentication-failed","Unable to generate token");let B=e.server;return Eb[B]||(Eb[B]={}),r&&(Eb[B][r.username]=r.password),z.validity=M,z})}isBusy(){return!!this._busy}async checkSignInStatus(e){return(await this.checkAppAccess(e,"")).credential}checkAppAccess(e,r,n){let i=!1;return this.getCredential(e,{prompt:!1}).then(o=>{let s,c={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(e)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",c.client_id=r;else{if(!o.token)return{credential:o};s=o.server+"/sharing/rest"}else{if(!o.token)return{credential:o};s=o.server+"/rest/services"}return o.token&&(c.token=o.token),ir(s,{query:c,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new We("identity-manager:not-authorized",`You are currently signed in as: '${o.userId}'.`,a.data);return i=!!a.data.viewOnlyUserTypeApp,{credential:o}}).catch(a=>{if(a.name==="identity-manager:not-authorized")throw a;let d=a.details?.httpStatus;if(d===498)throw o.destroy(),new We("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new We("identity-manager:invalid-request","Bad request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(e){e&&(e.charAt(0)==="#"&&(e=e.slice(1)),this._processOAuthPopupParams(ja(e)))}setOAuthRedirectionHandler(e){this._oAuthRedirectFunc=e}setProtocolErrorHandler(e){this._protocolFunc=e}signIn(e,r,n={}){let i=_n(),o=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=a=d=null},s=()=>{o(),this._oAuthDfd=null,i.reject(new We("identity-manager:user-aborted","ABORTED"))};n.signal&&li(n.signal,()=>{s()});let c=new $5({open:!0,resource:this.getResourceName(e),server:r.server});this.dialog=c,this.emit("dialog-create");let a=c.on("cancel",s),d=c.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let v=new Yt({userId:h.username,server:r.server??void 0,token:g.token,expires:g.expires!=null?Number(g.expires):null,ssl:!!g.ssl,isAdmin:n.isAdmin,validity:g.validity});i.resolve(v)}).catch(g=>{c.error=g,c.signingIn=!1})});return i.promise}oAuthSignIn(e,r,n,i){this._oAuthDfd=_n();let o=this._oAuthDfd,s;i?.signal&&li(i.signal,()=>{let v=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;v&&!v.closed?v.close():this.dialog&&h()}),o.resUrl_=e,o.sinfo_=r,o.oinfo_=n;let c=n._oAuthCred;if(c.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let v=crypto.getRandomValues(new Uint8Array(32));s=Rw(v),c.codeVerifier=s,v=crypto.getRandomValues(new Uint8Array(32)),c.stateUID=Rw(v),c.save()||(c.codeVerifier=s=null)}else c.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(v=>{let E=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!E)return void this._doOAuthSignIn(e,r,n,v);let M=new $5({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=M,this.emit("dialog-create"),a=M.on("cancel",h),d=M.on("submit",()=>{g(),this._doOAuthSignIn(e,r,n,v)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new We("identity-manager:user-aborted","ABORTED"))},g=()=>{a?.remove(),d?.remove(),this.dialog?.destroy(),this.dialog=null};return o.promise}destroyCredentials(){this.credentials&&this.credentials.slice().forEach(e=>{e.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(e="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Wa(window,"message",r=>{if((r.origin===this._appOrigin||r.origin.endsWith(".arcgis.com"))&&r.data?.type==="arcgis:auth:requestCredential"){let n=r.source;this.getCredential(e).then(i=>{n.postMessage({type:"arcgis:auth:credential",credential:{expires:i.expires,server:i.server,ssl:i.ssl,token:i.token,userId:i.userId}},r.origin)}).catch(i=>{n.postMessage({type:"arcgis:auth:error",error:{name:i.name,message:i.message}},r.origin)})}})}disablePostMessageAuth(){this._postMessageAuthHandle&&(this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=null)}_getOAuthLocationParams(){let e=window.location.hash;if(e){e.charAt(0)==="#"&&(e=e.slice(1));let n=ja(e),i=!1;if(n.access_token&&n.expires_in&&n.state&&n.hasOwnProperty("username"))try{n.state=JSON.parse(n.state),n.state.portalUrl&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}i&&(window.location.hash=n.state?.hash||"")}let r=window.location.search;if(r){r.charAt(0)==="?"&&(r=r.slice(1));let n=ja(r),i=!1;if(n.code&&n.state)try{n.state=JSON.parse(n.state),n.state.portalUrl&&n.state.uid&&(this._oAuthLocationParams=n,i=!0)}catch{}else if(n.error&&n.error_description&&(console.log("IdentityManager OAuth Error: ",n.error," - ",n.error_description),n.error==="access_denied"&&(i=!0,n.state)))try{n.state=JSON.parse(n.state)}catch{}if(i){let o={...n};["code","error","error_description","message_code","persist","state"].forEach(a=>{delete o[a]});let s=Rl(o),c=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",c)}}}_getOAuthToken(e,r,n,i,o){return e=e.replace(/^http:/i,"https:"),ir(`${e}/sharing/rest/oauth2/token`,{authMode:"anonymous",method:"post",query:i&&o?{grant_type:"authorization_code",code:r,redirect_uri:i,client_id:n,code_verifier:o}:{grant_type:"refresh_token",refresh_token:r,client_id:n}}).then(s=>s.data)}async _getCodeChallenge(e){if(e&&globalThis.isSecureContext){let r=new TextEncoder().encode(e),n=await crypto.subtle.digest("SHA-256",r);return Rw(new Uint8Array(n))}return null}_pageShowHandler(e){if(e.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new We("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(e,r){let n,i,o,s,c=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(e)?"server":"portal",g=this.credentials.filter(v=>this._hasSameServerInstance(v.server,e)&&v.scope===h);if(e=d||e,g.length)if(g.length===1){if(n=g[0],o=this.findServerInfo(n.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,n.userId):void 0,c=this._getIdenticalSvcIdx(e,n),!a)return c===-1&&n.resources.push(e),this._addResource(e,s),n;c!==-1&&(n.resources.splice(c,1),this._removeResource(e,s))}else{let v,E;if(g.some(M=>(E=this._getIdenticalSvcIdx(e,M),E!==-1&&(v=M,o=this.findServerInfo(v.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,v.userId):void 0,c=E,!0))),a)v&&(v.resources.splice(c,1),this._removeResource(e,s));else if(v)return this._addResource(e,s),v}}_findOAuthInfo(e){let r=this.findOAuthInfo(e);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,e)){r=n;break}}return r}_addResource(e,r){r&&this._getIdenticalSvcIdx(e,r)===-1&&r.resources.push(e)}_removeResource(e,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(e,r),n>-1&&r.resources.splice(n,1))}_useProxy(e,r){return r?.isAdmin&&!cn(e.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(e.tokenServiceUrl)&&String(e.currentVersion)==="10.1"&&!cn(e.tokenServiceUrl,this._appOrigin)}_getOrigin(e){let r=new an(e);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(e){let r=e.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(e)&&(n=this._agsAdmin.test(e)?e.replace(this._agsAdmin,"$1").length:e.search(this._adminSvcs)),n!==-1||Iw(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?e.slice(0,n):e}_hasSameServerInstance(e,r){return e.endsWith("/")&&(e=e.slice(0,-1)),e=e.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),e=Op(e),r=Op(r),(e=e.slice(Math.max(0,e.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(e){let r=(bt.request.proxyUrl||"").toLowerCase(),n=r?e.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(e=e.slice(n+r.length+1)),e=Es(e),Cs(e).path}_isRESTService(e){return e.includes(this._agsRest)}_isAdminResource(e){return this._agsAdmin.test(e)||this._adminSvcs.test(e)}_isServerRsrc(e){return this._isRESTService(e)||this._isAdminResource(e)}_isIdenticalService(e,r){let n=!1;if(this._isRESTService(e)&&this._isRESTService(r)){let i=this._getSuffix(e).toLowerCase(),o=this._getSuffix(r).toLowerCase();if(n=i===o,!n){let s=/(.*)\/(MapServer|FeatureServer|UtilityNetworkServer).*/gi;n=i.replaceAll(s,"$1")===o.replaceAll(s,"$1")}}else this._isAdminResource(e)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(e)||this._isServerRsrc(r)||!this._isPortalDomain(e)||(n=!0);return n}_isPortalDomain(e){let r=new an(e.toLowerCase()),n=this._portalConfig,i=this._gwDomains.some(o=>o.regex.test(r.uri));return!i&&n&&(i=this._hasSameServerInstance(this._getServerInstanceRoot(n.restBaseUrl),r.uri)),i||bt.portalUrl&&(i=cn(r,bt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(e,r){let n=-1,i=-1;this._gwDomains.forEach((s,c)=>{n===-1&&s.regex.test(e)&&(n=c),i===-1&&s.regex.test(r)&&(i=c)});let o=!1;if(n>-1&&i>-1&&(n===0||n===4?i!==0&&i!==4||(o=!0):n===1?i!==1&&i!==2||(o=!0):n===2?i===2&&(o=!0):n===3&&i===3&&(o=!0)),!o){let s=this.findServerInfo(r),c=s?.owningSystemUrl;c&&QN(s)&&this._isPortalDomain(c)&&this._isIdProvider(e,c)&&(o=!0)}return o}_getIdenticalSvcIdx(e,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(e,o)){n=i;break}}return n}_getSuffix(e){return e.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(e){let r,n,i;if(this._isRESTService(e)||this._isAdminResource(e)){let o=this._getServerInstanceRoot(e);return r=o+"/admin/generateToken",n=ir(e=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(e)){let o="";if(this._gwDomains.some(s=>(s.regex.test(e)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,e)&&(o=s+this._gwTokenUrl),!!o)),o||(i=e.toLowerCase().indexOf("/sharing"),i!==-1&&(o=e.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(e)+this._gwTokenUrl),o){let s=new an(e).port;/^http:\/\//i.test(e)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(e,r,n){let i=r._oAuthCred;if(e.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,e.code,r.appId,this._getRedirectURI(r,!0),s).then(c=>{let a=new Yt({userId:c.username,server:n.server??void 0,token:c.access_token,expires:Date.now()+1e3*c.expires_in,ssl:c.ssl,oAuthState:e.state,_oAuthCred:i});return r.userId=a.userId,i.storage=c.persist?Cb:Tb,i.refreshToken=c.refresh_token,i.token=null,i.expires=c.refresh_token_expires_in?Date.now()+1e3*c.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new Yt({userId:e.username,server:n.server??void 0,token:e.access_token,expires:Date.now()+1e3*Number(e.expires_in),ssl:e.ssl==="true",oAuthState:e.state,_oAuthCred:i});return r.userId=o.userId,i.storage=e.persist?Cb:Tb,i.refreshToken=null,i.token=o.token,i.expires=o.expires,i.userId=o.userId,i.ssl=o.ssl,i.save(),Promise.resolve(o)}_processOAuthPopupParams(e){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),e.error){let n=e.error==="access_denied",i=new We(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+e.error+" - "+e.error_description);r.reject(i)}else this._processOAuthResponseParams(e,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(e){e&&(e.charAt(0)==="?"&&(e=e.slice(1)),this._processOAuthPopupParams(ja(e)))}async _exchangeToken(e,r,n){return(await ir(`${e}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(e,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];e=e.replace(/^http:/i,"https:");try{let n=await ir(`${e}/sharing/rest/oauth2/platformSelf`,{authMode:"anonymous",headers:{"X-Esri-Auth-Client-Id":r,"X-Esri-Auth-Redirect-Uri":window.location.href.replace(/#.*$/,"")},method:"post",query:{f:"json",expiration:30},withCredentials:!0});return this._getPlatformSelfError=null,n.data}catch(n){throw n.details?.messageCode==="OAUTH_0066"&&(this._getPlatformSelfError=[n,Date.now()]),n}}_getPortalSelf(e,r){let n;return this._gwDomains.some(i=>(i.regex.test(e)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?e=e.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(e=e.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),ir(e,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(e){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(e);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(e))||!(this._isIdProvider(n,e)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),e)||this._isIdProvider(r.restBaseUrl,e))||cn(n,e,!0)))}_checkProtocol(e,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&Dp(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:e,serverInfo:r}),!o)&&n(new We("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(e,r,n,i,o,s){return i||(i=_n()),i.resUrl_=e,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(e),this._busy.resUrl_)?(this._oAuthDfd&&this._oAuthDfd.oAuthWin_&&this._oAuthDfd.oAuthWin_.focus(),this._soReqs.push(i)):this._xoReqs.push(i):this._doSignIn(i),i.promise}_doSignIn(e){this._busy=e,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=e.options_?.resource,g=e.resUrl_,v=e.refresh_,E=!1;this.credentials.includes(d)||(v&&this.credentials.includes(v)?(v.userId=d.userId,v.token=d.token,v.expires=d.expires,v.validity=d.validity,v.ssl=d.ssl,v.creationTime=d.creationTime,E=!0,d=v):this.credentials.push(d)),d.resources||(d.resources=[]),d.resources.includes(h||g)||d.resources.push(h||g),d.scope=this._isServerRsrc(g)?"server":"portal",d.emitTokenChange();let M=this._soReqs,k={};this._soReqs=[],M.forEach($=>{if(!this._isIdenticalService(g,$.resUrl_)){let z=this._getSuffix($.resUrl_);k[z]||(k[z]=!0,d.resources.push($.resUrl_))}}),e.resolve(d),M.forEach($=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),$.resUrl_)?$.resolve(d):this._soReqs.push($)}),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,E||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{e.reject(d),this._busy=e.resUrl_=e.sinfo_=e.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,v)=>{let E=e.sinfo_,M=!e.options_||e.options_.prompt!==!1,k=E.hasPortal&&this._findOAuthInfo(e.resUrl_),$,z;if(d)r(new Yt({userId:d,server:E.server??void 0,token:g??void 0,expires:v!=null?Number(v):null,ssl:!!h}));else if(window!==window.parent&&this._appUrlObj.query?.["arcgis-auth-origin"]&&this._appUrlObj.query?.["arcgis-auth-portal"]&&this._hasSameServerInstance(this._getServerInstanceRoot(this._appUrlObj.query["arcgis-auth-portal"]),e.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let B=Wa(window,"message",q=>{q.source===window.parent&&q.data&&(q.data.type==="arcgis:auth:credential"?(B.remove(),q.data.credential.expires<Date.now()?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new Yt(q.data.credential))):q.data.type==="arcgis:auth:error"&&(B.remove(),q.data.error.name==="tokenExpiredError"?n(new We("identity-manager:credential-request-failed","Parent application's token has expired.")):n(We.fromJSON(q.data.error))))});li(e.options_?.signal,()=>{B.remove()})}else if(k){let B=k._oAuthCred;if(!B){let q=new yf(k,Cb),V=new yf(k,Tb);q.isValid()&&V.isValid()?q.expires>V.expires?(B=q,V.destroy()):(B=V,q.destroy()):B=q.isValid()?q:V,k._oAuthCred=B}if(B.isValid()){$=new Yt({userId:B.userId??void 0,server:E.server??void 0,token:B.token??void 0,expires:B.expires,ssl:B.ssl??void 0,_oAuthCred:B});let q=k.appId!==B.appId&&this._doPortalSignIn(e.resUrl_);q||B.refreshToken?(e._pendingDfd=B.refreshToken?this._getOAuthToken(E.server,B.refreshToken,B.appId).then(V=>($.expires=Date.now()+1e3*V.expires_in,$.token=V.access_token,$)):Promise.resolve($),e._pendingDfd.then(V=>q?this._exchangeToken(V.server,k.appId,V.token).then(X=>(V.token=X,V)).catch(()=>V):V).then(V=>{r(V)}).catch(V=>{let X=V.details?.httpStatus;X>0&&X!==404?(B.destroy(),i()):n(V)})):r($)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(k.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===B.stateUID&&B.codeVerifier)){let q=this._oAuthLocationParams;this._oAuthLocationParams=null,e._pendingDfd=this._processOAuthResponseParams(q,k,E).then(V=>{r(V)}).catch(n)}else{let q=()=>{M?e._pendingDfd=this.oAuthSignIn(e.resUrl_,E,k,e.options_).then(r,n):(z=new We("identity-manager:not-authenticated","User is not signed in."),n(z))};this._doPortalSignIn(e.resUrl_)?e._pendingDfd=this._getPlatformSelf(E.server,k.appId).then(V=>{cn(V.portalUrl,this._appOrigin,!0)?($=new Yt({userId:V.username,server:E.server??void 0,expires:Date.now()+1e3*V.expires_in,token:V.token}),r($)):q()}).catch(q):q()}}else if(M){if(this._checkProtocol(e.resUrl_,E,n,e.admin_)){let B=e.options_;e.admin_&&(B=B||{},B.isAdmin=!0),e._pendingDfd=this.signIn(e.resUrl_,E,B).then(r,n)}}else z=new We("identity-manager:not-authenticated","User is not signed in."),n(z)},o=()=>{let d=e.sinfo_,h=d.owningSystemUrl,g=e.options_,v,E,M,k;if(g&&(v=g.token,E=g.error,M=g.prompt),k=this._findCredential(h,{token:v,resource:e.resUrl_}),!k){for(let $ of this.credentials)if(this._isIdProvider(h,$.server)){k=$;break}}if(k){let $=this.findCredential(e.resUrl_,k.userId);if($)r($);else if(z5(d,this._legacyFed)){let z=k.toJSON();z.server=d.server,z.resources=null,r(new Yt(z))}else(e._pendingDfd=this.generateToken(this.findServerInfo(k.server),null,{serverUrl:e.resUrl_,token:k.token,signal:e.options_.signal,ssl:k.ssl})).then(z=>{r(new Yt({userId:k?.userId,server:d.server??void 0,token:z.token,expires:z.expires!=null?Number(z.expires):null,ssl:!!z.ssl,isAdmin:e.admin_,validity:z.validity}))},n)}else this._busy=null,v&&(e.options_.token=null),(e._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:e.resUrl_,owningTenant:d.owningTenant,signal:e.options_.signal,token:v,error:E,prompt:M})).then(()=>{this._enqueue(e.resUrl_,e.sinfo_,e.options_,e,e.admin_)},$=>{e.resUrl_=e.sinfo_=e.refresh_=null,e.reject($)})};this._errbackFunc=n;let s=e.sinfo_.owningSystemUrl,c=this._isServerRsrc(e.resUrl_),a=e.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=e.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(Ci("authInfo.tokenServicesUrl",d)||Ci("authInfo.tokenServiceUrl",d)||Ci("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=Ci("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}c&&h.owningSystemUrl?o():i()},()=>{e.sinfo_._restInfoPms=null;let d=new We("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):c&&s?o():e.sinfo_._selfReq?e.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,v,E,M;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,v=d.supportsOAuth,M=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(E=d.customBaseUrl),e.sinfo_.currentVersion=M),e.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(e.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(k=>(h.portalToken=k?.token,h.tokenExpiration=k?.expires,h)):!g&&v&&M>=4.4&&!this._findOAuthInfo(e.resUrl_)?this._generateOAuthInfo({portalUrl:e.sinfo_.server,customBaseUrl:E,owningTenant:e.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{e.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(e){let r,n=null,i=e.portalUrl,o=e.customBaseUrl,s=e.owningTenant,c=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(c){n=this._appUrlObj.path;let a=n.search(/\/(apps|home)\//);n=a>-1?n.slice(0,a):null}return c&&n?(this._hasTestedIfAppIsOnPortal=!0,r=ir(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new V5({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),ir(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:Ai(this._defaultOAuthInfo.popupCallbackUrl),f:"json"}}).then(a=>{if(a.data.valid){let d=this._defaultOAuthInfo.clone();a.data.urlKey&&o?d.portalUrl="https://"+a.data.urlKey.toLowerCase()+"."+o:d.portalUrl=i,d.popup=window!==window.top||!(cn(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(e,r,n,i){let o=n._oAuthCred,s={portalUrl:n.portalUrl};!n.popup&&n.preserveUrlHash&&window.location.hash&&(s.hash=window.location.hash),o.stateUID&&(s.uid=o.stateUID);let c={client_id:n.appId,response_type:o.codeVerifier?"code":"token",state:JSON.stringify(s),expiration:n.expiration,locale:n.locale,redirect_uri:this._getRedirectURI(n,!!o.codeVerifier)};n.forceLogin&&(c.force_login=!0),n.forceUserId&&n.userId&&(c.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(e)&&(c.redirectToUserOrgUrl=!0),o.codeVerifier&&(c.code_challenge=i||o.codeVerifier,c.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+Rl(c);if(n.popup){let h=window.open(d,"esriJSAPIOAuth",n.popupWindowFeatures);if(h)h.focus(),this._oAuthDfd.oAuthWin_=h,this._oAuthIntervalId=setInterval(()=>{if(h.closed){clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle.remove();let g=this._oAuthDfd;if(g){let v=new We("identity-manager:user-aborted","ABORTED");g.reject(v)}}},500),this._oAuthOnPopupHandle=Wa(window,["arcgis:auth:hash","arcgis:auth:location:search"],g=>{g.type==="arcgis:auth:hash"?this.setOAuthResponseHash(g.detail):this._setOAuthResponseQueryString(g.detail)});else{let g=new We("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:c,authorizeUrl:a,resourceUrl:e,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(e,r){let n=window.location.href.replace(/#.*$/,"");if(e.popup)return Ai(e.popupCallbackUrl);if(r){let i=Cs(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),Fp(i.path,i.query)}return n}};Lg.prototype.declaredClass="esri.identity.IdentityManagerBase";Yt=class extends Ts.EventedAccessor{constructor(t){super(t),this._oAuthCred=null,this.tokenRefreshBuffer=2,t?._oAuthCred&&(this._oAuthCred=t._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let t=Zt,e=t.findServerInfo(this.server),r=e?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&z5(e,t._legacyFed),o=e.webTierAuth,s=o&&t.normalizeWebTierAuth,c=Eb[this.server],a=c?.[this.userId],d,h=this.resources&&this.resources[0],g=n?t.findServerInfo(r):null,v={username:this.userId,password:a};if(o&&!s)return;n&&!g&&t.serverInfos.some(M=>(t._isIdProvider(r,M.server)&&(g=M),!!g));let E=g?t.findCredential(g.server,this.userId):null;if(!n||E){if(!i){if(n)d={serverUrl:h,token:E?.token,ssl:E?.ssl};else if(s)v=null,d={ssl:this.ssl};else{if(!a){let M;return h&&(h=t._sanitizeUrl(h),this._enqueued=1,M=t._enqueue(h,e,null,null,this.isAdmin,this),M.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),M}this.isAdmin&&(d={isAdmin:!0})}return t.generateToken(n?g:e,n?null:v,d).then(M=>{this.token=M.token,this.expires=M.expires!=null?Number(M.expires):null,this.creationTime=Date.now(),this.validity=M.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}E?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let t=Zt;t.credentials.forEach(e=>{let r=t.findServerInfo(e.server),n=r?.owningSystemUrl;e!==this&&e.userId===this.userId&&n&&e.scope==="server"&&(t._hasSameServerInstance(this.server,n)||t._isIdProvider(n,this.server))&&(z5(r,t._legacyFed)?(e.token=this.token,e.expires=this.expires,e.creationTime=this.creationTime,e.validity=this.validity,e.emitTokenChange()):e.refreshToken())})}}emitTokenChange(t){clearTimeout(this._refreshTimer);let e=Zt,r=this.server?e.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?e.findServerInfo(n):null;t===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||e.normalizeWebTierAuth)||this.expires==null&&this.validity==null||this._startRefreshTimer(),this.emit("token-change")}destroy(){this.userId=this.server=this.token=this.expires=this.validity=this.resources=this.creationTime=null,this._oAuthCred&&(this._oAuthCred.destroy(),this._oAuthCred=null);let t=Zt,e=t.credentials.indexOf(this);e>-1&&t.credentials.splice(e,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let t=h0({userId:this.userId,server:this.server,token:this.token,expires:this.expires,validity:this.validity,ssl:this.ssl,isAdmin:this.isAdmin,creationTime:this.creationTime,scope:this.scope}),e=this.resources;return e&&e.length>0&&(t.resources=e.slice()),t}_startRefreshTimer(){clearTimeout(this._refreshTimer);let t=6e4*this.tokenRefreshBuffer,e=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>e&&(r=e),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>t?r-t:r)}};ae([fe()],Yt.prototype,"creationTime",void 0),ae([fe()],Yt.prototype,"expires",void 0),ae([fe()],Yt.prototype,"isAdmin",void 0),ae([fe()],Yt.prototype,"oAuthState",void 0),ae([fe()],Yt.prototype,"resources",void 0),ae([fe()],Yt.prototype,"scope",void 0),ae([fe()],Yt.prototype,"server",void 0),ae([fe()],Yt.prototype,"ssl",void 0),ae([fe()],Yt.prototype,"token",void 0),ae([fe()],Yt.prototype,"tokenRefreshBuffer",void 0),ae([fe()],Yt.prototype,"userId",void 0),ae([fe()],Yt.prototype,"validity",void 0),Yt=ae([Et("esri.identity.Credential")],Yt)});var tR={};Lo(tR,{default:()=>eR});var Pb,eR,rR=N(()=>{Lh();KN();Pb=class extends Lg{};Pb.prototype.declaredClass="esri.identity.IdentityManager";eR=new Pb;sM(eR)});var dc,Mb=N(()=>{AS();dc=class extends Ap{notify(){let e=this._observers;if(e&&e.length>0){let r=e.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});var Ab,nR=N(()=>{xs();Mb();Ab=class{constructor(e=r=>r.values().next().value){this._peeker=e,this._observable=new dc,this._items=new Set}get length(){return lr(this._observable),this._items.size}clear(){this.length!==0&&(this._items.clear(),this._observable.notify())}last(){if(this.length===0)return;let e;for(e of this._items);return e}peek(){if(this.length!==0)return this._peeker(this._items)}push(e){this.contains(e)||(this._items.add(e),this._observable.notify())}contains(e){return lr(this._observable),this._items.has(e)}pop(){if(this.length===0)return;let e=this.peek();return this._items.delete(e),this._observable.notify(),e}popLast(){if(this.length===0)return;let e=this.last();return this._items.delete(e),this._observable.notify(),e}remove(e){this.contains(e)&&(this._items.delete(e),this._observable.notify())}filter(e){let r=this.length;return this._items.forEach(n=>{e(n)||this._items.delete(n)}),r!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){lr(this._observable),yield*this._items}}});var bf,iR=N(()=>{xs();Mb();bf=class{constructor(e){this._observable=new dc,this._map=new Map(e)}get size(){return lr(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(e){let r=this._map.delete(e);return r&&this._observable.notify(),r}entries(){return lr(this._observable),this._map.entries()}forEach(e,r){lr(this._observable),this._map.forEach((n,i)=>e.call(r,n,i,this),r)}get(e){return lr(this._observable),this._map.get(e)}has(e){return lr(this._observable),this._map.has(e)}keys(){return lr(this._observable),this._map.keys()}set(e,r){return this._map.set(e,r),this._observable.notify(),this}values(){return lr(this._observable),this._map.values()}[Symbol.iterator](){return lr(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}});function oR(t,e=g0){return new W5(t,e)}var W5,sR=N(()=>{Mn();xs();Mb();W5=class{constructor(e,r){this._observable=new dc,this._value=e,this._equalityFunction=r}get value(){return lr(this._observable),this._value}set value(e){this._equalityFunction(e,this._value)||(this._value=e,this._observable.notify())}mutate(e){e(this._value),this._observable.notify()}}});var aR={};Lo(aR,{QueueProcessor:()=>G5});var B5,G5,cR=N(()=>{Il();io();nR();iR();ww();sR();B5=class{constructor(e,r){this.item=e,this.controller=r,this.promise=null}},G5=class{constructor(e){this._schedule=null,this._deferreds=new bf,this._controllers=new bf,this._processingItems=new bf,this._pausedSignal=oR(!1),this.concurrency=1,e.concurrency&&(this.concurrency=e.concurrency),this._queue=new Ab(e.peeker),this.process=e.process}destroy(){this.clear(),this._schedule=hh(this._schedule)}get updating(){return this.running}get length(){return this._processingItems.size+this._queue.length}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}abort(e){let r=this._controllers.get(e);r&&r.abort()}clear(){this._queue.clear();let e=[];this._controllers.forEach(r=>e.push(r)),this._controllers.clear(),e.forEach(r=>r.abort()),this._processingItems.clear(),this._cancelNext()}forEach(e){this._deferreds.forEach((r,n)=>e(n))}get(e){let r=this._deferreds.get(e);return r?r.promise:void 0}isOngoing(e){return this._processingItems.has(e)}has(e){return this._deferreds.has(e)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(e,r){let n=this.get(e);if(n)return n;let i=new AbortController,o=null;r&&(o=li(r,()=>i.abort()));let s=()=>{let h=this._processingItems.get(e);h&&h.controller.abort(),c(),d.reject(Sn())},c=()=>{a.remove(),o?.remove(),this._removeItem(e),this._queue.remove(e),this._scheduleNext()},a=xP(i.signal,s),d=_n();return this._deferreds.set(e,d),this._controllers.set(e,i),d.promise.then(c,c),this._queue.push(e),this._scheduleNext(),d.promise}last(){return this._queue.last()}lastPromise(){let e=this.last();return e?this.get(e):null}peek(){return this._queue.peek()}popLast(){let e=this._queue.popLast();return e&&(this._deferreds.get(e)?.reject(Sn()),this._removeItem(e)),e}reset(){let e=Array.from(this._processingItems.values());this._processingItems.clear();for(let r of e)this._queue.push(r.item),r.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let e=[];for(;this._queue.length;)e.push(this._queue.pop());return this.clear(),e}_removeItem(e){this._deferreds.delete(e),this._controllers.delete(e),this._processingItems.delete(e)}_scheduleNext(){this._pausedSignal.value||this._schedule||(this._schedule=gw(()=>{this._schedule=null,this._next()}))}_next(){for(;this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop())}_cancelNext(){this._schedule&&(this._schedule.remove(),this._schedule=null)}_processResult(e,r){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).resolve(r))}_processError(e,r){this._canProcessFulfillment(e)&&(this._scheduleNext(),this._deferreds.get(e.item).reject(r))}_canProcessFulfillment(e){return!!this._deferreds.get(e.item)&&this._processingItems.get(e.item)===e}_process(e){if(e==null)return;let r,n=new AbortController,i=new B5(e,n);this._processingItems.set(e,i);try{r=this.process(e,n.signal)}catch(o){this._processError(i,o)}VS(r)?(i.promise=r,r.then(o=>this._processResult(i,o),o=>this._processError(i,o))):this._processResult(i,r)}}});async function ir(t,e){t instanceof URL&&(t=t.toString()),e?.query instanceof URLSearchParams&&(e.query=ja(e.query.toString().replaceAll("+"," ")));let r=$p(t),n=Nw(t);n||r||(t=Es(t));let i={url:t,requestOptions:{...e}},o=E=>({data:E,getAllHeaders:vf,getHeader:vf,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=ix(t,Ri.internalInterceptors);if(s){let E=await uR(s,i);if(E!=null)return o(E)}let c=ix(t);if(c){let E=await uR(c,i);if(E!=null)return o(E);c.after||c.error||(c=null)}if(t=i.url,(e=i.requestOptions).responseType==="image"&&(pe("host-webworker")||pe("host-node")))throw go("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(e.method==="head"){if(e.body)throw go("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw go("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await zX(),Ib)return Ib.execute(t,e);let a=new AbortController,d=li(e,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:c,params:i,redoRequest:!1,useIdentity:Ri.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=e.useRequestQueue?qX(h):q5(h),v=await g.finally(()=>d?.remove());return c?.after?.(v),v}function VX(t){let e=ln(t);e&&!ir._corsServers.includes(e)&&ir._corsServers.push(e)}function lR(t){let e=ln(t);return!e||e.endsWith(".arcgis.com")||ir._corsServers.includes(e)||kw(e)}function go(t,e,r,n){let i,o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:vf,getHeader:vf,ssl:!1};if(e instanceof We)return e.details?(e.details=Ht(e.details),e.details.url=r.url,e.details.requestOptions=r.requestOptions):e.details=o,e;if(e){let s=n&&(()=>Array.from(n.headers)),c=n&&(h=>n.headers.get(h)),a=n?.status,d=e.message;d&&(i=d),s&&c&&(o.getAllHeaders=s,o.getHeader=c),o.httpStatus=(e.httpCode!=null?e.httpCode:e.code)||a||0,o.subCode=e.subcode,o.messageCode=e.messageCode,typeof e.details=="string"?(o.messages=[e.details],i??=e.details):(o.messages=e.details,i??=o.messages?.[0]),o.raw=Lb in e?e[Lb]:e}return i??="Error",Sh(e)?Sn():new We(t,i,o)}async function zX(){pe("host-webworker")&&!Ib&&(Ib=await Promise.resolve().then(()=>(TM(),CM)))}async function j5(){Zt||await Promise.resolve().then(()=>(rR(),tR))}async function WX(t){let e=t.params.url,r=t.params.requestOptions,n=t.controller.signal,i=r.body,o=null,s=null;if(fR&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),t.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:Ri.priority,redirect:"follow",signal:n},(o||s)&&(t.fetchOptions.body=o||s),r.authMode==="anonymous"&&(t.useIdentity=!1),t.hasToken=!!(/token=/i.test(e)||r.query?.token||o?.get("token")),!t.hasToken&&gM(e)&&(r.query||(r.query={}),r.query.token=bt.apiKey,t.hasToken=!0),t.useIdentity&&!t.hasToken&&!t.credentialToken&&!mR(e)&&!no(n)){let c;r.authMode==="immediate"?(await j5(),c=await Zt.getCredential(e,{signal:n}),t.credential=c):r.authMode==="no-prompt"?(await j5(),c=await Zt.getCredential(e,{prompt:!1,signal:n}).catch(()=>{}),t.credential=c):Zt&&(c=Zt.findCredential(e)),c&&(t.credentialToken=c.token,t.useSSL=!!c.ssl)}}function mR(t){return UX.some(e=>e.test(t))}async function BX(t){let e=t.params.url,r=t.params.requestOptions,n=t.fetchOptions??{},i=Nw(e)||$p(e),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:Ri.timeout,c=!1;if(!i){t.useSSL&&(e=Dw(e));let v={...r.query};t.credentialToken&&(v.token=t.credentialToken);let E=Rl(v);pe("esri-url-encodes-apostrophe")&&(E=E.replaceAll("'","%27"));let M=e.length+1+E.length,k;c=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||M>Ri.maxUrlLength;let $=r.useProxy||!!Dp(e);if($){let z=tM(e);k=z.path,!c&&k.length+1+M>Ri.maxUrlLength&&(c=!0),z.query&&(v={...z.query,...v})}if(n.method==="HEAD"&&(c||$)){if(c)throw M>Ri.maxUrlLength?go("request:invalid-parameters",new Error("URL exceeds maximum length"),t.params):go("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),t.params);if($)throw go("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),t.params)}c?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?e=Fp(e,v):(n.body=Rl(v),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):e=Fp(e,v),$&&(t.useProxy=!0,e=`${k}?${e}`),v.token&&fR&&n.body instanceof FormData&&!Iw(e)&&n.body.set("token",v.token),r.hasOwnProperty("withCredentials")?t.withCredentials=r.withCredentials:cn(e,Rp())||(kw(e)||Zt&&Zt.findServerInfo(e)?.webTierAuth)&&(t.withCredentials=!0),t.withCredentials&&(n.credentials="include",SM(e)&&await xM(c?Fp(e,v):e))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,t.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=e,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||c||GX(r.headers)||!i&&!t.useProxy&&Ri.proxyUrl&&!lR(e)){if(ir._beforeFetch&&await ir._beforeFetch(e,n),a=await fetch(e,n),ir._afterFetch&&await ir._afterFetch(a),t.useProxy||VX(e),r.responseType==="native")d=a;else if(n.method!=="HEAD")if(a.ok){switch(o){case"array-buffer":d=await a.arrayBuffer();break;case"blob":case"image":d=await a.blob();break;default:d=await a.text()}if(h&&(clearTimeout(h),h=0),o==="json"||o==="xml"||o==="document")if(d)switch(o){case"json":d=JSON.parse(d);break;case"xml":d=dR(d,"application/xml");break;case"document":d=dR(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let v=a.headers.get("Content-Type");if(v&&/application\/json|text\/plain/i.test(v)&&d[o==="blob"?"size":"byteLength"]<=750)try{let E=await new Response(d).json();E.error&&(d=E)}catch{}}o==="image"&&d instanceof Blob&&(d=await pR(URL.createObjectURL(d),t,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await pR(e,t)}catch(v){if(v.name==="AbortError")throw g?vM():Sn("Request canceled");if(!(!a&&v instanceof TypeError&&Ri.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||t.useProxy||lR(e))throw v;t.redoRequest=!0,iM({proxyUrl:Ri.proxyUrl,urlPrefix:ln(e)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function uR(t,e){if(t.responseData!=null)return t.responseData;if(t.headers&&(e.requestOptions.headers={...e.requestOptions.headers,...t.headers}),t.query&&(e.requestOptions.query={...e.requestOptions.query,...t.query}),t.before){let r,n;try{n=await t.before(e)}catch(i){r=go("request:interceptor",i,e)}if((n instanceof Error||n instanceof We)&&(r=go("request:interceptor",n,e)),r)throw t.error&&t.error(r),r;return n}}function GX(t){if(t){for(let e of Object.getOwnPropertyNames(t))if(t[e])return!0}return!1}function dR(t,e){let r;try{r=new DOMParser().parseFromString(t,e)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}async function qX(t){let e=YX(t.params.url);if(!e)return q5(t);let{QueueProcessor:r}=await Promise.resolve().then(()=>(cR(),aR));return bp(jX,e.origin,()=>{let i=e.isHosted?pe("request-queue-concurrency-hosted"):pe("request-queue-concurrency-non-hosted");return new r({concurrency:i,process:o=>{if(no(o.params.requestOptions))throw go("",Sn("Request canceled"),o.params);return q5(o)}})}).push(t)}async function q5(t){let e,r;await WX(t);try{do[e,r]=await BX(t);while(!await HX(t,e,r))}catch(o){let s=go("request:server",o,t.params,e);throw s.details.ssl=t.useSSL,t.interceptor?.error&&t.interceptor.error(s),s}let n=t.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!t.hasToken&&!t.credentialToken&&r.user?.username&&!kw(n)){let o=ln(n,!0);o&&Ri.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&_M(r.authorizedCrossOriginNoCorsDomains)}let i=t.credential;if(i&&Zt){let s=Zt.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let c=Zt.findCredential(s,i.userId);c&&Zt._getIdenticalSvcIdx(s,c)===-1&&c.resources.unshift(s)}}return{data:r,getAllHeaders:e?()=>Array.from(e.headers):vf,getHeader:e?o=>e.headers.get(o):vf,httpStatus:e?.status??200,requestOptions:t.params.requestOptions,ssl:t.useSSL,url:t.params.url}}async function HX(t,e,r){if(t.redoRequest)return t.redoRequest=!1,!1;let n=t.params.requestOptions;if(!e||n.responseType==="native"||n.responseType==="native-request-init")return!0;let i,o;if(r&&(r.error&&typeof r.error=="object"?i=r.error:r.status==="error"&&Array.isArray(r.messages)&&(i={...r},i[Lb]=r,i.details=r.messages)),!i&&!e.ok)throw i=new Error(`Unable to load ${e.url} status: ${e.status}`),i[Lb]=r,i;let s,c=null;i&&(o=Number(i.code),c=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(c===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!t.useSSL)return t.useSSL=!0,!1}else if(!t.hasToken&&t.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&$X.has(o)&&!mR(t.params.url)&&(o!==403||(!s||!FX.has(s))&&(c==null||c===2&&t.credentialToken))){await j5();try{let d=await Zt.getCredential(t.params.url,{error:go("request:server",i,t.params),prompt:a!=="no-prompt",signal:t.controller.signal,token:t.credentialToken});return t.credential=d,t.credentialToken=d.token,t.useSSL=t.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return t.credential=void 0,t.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function pR(t,e,r=!1){let n=e.controller.signal,i=new Image;return e.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=Ri.priority,i.src=t,bM(i,t,r,n)}function YX(t){let e,r;return typeof t=="string"?(e=ln(t,!0),r=lx(t)):(e=t.origin,r=lx(t.toString())),e==null?null:{origin:e,isHosted:r}}var Ib,Ri,fR,$X,FX,UX,vf,Lb,jX,Ww=N(()=>{$a();Lh();Ln();St();Mn();z0();io();Go();hM();Ah();wM();EM();Ri=bt.request,fR="FormData"in globalThis,$X=new Set([499,498,403,401]),FX=new Set(["COM_0056","COM_0057","SB_0008"]),UX=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],vf=()=>null,Lb=Symbol();ir._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],ir._beforeFetch=void 0,ir._afterFetch=void 0;jX=new Map});function Bp(t){if(!bt.assetsPath)throw nt.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new We("assets:path-not-set","config.assetsPath is not set");return Ow(bt.assetsPath,t)}var Bw=N(()=>{$a();Ww();Ln();Vt();Go()});function hR(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var gR=N(()=>{});var wR=P3(()=>{});var yR=P3(()=>{});var _R={};Lo(_R,{p:()=>JX});function ZX(){return bR||(bR=1,t=vR,e=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(e=e||__filename),r=function(n={}){var i,o,s,c,a=n,d=new Promise((m,L)=>{i=m,o=L}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",v=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",E=Object.assign({},a),M="./this.program",k="";function $(m){return a.locateFile?a.locateFile(m,k):k+m}if(v){var z=wR(),B=yR();k=__dirname+"/",c=m=>(m=Di(m)?new URL(m):B.normalize(m),z.readFileSync(m)),s=(m,L=!0)=>(m=Di(m)?new URL(m):B.normalize(m),new Promise((j,ie)=>{z.readFile(m,L?void 0:"utf8",(le,Pe)=>{le?ie(le):j(L?Pe.buffer:Pe)})})),!a.thisProgram&&process.argv.length>1&&(M=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?k=self.location.href:typeof document<"u"&&document.currentScript&&(k=document.currentScript.src),e&&(k=e),k=k.startsWith("blob:")?"":k.substr(0,k.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(c=m=>{var L=new XMLHttpRequest;return L.open("GET",m,!1),L.responseType="arraybuffer",L.send(null),new Uint8Array(L.response)}),s=m=>Di(m)?new Promise((L,j)=>{var ie=new XMLHttpRequest;ie.open("GET",m,!0),ie.responseType="arraybuffer",ie.onload=()=>{ie.status==200||ie.status==0&&ie.response?L(ie.response):j(ie.status)},ie.onerror=j,ie.send(null)}):fetch(m,{credentials:"same-origin"}).then(L=>L.ok?L.arrayBuffer():Promise.reject(new Error(L.status+" : "+L.url))));var q,V,X=console.log.bind(console),te=console.error.bind(console);Object.assign(a,E),E=null;var F,me,Le,Ce,Ne,we,ce,H=!1;function ee(m,L){m||hn(L)}function de(){var m=V.buffer;a.HEAP8=F=new Int8Array(m),a.HEAP16=Le=new Int16Array(m),a.HEAPU8=me=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=Ce=new Int32Array(m),a.HEAPU32=Ne=new Uint32Array(m),a.HEAPF32=we=new Float32Array(m),a.HEAPF64=ce=new Float64Array(m)}var ue=[],ve=[],ye=[];function De(){So(ue)}function Qe(){So(ve)}function ft(){So(ye)}function mr(m){ve.unshift(m)}var Kt=0,er=null;function Jn(m){Kt++}function Cn(m){if(--Kt==0&&er){var L=er;er=null,L()}}function hn(m){te(m="Aborted("+m+")"),H=!0,m+=". Build with -sASSERTIONS for more info.";var L=new WebAssembly.RuntimeError(m);throw o(L),L}var Ue,gu="data:application/octet-stream;base64,",_o=m=>m.startsWith(gu),Di=m=>m.startsWith("file://");function gc(){var m="pe-wasm.wasm";return _o(m)?m:$(m)}function Vs(m){if(c)return c(m);throw"both async and sync fetching of the wasm failed"}function Qo(m){return s(m).then(L=>new Uint8Array(L),()=>Vs(m))}function yi(m,L,j){return Qo(m).then(ie=>WebAssembly.instantiate(ie,L)).then(j,ie=>{te(`failed to asynchronously prepare wasm: ${ie}`),hn(ie)})}function wu(m,L,j,ie){return typeof WebAssembly.instantiateStreaming!="function"||_o(L)||Di(L)||v||typeof fetch!="function"?yi(L,j,ie):fetch(L,{credentials:"same-origin"}).then(le=>WebAssembly.instantiateStreaming(le,j).then(ie,function(Pe){return te(`wasm streaming compile failed: ${Pe}`),te("falling back to ArrayBuffer instantiation"),yi(L,j,ie)}))}function Ko(){return{a:kf}}function Lf(){var m=Ko();function L(ie,le){return G=ie.exports,V=G.t,de(),mr(G.u),Cn(),G}function j(ie){L(ie.instance)}return Jn(),Ue??=gc(),wu(q,Ue,m,j).catch(o),{}}var So=m=>{for(;m.length>0;)m.shift()(a)};function zs(m,L="i8"){switch(L.endsWith("*")&&(L="*"),L){case"i1":case"i8":return F[m];case"i16":return Le[m>>1];case"i32":return Ce[m>>2];case"i64":hn("to do getValue(i64) use WASM_BIGINT");case"float":return we[m>>2];case"double":return ce[m>>3];case"*":return Ne[m>>2];default:hn(`invalid type for getValue: ${L}`)}}var wc=typeof TextDecoder<"u"?new TextDecoder:void 0,yc=(m,L=0,j=NaN)=>{for(var ie=L+j,le=L;m[le]&&!(le>=ie);)++le;if(le-L>16&&m.buffer&&wc)return wc.decode(m.subarray(L,le));for(var Pe="";L<le;){var Ve=m[L++];if(128&Ve){var Re=63&m[L++];if((224&Ve)!=192){var tt=63&m[L++];if((Ve=(240&Ve)==224?(15&Ve)<<12|Re<<6|tt:(7&Ve)<<18|Re<<12|tt<<6|63&m[L++])<65536)Pe+=String.fromCharCode(Ve);else{var yn=Ve-65536;Pe+=String.fromCharCode(55296|yn>>10,56320|1023&yn)}}else Pe+=String.fromCharCode((31&Ve)<<6|Re)}else Pe+=String.fromCharCode(Ve)}return Pe},hr=(m,L)=>m?yc(me,m,L):"";function yu(m,L,j){return 0}var xo=(m,L,j,ie)=>{if(!(ie>0))return 0;for(var le=j,Pe=j+ie-1,Ve=0;Ve<m.length;++Ve){var Re=m.charCodeAt(Ve);if(Re>=55296&&Re<=57343&&(Re=65536+((1023&Re)<<10)|1023&m.charCodeAt(++Ve)),Re<=127){if(j>=Pe)break;L[j++]=Re}else if(Re<=2047){if(j+1>=Pe)break;L[j++]=192|Re>>6,L[j++]=128|63&Re}else if(Re<=65535){if(j+2>=Pe)break;L[j++]=224|Re>>12,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}else{if(j+3>=Pe)break;L[j++]=240|Re>>18,L[j++]=128|Re>>12&63,L[j++]=128|Re>>6&63,L[j++]=128|63&Re}}return L[j]=0,j-le},Ws=(m,L,j)=>xo(m,me,L,j);function bc(m,L,j){return 0}function bu(m,L,j,ie){}var vc=m=>m%4==0&&(m%100!=0||m%400==0),_c=[0,31,60,91,121,152,182,213,244,274,305,335],Sc=[0,31,59,90,120,151,181,212,243,273,304,334],xc=m=>(vc(m.getFullYear())?_c:Sc)[m.getMonth()]+m.getDate()-1,vu=(m,L)=>L+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*L:NaN;function $i(m,L,j){var ie=vu(m,L),le=new Date(1e3*ie);Ce[j>>2]=le.getSeconds(),Ce[j+4>>2]=le.getMinutes(),Ce[j+8>>2]=le.getHours(),Ce[j+12>>2]=le.getDate(),Ce[j+16>>2]=le.getMonth(),Ce[j+20>>2]=le.getFullYear()-1900,Ce[j+24>>2]=le.getDay();var Pe=0|xc(le);Ce[j+28>>2]=Pe,Ce[j+36>>2]=-60*le.getTimezoneOffset();var Ve=new Date(le.getFullYear(),0,1),Re=new Date(le.getFullYear(),6,1).getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=0|(Re!=tt&&le.getTimezoneOffset()==Math.min(tt,Re));Ce[j+32>>2]=yn}var _u=()=>2147483648,Ec=(m,L)=>Math.ceil(m/L)*L,es=m=>{var L=(m-V.buffer.byteLength+65535)/65536|0;try{return V.grow(L),de(),1}catch{}},bi={},Eo=()=>M||"./this.program",Fi=()=>{if(!Fi.strings){var m={USER:"web_user",LOGNAME:"web_user",PATH:"/",PWD:"/",HOME:"/home/web_user",LANG:(typeof navigator=="object"&&navigator.languages&&navigator.languages[0]||"C").replace("-","_")+".UTF-8",_:Eo()};for(var L in bi)bi[L]===void 0?delete m[L]:m[L]=bi[L];var j=[];for(var L in m)j.push(`${L}=${m[L]}`);Fi.strings=j}return Fi.strings},Cc=(m,L)=>{for(var j=0;j<m.length;++j)F[L++]=m.charCodeAt(j);F[L]=0};function Su(m,L,j,ie,le){return 70}var Tc=[null,[],[]],Bs=(m,L)=>{var j=Tc[m];L===0||L===10?((m===1?X:te)(yc(j)),j.length=0):j.push(L)},xu=m=>{for(var L=0,j=0;j<m.length;++j){var ie=m.charCodeAt(j);ie<=127?L++:ie<=2047?L+=2:ie>=55296&&ie<=57343?(L+=4,++j):L+=3}return L};function Eu(m,L,j){var ie=xu(m)+1,le=new Array(ie);return xo(m,le,0,le.length),le}var kf={c:yu,q:(m,L,j)=>{},h:bc,d:bu,o:m=>{},n:(m,L)=>{},p:(m,L,j)=>{},l:()=>{hn("")},s:(m,L,j)=>me.copyWithin(m,L,L+j),j:$i,r:(m,L,j,ie)=>{var le=new Date().getFullYear(),Pe=new Date(le,0,1),Ve=new Date(le,6,1),Re=Pe.getTimezoneOffset(),tt=Ve.getTimezoneOffset(),yn=Math.max(Re,tt);Ne[m>>2]=60*yn,Ce[L>>2]=+(Re!=tt);var qg=Zg=>{var pv=Zg>=0?"-":"+",Xg=Math.abs(Zg);return`UTC${pv}${String(Math.floor(Xg/60)).padStart(2,"0")}${String(Xg%60).padStart(2,"0")}`},Hg=qg(Re),Yg=qg(tt);tt<Re?(Ws(Hg,j,17),Ws(Yg,ie,17)):(Ws(Hg,ie,17),Ws(Yg,j,17))},i:()=>Date.now(),m:m=>{var L=me.length;m>>>=0;var j=_u();if(m>j)return!1;for(var ie=1;ie<=4;ie*=2){var le=L*(1+.2/ie);le=Math.min(le,m+100663296);var Pe=Math.min(j,Ec(Math.max(m,le),65536));if(es(Pe))return!0}return!1},e:(m,L)=>{var j=0;return Fi().forEach((ie,le)=>{var Pe=L+j;Ne[m+4*le>>2]=Pe,Cc(ie,Pe),j+=ie.length+1}),0},f:(m,L)=>{var j=Fi();Ne[m>>2]=j.length;var ie=0;return j.forEach(le=>ie+=le.length+1),Ne[L>>2]=ie,0},a:m=>52,g:(m,L,j,ie)=>52,k:Su,b:(m,L,j,ie)=>{for(var le=0,Pe=0;Pe<j;Pe++){var Ve=Ne[L>>2],Re=Ne[L+4>>2];L+=8;for(var tt=0;tt<Re;tt++)Bs(m,me[Ve+tt]);le+=Re}return Ne[ie>>2]=le,0}},G=Lf();a._webidl_free=m=>(a._webidl_free=G.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=G.w)(m);var Co,Cu=a._emscripten_bind_PeObject_getCode_0=m=>(Cu=a._emscripten_bind_PeObject_getCode_0=G.x)(m),Tu=a._emscripten_bind_PeObject_getName_1=(m,L)=>(Tu=a._emscripten_bind_PeObject_getName_1=G.y)(m,L),Pc=a._emscripten_bind_PeObject_getType_0=m=>(Pc=a._emscripten_bind_PeObject_getType_0=G.z)(m),Kr=a._emscripten_bind_PeCoordsys_isEqual_1=(m,L)=>(Kr=a._emscripten_bind_PeCoordsys_isEqual_1=G.A)(m,L),vi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(vi=a._emscripten_bind_PeCoordsys_getCode_0=G.B)(m),Vn=a._emscripten_bind_PeCoordsys_getName_1=(m,L)=>(Vn=a._emscripten_bind_PeCoordsys_getName_1=G.C)(m,L),Pu=a._emscripten_bind_PeCoordsys_getType_0=m=>(Pu=a._emscripten_bind_PeCoordsys_getType_0=G.D)(m),Mu=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Mu=a._emscripten_bind_PeUnit_getUnitFactor_0=G.E)(m),Gs=a._emscripten_bind_PeUnit_getCode_0=m=>(Gs=a._emscripten_bind_PeUnit_getCode_0=G.F)(m),Qn=a._emscripten_bind_PeUnit_getName_1=(m,L)=>(Qn=a._emscripten_bind_PeUnit_getName_1=G.G)(m,L),je=a._emscripten_bind_PeUnit_getType_0=m=>(je=a._emscripten_bind_PeUnit_getType_0=G.H)(m),js=a._emscripten_bind_VoidPtr___destroy___0=m=>(js=a._emscripten_bind_VoidPtr___destroy___0=G.I)(m),Mc=a._emscripten_bind_PeAngunit_getCode_0=m=>(Mc=a._emscripten_bind_PeAngunit_getCode_0=G.J)(m),Ac=a._emscripten_bind_PeAngunit_getName_1=(m,L)=>(Ac=a._emscripten_bind_PeAngunit_getName_1=G.K)(m,L),Ic=a._emscripten_bind_PeAngunit_getType_0=m=>(Ic=a._emscripten_bind_PeAngunit_getType_0=G.L)(m),To=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(To=a._emscripten_bind_PeAngunit_getUnitFactor_0=G.M)(m),qs=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(qs=a._emscripten_bind_PeDatum_getSpheroid_0=G.N)(m),Au=a._emscripten_bind_PeDatum_getCode_0=m=>(Au=a._emscripten_bind_PeDatum_getCode_0=G.O)(m),Iu=a._emscripten_bind_PeDatum_getName_1=(m,L)=>(Iu=a._emscripten_bind_PeDatum_getName_1=G.P)(m,L),Lu=a._emscripten_bind_PeDatum_getType_0=m=>(Lu=a._emscripten_bind_PeDatum_getType_0=G.Q)(m),Lc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(Lc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=G.R)(m),ku=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(ku=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=G.S)(m),kc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(kc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=G.T)(m),Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=G.U)(m),ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(ts=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=G.V)(m),Nc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Nc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=G.W)(m),Hs=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>(Hs=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=G.X)(m),Rc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Rc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=G.Y)(m),Ou=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(Ou=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=G.Z)(m),Ys=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(Ys=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=G._)(m),Nu=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(Nu=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=G.$)(m),Zs=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Zs=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=G.aa)(m),Ru=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Ru=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=G.ba)(m),Du=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Du=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=G.ca)(m),$u=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>($u=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=G.da)(m),Fu=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(Fu=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=G.ea)(m),Uu=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Uu=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=G.fa)(m),Dc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Dc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=G.ga)(m),rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(rs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=G.ha)(m),Ui=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(Ui=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=G.ia)(m),Xs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(Xs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=G.ja)(m),ns=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(ns=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=G.ka)(m),Kn=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(Kn=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=G.la)(m),Po=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(Po=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=G.ma)(m),Vu=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Vu=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=G.na)(m),$c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=m=>($c=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_2_TO_1_0=G.oa)(m),Fc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Fc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=G.pa)(m),Js=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Js=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=G.qa)(m),zu=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(zu=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=G.ra)(m),Wu=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(Wu=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=G.sa)(m),Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=G.ta)(m),Bu=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(Bu=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=G.ua)(m),Gu=a._emscripten_bind_PeDouble_PeDouble_1=m=>(Gu=a._emscripten_bind_PeDouble_PeDouble_1=G.va)(m),Vc=a._emscripten_bind_PeDouble_get_val_0=m=>(Vc=a._emscripten_bind_PeDouble_get_val_0=G.wa)(m),zc=a._emscripten_bind_PeDouble_set_val_1=(m,L)=>(zc=a._emscripten_bind_PeDouble_set_val_1=G.xa)(m,L),ju=a._emscripten_bind_PeDouble___destroy___0=m=>(ju=a._emscripten_bind_PeDouble___destroy___0=G.ya)(m),Qs=a._emscripten_bind_PeFactory_initialize_1=m=>(Qs=a._emscripten_bind_PeFactory_initialize_1=G.za)(m),qu=a._emscripten_bind_PeFactory_factoryByType_2=(m,L)=>(qu=a._emscripten_bind_PeFactory_factoryByType_2=G.Aa)(m,L),Wc=a._emscripten_bind_PeFactory_fromString_2=(m,L)=>(Wc=a._emscripten_bind_PeFactory_fromString_2=G.Ba)(m,L),Hu=a._emscripten_bind_PeFactory_getCode_1=m=>(Hu=a._emscripten_bind_PeFactory_getCode_1=G.Ca)(m),is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,L,j,ie,le,Pe)=>(is=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=G.Da)(m,L,j,ie,le,Pe),Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(Yu=a._emscripten_bind_PeGCSExtent_getLLon_0=G.Ea)(m),Bc=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Bc=a._emscripten_bind_PeGCSExtent_getSLat_0=G.Fa)(m),Gc=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(Gc=a._emscripten_bind_PeGCSExtent_getRLon_0=G.Ga)(m),Zu=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(Zu=a._emscripten_bind_PeGCSExtent_getNLat_0=G.Ha)(m),jc=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(jc=a._emscripten_bind_PeGCSExtent___destroy___0=G.Ia)(m),qc=a._emscripten_bind_PeGeogcs_Delete_0=m=>(qc=a._emscripten_bind_PeGeogcs_Delete_0=G.Ja)(m),Xu=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,L)=>(Xu=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=G.Ka)(m,L),Vi=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(Vi=a._emscripten_bind_PeGeogcs_getDatum_0=G.La)(m),Mo=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(Mo=a._emscripten_bind_PeGeogcs_getPrimem_0=G.Ma)(m),Ju=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(Ju=a._emscripten_bind_PeGeogcs_getUnit_0=G.Na)(m),Ks=a._emscripten_bind_PeGeogcs_isEqual_1=(m,L)=>(Ks=a._emscripten_bind_PeGeogcs_isEqual_1=G.Oa)(m,L),ea=a._emscripten_bind_PeGeogcs_getCode_0=m=>(ea=a._emscripten_bind_PeGeogcs_getCode_0=G.Pa)(m),Qu=a._emscripten_bind_PeGeogcs_getName_1=(m,L)=>(Qu=a._emscripten_bind_PeGeogcs_getName_1=G.Qa)(m,L),os=a._emscripten_bind_PeGeogcs_getType_0=m=>(os=a._emscripten_bind_PeGeogcs_getType_0=G.Ra)(m),Hc=a._emscripten_bind_PeGeogtran_isEqual_1=(m,L)=>(Hc=a._emscripten_bind_PeGeogtran_isEqual_1=G.Sa)(m,L),Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=G.Ta)(m),ta=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(ta=a._emscripten_bind_PeGeogtran_getGeogcs2_0=G.Ua)(m),Zc=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Zc=a._emscripten_bind_PeGeogtran_getParameters_0=G.Va)(m),Ku=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(Ku=a._emscripten_bind_PeGeogtran_loadConstants_0=G.Wa)(m),ei=a._emscripten_bind_PeGeogtran_getCode_0=m=>(ei=a._emscripten_bind_PeGeogtran_getCode_0=G.Xa)(m),ed=a._emscripten_bind_PeGeogtran_getName_1=(m,L)=>(ed=a._emscripten_bind_PeGeogtran_getName_1=G.Ya)(m,L),td=a._emscripten_bind_PeGeogtran_getType_0=m=>(td=a._emscripten_bind_PeGeogtran_getType_0=G.Za)(m),rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,L,j,ie,le,Pe)=>(rd=a._emscripten_bind_PeGTlistExtended_getGTlist_6=G._a)(m,L,j,ie,le,Pe),Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=G.$a)(m),Jc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Jc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=G.ab)(m),gr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(gr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=G.bb)(m),nd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(nd=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=G.cb)(m),id=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(id=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=G.db)(m),od=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(od=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=G.eb)(m),sd=a._emscripten_bind_PeHorizon_getNump_0=m=>(sd=a._emscripten_bind_PeHorizon_getNump_0=G.fb)(m),ad=a._emscripten_bind_PeHorizon_getKind_0=m=>(ad=a._emscripten_bind_PeHorizon_getKind_0=G.gb)(m),Qc=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Qc=a._emscripten_bind_PeHorizon_getInclusive_0=G.hb)(m),cd=a._emscripten_bind_PeHorizon_getSize_0=m=>(cd=a._emscripten_bind_PeHorizon_getSize_0=G.ib)(m),Kc=a._emscripten_bind_PeHorizon_getCoord_0=m=>(Kc=a._emscripten_bind_PeHorizon_getCoord_0=G.jb)(m),el=a._emscripten_bind_PeInteger_PeInteger_1=m=>(el=a._emscripten_bind_PeInteger_PeInteger_1=G.kb)(m),ss=a._emscripten_bind_PeInteger_get_val_0=m=>(ss=a._emscripten_bind_PeInteger_get_val_0=G.lb)(m),_i=a._emscripten_bind_PeInteger_set_val_1=(m,L)=>(_i=a._emscripten_bind_PeInteger_set_val_1=G.mb)(m,L),as=a._emscripten_bind_PeInteger___destroy___0=m=>(as=a._emscripten_bind_PeInteger___destroy___0=G.nb)(m),ld=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,L,j,ie,le,Pe,Ve,Re,tt,yn)=>(ld=a._emscripten_bind_PeLineType_geodetic_distance_10=G.ob)(m,L,j,ie,le,Pe,Ve,Re,tt,yn),tl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,L,j,ie,le,Pe,Ve,Re,tt)=>(tl=a._emscripten_bind_PeLineType_geodetic_coordinate_9=G.pb)(m,L,j,ie,le,Pe,Ve,Re,tt),rl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,L,j,ie,le,Pe,Ve,Re)=>(rl=a._emscripten_bind_PeLineType_geodesic_coordinate_8=G.qb)(m,L,j,ie,le,Pe,Ve,Re),nl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,L,j,ie,le,Pe,Ve,Re,tt)=>(nl=a._emscripten_bind_PeLineType_great_elliptic_distance_9=G.rb)(m,L,j,ie,le,Pe,Ve,Re,tt),Ao=a._emscripten_bind_PeMath_phi_to_eta_2=(m,L)=>(Ao=a._emscripten_bind_PeMath_phi_to_eta_2=G.sb)(m,L),ud=a._emscripten_bind_PeMath_eta_to_phi_2=(m,L)=>(ud=a._emscripten_bind_PeMath_eta_to_phi_2=G.tb)(m,L),dd=a._emscripten_bind_PeMath_phi_to_phig_2=(m,L)=>(dd=a._emscripten_bind_PeMath_phi_to_phig_2=G.ub)(m,L),pd=a._emscripten_bind_PeMath_q_3=(m,L,j)=>(pd=a._emscripten_bind_PeMath_q_3=G.vb)(m,L,j),fd=a._emscripten_bind_PeMath_q90_2=(m,L)=>(fd=a._emscripten_bind_PeMath_q90_2=G.wb)(m,L),md=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(md=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=G.xb)(m),hd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(hd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=G.yb)(m),ra=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(ra=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=G.zb)(m),gd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(gd=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=G.Ab)(m),cs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(cs=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=G.Bb)(m),wd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(wd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=G.Cb)(m),na=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(na=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=G.Db)(m),yd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(yd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=G.Eb)(m),bd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(bd=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=G.Fb)(m),il=a._emscripten_bind_PeParameter_getValue_0=m=>(il=a._emscripten_bind_PeParameter_getValue_0=G.Gb)(m),Io=a._emscripten_bind_PeParameter_getCode_0=m=>(Io=a._emscripten_bind_PeParameter_getCode_0=G.Hb)(m),ti=a._emscripten_bind_PeParameter_getName_1=(m,L)=>(ti=a._emscripten_bind_PeParameter_getName_1=G.Ib)(m,L),ol=a._emscripten_bind_PeParameter_getType_0=m=>(ol=a._emscripten_bind_PeParameter_getType_0=G.Jb)(m),ia=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(ia=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=G.Kb)(m),vd=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(vd=a._emscripten_bind_PePCSInfo_getDomainMinx_0=G.Lb)(m),_d=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(_d=a._emscripten_bind_PePCSInfo_getDomainMiny_0=G.Mb)(m),Sd=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Sd=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=G.Nb)(m),xd=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(xd=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=G.Ob)(m),Ed=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(Ed=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=G.Pb)(m),Cd=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Cd=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=G.Qb)(m),Td=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>(Td=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=G.Rb)(m),Pd=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Pd=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=G.Sb)(m),Md=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Md=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=G.Tb)(m),Ad=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(Ad=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=G.Ub)(m),f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=G.Vb)(m),p=a._emscripten_bind_PePCSInfo_generate_2=(m,L)=>(p=a._emscripten_bind_PePCSInfo_generate_2=G.Wb)(m,L),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=G.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=G.Yb)(m),C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=m=>(C=a._emscripten_bind_PePCSInfo_get_PE_POLE_OUTSIDE_BOUNDARY_0=G.Zb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=G._b)(m),A=a._emscripten_bind_PePrimem_getLongitude_0=m=>(A=a._emscripten_bind_PePrimem_getLongitude_0=G.$b)(m),O=a._emscripten_bind_PePrimem_getCode_0=m=>(O=a._emscripten_bind_PePrimem_getCode_0=G.ac)(m),R=a._emscripten_bind_PePrimem_getName_1=(m,L)=>(R=a._emscripten_bind_PePrimem_getName_1=G.bc)(m,L),U=a._emscripten_bind_PePrimem_getType_0=m=>(U=a._emscripten_bind_PePrimem_getType_0=G.cc)(m),D=a._emscripten_bind_PeProjcs_Delete_0=m=>(D=a._emscripten_bind_PeProjcs_Delete_0=G.dc)(m),Z=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Z=a._emscripten_bind_PeProjcs_getGeogcs_0=G.ec)(m),oe=a._emscripten_bind_PeProjcs_getProjection_0=m=>(oe=a._emscripten_bind_PeProjcs_getProjection_0=G.fc)(m),ge=a._emscripten_bind_PeProjcs_getParameters_0=m=>(ge=a._emscripten_bind_PeProjcs_getParameters_0=G.gc)(m),he=a._emscripten_bind_PeProjcs_getUnit_0=m=>(he=a._emscripten_bind_PeProjcs_getUnit_0=G.hc)(m),be=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(be=a._emscripten_bind_PeProjcs_loadConstants_0=G.ic)(m),ke=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(ke=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=G.jc)(m),Ae=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Ae=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=G.kc)(m),Fe=a._emscripten_bind_PeProjcs_isEqual_1=(m,L)=>(Fe=a._emscripten_bind_PeProjcs_isEqual_1=G.lc)(m,L),Xe=a._emscripten_bind_PeProjcs_getCode_0=m=>(Xe=a._emscripten_bind_PeProjcs_getCode_0=G.mc)(m),Ke=a._emscripten_bind_PeProjcs_getName_1=(m,L)=>(Ke=a._emscripten_bind_PeProjcs_getName_1=G.nc)(m,L),Be=a._emscripten_bind_PeProjcs_getType_0=m=>(Be=a._emscripten_bind_PeProjcs_getType_0=G.oc)(m),Je=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(Je=a._emscripten_bind_PeSpheroid_getAxis_0=G.pc)(m),wr=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(wr=a._emscripten_bind_PeSpheroid_getFlattening_0=G.qc)(m),vt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(vt=a._emscripten_bind_PeSpheroid_getCode_0=G.rc)(m),Dr=a._emscripten_bind_PeSpheroid_getName_1=(m,L)=>(Dr=a._emscripten_bind_PeSpheroid_getName_1=G.sc)(m,L),gn=a._emscripten_bind_PeSpheroid_getType_0=m=>(gn=a._emscripten_bind_PeSpheroid_getType_0=G.tc)(m),Tn=a._emscripten_bind_PeVersion_version_string_0=m=>(Tn=a._emscripten_bind_PeVersion_version_string_0=G.uc)(m);function ls(){function m(){Co||(Co=!0,a.calledRun=!0,H||(Qe(),i(a),ft()))}Kt>0||(De(),Kt>0||m())}function ot(){}function oa(m){return(m||ot).__cache__}function tr(m,L){var j=oa(L),ie=j[m];return ie||((ie=Object.create((L||ot).prototype)).ptr=m,j[m]=ie)}function nv(m,L){return tr(m.ptr,L)}function iv(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete oa(m.__class__)[m.ptr]}function ov(m,L){return m.ptr===L.ptr}function sv(m){return m.ptr}function av(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=G.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=G.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=G.xc)(),a._pe_geog_to_geog=(m,L,j,ie,le)=>(a._pe_geog_to_geog=G.zc)(m,L,j,ie,le),a._pe_geog_to_proj=(m,L,j)=>(a._pe_geog_to_proj=G.Ac)(m,L,j),a._pe_geog_to_dd=(m,L,j,ie,le)=>(a._pe_geog_to_dd=G.Bc)(m,L,j,ie,le),a._pe_dd_to_geog=(m,L,j,ie)=>(a._pe_dd_to_geog=G.Cc)(m,L,j,ie),a._pe_geog_to_ddm=(m,L,j,ie,le)=>(a._pe_geog_to_ddm=G.Dc)(m,L,j,ie,le),a._pe_ddm_to_geog=(m,L,j,ie)=>(a._pe_ddm_to_geog=G.Ec)(m,L,j,ie),a._pe_geog_to_dms=(m,L,j,ie,le)=>(a._pe_geog_to_dms=G.Fc)(m,L,j,ie,le),a._pe_dms_to_geog=(m,L,j,ie)=>(a._pe_dms_to_geog=G.Gc)(m,L,j,ie),a._pe_geog_to_mgrs_extended=(m,L,j,ie,le,Pe,Ve)=>(a._pe_geog_to_mgrs_extended=G.Hc)(m,L,j,ie,le,Pe,Ve),a._pe_mgrs_to_geog_extended=(m,L,j,ie,le)=>(a._pe_mgrs_to_geog_extended=G.Ic)(m,L,j,ie,le),a._pe_geog_to_usng=(m,L,j,ie,le,Pe,Ve)=>(a._pe_geog_to_usng=G.Jc)(m,L,j,ie,le,Pe,Ve),a._pe_usng_to_geog=(m,L,j,ie)=>(a._pe_usng_to_geog=G.Kc)(m,L,j,ie),a._pe_geog_to_utm=(m,L,j,ie,le)=>(a._pe_geog_to_utm=G.Lc)(m,L,j,ie,le),a._pe_utm_to_geog=(m,L,j,ie,le)=>(a._pe_utm_to_geog=G.Mc)(m,L,j,ie,le),a._pe_object_to_string_ext=(m,L,j)=>(a._pe_object_to_string_ext=G.Nc)(m,L,j),a._pe_proj_to_geog_center=(m,L,j,ie)=>(a._pe_proj_to_geog_center=G.Oc)(m,L,j,ie),a.getValue=zs,a.UTF8ToString=hr,er=function m(){Co||ls(),Co||(er=m)},ls(),ot.prototype=Object.create(ot.prototype),ot.prototype.constructor=ot,ot.prototype.__class__=ot,ot.__cache__={},a.WrapperObject=ot,a.getCache=oa,a.wrapPointer=tr,a.castObject=nv,a.NULL=tr(0),a.destroy=iv,a.compare=ov,a.getPointer=sv,a.getClass=av;var He={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(He.needed){for(var m=0;m<He.temps.length;m++)a._webidl_free(He.temps[m]);He.temps.length=0,a._webidl_free(He.buffer),He.buffer=0,He.size+=He.needed,He.needed=0}He.buffer||(He.size+=128,He.buffer=a._webidl_malloc(He.size),ee(He.buffer)),He.pos=0},alloc(m,L){ee(He.buffer);var j,ie=L.BYTES_PER_ELEMENT,le=m.length*ie;return le=Ec(le,8),He.pos+le>=He.size?(ee(le>0),He.needed+=le,j=a._webidl_malloc(le),He.temps.push(j)):(j=He.buffer+He.pos,He.pos+=le),j},copy(m,L,j){j/=L.BYTES_PER_ELEMENT;for(var ie=0;ie<m.length;ie++)L[j+ie]=m[ie]}};function Of(m){if(typeof m=="string"){var L=Eu(m),j=He.alloc(L,F);return He.copy(L,F,j),j}return m}function zn(m){if(typeof m=="object"){var L=He.alloc(m,F);return He.copy(m,F,L),L}return m}function cv(m){if(typeof m=="object"){var L=He.alloc(m,Le);return He.copy(m,Le,L),L}return m}function lv(m){if(typeof m=="object"){var L=He.alloc(m,Ce);return He.copy(m,Ce,L),L}return m}function uv(m){if(typeof m=="object"){var L=He.alloc(m,we);return He.copy(m,we,L),L}return m}function dv(m){if(typeof m=="object"){var L=He.alloc(m,ce);return He.copy(m,ce,L),L}return m}function Gt(){throw"cannot construct a PeObject, no constructor in IDL"}function Tr(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function Pr(){throw"cannot construct a PeUnit, no constructor in IDL"}function zi(){throw"cannot construct a VoidPtr, no constructor in IDL"}function $r(){throw"cannot construct a PeAngunit, no constructor in IDL"}function Fr(){throw"cannot construct a PeDatum, no constructor in IDL"}function se(){throw"cannot construct a PeDefs, no constructor in IDL"}function Mr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=Gu(m),oa(Mr)[this.ptr]=this}function en(){throw"cannot construct a PeFactory, no constructor in IDL"}function yr(m,L,j,ie,le,Pe){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),this.ptr=is(m,L,j,ie,le,Pe),oa(yr)[this.ptr]=this}function mt(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function $t(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function Pn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function wn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function Wn(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function dr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Ar(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=el(m),oa(Ar)[this.ptr]=this}function tn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Ir(){throw"cannot construct a PeMath, no constructor in IDL"}function _t(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function jt(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function rn(){throw"cannot construct a PeParameter, no constructor in IDL"}function qe(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function Ur(){throw"cannot construct a PePrimem, no constructor in IDL"}function ut(){throw"cannot construct a PeProjcs, no constructor in IDL"}function br(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function Wi(){throw"cannot construct a PeVersion, no constructor in IDL"}return Gt.prototype=Object.create(ot.prototype),Gt.prototype.constructor=Gt,Gt.prototype.__class__=Gt,Gt.__cache__={},a.PeObject=Gt,Gt.prototype.getCode=Gt.prototype.getCode=function(){var m=this.ptr;return Cu(m)},Gt.prototype.getName=Gt.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Tu(L,m))},Gt.prototype.getType=Gt.prototype.getType=function(){var m=this.ptr;return Pc(m)},Tr.prototype=Object.create(Gt.prototype),Tr.prototype.constructor=Tr,Tr.prototype.__class__=Tr,Tr.__cache__={},a.PeCoordsys=Tr,Tr.prototype.isEqual=Tr.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Kr(L,m)},Tr.prototype.getCode=Tr.prototype.getCode=function(){var m=this.ptr;return vi(m)},Tr.prototype.getName=Tr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Vn(L,m))},Tr.prototype.getType=Tr.prototype.getType=function(){var m=this.ptr;return Pu(m)},Pr.prototype=Object.create(Gt.prototype),Pr.prototype.constructor=Pr,Pr.prototype.__class__=Pr,Pr.__cache__={},a.PeUnit=Pr,Pr.prototype.getUnitFactor=Pr.prototype.getUnitFactor=function(){var m=this.ptr;return Mu(m)},Pr.prototype.getCode=Pr.prototype.getCode=function(){var m=this.ptr;return Gs(m)},Pr.prototype.getName=Pr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Qn(L,m))},Pr.prototype.getType=Pr.prototype.getType=function(){var m=this.ptr;return je(m)},zi.prototype=Object.create(ot.prototype),zi.prototype.constructor=zi,zi.prototype.__class__=zi,zi.__cache__={},a.VoidPtr=zi,zi.prototype.__destroy__=zi.prototype.__destroy__=function(){var m=this.ptr;js(m)},$r.prototype=Object.create(Pr.prototype),$r.prototype.constructor=$r,$r.prototype.__class__=$r,$r.__cache__={},a.PeAngunit=$r,$r.prototype.getCode=$r.prototype.getCode=function(){var m=this.ptr;return Mc(m)},$r.prototype.getName=$r.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ac(L,m))},$r.prototype.getType=$r.prototype.getType=function(){var m=this.ptr;return Ic(m)},$r.prototype.getUnitFactor=$r.prototype.getUnitFactor=function(){var m=this.ptr;return To(m)},Fr.prototype=Object.create(Gt.prototype),Fr.prototype.constructor=Fr,Fr.prototype.__class__=Fr,Fr.__cache__={},a.PeDatum=Fr,Fr.prototype.getSpheroid=Fr.prototype.getSpheroid=function(){var m=this.ptr;return tr(qs(m),br)},Fr.prototype.getCode=Fr.prototype.getCode=function(){var m=this.ptr;return Au(m)},Fr.prototype.getName=Fr.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Iu(L,m))},Fr.prototype.getType=Fr.prototype.getType=function(){var m=this.ptr;return Lu(m)},se.prototype=Object.create(ot.prototype),se.prototype.constructor=se,se.prototype.__class__=se,se.__cache__={},a.PeDefs=se,se.prototype.get_PE_BUFFER_MAX=se.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return Lc(m)},Object.defineProperty(se.prototype,"PE_BUFFER_MAX",{get:se.prototype.get_PE_BUFFER_MAX}),se.prototype.get_PE_NAME_MAX=se.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return ku(m)},Object.defineProperty(se.prototype,"PE_NAME_MAX",{get:se.prototype.get_PE_NAME_MAX}),se.prototype.get_PE_MGRS_MAX=se.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return kc(m)},Object.defineProperty(se.prototype,"PE_MGRS_MAX",{get:se.prototype.get_PE_MGRS_MAX}),se.prototype.get_PE_USNG_MAX=se.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return Oc(m)},Object.defineProperty(se.prototype,"PE_USNG_MAX",{get:se.prototype.get_PE_USNG_MAX}),se.prototype.get_PE_DD_MAX=se.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return ts(m)},Object.defineProperty(se.prototype,"PE_DD_MAX",{get:se.prototype.get_PE_DD_MAX}),se.prototype.get_PE_DMS_MAX=se.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Nc(m)},Object.defineProperty(se.prototype,"PE_DMS_MAX",{get:se.prototype.get_PE_DMS_MAX}),se.prototype.get_PE_DDM_MAX=se.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return Hs(m)},Object.defineProperty(se.prototype,"PE_DDM_MAX",{get:se.prototype.get_PE_DDM_MAX}),se.prototype.get_PE_UTM_MAX=se.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return Rc(m)},Object.defineProperty(se.prototype,"PE_UTM_MAX",{get:se.prototype.get_PE_UTM_MAX}),se.prototype.get_PE_PARM_MAX=se.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return Ou(m)},Object.defineProperty(se.prototype,"PE_PARM_MAX",{get:se.prototype.get_PE_PARM_MAX}),se.prototype.get_PE_TYPE_NONE=se.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return Ys(m)},Object.defineProperty(se.prototype,"PE_TYPE_NONE",{get:se.prototype.get_PE_TYPE_NONE}),se.prototype.get_PE_TYPE_GEOGCS=se.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return Nu(m)},Object.defineProperty(se.prototype,"PE_TYPE_GEOGCS",{get:se.prototype.get_PE_TYPE_GEOGCS}),se.prototype.get_PE_TYPE_PROJCS=se.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return Zs(m)},Object.defineProperty(se.prototype,"PE_TYPE_PROJCS",{get:se.prototype.get_PE_TYPE_PROJCS}),se.prototype.get_PE_TYPE_GEOGTRAN=se.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Ru(m)},Object.defineProperty(se.prototype,"PE_TYPE_GEOGTRAN",{get:se.prototype.get_PE_TYPE_GEOGTRAN}),se.prototype.get_PE_TYPE_COORDSYS=se.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return Du(m)},Object.defineProperty(se.prototype,"PE_TYPE_COORDSYS",{get:se.prototype.get_PE_TYPE_COORDSYS}),se.prototype.get_PE_TYPE_UNIT=se.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return $u(m)},Object.defineProperty(se.prototype,"PE_TYPE_UNIT",{get:se.prototype.get_PE_TYPE_UNIT}),se.prototype.get_PE_TYPE_LINUNIT=se.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return Fu(m)},Object.defineProperty(se.prototype,"PE_TYPE_LINUNIT",{get:se.prototype.get_PE_TYPE_LINUNIT}),se.prototype.get_PE_STR_OPTS_NONE=se.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Uu(m)},Object.defineProperty(se.prototype,"PE_STR_OPTS_NONE",{get:se.prototype.get_PE_STR_OPTS_NONE}),se.prototype.get_PE_STR_AUTH_NONE=se.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Dc(m)},Object.defineProperty(se.prototype,"PE_STR_AUTH_NONE",{get:se.prototype.get_PE_STR_AUTH_NONE}),se.prototype.get_PE_STR_AUTH_TOP=se.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return rs(m)},Object.defineProperty(se.prototype,"PE_STR_AUTH_TOP",{get:se.prototype.get_PE_STR_AUTH_TOP}),se.prototype.get_PE_STR_NAME_CANON=se.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return Ui(m)},Object.defineProperty(se.prototype,"PE_STR_NAME_CANON",{get:se.prototype.get_PE_STR_NAME_CANON}),se.prototype.get_PE_STR_FMT_WKT=se.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return Xs(m)},Object.defineProperty(se.prototype,"PE_STR_FMT_WKT",{get:se.prototype.get_PE_STR_FMT_WKT}),se.prototype.get_PE_STR_FMT_WKT2=se.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return ns(m)},Object.defineProperty(se.prototype,"PE_STR_FMT_WKT2",{get:se.prototype.get_PE_STR_FMT_WKT2}),se.prototype.get_PE_PARM_X0=se.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return Kn(m)},Object.defineProperty(se.prototype,"PE_PARM_X0",{get:se.prototype.get_PE_PARM_X0}),se.prototype.get_PE_PARM_ND=se.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return Po(m)},Object.defineProperty(se.prototype,"PE_PARM_ND",{get:se.prototype.get_PE_PARM_ND}),se.prototype.get_PE_TRANSFORM_1_TO_2=se.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Vu(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_1_TO_2",{get:se.prototype.get_PE_TRANSFORM_1_TO_2}),se.prototype.get_PE_TRANSFORM_2_TO_1=se.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return $c(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_2_TO_1",{get:se.prototype.get_PE_TRANSFORM_2_TO_1}),se.prototype.get_PE_TRANSFORM_P_TO_G=se.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return Fc(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_P_TO_G",{get:se.prototype.get_PE_TRANSFORM_P_TO_G}),se.prototype.get_PE_TRANSFORM_G_TO_P=se.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Js(m)},Object.defineProperty(se.prototype,"PE_TRANSFORM_G_TO_P",{get:se.prototype.get_PE_TRANSFORM_G_TO_P}),se.prototype.get_PE_HORIZON_RECT=se.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return zu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_RECT",{get:se.prototype.get_PE_HORIZON_RECT}),se.prototype.get_PE_HORIZON_POLY=se.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return Wu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_POLY",{get:se.prototype.get_PE_HORIZON_POLY}),se.prototype.get_PE_HORIZON_LINE=se.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Uc(m)},Object.defineProperty(se.prototype,"PE_HORIZON_LINE",{get:se.prototype.get_PE_HORIZON_LINE}),se.prototype.get_PE_HORIZON_DELTA=se.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return Bu(m)},Object.defineProperty(se.prototype,"PE_HORIZON_DELTA",{get:se.prototype.get_PE_HORIZON_DELTA}),Mr.prototype=Object.create(ot.prototype),Mr.prototype.constructor=Mr,Mr.prototype.__class__=Mr,Mr.__cache__={},a.PeDouble=Mr,Mr.prototype.get_val=Mr.prototype.get_val=function(){var m=this.ptr;return Vc(m)},Mr.prototype.set_val=Mr.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),zc(L,m)},Object.defineProperty(Mr.prototype,"val",{get:Mr.prototype.get_val,set:Mr.prototype.set_val}),Mr.prototype.__destroy__=Mr.prototype.__destroy__=function(){var m=this.ptr;ju(m)},en.prototype=Object.create(ot.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeFactory=en,en.prototype.initialize=en.prototype.initialize=function(m){He.prepare(),m=m&&typeof m=="object"?m.ptr:Of(m),Qs(m)},en.prototype.factoryByType=en.prototype.factoryByType=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),tr(qu(m,L),Gt)},en.prototype.fromString=en.prototype.fromString=function(m,L){return He.prepare(),m&&typeof m=="object"&&(m=m.ptr),L=L&&typeof L=="object"?L.ptr:Of(L),tr(Wc(m,L),Gt)},en.prototype.getCode=en.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),Hu(m)},yr.prototype=Object.create(ot.prototype),yr.prototype.constructor=yr,yr.prototype.__class__=yr,yr.__cache__={},a.PeGCSExtent=yr,yr.prototype.getLLon=yr.prototype.getLLon=function(){var m=this.ptr;return Yu(m)},yr.prototype.getSLat=yr.prototype.getSLat=function(){var m=this.ptr;return Bc(m)},yr.prototype.getRLon=yr.prototype.getRLon=function(){var m=this.ptr;return Gc(m)},yr.prototype.getNLat=yr.prototype.getNLat=function(){var m=this.ptr;return Zu(m)},yr.prototype.__destroy__=yr.prototype.__destroy__=function(){var m=this.ptr;jc(m)},mt.prototype=Object.create(Tr.prototype),mt.prototype.constructor=mt,mt.prototype.__class__=mt,mt.__cache__={},a.PeGeogcs=mt,mt.prototype.Delete=mt.prototype.Delete=function(){var m=this.ptr;qc(m)},mt.prototype.cloneAlterUnits=mt.prototype.cloneAlterUnits=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),tr(Xu(L,m),mt)},mt.prototype.getDatum=mt.prototype.getDatum=function(){var m=this.ptr;return tr(Vi(m),Fr)},mt.prototype.getPrimem=mt.prototype.getPrimem=function(){var m=this.ptr;return tr(Mo(m),Ur)},mt.prototype.getUnit=mt.prototype.getUnit=function(){var m=this.ptr;return tr(Ju(m),$r)},mt.prototype.isEqual=mt.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Ks(L,m)},mt.prototype.getCode=mt.prototype.getCode=function(){var m=this.ptr;return ea(m)},mt.prototype.getName=mt.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Qu(L,m))},mt.prototype.getType=mt.prototype.getType=function(){var m=this.ptr;return os(m)},$t.prototype=Object.create(Gt.prototype),$t.prototype.constructor=$t,$t.prototype.__class__=$t,$t.__cache__={},a.PeGeogtran=$t,$t.prototype.isEqual=$t.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Hc(L,m)},$t.prototype.getGeogcs1=$t.prototype.getGeogcs1=function(){var m=this.ptr;return tr(Yc(m),mt)},$t.prototype.getGeogcs2=$t.prototype.getGeogcs2=function(){var m=this.ptr;return tr(ta(m),mt)},$t.prototype.getParameters=$t.prototype.getParameters=function(){var m=this.ptr;return Zc(m)},$t.prototype.loadConstants=$t.prototype.loadConstants=function(){var m=this.ptr;return!!Ku(m)},$t.prototype.getCode=$t.prototype.getCode=function(){var m=this.ptr;return ei(m)},$t.prototype.getName=$t.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ed(L,m))},$t.prototype.getType=$t.prototype.getType=function(){var m=this.ptr;return td(m)},Pn.prototype=Object.create(ot.prototype),Pn.prototype.constructor=Pn,Pn.prototype.__class__=Pn,Pn.__cache__={},a.PeGTlistExtended=Pn,Pn.prototype.getGTlist=Pn.prototype.getGTlist=function(m,L,j,ie,le,Pe){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),tr(rd(m,L,j,ie,le,Pe),wn)},Pn.prototype.get_PE_GTLIST_OPTS_COMMON=Pn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Xc(m)},Object.defineProperty(Pn.prototype,"PE_GTLIST_OPTS_COMMON",{get:Pn.prototype.get_PE_GTLIST_OPTS_COMMON}),wn.prototype=Object.create(ot.prototype),wn.prototype.constructor=wn,wn.prototype.__class__=wn,wn.__cache__={},a.PeGTlistExtendedEntry=wn,wn.prototype.getEntries=wn.prototype.getEntries=function(){var m=this.ptr;return tr(Jc(m),Wn)},wn.prototype.getSteps=wn.prototype.getSteps=function(){var m=this.ptr;return gr(m)},wn.prototype.Delete=wn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),nd(m)},Wn.prototype=Object.create(ot.prototype),Wn.prototype.constructor=Wn,Wn.prototype.__class__=Wn,Wn.__cache__={},a.PeGTlistExtendedGTs=Wn,Wn.prototype.getDirection=Wn.prototype.getDirection=function(){var m=this.ptr;return id(m)},Wn.prototype.getGeogtran=Wn.prototype.getGeogtran=function(){var m=this.ptr;return tr(od(m),$t)},dr.prototype=Object.create(ot.prototype),dr.prototype.constructor=dr,dr.prototype.__class__=dr,dr.__cache__={},a.PeHorizon=dr,dr.prototype.getNump=dr.prototype.getNump=function(){var m=this.ptr;return sd(m)},dr.prototype.getKind=dr.prototype.getKind=function(){var m=this.ptr;return ad(m)},dr.prototype.getInclusive=dr.prototype.getInclusive=function(){var m=this.ptr;return Qc(m)},dr.prototype.getSize=dr.prototype.getSize=function(){var m=this.ptr;return cd(m)},dr.prototype.getCoord=dr.prototype.getCoord=function(){var m=this.ptr;return Kc(m)},Ar.prototype=Object.create(ot.prototype),Ar.prototype.constructor=Ar,Ar.prototype.__class__=Ar,Ar.__cache__={},a.PeInteger=Ar,Ar.prototype.get_val=Ar.prototype.get_val=function(){var m=this.ptr;return ss(m)},Ar.prototype.set_val=Ar.prototype.set_val=function(m){var L=this.ptr;m&&typeof m=="object"&&(m=m.ptr),_i(L,m)},Object.defineProperty(Ar.prototype,"val",{get:Ar.prototype.get_val,set:Ar.prototype.set_val}),Ar.prototype.__destroy__=Ar.prototype.__destroy__=function(){var m=this.ptr;as(m)},tn.prototype=Object.create(ot.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeLineType=tn,tn.prototype.geodetic_distance=tn.prototype.geodetic_distance=function(m,L,j,ie,le,Pe,Ve,Re,tt,yn){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),yn&&typeof yn=="object"&&(yn=yn.ptr),ld(m,L,j,ie,le,Pe,Ve,Re,tt,yn)},tn.prototype.geodetic_coordinate=tn.prototype.geodetic_coordinate=function(m,L,j,ie,le,Pe,Ve,Re,tt){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),tl(m,L,j,ie,le,Pe,Ve,Re,tt)},tn.prototype.geodesic_coordinate=tn.prototype.geodesic_coordinate=function(m,L,j,ie,le,Pe,Ve,Re){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),rl(m,L,j,ie,le,Pe,Ve,Re)},tn.prototype.great_elliptic_distance=tn.prototype.great_elliptic_distance=function(m,L,j,ie,le,Pe,Ve,Re,tt){m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),ie&&typeof ie=="object"&&(ie=ie.ptr),le&&typeof le=="object"&&(le=le.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),Ve&&typeof Ve=="object"&&(Ve=Ve.ptr),Re&&typeof Re=="object"&&(Re=Re.ptr),tt&&typeof tt=="object"&&(tt=tt.ptr),nl(m,L,j,ie,le,Pe,Ve,Re,tt)},Ir.prototype=Object.create(ot.prototype),Ir.prototype.constructor=Ir,Ir.prototype.__class__=Ir,Ir.__cache__={},a.PeMath=Ir,Ir.prototype.phi_to_eta=Ir.prototype.phi_to_eta=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),Ao(m,L)},Ir.prototype.eta_to_phi=Ir.prototype.eta_to_phi=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),ud(m,L)},Ir.prototype.phi_to_phig=Ir.prototype.phi_to_phig=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),dd(m,L)},Ir.prototype.q=Ir.prototype.q=function(m,L,j){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),j&&typeof j=="object"&&(j=j.ptr),pd(m,L,j)},Ir.prototype.q90=Ir.prototype.q90=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),fd(m,L)},_t.prototype=Object.create(ot.prototype),_t.prototype.constructor=_t,_t.prototype.__class__=_t,_t.__cache__={},a.PeNotationMgrs=_t,_t.prototype.get_PE_MGRS_STYLE_NEW=_t.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return md(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_NEW",{get:_t.prototype.get_PE_MGRS_STYLE_NEW}),_t.prototype.get_PE_MGRS_STYLE_OLD=_t.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return hd(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_OLD",{get:_t.prototype.get_PE_MGRS_STYLE_OLD}),_t.prototype.get_PE_MGRS_STYLE_AUTO=_t.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return ra(m)},Object.defineProperty(_t.prototype,"PE_MGRS_STYLE_AUTO",{get:_t.prototype.get_PE_MGRS_STYLE_AUTO}),_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS=_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return gd(m)},Object.defineProperty(_t.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:_t.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),_t.prototype.get_PE_MGRS_ADD_SPACES=_t.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return cs(m)},Object.defineProperty(_t.prototype,"PE_MGRS_ADD_SPACES",{get:_t.prototype.get_PE_MGRS_ADD_SPACES}),jt.prototype=Object.create(ot.prototype),jt.prototype.constructor=jt,jt.prototype.__class__=jt,jt.__cache__={},a.PeNotationUtm=jt,jt.prototype.get_PE_UTM_OPTS_NONE=jt.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return wd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NONE",{get:jt.prototype.get_PE_UTM_OPTS_NONE}),jt.prototype.get_PE_UTM_OPTS_NS=jt.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return na(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NS",{get:jt.prototype.get_PE_UTM_OPTS_NS}),jt.prototype.get_PE_UTM_OPTS_NS_STRICT=jt.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return yd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_NS_STRICT",{get:jt.prototype.get_PE_UTM_OPTS_NS_STRICT}),jt.prototype.get_PE_UTM_OPTS_ADD_SPACES=jt.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return bd(m)},Object.defineProperty(jt.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:jt.prototype.get_PE_UTM_OPTS_ADD_SPACES}),rn.prototype=Object.create(Gt.prototype),rn.prototype.constructor=rn,rn.prototype.__class__=rn,rn.__cache__={},a.PeParameter=rn,rn.prototype.getValue=rn.prototype.getValue=function(){var m=this.ptr;return il(m)},rn.prototype.getCode=rn.prototype.getCode=function(){var m=this.ptr;return Io(m)},rn.prototype.getName=rn.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(ti(L,m))},rn.prototype.getType=rn.prototype.getType=function(){var m=this.ptr;return ol(m)},qe.prototype=Object.create(ot.prototype),qe.prototype.constructor=qe,qe.prototype.__class__=qe,qe.__cache__={},a.PePCSInfo=qe,qe.prototype.getCentralMeridian=qe.prototype.getCentralMeridian=function(){var m=this.ptr;return ia(m)},qe.prototype.getDomainMinx=qe.prototype.getDomainMinx=function(){var m=this.ptr;return vd(m)},qe.prototype.getDomainMiny=qe.prototype.getDomainMiny=function(){var m=this.ptr;return _d(m)},qe.prototype.getDomainMaxx=qe.prototype.getDomainMaxx=function(){var m=this.ptr;return Sd(m)},qe.prototype.getDomainMaxy=qe.prototype.getDomainMaxy=function(){var m=this.ptr;return xd(m)},qe.prototype.getNorthPoleLocation=qe.prototype.getNorthPoleLocation=function(){var m=this.ptr;return Ed(m)},qe.prototype.getNorthPoleGeometry=qe.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Cd(m)},qe.prototype.getSouthPoleLocation=qe.prototype.getSouthPoleLocation=function(){var m=this.ptr;return Td(m)},qe.prototype.getSouthPoleGeometry=qe.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Pd(m)},qe.prototype.isDensificationNeeded=qe.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Md(m)},qe.prototype.isGcsHorizonMultiOverlap=qe.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!Ad(m)},qe.prototype.isPannableRectangle=qe.prototype.isPannableRectangle=function(){var m=this.ptr;return!!f(m)},qe.prototype.generate=qe.prototype.generate=function(m,L){return m&&typeof m=="object"&&(m=m.ptr),L&&typeof L=="object"&&(L=L.ptr),tr(p(m,L),qe)},qe.prototype.get_PE_PCSINFO_OPTION_NONE=qe.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(qe.prototype,"PE_PCSINFO_OPTION_NONE",{get:qe.prototype.get_PE_PCSINFO_OPTION_NONE}),qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN=qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(qe.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:qe.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return C(m)},Object.defineProperty(qe.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:qe.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),qe.prototype.get_PE_POLE_POINT=qe.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return T(m)},Object.defineProperty(qe.prototype,"PE_POLE_POINT",{get:qe.prototype.get_PE_POLE_POINT}),Ur.prototype=Object.create(Gt.prototype),Ur.prototype.constructor=Ur,Ur.prototype.__class__=Ur,Ur.__cache__={},a.PePrimem=Ur,Ur.prototype.getLongitude=Ur.prototype.getLongitude=function(){var m=this.ptr;return A(m)},Ur.prototype.getCode=Ur.prototype.getCode=function(){var m=this.ptr;return O(m)},Ur.prototype.getName=Ur.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(R(L,m))},Ur.prototype.getType=Ur.prototype.getType=function(){var m=this.ptr;return U(m)},ut.prototype=Object.create(Tr.prototype),ut.prototype.constructor=ut,ut.prototype.__class__=ut,ut.__cache__={},a.PeProjcs=ut,ut.prototype.Delete=ut.prototype.Delete=function(){var m=this.ptr;D(m)},ut.prototype.getGeogcs=ut.prototype.getGeogcs=function(){var m=this.ptr;return tr(Z(m),mt)},ut.prototype.getProjection=ut.prototype.getProjection=function(){var m=this.ptr;return tr(oe(m),Gt)},ut.prototype.getParameters=ut.prototype.getParameters=function(){var m=this.ptr;return ge(m)},ut.prototype.getUnit=ut.prototype.getUnit=function(){var m=this.ptr;return tr(he(m),Pr)},ut.prototype.loadConstants=ut.prototype.loadConstants=function(){var m=this.ptr;return!!be(m)},ut.prototype.horizonGcsGenerate=ut.prototype.horizonGcsGenerate=function(){var m=this.ptr;return tr(ke(m),dr)},ut.prototype.horizonPcsGenerate=ut.prototype.horizonPcsGenerate=function(){var m=this.ptr;return tr(Ae(m),dr)},ut.prototype.isEqual=ut.prototype.isEqual=function(m){var L=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Fe(L,m)},ut.prototype.getCode=ut.prototype.getCode=function(){var m=this.ptr;return Xe(m)},ut.prototype.getName=ut.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Ke(L,m))},ut.prototype.getType=ut.prototype.getType=function(){var m=this.ptr;return Be(m)},br.prototype=Object.create(Gt.prototype),br.prototype.constructor=br,br.prototype.__class__=br,br.__cache__={},a.PeSpheroid=br,br.prototype.getAxis=br.prototype.getAxis=function(){var m=this.ptr;return Je(m)},br.prototype.getFlattening=br.prototype.getFlattening=function(){var m=this.ptr;return wr(m)},br.prototype.getCode=br.prototype.getCode=function(){var m=this.ptr;return vt(m)},br.prototype.getName=br.prototype.getName=function(m){var L=this.ptr;return He.prepare(),typeof m=="object"&&(m=zn(m)),hr(Dr(L,m))},br.prototype.getType=br.prototype.getType=function(){var m=this.ptr;return gn(m)},Wi.prototype=Object.create(ot.prototype),Wi.prototype.constructor=Wi,Wi.prototype.__class__=Wi,Wi.__cache__={},a.PeVersion=Wi,Wi.prototype.version_string=Wi.prototype.version_string=function(){var m=this.ptr;return hr(Tn(m))},a.ensureCache=He,a.ensureString=Of,a.ensureInt8=zn,a.ensureInt16=cv,a.ensureInt32=lv,a.ensureFloat32=uv,a.ensureFloat64=dv,d},t.exports=r),vR.exports;var t,e,r}var bR,vR,XX,JX,SR=N(()=>{gR();vR={exports:{}};XX=hR(ZX()),JX=Object.freeze(Object.defineProperty({__proto__:null,default:XX},Symbol.toStringTag,{value:"Module"}))});function xR(){return!!W}function QX(){return!!pe("esri-wasm")}function ER(){return H5||(H5=Promise.resolve().then(()=>(SR(),_R)).then(t=>t.p).then(({default:t})=>t({locateFile:e=>Bp(`esri/geometry/support/${e}`)})).then(t=>{PR(t)}),H5)}function PR(t){function e(o,s,c){o[s]=c(o[s])}W=t,zt.init(),Nb.init(),Rb.init(),Db.init(),$b.init(),CR=class extends W.PeDouble{constructor(o=NaN){super(o)}destroy(){W.destroy(this)}[Symbol.dispose](){this.destroy()}},TR=class extends W.PeGCSExtent{destroy(){W.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[W.PeAngunit,W.PeDatum,W.PeGeogcs,W.PeGeogtran,W.PeObject,W.PeParameter,W.PePrimem,W.PeProjcs,W.PeSpheroid,W.PeUnit];for(let o of r)e(o.prototype,"getName",s=>function(){return s.call(this,new Array(zt.PE_NAME_MAX))});for(let o of[W.PeGeogtran,W.PeProjcs])e(o.prototype,"getParameters",s=>function(){let c=new Array(zt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<c.length;d++){let h=W.getValue(a,"*");c[d]=h?W.wrapPointer(h,W.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return c});e(W.PeHorizon.prototype,"getCoord",o=>function(s=!1){let c=this.getSize();if(!c)return null;let a=[];return pc(a,c,o.call(this),s),a}),e(W.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=W._pe_getPeGTlistExtendedGTsSize();return function(){let c=null,a=o.call(this);if(!W.compare(a,W.NULL)){c=[a];let d=this.getSteps();if(d>1){let h=W.getPointer(a);for(let g=1;g<d;g++)c.push(W.wrapPointer(h+s*g,W.PeGTlistExtendedGTs))}}return c}});let n=W._pe_getPeHorizonSize(),i=o=>function(){let s=this._cache;if(s||(s=new Map,this._cache=s),s.has(o))return s.get(o);let c=null,a=o.call(this);if(!W.compare(a,W.NULL)){c=[a];let d=a.getNump();if(d>1){let h=W.getPointer(a);for(let g=1;g<d;g++)c.push(W.wrapPointer(h+n*g,W.PeHorizon))}}return s.set(o,c),c};e(W.PeProjcs.prototype,"horizonGcsGenerate",i),e(W.PeProjcs.prototype,"horizonPcsGenerate",i),W.PeObject.prototype.toString=function(o=zt.PE_STR_OPTS_NONE){W.ensureCache.prepare();let s=W.getPointer(this),c=W.ensureInt8(new Array(zt.PE_BUFFER_MAX));return W.UTF8ToString(W._pe_object_to_string_ext(s,o,c))},W.PeGeogcs.prototype.destroy=function(){this.Delete(),wo(this),this.ptr=0},W.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},W.PeProjcs.prototype.destroy=function(){this.Delete(),wo(this),this.ptr=0},W.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function wo(t){if(!t)return;let e=W.getClass(t);if(!e)return;let r=W.getCache(e);if(!r)return;let n=W.getPointer(t);n&&delete r[n]}function kb(t,e){let r=[],n=new Array(e);for(let i=0;i<t;i++)r.push(W.ensureInt8(n));return r}function ou(t){return ArrayBuffer.isView(t)?t:Array.isArray(t[0])?t.flat():t}function pc(t,e,r,n=!1){if(n)for(let i=0;i<2*e;i++)t[i]=W.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=t.length===0;for(let o=0;o<e;o++)i&&(t[o]=new Array(2)),t[o][0]=W.getValue(r,"double"),t[o][1]=W.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var H5,W,Y5,zt,CR,Ob,TR,Nb,Z5,X5,J5,Q5,K5,Rb,eE,Db,$b,tE,sxe,MR=N(()=>{Bw();St();W=null;(function(t){function e(o,s,c){W.ensureCache.prepare();let a=ou(c),d=c===a,h=W.ensureFloat64(a),g=W._pe_geog_to_proj(W.getPointer(o),s,h);return g&&pc(c,s,h,d),g}function r(o,s,c,a){switch(a){case zt.PE_TRANSFORM_P_TO_G:return n(o,s,c);case zt.PE_TRANSFORM_G_TO_P:return e(o,s,c)}return 0}function n(o,s,c){return i(o,s,c,0)}function i(o,s,c,a){W.ensureCache.prepare();let d=ou(c),h=c===d,g=W.ensureFloat64(d),v=W._pe_proj_to_geog_center(W.getPointer(o),s,g,a);return v&&pc(c,s,g,h),v}t.geogToProj=e,t.projGeog=r,t.projToGeog=n,t.projToGeogCenter=i})(Y5||(Y5={})),function(t){function e(){t.PE_BUFFER_MAX=W.PeDefs.prototype.PE_BUFFER_MAX,t.PE_NAME_MAX=W.PeDefs.prototype.PE_NAME_MAX,t.PE_MGRS_MAX=W.PeDefs.prototype.PE_MGRS_MAX,t.PE_USNG_MAX=W.PeDefs.prototype.PE_USNG_MAX,t.PE_DD_MAX=W.PeDefs.prototype.PE_DD_MAX,t.PE_DDM_MAX=W.PeDefs.prototype.PE_DDM_MAX,t.PE_DMS_MAX=W.PeDefs.prototype.PE_DMS_MAX,t.PE_UTM_MAX=W.PeDefs.prototype.PE_UTM_MAX,t.PE_PARM_MAX=W.PeDefs.prototype.PE_PARM_MAX,t.PE_TYPE_NONE=W.PeDefs.prototype.PE_TYPE_NONE,t.PE_TYPE_GEOGCS=W.PeDefs.prototype.PE_TYPE_GEOGCS,t.PE_TYPE_PROJCS=W.PeDefs.prototype.PE_TYPE_PROJCS,t.PE_TYPE_GEOGTRAN=W.PeDefs.prototype.PE_TYPE_GEOGTRAN,t.PE_TYPE_COORDSYS=W.PeDefs.prototype.PE_TYPE_COORDSYS,t.PE_TYPE_UNIT=W.PeDefs.prototype.PE_TYPE_UNIT,t.PE_TYPE_LINUNIT=W.PeDefs.prototype.PE_TYPE_LINUNIT,t.PE_STR_OPTS_NONE=W.PeDefs.prototype.PE_STR_OPTS_NONE,t.PE_STR_AUTH_NONE=W.PeDefs.prototype.PE_STR_AUTH_NONE,t.PE_STR_AUTH_TOP=W.PeDefs.prototype.PE_STR_AUTH_TOP,t.PE_STR_NAME_CANON=W.PeDefs.prototype.PE_STR_NAME_CANON,t.PE_STR_FMT_WKT=W.PeDefs.prototype.PE_STR_FMT_WKT,t.PE_STR_FMT_WKT2=W.PeDefs.prototype.PE_STR_FMT_WKT2,t.PE_PARM_X0=W.PeDefs.prototype.PE_PARM_X0,t.PE_PARM_ND=W.PeDefs.prototype.PE_PARM_ND,t.PE_TRANSFORM_1_TO_2=W.PeDefs.prototype.PE_TRANSFORM_1_TO_2,t.PE_TRANSFORM_2_TO_1=W.PeDefs.prototype.PE_TRANSFORM_2_TO_1,t.PE_TRANSFORM_P_TO_G=W.PeDefs.prototype.PE_TRANSFORM_P_TO_G,t.PE_TRANSFORM_G_TO_P=W.PeDefs.prototype.PE_TRANSFORM_G_TO_P,t.PE_HORIZON_RECT=W.PeDefs.prototype.PE_HORIZON_RECT,t.PE_HORIZON_POLY=W.PeDefs.prototype.PE_HORIZON_POLY,t.PE_HORIZON_LINE=W.PeDefs.prototype.PE_HORIZON_LINE,t.PE_HORIZON_DELTA=W.PeDefs.prototype.PE_HORIZON_DELTA}t.init=e}(zt||(zt={}));CR=null;(function(t){let e={},r={},n=E=>{let M=E.getType();switch(M){case zt.PE_TYPE_GEOGCS:E=W.castObject(E,W.PeGeogcs);break;case zt.PE_TYPE_PROJCS:E=W.castObject(E,W.PeProjcs);break;case zt.PE_TYPE_GEOGTRAN:E=W.castObject(E,W.PeGeogtran);break;default:M&zt.PE_TYPE_UNIT&&(E=W.castObject(E,W.PeUnit))}return E};function i(){W.PeFactory.prototype.initialize(null)}function o(E){return s(zt.PE_TYPE_COORDSYS,E)}function s(E,M){let k=null,$=e[E];if($||($={},e[E]=$),$.hasOwnProperty(String(M))&&(k=$[M],W.compare(k,W.NULL)&&(k=null)),!k){let z=W.PeFactory.prototype.factoryByType(E,M);W.compare(z,W.NULL)||(k=n(z),$[M]=k)}return k}function c(E,M){let k=null,$=r[E];if($||($={},r[E]=$),$.hasOwnProperty(M)&&(k=$[M],W.compare(k,W.NULL)&&(k=null)),!k){let z=W.PeFactory.prototype.fromString(E,M);W.compare(z,W.NULL)||(k=n(z),$[M]=k)}return k}function a(E){return s(zt.PE_TYPE_GEOGCS,E)}function d(E){return s(zt.PE_TYPE_GEOGTRAN,E)}function h(E){return W.PeFactory.prototype.getCode(E)}function g(E){return s(zt.PE_TYPE_PROJCS,E)}function v(E){return s(zt.PE_TYPE_UNIT,E)}t.initialize=i,t.coordsys=o,t.factoryByType=s,t.fromString=c,t.geogcs=a,t.geogtran=d,t.getCode=h,t.projcs=g,t.unit=v})(Ob||(Ob={}));TR=null;(function(t){let e;function r(){t.PE_GTLIST_OPTS_COMMON=W.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,e=W._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,c,a,d){let h=null,g=new W.PeInteger(d);try{let v=W.PeGTlistExtended.prototype.getGTlist(i,o,s,c,a,g);if((d=g.val)&&(h=[v],d>1)){let E=W.getPointer(v);for(let M=1;M<d;M++)h.push(W.wrapPointer(E+e*M,W.PeGTlistExtendedEntry))}}finally{W.destroy(g)}return h}t.init=r,t.getGTlist=n})(Nb||(Nb={})),function(t){function e(r){if(r?.length){for(let n of r)wo(n),n.getEntries().forEach(i=>{wo(i);let o=i.getGeogtran();wo(o),o.getParameters().forEach(wo),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{wo(s);let c=s.getDatum();wo(c),wo(c.getSpheroid()),wo(s.getPrimem()),wo(s.getUnit())})});W.PeGTlistExtendedEntry.prototype.Delete(r[0])}}t.destroy=e}(Z5||(Z5={})),function(t){function e(r,n,i,o,s){W.ensureCache.prepare();let c=ou(i),a=i===c,d=W.ensureFloat64(c),h=0;o&&(h=W.ensureFloat64(o));let g=W._pe_geog_to_geog(W.getPointer(r),n,d,h,s);return g&&pc(i,n,d,a),g}t.geogToGeog=e}(X5||(X5={})),function(t){function e(o,s,c,a,d,h,g,v){W.PeLineType.prototype.geodesic_coordinate(o,s,c,a,d,h,g,v)}function r(o,s,c,a,d,h,g,v,E){W.PeLineType.prototype.geodetic_coordinate(o,s,c,a,d,h,g,v,E)}function n(o,s,c,a,d,h,g,v,E,M){W.PeLineType.prototype.geodetic_distance(o,s,c,a,d,h,g,v,E,M)}function i(o,s,c,a,d,h,g,v,E){W.PeLineType.prototype.great_elliptic_distance(o,s,c,a,d,h,g,v,E)}t.geodesicCoordinate=e,t.geodeticCoordinate=r,t.geodeticDistance=n,t.greatEllipticDistance=i}(J5||(J5={})),function(t){function e(s,c){return W.PeMath.prototype.phi_to_eta(s,c)}function r(s,c){return W.PeMath.prototype.eta_to_phi(s,c)}function n(s,c){return W.PeMath.prototype.phi_to_phig(s,c)}function i(s,c,a){return W.PeMath.prototype.q(s,c,a)}function o(s,c){return W.PeMath.prototype.q90(s,c)}t.phiToEta=e,t.etaToPhi=r,t.phiToPhig=n,t.q=i,t.q90=o}(Q5||(Q5={})),function(t){let e=(d,h,g,v,E,M)=>{let k,$;switch(W.ensureCache.prepare(),d){case"dd":k=W._pe_geog_to_dd,$=zt.PE_DD_MAX;break;case"ddm":k=W._pe_geog_to_ddm,$=zt.PE_DDM_MAX;break;case"dms":k=W._pe_geog_to_dms,$=zt.PE_DMS_MAX}let z=0;h&&(z=W.getPointer(h));let B=ou(v),q=W.ensureFloat64(B),V=kb(g,$),X=k(z,g,q,E,W.ensureInt32(V));if(X)for(let te=0;te<g;te++)M[te]=W.UTF8ToString(V[te]);return X},r=(d,h,g,v,E)=>{let M;switch(W.ensureCache.prepare(),d){case"dd":M=W._pe_dd_to_geog;break;case"ddm":M=W._pe_ddm_to_geog;break;case"dms":M=W._pe_dms_to_geog}let k=0;h&&(k=W.getPointer(h));let $=v.map(V=>W.ensureString(V)),z=W.ensureInt32($),B=W.ensureFloat64(new Array(2*g)),q=M(k,g,z,B);return q&&pc(E,g,B),q};function n(d,h,g,v,E){return e("dms",d,h,g,v,E)}function i(d,h,g,v){return r("dms",d,h,g,v)}function o(d,h,g,v,E){return e("ddm",d,h,g,v,E)}function s(d,h,g,v){return r("ddm",d,h,g,v)}function c(d,h,g,v,E){return e("dd",d,h,g,v,E)}function a(d,h,g,v){return r("dd",d,h,g,v)}t.geogToDms=n,t.dmsToGeog=i,t.geogToDdm=o,t.ddmToGeog=s,t.geogToDd=c,t.ddToGeog=a}(K5||(K5={})),function(t){function e(){t.PE_MGRS_STYLE_NEW=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,t.PE_MGRS_STYLE_OLD=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,t.PE_MGRS_STYLE_AUTO=W.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,t.PE_MGRS_180_ZONE_1_PLUS=W.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,t.PE_MGRS_ADD_SPACES=W.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,c,a,d,h){W.ensureCache.prepare();let g=0;i&&(g=W.getPointer(i));let v=ou(s),E=W.ensureFloat64(v),M=kb(o,zt.PE_MGRS_MAX),k=W.ensureInt32(M),$=W._pe_geog_to_mgrs_extended(g,o,E,c,a,d,k);if($)for(let z=0;z<o;z++)h[z]=W.UTF8ToString(M[z]);return $}function n(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=s.map(M=>W.ensureString(M)),g=W.ensureInt32(h),v=W.ensureFloat64(new Array(2*o)),E=W._pe_mgrs_to_geog_extended(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToMgrsExtended=r,t.mgrsToGeogExtended=n}(Rb||(Rb={})),function(t){function e(n,i,o,s,c,a,d){W.ensureCache.prepare();let h=0;n&&(h=W.getPointer(n));let g=ou(o),v=W.ensureFloat64(g),E=kb(i,zt.PE_MGRS_MAX),M=W.ensureInt32(E),k=W._pe_geog_to_usng(h,i,v,s,c,a,M);if(k)for(let $=0;$<i;$++)d[$]=W.UTF8ToString(E[$]);return k}function r(n,i,o,s){W.ensureCache.prepare();let c=0;n&&(c=W.getPointer(n));let a=o.map(v=>W.ensureString(v)),d=W.ensureInt32(a),h=W.ensureFloat64(new Array(2*i)),g=W._pe_usng_to_geog(c,i,d,h);return g&&pc(s,i,h),g}t.geogToUsng=e,t.usngToGeog=r}(eE||(eE={})),function(t){function e(){t.PE_UTM_OPTS_NONE=W.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,t.PE_UTM_OPTS_ADD_SPACES=W.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,t.PE_UTM_OPTS_NS=W.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=ou(s),g=W.ensureFloat64(h),v=kb(o,zt.PE_UTM_MAX),E=W.ensureInt32(v),M=W._pe_geog_to_utm(d,o,g,c,E);if(M)for(let k=0;k<o;k++)a[k]=W.UTF8ToString(v[k]);return M}function n(i,o,s,c,a){W.ensureCache.prepare();let d=0;i&&(d=W.getPointer(i));let h=s.map(M=>W.ensureString(M)),g=W.ensureInt32(h),v=W.ensureFloat64(new Array(2*o)),E=W._pe_utm_to_geog(d,o,g,c,v);return E&&pc(a,o,v),E}t.init=e,t.geogToUtm=r,t.utmToGeog=n}(Db||(Db={})),function(t){let e=new Map;function r(){t.PE_PCSINFO_OPTION_NONE=W.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,t.PE_PCSINFO_OPTION_DOMAIN=W.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,t.PE_POLE_OUTSIDE_BOUNDARY=W.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,t.PE_POLE_POINT=W.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=t.PE_PCSINFO_OPTION_DOMAIN){let s=null,c=null;return e.has(i)&&(c=e.get(i),c[o]&&(s=c[o])),s||(s=W.PePCSInfo.prototype.generate(i,o),c||(c=[],e.set(i,c)),c[o]=s),s}t.init=r,t.generate=n}($b||($b={})),function(t){function e(){return W.PeVersion.prototype.version_string()}t.versionString=e}(tE||(tE={}));sxe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return Y5},get PeDefs(){return zt},get PeDouble(){return CR},get PeFactory(){return Ob},get PeGCSExtent(){return TR},get PeGTTransformations(){return X5},get PeGTlistExtended(){return Nb},get PeGTlistExtendedEntry(){return Z5},get PeLineType(){return J5},get PeMath(){return Q5},get PeNotationDms(){return K5},get PeNotationMgrs(){return Rb},get PeNotationUsng(){return eE},get PeNotationUtm(){return Db},get PePCSInfo(){return $b},get PeVersion(){return tE},_init:PR,get _pe(){return W},isLoaded:xR,isSupported:QX,load:ER},Symbol.toStringTag,{value:"Module"}))});var _f,AR=N(()=>{(function(t){t[t.CGCS2000=4490]="CGCS2000",t[t.GCSMARS2000=104971]="GCSMARS2000",t[t.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",t[t.GCSMOON2000=104903]="GCSMOON2000"})(_f||(_f={}))});var l,P,rE=N(()=>{P={values:[1,.3048,.3048006096012192,.3047972654,.9143917962,.201166195164,.9143984146160287,.3047994715386762,20.11676512155263,20.11678249437587,.9143985307444408,.91439523,.3047997101815088,20.1168,20.116756,5e4,15e4],units:["Meter","Foot","Foot_US","Foot_Clarke","Yard_Clarke","Link_Clarke","Yard_Sears","Foot_Sears","Chain_Sears","Chain_Benoit_1895_B","Yard_Indian","Yard_Indian_1937","Foot_Gold_Coast","Chain","Chain_Sears_1922_Truncated","50_Kilometers","150_Kilometers"],2066:5,2136:12,2155:2,2157:0,2158:0,2159:12,2160:12,2204:2,2219:0,2220:0,2254:2,2255:2,2256:1,2265:1,2266:1,2267:2,2268:2,2269:1,2270:1,2271:2,2272:2,2273:1,2294:0,2295:0,2314:3,2899:2,2900:2,2901:1,2909:1,2910:1,2911:2,2912:2,2913:1,2914:1,2992:1,2993:0,2994:1,3080:1,3089:2,3090:0,3091:2,3102:2,3141:0,3142:0,3167:14,3359:2,3360:0,3361:1,3362:0,3363:2,3364:0,3365:2,3366:3,3404:2,3405:0,3406:0,3407:3,3439:0,3440:0,3479:1,3480:0,3481:1,3482:0,3483:1,3484:0,3485:2,3486:0,3487:2,3488:0,3489:0,3490:2,3491:0,3492:2,3493:0,3494:2,3495:0,3496:2,3497:0,3498:2,3499:0,3500:2,3501:0,3502:2,3503:0,3504:2,3505:0,3506:2,3507:0,3508:2,3509:0,3510:2,3511:0,3512:2,3513:0,3514:0,3515:2,3516:0,3517:2,3518:0,3519:2,3520:0,3521:2,3522:0,3523:2,3524:0,3525:2,3526:0,3527:2,3528:0,3529:2,3530:0,3531:2,3532:0,3533:2,3534:0,3535:2,3536:0,3537:2,3538:0,3539:2,3540:0,3541:2,3542:0,3543:2,3544:0,3545:2,3546:0,3547:2,3548:0,3549:2,3550:0,3551:2,3552:0,3553:2,3582:2,3583:0,3584:2,3585:0,3586:2,3587:0,3588:1,3589:0,3590:1,3591:0,3592:0,3593:1,3598:2,3599:0,3600:2,3605:1,3606:0,3607:0,3608:2,3609:0,3610:2,3611:0,3612:2,3613:0,3614:2,3615:0,3616:2,3617:0,3618:2,3619:0,3620:2,3621:0,3622:2,3623:0,3624:2,3625:0,3626:2,3627:0,3628:2,3629:0,3630:2,3631:0,3632:2,3633:0,3634:1,3635:0,3636:1,3640:2,3641:0,3642:2,3643:0,3644:1,3645:0,3646:1,3647:0,3648:1,3649:0,3650:2,3651:0,3652:2,3653:0,3654:2,3655:0,3656:1,3657:0,3658:2,3659:0,3660:2,3661:0,3662:2,3663:0,3664:2,3668:2,3669:0,3670:2,3671:0,3672:2,3673:0,3674:2,3675:0,3676:1,3677:2,3678:0,3679:1,3680:2,3681:0,3682:1,3683:2,3684:0,3685:0,3686:2,3687:0,3688:2,3689:0,3690:2,3691:0,3692:2,3696:2,3697:0,3698:2,3699:0,3700:2,3793:0,3794:0,3812:0,3854:0,3857:0,3920:0,3978:0,3979:0,3991:2,3992:2,4026:0,4037:0,4038:0,4071:0,4082:0,4083:0,4087:0,4088:0,4217:2,4414:0,4415:0,4417:0,4434:0,4437:0,4438:2,4439:2,4462:0,4467:0,4471:0,4474:0,4559:0,4647:0,4822:0,4826:0,4839:0,5018:0,5041:0,5042:0,5048:0,5221:0,5223:0,5234:0,5235:0,5243:0,5247:0,5266:0,5316:0,5320:0,5321:0,5325:0,5337:0,5361:0,5362:0,5367:0,5382:0,5383:0,5396:0,5456:0,5457:0,5469:0,5472:4,5490:0,5513:0,5514:0,5523:0,5559:0,5588:1,5589:3,5596:0,5627:0,5629:0,5641:0,5643:0,5644:0,5646:2,5654:2,5655:2,5659:0,5700:0,5825:0,5836:0,5837:0,5839:0,5842:0,5844:0,5858:0,5879:0,5880:0,5887:0,5890:0,6128:1,6129:1,6141:1,6204:0,6210:0,6211:0,6307:0,6312:0,6316:0,6362:0,6391:1,6405:1,6406:0,6407:1,6408:0,6409:1,6410:0,6411:2,6412:0,6413:2,6414:0,6415:0,6416:2,6417:0,6418:2,6419:0,6420:2,6421:0,6422:2,6423:0,6424:2,6425:0,6426:2,6427:0,6428:2,6429:0,6430:2,6431:0,6432:2,6433:0,6434:2,6435:0,6436:2,6437:0,6438:2,6439:0,6440:0,6441:2,6442:0,6443:2,6444:0,6445:2,6446:0,6447:2,6448:0,6449:2,6450:0,6451:2,6452:0,6453:2,6454:0,6455:2,6456:0,6457:2,6458:0,6459:2,6460:0,6461:2,6462:0,6463:2,6464:0,6465:2,6466:0,6467:2,6468:0,6469:2,6470:0,6471:2,6472:0,6473:2,6474:0,6475:2,6476:0,6477:2,6478:0,6479:2,6484:2,6485:0,6486:2,6487:0,6488:2,6489:0,6490:2,6491:0,6492:2,6493:0,6494:1,6495:0,6496:1,6497:0,6498:0,6499:1,6500:0,6501:2,6502:0,6503:2,6504:0,6505:2,6506:0,6507:2,6508:0,6509:0,6510:2,6515:1,6516:0,6518:0,6519:2,6520:0,6521:2,6522:0,6523:2,6524:0,6525:2,6526:0,6527:2,6528:0,6529:2,6530:0,6531:2,6532:0,6533:2,6534:0,6535:2,6536:0,6537:2,6538:0,6539:2,6540:0,6541:2,6542:0,6543:2,6544:0,6545:1,6546:0,6547:1,6548:0,6549:2,6550:0,6551:2,6552:0,6553:2,6554:0,6555:2,6556:0,6557:1,6558:0,6559:1,6560:0,6561:1,6562:0,6563:2,6564:0,6565:2,6566:0,6567:0,6568:2,6569:0,6570:1,6571:0,6572:2,6573:0,6574:2,6575:0,6576:2,6577:0,6578:2,6582:2,6583:0,6584:2,6585:0,6586:2,6587:0,6588:2,6589:0,6590:2,6591:0,6592:0,6593:2,6594:0,6595:2,6596:0,6597:2,6598:0,6599:2,6600:0,6601:2,6602:0,6603:2,6605:2,6606:0,6607:2,6608:0,6609:2,6610:0,6611:0,6612:2,6613:0,6614:2,6615:0,6616:2,6617:0,6618:2,6633:2,6646:0,6703:0,6784:0,6785:1,6786:0,6787:1,6788:0,6789:1,6790:0,6791:1,6792:0,6793:1,6794:0,6795:1,6796:0,6797:1,6798:0,6799:1,6800:0,6801:1,6802:0,6803:1,6804:0,6805:1,6806:0,6807:1,6808:0,6809:1,6810:0,6811:1,6812:0,6813:1,6814:0,6815:1,6816:0,6817:1,6818:0,6819:1,6820:0,6821:1,6822:0,6823:1,6824:0,6825:1,6826:0,6827:1,6828:0,6829:1,6830:0,6831:1,6832:0,6833:1,6834:0,6835:1,6836:0,6837:1,6838:0,6839:1,6840:0,6841:1,6842:0,6843:1,6844:0,6845:1,6846:0,6847:1,6848:0,6849:1,6850:0,6851:1,6852:0,6853:1,6854:0,6855:1,6856:0,6857:1,6858:0,6859:1,6860:0,6861:1,6862:0,6863:1,6867:0,6868:1,6870:0,6875:0,6876:0,6879:0,6880:2,6884:0,6885:1,6886:0,6887:1,6915:0,6922:0,6923:2,6924:0,6925:2,6962:0,6984:0,6991:0,7128:2,7131:0,7132:2,7142:0,7257:0,7258:2,7259:0,7260:2,7261:0,7262:2,7263:0,7264:2,7265:0,7266:2,7267:0,7268:2,7269:0,7270:2,7271:0,7272:2,7273:0,7274:2,7275:0,7276:2,7277:0,7278:2,7279:0,7280:2,7281:0,7282:2,7283:0,7284:2,7285:0,7286:2,7287:0,7288:2,7289:0,7290:2,7291:0,7292:2,7293:0,7294:2,7295:0,7296:2,7297:0,7298:2,7299:0,7300:2,7301:0,7302:2,7303:0,7304:2,7305:0,7306:2,7307:0,7308:2,7309:0,7310:2,7311:0,7312:2,7313:0,7314:2,7315:0,7316:2,7317:0,7318:2,7319:0,7320:2,7321:0,7322:2,7323:0,7324:2,7325:0,7326:2,7327:0,7328:2,7329:0,7330:2,7331:0,7332:2,7333:0,7334:2,7335:0,7336:2,7337:0,7338:2,7339:0,7340:2,7341:0,7342:2,7343:0,7344:2,7345:0,7346:2,7347:0,7348:2,7349:0,7350:2,7351:0,7352:2,7353:0,7354:2,7355:0,7356:2,7357:0,7358:2,7359:0,7360:2,7361:0,7362:2,7363:0,7364:2,7365:0,7366:2,7367:0,7368:2,7369:0,7370:2,7877:0,7878:0,7882:0,7883:0,7887:0,7899:0,7991:0,7992:0,8035:2,8036:2,8058:0,8059:0,8082:0,8083:0,8088:0,8090:0,8091:2,8092:0,8093:2,8095:0,8096:2,8097:0,8098:2,8099:0,8100:2,8101:0,8102:2,8103:0,8104:2,8105:0,8106:2,8107:0,8108:2,8109:0,8110:2,8111:0,8112:2,8113:0,8114:2,8115:0,8116:2,8117:0,8118:2,8119:0,8120:2,8121:0,8122:2,8123:0,8124:2,8125:0,8126:2,8127:0,8128:2,8129:0,8130:2,8131:0,8132:2,8133:0,8134:2,8135:0,8136:2,8137:0,8138:2,8139:0,8140:2,8141:0,8142:2,8143:0,8144:2,8145:0,8146:2,8147:0,8148:2,8149:0,8150:2,8151:0,8152:2,8153:0,8154:2,8155:0,8156:2,8157:0,8158:2,8159:0,8160:2,8161:0,8162:2,8163:0,8164:2,8165:0,8166:2,8167:0,8168:2,8169:0,8170:2,8171:0,8172:2,8173:0,8177:2,8179:0,8180:2,8181:0,8182:2,8184:0,8185:2,8187:0,8189:2,8191:0,8193:2,8196:0,8197:2,8198:0,8200:2,8201:0,8202:2,8203:0,8204:2,8205:0,8206:2,8207:0,8208:2,8209:0,8210:2,8212:0,8213:2,8214:0,8216:2,8218:0,8220:2,8222:0,8224:2,8225:0,8226:2,8311:0,8312:1,8313:0,8314:1,8315:0,8316:1,8317:0,8318:1,8319:0,8320:1,8321:0,8322:1,8323:0,8324:1,8325:0,8326:1,8327:0,8328:1,8329:0,8330:1,8331:0,8332:1,8333:0,8334:1,8335:0,8336:1,8337:0,8338:1,8339:0,8340:1,8341:0,8342:1,8343:0,8344:1,8345:0,8346:1,8347:0,8348:1,8352:0,8353:0,8379:0,8380:2,8381:0,8382:2,8383:0,8384:2,8385:0,8387:2,8391:0,8395:0,8433:0,8441:0,8455:0,8456:0,8531:2,8682:0,8686:0,8687:0,8692:0,8693:0,8826:0,8903:0,8950:0,8951:0,9039:0,9040:0,9141:0,9149:0,9150:0,9191:0,9221:0,9222:0,9249:0,9250:0,9252:0,9254:0,9265:0,9284:0,9285:0,9300:0,9354:0,9367:0,9373:0,9377:0,9387:0,9391:0,9456:0,9473:0,9498:0,9674:0,9678:0,9680:0,9709:0,9712:0,9713:0,9716:0,9741:0,9748:2,9749:2,9761:0,9766:0,9793:0,9794:0,9869:0,9874:0,9875:0,9880:0,9895:0,9943:0,9945:0,9947:0,9967:0,9972:0,9977:0,10160:0,10183:0,10188:0,10194:0,10199:0,10207:0,10212:0,10217:0,10222:0,10227:0,10235:0,10240:0,10250:0,10254:0,10270:0,10275:0,10280:0,10306:0,10329:0,10471:0,10477:0,10481:2,10516:2,10592:0,10594:0,10596:0,10598:0,10601:0,10603:0,10626:0,10632:0,10665:0,20002:0,20042:0,20050:1,20499:0,20538:0,20539:0,20790:0,20791:0,21291:0,21292:0,21500:0,21817:0,21818:0,22032:0,22033:0,22091:0,22092:0,22239:0,22240:0,22332:0,22337:0,22338:0,22391:0,22392:0,22639:0,22700:0,22739:0,22770:0,22780:0,22832:0,23090:0,23095:0,23239:0,23240:0,23433:0,23700:0,24047:0,24048:0,24100:3,24200:0,24305:0,24306:0,24382:10,24383:0,24500:0,24547:0,24548:0,24571:9,24600:0,25e3:0,25231:0,25884:0,25932:0,26237:0,26331:0,26332:0,26432:0,26591:0,26592:0,26632:0,26692:0,27120:0,27200:0,27291:6,27292:6,27429:0,27492:0,27493:0,27500:0,28232:0,28600:0,28991:0,28992:0,29100:0,29101:0,29220:0,29221:0,29333:0,29635:0,29636:0,29701:0,29738:0,29739:0,29849:0,29850:0,29871:8,29872:7,29873:0,29874:0,30200:5,30339:0,30340:0,30591:0,30592:0,30791:0,30792:0,30800:0,31028:0,31121:0,31154:0,31170:0,31171:0,31370:0,31528:0,31529:0,31600:0,31700:0,31838:0,31839:0,31900:0,31901:0,32061:0,32062:0,32098:0,32099:2,32100:0,32104:0,32161:0,32766:0,53048:0,53049:0,54090:0,54091:0,65061:2,65062:2,65161:0,65163:0,102041:2,102064:11,102068:15,102069:16,102118:2,102119:1,102120:2,102121:2,102217:2,102218:0,102219:2,102220:2,102378:1,102379:1,102380:0,102381:1,102589:2,102599:2,102600:2,102604:2,102647:0,102704:2,102705:2,102706:0,102731:0,102732:0,102759:1,102760:1,102761:2,102762:0,102763:2,102764:0,102765:0,102766:2,102970:1,102974:2,102993:0,102994:0,102995:2,102996:2,103015:0,103016:2,103017:0,103018:2,103025:0,103026:0,103027:2,103028:2,103035:0,103036:0,103037:2,103038:2,103039:0,103040:0,103041:2,103042:2,103043:0,103044:0,103045:2,103046:2,103047:0,103048:0,103049:2,103050:2,103051:0,103052:2,103053:0,103054:2,103055:0,103056:2,103057:0,103058:0,103059:2,103060:2,103061:0,103062:0,103063:2,103064:2,103069:2,103070:0,103071:0,103072:2,103073:2,103086:0,103087:0,103088:2,103089:2,103094:1,103095:0,103096:2,103103:0,103104:2,103105:0,103106:2,103121:0,103122:2,103123:0,103124:0,103125:1,103126:1,103127:0,103128:0,103129:2,103130:2,103131:0,103132:0,103133:2,103134:2,103135:0,103136:0,103137:1,103138:1,103139:0,103140:2,103141:0,103142:2,103143:0,103144:2,103145:0,103146:1,103147:0,103148:0,103149:2,103150:2,103151:0,103152:2,103172:0,103173:2,103174:0,103175:0,103176:2,103177:2,103178:0,103179:0,103180:2,103181:2,103182:0,103183:0,103184:2,103185:2,103228:0,103229:0,103230:2,103231:2,103250:0,103251:2,103252:0,103253:2,103260:0,103261:0,103262:2,103263:2,103270:0,103271:0,103272:2,103273:2,103274:0,103275:0,103276:2,103277:2,103278:0,103279:0,103280:2,103281:2,103282:0,103283:0,103284:2,103285:2,103286:0,103287:2,103288:0,103289:2,103290:0,103291:2,103292:0,103293:0,103294:2,103295:2,103296:0,103297:0,103298:2,103299:2,103376:2,103377:0,103378:0,103379:2,103380:2,103393:0,103394:0,103395:2,103396:2,103472:0,103473:1,103474:0,103475:2,103482:0,103483:2,103484:0,103485:2,103500:0,103501:2,103502:0,103503:0,103504:1,103505:1,103506:0,103507:0,103508:2,103509:2,103510:0,103511:0,103512:2,103513:2,103514:0,103515:2,103516:0,103517:2,103518:0,103519:2,103520:0,103521:1,103522:0,103523:0,103524:2,103525:2,103526:0,103527:2,103561:2,103562:2,103563:0,103564:0,103565:2,103566:2,103567:0,103568:0,103569:2,103570:2,103584:0,103585:2,103586:0,103587:2,103588:1,103589:0,103590:2,103591:1,103592:0,103593:2,103594:1,103695:2,103897:1,103978:2,103979:0,103980:2,103981:0};for(l=2e3;l<=2045;l++)P[l]=0;for(l=2056;l<=2065;l++)P[l]=0;for(l=2067;l<=2135;l++)P[l]=0;for(l=2137;l<=2154;l++)P[l]=0;for(l=2161;l<=2170;l++)P[l]=0;for(l=2172;l<=2193;l++)P[l]=0;for(l=2195;l<=2198;l++)P[l]=0;for(l=2200;l<=2203;l++)P[l]=0;for(l=2205;l<=2217;l++)P[l]=0;for(l=2222;l<=2224;l++)P[l]=1;for(l=2225;l<=2250;l++)P[l]=2;for(l=2251;l<=2253;l++)P[l]=1;for(l=2257;l<=2264;l++)P[l]=2;for(l=2274;l<=2279;l++)P[l]=2;for(l=2280;l<=2282;l++)P[l]=1;for(l=2283;l<=2289;l++)P[l]=2;for(l=2290;l<=2292;l++)P[l]=0;for(l=2308;l<=2313;l++)P[l]=0;for(l=2315;l<=2491;l++)P[l]=0;for(l=2494;l<=2866;l++)P[l]=0;for(l=2867;l<=2869;l++)P[l]=1;for(l=2870;l<=2888;l++)P[l]=2;for(l=2891;l<=2895;l++)P[l]=2;for(l=2896;l<=2898;l++)P[l]=1;for(l=2902;l<=2908;l++)P[l]=2;for(l=2915;l<=2920;l++)P[l]=2;for(l=2921;l<=2923;l++)P[l]=1;for(l=2924;l<=2930;l++)P[l]=2;for(l=2931;l<=2962;l++)P[l]=0;for(l=2964;l<=2968;l++)P[l]=2;for(l=2969;l<=2973;l++)P[l]=0;for(l=2975;l<=2991;l++)P[l]=0;for(l=2995;l<=3051;l++)P[l]=0;for(l=3054;l<=3079;l++)P[l]=0;for(l=3081;l<=3088;l++)P[l]=0;for(l=3092;l<=3101;l++)P[l]=0;for(l=3106;l<=3138;l++)P[l]=0;for(l=3146;l<=3151;l++)P[l]=0;for(l=3153;l<=3166;l++)P[l]=0;for(l=3168;l<=3172;l++)P[l]=0;for(l=3174;l<=3203;l++)P[l]=0;for(l=3294;l<=3358;l++)P[l]=0;for(l=3367;l<=3403;l++)P[l]=0;for(l=3408;l<=3416;l++)P[l]=0;for(l=3417;l<=3438;l++)P[l]=2;for(l=3441;l<=3446;l++)P[l]=2;for(l=3447;l<=3450;l++)P[l]=0;for(l=3451;l<=3459;l++)P[l]=2;for(l=3460;l<=3478;l++)P[l]=0;for(l=3554;l<=3559;l++)P[l]=0;for(l=3560;l<=3570;l++)P[l]=2;for(l=3571;l<=3581;l++)P[l]=0;for(l=3594;l<=3597;l++)P[l]=0;for(l=3601;l<=3604;l++)P[l]=0;for(l=3637;l<=3639;l++)P[l]=0;for(l=3665;l<=3667;l++)P[l]=0;for(l=3693;l<=3695;l++)P[l]=0;for(l=3701;l<=3727;l++)P[l]=0;for(l=3728;l<=3739;l++)P[l]=2;for(l=3740;l<=3751;l++)P[l]=0;for(l=3753;l<=3760;l++)P[l]=2;for(l=3761;l<=3773;l++)P[l]=0;for(l=3775;l<=3777;l++)P[l]=0;for(l=3779;l<=3781;l++)P[l]=0;for(l=3783;l<=3785;l++)P[l]=0;for(l=3788;l<=3791;l++)P[l]=0;for(l=3797;l<=3802;l++)P[l]=0;for(l=3814;l<=3816;l++)P[l]=0;for(l=3825;l<=3829;l++)P[l]=0;for(l=3832;l<=3841;l++)P[l]=0;for(l=3844;l<=3852;l++)P[l]=0;for(l=3873;l<=3885;l++)P[l]=0;for(l=3890;l<=3893;l++)P[l]=0;for(l=3907;l<=3912;l++)P[l]=0;for(l=3942;l<=3950;l++)P[l]=0;for(l=3968;l<=3970;l++)P[l]=0;for(l=3973;l<=3976;l++)P[l]=0;for(l=3986;l<=3989;l++)P[l]=0;for(l=3994;l<=3997;l++)P[l]=0;for(l=4048;l<=4051;l++)P[l]=0;for(l=4056;l<=4063;l++)P[l]=0;for(l=4093;l<=4096;l++)P[l]=0;for(l=4390;l<=4398;l++)P[l]=0;for(l=4399;l<=4413;l++)P[l]=2;for(l=4418;l<=4433;l++)P[l]=2;for(l=4455;l<=4457;l++)P[l]=2;for(l=4484;l<=4489;l++)P[l]=0;for(l=4491;l<=4554;l++)P[l]=0;for(l=4568;l<=4589;l++)P[l]=0;for(l=4652;l<=4656;l++)P[l]=0;for(l=4766;l<=4800;l++)P[l]=0;for(l=5014;l<=5016;l++)P[l]=0;for(l=5069;l<=5072;l++)P[l]=0;for(l=5105;l<=5130;l++)P[l]=0;for(l=5167;l<=5188;l++)P[l]=0;for(l=5253;l<=5259;l++)P[l]=0;for(l=5269;l<=5275;l++)P[l]=0;for(l=5292;l<=5311;l++)P[l]=0;for(l=5329;l<=5331;l++)P[l]=0;for(l=5343;l<=5349;l++)P[l]=0;for(l=5355;l<=5357;l++)P[l]=0;for(l=5387;l<=5389;l++)P[l]=0;for(l=5459;l<=5463;l++)P[l]=0;for(l=5479;l<=5482;l++)P[l]=0;for(l=5518;l<=5520;l++)P[l]=0;for(l=5530;l<=5539;l++)P[l]=0;for(l=5550;l<=5552;l++)P[l]=0;for(l=5562;l<=5583;l++)P[l]=0;for(l=5623;l<=5625;l++)P[l]=2;for(l=5631;l<=5639;l++)P[l]=0;for(l=5649;l<=5653;l++)P[l]=0;for(l=5663;l<=5680;l++)P[l]=0;for(l=5682;l<=5685;l++)P[l]=0;for(l=5875;l<=5877;l++)P[l]=0;for(l=5896;l<=5899;l++)P[l]=0;for(l=5921;l<=5940;l++)P[l]=0;for(l=6050;l<=6125;l++)P[l]=0;for(l=6244;l<=6275;l++)P[l]=0;for(l=6328;l<=6348;l++)P[l]=0;for(l=6350;l<=6356;l++)P[l]=0;for(l=6366;l<=6372;l++)P[l]=0;for(l=6381;l<=6387;l++)P[l]=0;for(l=6393;l<=6404;l++)P[l]=0;for(l=6480;l<=6483;l++)P[l]=0;for(l=6511;l<=6514;l++)P[l]=0;for(l=6579;l<=6581;l++)P[l]=0;for(l=6619;l<=6624;l++)P[l]=0;for(l=6625;l<=6627;l++)P[l]=2;for(l=6628;l<=6632;l++)P[l]=0;for(l=6634;l<=6637;l++)P[l]=0;for(l=6669;l<=6692;l++)P[l]=0;for(l=6707;l<=6709;l++)P[l]=0;for(l=6720;l<=6723;l++)P[l]=0;for(l=6732;l<=6738;l++)P[l]=0;for(l=6931;l<=6933;l++)P[l]=0;for(l=6956;l<=6959;l++)P[l]=0;for(l=7005;l<=7007;l++)P[l]=0;for(l=7057;l<=7070;l++)P[l]=2;for(l=7074;l<=7082;l++)P[l]=0;for(l=7109;l<=7118;l++)P[l]=0;for(l=7119;l<=7127;l++)P[l]=1;for(l=7374;l<=7376;l++)P[l]=0;for(l=7528;l<=7586;l++)P[l]=0;for(l=7587;l<=7645;l++)P[l]=2;for(l=7692;l<=7696;l++)P[l]=0;for(l=7755;l<=7787;l++)P[l]=0;for(l=7791;l<=7795;l++)P[l]=0;for(l=7799;l<=7801;l++)P[l]=0;for(l=7803;l<=7805;l++)P[l]=0;for(l=7825;l<=7831;l++)P[l]=0;for(l=7845;l<=7859;l++)P[l]=0;for(l=8013;l<=8032;l++)P[l]=0;for(l=8065;l<=8068;l++)P[l]=1;for(l=8518;l<=8529;l++)P[l]=2;for(l=8533;l<=8536;l++)P[l]=2;for(l=8538;l<=8540;l++)P[l]=2;for(l=8677;l<=8679;l++)P[l]=0;for(l=8836;l<=8840;l++)P[l]=0;for(l=8857;l<=8859;l++)P[l]=0;for(l=8908;l<=8910;l++)P[l]=0;for(l=9154;l<=9159;l++)P[l]=0;for(l=9205;l<=9218;l++)P[l]=0;for(l=9271;l<=9273;l++)P[l]=0;for(l=9295;l<=9297;l++)P[l]=0;for(l=9356;l<=9360;l++)P[l]=0;for(l=9404;l<=9407;l++)P[l]=0;for(l=9476;l<=9482;l++)P[l]=0;for(l=9487;l<=9494;l++)P[l]=0;for(l=9697;l<=9699;l++)P[l]=0;for(l=9821;l<=9865;l++)P[l]=0;for(l=10285;l<=10291;l++)P[l]=0;for(l=10314;l<=10317;l++)P[l]=0;for(l=10448;l<=10465;l++)P[l]=0;for(l=10731;l<=10733;l++)P[l]=0;for(l=11114;l<=11118;l++)P[l]=0;for(l=20004;l<=20032;l++)P[l]=0;for(l=20047;l<=20049;l++)P[l]=0;for(l=20062;l<=20092;l++)P[l]=0;for(l=20135;l<=20138;l++)P[l]=0;for(l=20248;l<=20258;l++)P[l]=0;for(l=20348;l<=20358;l++)P[l]=0;for(l=20436;l<=20440;l++)P[l]=0;for(l=20822;l<=20824;l++)P[l]=0;for(l=20904;l<=20932;l++)P[l]=0;for(l=20934;l<=20936;l++)P[l]=0;for(l=21004;l<=21032;l++)P[l]=0;for(l=21035;l<=21037;l++)P[l]=0;for(l=21095;l<=21097;l++)P[l]=0;for(l=21148;l<=21150;l++)P[l]=0;for(l=21207;l<=21264;l++)P[l]=0;for(l=21307;l<=21364;l++)P[l]=0;for(l=21413;l<=21423;l++)P[l]=0;for(l=21453;l<=21463;l++)P[l]=0;for(l=21473;l<=21483;l++)P[l]=0;for(l=21780;l<=21782;l++)P[l]=0;for(l=21891;l<=21894;l++)P[l]=0;for(l=21896;l<=21899;l++)P[l]=0;for(l=22171;l<=22177;l++)P[l]=0;for(l=22181;l<=22187;l++)P[l]=0;for(l=22191;l<=22197;l++)P[l]=0;for(l=22207;l<=22222;l++)P[l]=0;for(l=22229;l<=22232;l++)P[l]=0;for(l=22234;l<=22236;l++)P[l]=0;for(l=22243;l<=22250;l++)P[l]=0;for(l=22262;l<=22265;l++)P[l]=0;for(l=22307;l<=22322;l++)P[l]=0;for(l=22348;l<=22357;l++)P[l]=0;for(l=22407;l<=22422;l++)P[l]=0;for(l=22462;l<=22465;l++)P[l]=0;for(l=22521;l<=22525;l++)P[l]=0;for(l=22607;l<=22622;l++)P[l]=0;for(l=22641;l<=22646;l++)P[l]=0;for(l=22648;l<=22657;l++)P[l]=0;for(l=22707;l<=22722;l++)P[l]=0;for(l=22762;l<=22765;l++)P[l]=0;for(l=22807;l<=22822;l++)P[l]=0;for(l=22991;l<=22994;l++)P[l]=0;for(l=23028;l<=23038;l++)P[l]=0;for(l=23301;l<=23333;l++)P[l]=2;for(l=23830;l<=23853;l++)P[l]=0;for(l=23866;l<=23872;l++)P[l]=0;for(l=23877;l<=23884;l++)P[l]=0;for(l=23886;l<=23894;l++)P[l]=0;for(l=23946;l<=23948;l++)P[l]=0;for(l=24311;l<=24313;l++)P[l]=0;for(l=24342;l<=24347;l++)P[l]=0;for(l=24370;l<=24374;l++)P[l]=10;for(l=24375;l<=24381;l++)P[l]=0;for(l=24718;l<=24721;l++)P[l]=0;for(l=24817;l<=24821;l++)P[l]=0;for(l=24877;l<=24882;l++)P[l]=0;for(l=24891;l<=24893;l++)P[l]=0;for(l=25391;l<=25395;l++)P[l]=0;for(l=25828;l<=25838;l++)P[l]=0;for(l=26191;l<=26195;l++)P[l]=0;for(l=26391;l<=26393;l++)P[l]=0;for(l=26701;l<=26722;l++)P[l]=0;for(l=26729;l<=26799;l++)P[l]=2;for(l=26801;l<=26803;l++)P[l]=2;for(l=26811;l<=26813;l++)P[l]=2;for(l=26847;l<=26870;l++)P[l]=2;for(l=26891;l<=26899;l++)P[l]=0;for(l=26901;l<=26923;l++)P[l]=0;for(l=26929;l<=26946;l++)P[l]=0;for(l=26948;l<=26998;l++)P[l]=0;for(l=27037;l<=27040;l++)P[l]=0;for(l=27205;l<=27232;l++)P[l]=0;for(l=27258;l<=27260;l++)P[l]=0;for(l=27391;l<=27398;l++)P[l]=0;for(l=27561;l<=27564;l++)P[l]=0;for(l=27571;l<=27574;l++)P[l]=0;for(l=27581;l<=27584;l++)P[l]=0;for(l=27591;l<=27594;l++)P[l]=0;for(l=27700;l<=27707;l++)P[l]=0;for(l=28191;l<=28193;l++)P[l]=0;for(l=28348;l<=28358;l++)P[l]=0;for(l=28402;l<=28432;l++)P[l]=0;for(l=28462;l<=28492;l++)P[l]=0;for(l=29118;l<=29122;l++)P[l]=0;for(l=29168;l<=29172;l++)P[l]=0;for(l=29177;l<=29185;l++)P[l]=0;for(l=29187;l<=29195;l++)P[l]=0;for(l=29900;l<=29903;l++)P[l]=0;for(l=30161;l<=30179;l++)P[l]=0;for(l=30491;l<=30494;l++)P[l]=0;for(l=30729;l<=30732;l++)P[l]=0;for(l=31251;l<=31259;l++)P[l]=0;for(l=31265;l<=31268;l++)P[l]=0;for(l=31275;l<=31279;l++)P[l]=0;for(l=31281;l<=31297;l++)P[l]=0;for(l=31461;l<=31469;l++)P[l]=0;for(l=31491;l<=31495;l++)P[l]=0;for(l=31917;l<=31922;l++)P[l]=0;for(l=31965;l<=32e3;l++)P[l]=0;for(l=32001;l<=32003;l++)P[l]=2;for(l=32005;l<=32031;l++)P[l]=2;for(l=32033;l<=32060;l++)P[l]=2;for(l=32064;l<=32067;l++)P[l]=2;for(l=32074;l<=32077;l++)P[l]=2;for(l=32081;l<=32086;l++)P[l]=0;for(l=32107;l<=32130;l++)P[l]=0;for(l=32133;l<=32159;l++)P[l]=0;for(l=32164;l<=32167;l++)P[l]=2;for(l=32180;l<=32199;l++)P[l]=0;for(l=32201;l<=32260;l++)P[l]=0;for(l=32301;l<=32360;l++)P[l]=0;for(l=32401;l<=32460;l++)P[l]=0;for(l=32501;l<=32560;l++)P[l]=0;for(l=32601;l<=32662;l++)P[l]=0;for(l=32664;l<=32667;l++)P[l]=2;for(l=32701;l<=32761;l++)P[l]=0;for(l=53001;l<=53004;l++)P[l]=0;for(l=53008;l<=53019;l++)P[l]=0;for(l=53021;l<=53032;l++)P[l]=0;for(l=53034;l<=53037;l++)P[l]=0;for(l=53042;l<=53046;l++)P[l]=0;for(l=53074;l<=53080;l++)P[l]=0;for(l=54001;l<=54004;l++)P[l]=0;for(l=54008;l<=54019;l++)P[l]=0;for(l=54021;l<=54032;l++)P[l]=0;for(l=54034;l<=54037;l++)P[l]=0;for(l=54042;l<=54046;l++)P[l]=0;for(l=54048;l<=54053;l++)P[l]=0;for(l=54074;l<=54080;l++)P[l]=0;for(l=54098;l<=54101;l++)P[l]=0;for(l=102001;l<=102040;l++)P[l]=0;for(l=102042;l<=102063;l++)P[l]=0;for(l=102065;l<=102067;l++)P[l]=0;for(l=102070;l<=102117;l++)P[l]=0;for(l=102122;l<=102216;l++)P[l]=0;for(l=102221;l<=102377;l++)P[l]=0;for(l=102382;l<=102388;l++)P[l]=0;for(l=102389;l<=102398;l++)P[l]=2;for(l=102399;l<=102444;l++)P[l]=0;for(l=102445;l<=102447;l++)P[l]=2;for(l=102448;l<=102458;l++)P[l]=0;for(l=102459;l<=102468;l++)P[l]=2;for(l=102469;l<=102499;l++)P[l]=0;for(l=102500;l<=102519;l++)P[l]=1;for(l=102520;l<=102524;l++)P[l]=0;for(l=102525;l<=102529;l++)P[l]=2;for(l=102530;l<=102588;l++)P[l]=0;for(l=102590;l<=102598;l++)P[l]=0;for(l=102601;l<=102603;l++)P[l]=0;for(l=102605;l<=102628;l++)P[l]=0;for(l=102629;l<=102646;l++)P[l]=2;for(l=102648;l<=102700;l++)P[l]=2;for(l=102701;l<=102703;l++)P[l]=0;for(l=102707;l<=102730;l++)P[l]=2;for(l=102733;l<=102758;l++)P[l]=2;for(l=102767;l<=102900;l++)P[l]=0;for(l=102901;l<=102933;l++)P[l]=2;for(l=102934;l<=102950;l++)P[l]=13;for(l=102951;l<=102963;l++)P[l]=0;for(l=102965;l<=102969;l++)P[l]=0;for(l=102971;l<=102973;l++)P[l]=0;for(l=102975;l<=102989;l++)P[l]=0;for(l=102990;l<=102992;l++)P[l]=1;for(l=102997;l<=103002;l++)P[l]=0;for(l=103003;l<=103008;l++)P[l]=2;for(l=103009;l<=103011;l++)P[l]=0;for(l=103012;l<=103014;l++)P[l]=2;for(l=103019;l<=103021;l++)P[l]=0;for(l=103022;l<=103024;l++)P[l]=2;for(l=103029;l<=103031;l++)P[l]=0;for(l=103032;l<=103034;l++)P[l]=2;for(l=103065;l<=103068;l++)P[l]=0;for(l=103074;l<=103076;l++)P[l]=0;for(l=103077;l<=103079;l++)P[l]=1;for(l=103080;l<=103082;l++)P[l]=0;for(l=103083;l<=103085;l++)P[l]=2;for(l=103090;l<=103093;l++)P[l]=0;for(l=103097;l<=103099;l++)P[l]=0;for(l=103100;l<=103102;l++)P[l]=2;for(l=103107;l<=103109;l++)P[l]=0;for(l=103110;l<=103112;l++)P[l]=2;for(l=103113;l<=103116;l++)P[l]=0;for(l=103117;l<=103120;l++)P[l]=2;for(l=103153;l<=103157;l++)P[l]=0;for(l=103158;l<=103162;l++)P[l]=2;for(l=103163;l<=103165;l++)P[l]=0;for(l=103166;l<=103168;l++)P[l]=1;for(l=103169;l<=103171;l++)P[l]=2;for(l=103186;l<=103188;l++)P[l]=0;for(l=103189;l<=103191;l++)P[l]=2;for(l=103192;l<=103195;l++)P[l]=0;for(l=103196;l<=103199;l++)P[l]=2;for(l=103200;l<=103224;l++)P[l]=0;for(l=103225;l<=103227;l++)P[l]=1;for(l=103232;l<=103237;l++)P[l]=0;for(l=103238;l<=103243;l++)P[l]=2;for(l=103244;l<=103246;l++)P[l]=0;for(l=103247;l<=103249;l++)P[l]=2;for(l=103254;l<=103256;l++)P[l]=0;for(l=103257;l<=103259;l++)P[l]=2;for(l=103264;l<=103266;l++)P[l]=0;for(l=103267;l<=103269;l++)P[l]=2;for(l=103300;l<=103375;l++)P[l]=0;for(l=103381;l<=103383;l++)P[l]=0;for(l=103384;l<=103386;l++)P[l]=1;for(l=103387;l<=103389;l++)P[l]=0;for(l=103390;l<=103392;l++)P[l]=2;for(l=103397;l<=103399;l++)P[l]=0;for(l=103400;l<=103471;l++)P[l]=2;for(l=103476;l<=103478;l++)P[l]=0;for(l=103479;l<=103481;l++)P[l]=2;for(l=103486;l<=103488;l++)P[l]=0;for(l=103489;l<=103491;l++)P[l]=2;for(l=103492;l<=103495;l++)P[l]=0;for(l=103496;l<=103499;l++)P[l]=2;for(l=103528;l<=103543;l++)P[l]=0;for(l=103544;l<=103548;l++)P[l]=2;for(l=103549;l<=103551;l++)P[l]=0;for(l=103552;l<=103554;l++)P[l]=1;for(l=103555;l<=103557;l++)P[l]=2;for(l=103558;l<=103560;l++)P[l]=0;for(l=103571;l<=103573;l++)P[l]=0;for(l=103574;l<=103576;l++)P[l]=2;for(l=103577;l<=103580;l++)P[l]=0;for(l=103581;l<=103583;l++)P[l]=2;for(l=103595;l<=103694;l++)P[l]=0;for(l=103696;l<=103699;l++)P[l]=0;for(l=103700;l<=103793;l++)P[l]=2;for(l=103794;l<=103890;l++)P[l]=0;for(l=103891;l<=103896;l++)P[l]=2;for(l=103900;l<=103971;l++)P[l]=2;for(l=103972;l<=103977;l++)P[l]=0;for(l=112e3;l<=112101;l++)P[l]=0});function su(t,e){if(t===e)return!0;if(t==null||e==null)return!1;let r=t.wkid,n=e.wkid;if(r!=null||n!=null){if(r===n||Fs(t)&&Fs(e))return!0;let s=t.latestWkid;if(s!=null&&n===s)return!0;let c=e.latestWkid;return c!=null&&r===c}let i,o;return t.wkt2&&e.wkt2?(i=t.wkt2,o=e.wkt2):t.wkt&&e.wkt&&(i=t.wkt,o=e.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function xf(t){let e=t?.wkid;return e!=null&&e>=2e3&&LR[e]||null}function kg(t){if(!OR(t))return!1;let{wkid:e}=t;if(e)return P[e]==null;let r=t.wkt2||t.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function Og(t){return t?.wkid===4326}function Fs(t){let e=t?.wkid;return e!=null&&e>=2e3&&IR.includes(e)}function oE(t){return t===_f.GCSMARS2000||t===_f.GCSMARS2000_SPHERE}function sE(t){return t===_f.GCSMOON2000}function kR(t){let e=t?.wkid;return e!=null&&e>=2e3&&eJ.includes(e)}function OR(t){if(t==null)return!1;let e=t.wkid;return e!=null&&e>=2e3||t.wkt2!=null||t.wkt!=null}var IR,KX,eJ,Sf,iE,nE,LR,aE,cE,NR,fc=N(()=>{xa();MR();AR();rE();IR=[102100,102113,3857,3785,900913],KX=[104905,104971],eJ=[4326,...IR,...KX],Sf=[-20037508342788905e-9,20037508342788905e-9],iE=[-20037508342787e-6,20037508342787e-6],nE={wkTemplate:'PROJCS["WGS_1984_Web_Mercator_Auxiliary_Sphere",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator_Auxiliary_Sphere"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],PARAMETER["Auxiliary_Sphere_Type",0.0],UNIT["Meter",1.0]]',valid:Sf,origin:iE,dx:1e-5},LR={102113:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Sf,origin:iE,dx:1e-5},102100:nE,3785:{wkTemplate:'PROJCS["WGS_1984_Web_Mercator",GEOGCS["GCS_WGS_1984_Major_Auxiliary_Sphere",DATUM["D_WGS_1984_Major_Auxiliary_Sphere",SPHEROID["WGS_1984_Major_Auxiliary_Sphere",6378137.0,0.0]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Mercator"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],PARAMETER["Standard_Parallel_1",0.0],UNIT["Meter",1.0]]',valid:Sf,origin:iE,dx:1e-5},3857:nE,4326:{wkTemplate:'GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",{Central_Meridian}],UNIT["Degree",0.0174532925199433]]',altTemplate:'PROJCS["WGS_1984_Plate_Carree",GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137.0,298.257223563]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Plate_Carree"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",{Central_Meridian}],UNIT["Degrees",111319.491]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104971:{wkTemplate:'GEOGCS["Mars_2000_(Sphere)",DATUM["Mars_2000_(Sphere)",SPHEROID["Mars_2000_(Sphere)",3396190.0,0.0]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},104905:{wkTemplate:'GEOGCS["GCS_Mars_2000",DATUM["D_Mars_2000",SPHEROID["Mars_2000_IAU_IAG",3396190.0,169.8944472236118]],PRIMEM["Reference_Meridian",0.0],UNIT["Degree",0.0174532925199433]]',valid:[-180,180],origin:[-180,90],dx:1e-5},900913:nE};aE={wkid:4326,wkt:Fo(LR[4326].wkTemplate,{Central_Meridian:"0.0"})},cE={wkid:102100,latestWkid:3857},NR={wkid:32662}});function lE(t){return{wkt:`GEOCCS["Spherical geocentric",
14
14
  DATUM["Not specified",
15
15
  SPHEROID["Sphere",${t.radius},0]],
16
16
  PRIMEM["Greenwich",0.0,