@arcgis/coding-components 4.32.0-next.82 → 4.32.0-next.83

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 (63) hide show
  1. package/dist/arcgis-coding-components/{4LVEFZC3.js → 26D2TEEA.js} +1 -1
  2. package/dist/arcgis-coding-components/{UIMZHCNB.js → 4HUHKO2F.js} +2 -2
  3. package/dist/arcgis-coding-components/{GC2V4FLC.js → 4VB23NUX.js} +2 -2
  4. package/dist/arcgis-coding-components/{3HV4LOKN.js → 5KLMJERZ.js} +2 -2
  5. package/dist/arcgis-coding-components/{SHSIJA2S.js → 5QRWOYYV.js} +2 -2
  6. package/dist/arcgis-coding-components/{4XB363EE.js → 7252MA7S.js} +2 -2
  7. package/dist/arcgis-coding-components/{JLYOF467.js → 77MY6AMZ.js} +2 -2
  8. package/dist/arcgis-coding-components/{7K3JR3EJ.js → 7ACPV5V2.js} +2 -2
  9. package/dist/arcgis-coding-components/{EJQBRYAZ.js → 7NSF3PXP.js} +2 -2
  10. package/dist/arcgis-coding-components/{UAE6KYHE.js → BUX5A6M5.js} +2 -2
  11. package/dist/arcgis-coding-components/{DWLMIJ63.js → C6XW2MT3.js} +2 -2
  12. package/dist/arcgis-coding-components/{5IKBSX4T.js → DC4CHF7W.js} +2 -2
  13. package/dist/arcgis-coding-components/{X6TENK5P.js → DITB2IHG.js} +2 -2
  14. package/dist/arcgis-coding-components/{3WXPIGGG.js → EOMSLJPL.js} +1 -1
  15. package/dist/arcgis-coding-components/{XNGHHVTY.js → ESXQSD7A.js} +3 -3
  16. package/dist/arcgis-coding-components/{T5YUD6EL.js → FBVEF5NR.js} +2 -2
  17. package/dist/arcgis-coding-components/{QMLGEU5Y.js → JTRK76CP.js} +2 -2
  18. package/dist/arcgis-coding-components/{G2VY7CGM.js → KRSQQ5UL.js} +2 -2
  19. package/dist/arcgis-coding-components/{J3HJW37E.js → LWVJU2TB.js} +2 -2
  20. package/dist/arcgis-coding-components/{U5TNOUI2.js → LZXHELU4.js} +2 -2
  21. package/dist/arcgis-coding-components/{UQUPQSOQ.js → ORNMMSBL.js} +2 -2
  22. package/dist/arcgis-coding-components/{HLXBRVSG.js → P6HD6APH.js} +1 -1
  23. package/dist/arcgis-coding-components/{SCCISGRG.js → PRR5KOS4.js} +2 -2
  24. package/dist/arcgis-coding-components/{JJN23KC2.js → QR6WVNQI.js} +2 -2
  25. package/dist/arcgis-coding-components/{CF3HZP3O.js → SVC6J2DE.js} +2 -2
  26. package/dist/arcgis-coding-components/{F6AWPPXY.js → TNFDDZLL.js} +2 -2
  27. package/dist/arcgis-coding-components/{IIFHBZ2W.js → UDC3ATPR.js} +2 -2
  28. package/dist/arcgis-coding-components/{4U6OI5N4.js → V3N4TSTX.js} +2 -2
  29. package/dist/arcgis-coding-components/{5BMIP2BK.js → V6XSS2WT.js} +1 -1
  30. package/dist/arcgis-coding-components/{OUWLOVPP.js → VB6ORQZM.js} +2 -2
  31. package/dist/arcgis-coding-components/{2Y5DC7AJ.js → W3GFC524.js} +2 -2
  32. package/dist/arcgis-coding-components/{GTKG7BKI.js → WG4LIQ47.js} +2 -2
  33. package/dist/arcgis-coding-components/{LFRTYDXD.js → WGWENSFB.js} +2 -2
  34. package/dist/arcgis-coding-components/{YLRI6BEO.js → WRMFW3PU.js} +2 -2
  35. package/dist/arcgis-coding-components/{Q2N7N2RH.js → Z6AJHTW4.js} +2 -2
  36. package/dist/arcgis-coding-components/arcgis-coding-components.esm.js +2 -2
  37. package/dist/arcgis-coding-components/assets/code-editor/sql-expr.worker.js +9 -9
  38. package/dist/chunks/arcade-defaults.js +1 -1
  39. package/dist/chunks/arcade-executor.js +1 -1
  40. package/dist/chunks/arcade-mode.js +1 -1
  41. package/dist/chunks/arcade-service-accessors.js +1 -1
  42. package/dist/chunks/fields.js +1 -1
  43. package/dist/chunks/language-defaults-base.js +1 -1
  44. package/dist/chunks/markdown.js +1 -1
  45. package/dist/chunks/monaco-importer.js +1 -1
  46. package/dist/chunks/runtime.js +1 -1
  47. package/dist/chunks/sql-expr-defaults.js +1 -1
  48. package/dist/chunks/sql-expr-mode.js +1 -1
  49. package/dist/chunks/useT9n.js +1 -1
  50. package/dist/components/arcgis-arcade-editor/customElement.js +1 -1
  51. package/dist/components/arcgis-arcade-results/customElement.js +1 -1
  52. package/dist/components/arcgis-arcade-suggestions/customElement.js +1 -1
  53. package/dist/components/arcgis-code-editor/customElement.js +1 -1
  54. package/dist/components/arcgis-editor-variables/customElement.js +1 -1
  55. package/dist/components/arcgis-language-api-panel/customElement.js +1 -1
  56. package/dist/components/arcgis-sql-expression-editor/customElement.js +1 -1
  57. package/dist/components/arcgis-sql-expression-fields/customElement.js +1 -1
  58. package/dist/docs/api.json +2 -2
  59. package/dist/docs/docs.json +2 -2
  60. package/dist/docs/web-types.json +1 -1
  61. package/dist/index.js +1 -1
  62. package/dist/loader.js +1 -1
  63. package/package.json +7 -7
@@ -1,14 +1,14 @@
1
- "use strict";(()=>{var Tz=Object.defineProperty;var NT=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var O=(e,t)=>()=>(e&&(t=e(e=0)),t);var OT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qs=(e,t)=>{for(var r in t)Tz(e,r,{get:t[r],enumerable:!0})};function EB(e,t){let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function CB(e,t,r){let{subscribe:n}=TB(t);return n(i=>{i.some(s=>EB(e,s.target))&&r()})}function TB(e){let t=e.join(","),r=qx[t];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(l=>l(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let o={subscribe(s){return n.add(s),{remove:()=>{n.delete(s),n.size===0&&(i.disconnect(),qx[t]=void 0)}}}};return qx[t]=o,o}function PB(e,t){let r=e;for(;r;){let n=r.closest?.(t);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function MB(e,t,r){return PB(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function Lh(e,t,...r){try{let n=e?.call(t,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,e)}}async function kB(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Hx[i]??(Hx[i]=S8(e,n)),await Hx[i]}async function S8(e,t){let r=`${t}${e}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return e===Fw?{}:await S8(Fw,t)}function Zx(e){let t=MB(e,"lang",globalThis.navigator?.language||Fw);return{lang:t,t9nLocale:E8(t)}}function E8(e){let[t,r]=e.split("-"),n=t.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=LB[i]??i,IB.has(i)?i:r?E8(n):Fw}function C8(e,t,r,n){let i,o=()=>void NB(e,t,n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return o(),CB(e,["lang"],o)}async function NB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=Zx(e),o=`${t}/${r}/t9n`,l=r===null?{}:await kB(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:l}}function T8(e,t){let r=t>RB?DB:t/FB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function P8(e){return e!==void 0}var Co,qx,AB,IB,Fw,LB,Hx,$w,OB,RB,DB,FB,To=O(()=>{"use strict";Co=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};qx={};AB=["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"],IB=new Set(AB),Fw="en",LB={pt:"pt-PT",nb:"no",zh:"zh-CN"};Hx={};$w=e=>e.replace(OB,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),OB=/[A-Z]+(?![a-z])|[A-Z]/gu;RB=4e3,DB=2e3,FB=4});function fe(e){return typeof fl[e]=="function"?fl[e]=fl[e](globalThis):fl[e]}var fl,tt=O(()=>{fl=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},fe.add=(e,t,r,n)=>{(n||fl[e]===void 0)&&(fl[e]=t),r&&fe(e)},fe.cache=fl,fe.add("big-integer-warning-enabled",!0),fe.add("esri-deprecation-warnings",!0),fe.add("esri-tests-disable-screenshots",!1),fe.add("esri-tests-use-full-window",!1),fe.add("esri-tests-post-to-influx",!0),fe.add("esri-cim-animations-enable-status","enabled"),fe.add("esri-cim-animations-spotlight",!1),fe.add("esri-cim-animations-freeze-time",!1),fe.add("enable-feature:multiple-highlights",!0),(()=>{fe.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(fe.add("host-browser",e),fe.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),fe.add("dom",e),fe("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(fe.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),fe.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),fe.add("khtml",n.includes("Konqueror")?i:void 0),fe.add("edge",parseFloat(r.split("Edge/")[1])||void 0),fe.add("opr",parseFloat(r.split("OPR/")[1])||void 0),fe.add("webkit",!fe("wp")&&!fe("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),fe.add("chrome",!fe("edge")&&!fe("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),fe.add("android",!fe("wp")&&parseFloat(r.split("Android ")[1])||void 0),fe.add("safari",!n.includes("Safari")||fe("wp")||fe("chrome")||fe("android")||fe("edge")||fe("opr")?void 0:parseFloat(n.split("Version/")[1])),fe.add("mac",n.includes("Macintosh")),!fe("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",l=parseFloat(s.replace(/_/,".").replaceAll("_",""));fe.add(o,l),fe.add("ios",l)}fe("webkit")||(!r.includes("Gecko")||fe("wp")||fe("khtml")||fe("edge")||fe.add("mozilla",i),fe("mozilla")&&fe.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&fe.add("esri-mobile",t),r&&fe.add("esri-iPhone",r),fe.add("esri-geolocation",!!navigator.geolocation)}fe.add("esri-wasm","WebAssembly"in globalThis),fe.add("esri-performance-mode-frames-between-render",20),fe.add("esri-force-performance-mode",!1),fe.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),fe.add("wasm-simd",()=>{let e=[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(e))}),fe.add("esri-atomics","Atomics"in globalThis),fe.add("esri-workers","Worker"in globalThis),fe.add("web-feat:cache","caches"in globalThis),fe.add("esri-workers-arraybuffer-transfer",!fe("safari")||Number(fe("safari"))>=12),fe.add("workers-pool-size",8),fe.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),fe.add("featurelayer-simplify-payload-size-factors",[1,1,4]),fe.add("featurelayer-fast-triangulation-enabled",!0),fe.add("featurelayer-animation-enabled",!0),fe.add("featurelayer-snapshot-enabled",!0),fe.add("featurelayer-snapshot-point-min-threshold",8e4),fe.add("featurelayer-snapshot-point-max-threshold",4e5),fe.add("featurelayer-snapshot-point-coverage",.1),fe.add("featurelayer-query-max-depth",4),fe.add("featurelayer-query-pausing-enabled",!1),fe.add("featurelayer-advanced-symbols",!1),fe.add("featurelayer-pbf",!0),fe.add("featurelayer-pbf-statistics",!1),fe.add("feature-layers-workers",!0),fe.add("feature-polyline-generalization-factor",1),fe.add("mapview-transitions-duration",200),fe.add("mapview-essential-goto-duration",200),fe.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),fe.add("mapserver-pbf-version-support",10.81),fe.add("mapservice-popup-identify-max-tolerance",20),fe.add("request-queue-hosted-concurrency",16),fe.add("request-queue-non-hosted-concurrency",4),fe("host-webworker")||fe("host-browser")&&(fe.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),fe.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{fe.add("esri-image-decode",!0,!0,!0)}).catch(()=>{fe.add("esri-image-decode",!1,!0,!0)})}return!1}),fe.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var Eu,Zr=O(()=>{Eu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};Eu._m=2147483647,Eu._a=48271,Eu._c=0});function ml(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Yx(e,t,r,n){n=n||M8;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function A8(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Po.clear();for(let l=0;l<n;++l)Po.add(t[l]);i=i||M8;let s=Math.max(0,i.last-10);for(let l=s;l<r;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;for(let l=0;l<s;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;return Po.clear(),r}function I8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function L8(e,t){return e!=null}var $B,Fle,kh,M8,Po,$le,hl=O(()=>{Zr();$B=1.5,Fle=1/$B;kh=class{constructor(){this.last=0}},M8=new kh;Po=new Set;$le=new Eu});function k8(e){return e?.constructor?.name==="Int8Array"}function N8(e){return e?.constructor?.name==="Uint8Array"}function O8(e){return e?.constructor?.name==="Uint8ClampedArray"}function R8(e){return e?.constructor?.name==="Int16Array"}function D8(e){return e?.constructor?.name==="Uint16Array"}function F8(e){return e?.constructor?.name==="Int32Array"}function $8(e){return e?.constructor?.name==="Uint32Array"}function V8(e){return e?.constructor?.name==="Float32Array"}function U8(e){return e?.constructor?.name==="Float64Array"}var z8=O(()=>{tt()});function zw(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&zw(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Je(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=q8(e);if(t!=null)return t;if(B8(e))return e.clone();if(G8(e))return e.map(Je);if(j8(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Je(e[n]);return r}function Uw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=q8(e);if(t!=null)return t;if(G8(e)){let n=!0,i=e.map(o=>{let s=Uw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(B8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(j8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=Uw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function B8(e){return typeof e.clone=="function"}function G8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function j8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function W8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function q8(e){if(k8(e)||N8(e)||O8(e)||R8(e)||D8(e)||F8(e)||$8(e)||V8(e)||U8(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,Je(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Je(r));return t}return null}function Nh(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function Ww(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&ml(e,t):e instanceof Set?t instanceof Set&&UB(e,t):e instanceof Map?t instanceof Map&&zB(e,t):!!W8(e)&&W8(t)&&VB(e,t))}function VB(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function UB(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function zB(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var ar=O(()=>{hl();z8()});function H8(e,t,r=!1){return Y8(e,t,r)}function qi(e,t){if(t!=null)return t[e]||Z8(e.split("."),!1,t)}function oa(e,t,r){let n=e.split("."),i=n.pop(),o=Z8(n,!0,r);o&&i&&(o[i]=t)}function Z8(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function Y8(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=Je(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(l=>{o.includes(l)||o.push(l)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=Y8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ws=O(()=>{ar()});function J8(e){return e??""}function ys(e,t){return t?e.replaceAll(WB,typeof t=="object"?(r,n)=>J8(qi(n,t)):(r,n)=>J8(t(n))):e}function X8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function Q8(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var WB,gl=O(()=>{ws();WB=/\{([^}]+)\}/g});var sa,Bw,Gw,jw,Mo,gf,_r,Ao,wl=O(()=>{sa=class extends Error{},Bw=class extends sa{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Gw=class extends sa{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},jw=class extends sa{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Mo=class extends sa{},gf=class extends sa{constructor(t){super(`Invalid unit ${t}`)}},_r=class extends sa{},Ao=class extends sa{constructor(){super("Zone is an abstract class")}}});var ke,Io,Ci,yl,Oh,Jx,Rh,Dh,Fh,$h,Vh,Uh,zh,Wh,Bh,Gh,jh,qh,Hh,Zh,Xx,Yh,Jh,Xh,Qh,Kh=O(()=>{ke="numeric",Io="short",Ci="long",yl={year:ke,month:ke,day:ke},Oh={year:ke,month:Io,day:ke},Jx={year:ke,month:Io,day:ke,weekday:Io},Rh={year:ke,month:Ci,day:ke},Dh={year:ke,month:Ci,day:ke,weekday:Ci},Fh={hour:ke,minute:ke},$h={hour:ke,minute:ke,second:ke},Vh={hour:ke,minute:ke,second:ke,timeZoneName:Io},Uh={hour:ke,minute:ke,second:ke,timeZoneName:Ci},zh={hour:ke,minute:ke,hourCycle:"h23"},Wh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Bh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Io},Gh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Ci},jh={year:ke,month:ke,day:ke,hour:ke,minute:ke},qh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},Hh={year:ke,month:Io,day:ke,hour:ke,minute:ke},Zh={year:ke,month:Io,day:ke,hour:ke,minute:ke,second:ke},Xx={year:ke,month:Io,day:ke,weekday:Io,hour:ke,minute:ke},Yh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,timeZoneName:Io},Jh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Io},Xh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,timeZoneName:Ci},Qh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,second:ke,timeZoneName:Ci}});var Nr,Cu=O(()=>{wl();Nr=class{get type(){throw new Ao}get name(){throw new Ao}get ianaName(){return this.name}get isUniversal(){throw new Ao}offsetName(t,r){throw new Ao}formatOffset(t,r){throw new Ao}offset(t){throw new Ao}equals(t){throw new Ao}get isValid(){throw new Ao}}});var Qx,vl,Hw=O(()=>{Zn();Cu();Qx=null,vl=class e extends Nr{static get instance(){return Qx===null&&(Qx=new e),Qx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Zw(t,r,n)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function BB(e){return Jw[e]||(Jw[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Jw[e]}function jB(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,l,a,d,h]=n;return[s,i,o,l,a,d,h]}function qB(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],l=GB[o];o==="era"?n[l]=s:He(l)||(n[l]=parseInt(s,10))}return n}var Jw,GB,Yw,or,_l=O(()=>{Zn();Cu();Jw={};GB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Yw={},or=class e extends Nr{static create(t){return Yw[t]||(Yw[t]=new e(t)),Yw[t]}static resetCache(){Yw={},Jw={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Zw(t,r,n,this.name)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=BB(this.name),[i,o,s,l,a,d,h]=n.formatToParts?qB(n,r):jB(n,r);l==="BC"&&(i=-Math.abs(i)+1);let b=wf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,P=S%1e3;return S-=P>=0?P:1e3+P,(b-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function HB(e,t={}){let r=JSON.stringify([e,t]),n=K8[r];return n||(n=new Intl.ListFormat(e,t),K8[r]=n),n}function eS(e,t={}){let r=JSON.stringify([e,t]),n=Kx[r];return n||(n=new Intl.DateTimeFormat(e,t),Kx[r]=n),n}function ZB(e,t={}){let r=JSON.stringify([e,t]),n=tS[r];return n||(n=new Intl.NumberFormat(e,t),tS[r]=n),n}function YB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=rS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),rS[i]=o),o}function JB(){return eg||(eg=new Intl.DateTimeFormat().resolvedOptions().locale,eg)}function XB(e){let t=eP[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,eP[e]=t}return t}function QB(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=eS(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=eS(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function KB(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function eG(e){let t=[];for(let r=1;r<=12;r++){let n=Ce.utc(2009,r,1);t.push(e(n))}return t}function tG(e){let t=[];for(let r=1;r<=7;r++){let n=Ce.utc(2016,11,13+r);t.push(e(n))}return t}function Xw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function rG(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var K8,Kx,tS,rS,eg,eP,nS,iS,oS,nG,St,rg=O(()=>{Zn();ey();xl();Sl();_l();K8={};Kx={};tS={};rS={};eg=null;eP={};nS=class{constructor(t,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 l={useGrouping:!1,...n};n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=ZB(t,l)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):yf(t,3);return gr(r,this.padTo)}}},iS=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),l=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&or.create(l).valid?(i=l,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=eS(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.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}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},oS=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Qw()&&(this.rtf=YB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):tP(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},nG={firstDay:1,minimalDays:4,weekend:[6,7]},St=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||xt.defaultLocale,l=s||(o?"en-US":JB()),a=r||xt.defaultNumberingSystem,d=n||xt.defaultOutputCalendar,h=tg(i)||xt.defaultWeekSettings;return new e(l,a,d,h,s)}static resetCache(){eg=null,Kx={},tS={},rS={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,l,a]=QB(t);this.locale=s,this.numberingSystem=r||l||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=KB(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=rG(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,tg(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return Xw(this,t,sS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=eG(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return Xw(this,t,aS,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=tG(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return Xw(this,void 0,()=>lS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Xw(this,t,cS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(l=>l.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new nS(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new iS(t,this.intl,r)}relFormatter(t={}){return new oS(this.intl,this.isEnglish(),t)}listFormatter(t={}){return HB(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Kw()?XB(this.locale):nG}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var dS,Rt,vf=O(()=>{Zn();Cu();dS=null,Rt=class e extends Nr{static get utcInstance(){return dS===null&&(dS=new e(0)),dS}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(Tu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${bl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${bl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return bl(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var bf,pS=O(()=>{Cu();bf=class extends Nr{constructor(t){super(),this.zoneName=t}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 Lo(e,t){let r;if(He(e)||e===null)return t;if(e instanceof Nr)return e;if(rP(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?vl.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||or.create(e)}else return ko(e)?Rt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new bf(e)}var ty=O(()=>{Cu();_l();vf();pS();Zn();Hw()});function iP(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(fS.hanidec)!==-1)t+=iG.indexOf(e[r]);else for(let i in nP){let[o,s]=nP[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function oP(){_f={}}function Hi({numberingSystem:e},t=""){let r=e||"latn";return _f[r]||(_f[r]={}),_f[r][t]||(_f[r][t]=new RegExp(`${fS[r]}${t}`)),_f[r][t]}var fS,nP,iG,_f,mS=O(()=>{fS={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"},nP={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]},iG=fS.hanidec.replace(/[\[|\]]/g,"").split("");_f={}});var sP,aP,lP,cP,uP,dP,pP,fP,xt,xl=O(()=>{Hw();_l();rg();Sl();ty();Zn();mS();sP=()=>Date.now(),aP="system",lP=null,cP=null,uP=null,dP=60,fP=null,xt=class{static get now(){return sP}static set now(t){sP=t}static set defaultZone(t){aP=t}static get defaultZone(){return Lo(aP,vl.instance)}static get defaultLocale(){return lP}static set defaultLocale(t){lP=t}static get defaultNumberingSystem(){return cP}static set defaultNumberingSystem(t){cP=t}static get defaultOutputCalendar(){return uP}static set defaultOutputCalendar(t){uP=t}static get defaultWeekSettings(){return fP}static set defaultWeekSettings(t){fP=tg(t)}static get twoDigitCutoffYear(){return dP}static set twoDigitCutoffYear(t){dP=t%100}static get throwOnInvalid(){return pP}static set throwOnInvalid(t){pP=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),oP()}}});var ln,ng=O(()=>{ln=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new ln("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ry(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function gP(e,t,r){return r+(Mu(e)?hP:mP)[t-1]}function wP(e,t){let r=Mu(e)?hP:mP,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function ny(e,t){return(e-t+7)%7+1}function ig(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=gP(n,i,o),l=ny(ry(n,i,o),r),a=Math.floor((s-l+14-t)/7),d;return a<1?(d=n-1,a=Pu(d,t,r)):a>Pu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:l,...sg(e)}}function hS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=ny(ry(n,1,t),r),l=El(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=El(d)):a>l?(d=n+1,a-=El(n)):d=n;let{month:h,day:g}=wP(d,a);return{year:d,month:h,day:g,...sg(e)}}function iy(e){let{year:t,month:r,day:n}=e,i=gP(t,r,n);return{year:t,ordinal:i,...sg(e)}}function gS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=wP(t,r);return{year:t,month:n,day:i,...sg(e)}}function wS(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new Mo("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function yP(e,t=4,r=1){let n=og(e.weekYear),i=Ti(e.weekNumber,1,Pu(e.weekYear,t,r)),o=Ti(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function vP(e){let t=og(e.year),r=Ti(e.ordinal,1,El(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function yS(e){let t=og(e.year),r=Ti(e.month,1,12),n=Ti(e.day,1,xf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function vS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Ti(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Ti(r,0,59),l=Ti(n,0,59),a=Ti(i,0,999);return o?s?l?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var mP,hP,bS=O(()=>{Zn();ng();wl();mP=[0,31,59,90,120,151,181,212,243,273,304,334],hP=[0,31,60,91,121,152,182,213,244,274,305,335]});function He(e){return typeof e>"u"}function ko(e){return typeof e=="number"}function og(e){return typeof e=="number"&&e%1===0}function rP(e){return typeof e=="string"}function _P(e){return Object.prototype.toString.call(e)==="[object Date]"}function Qw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Kw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function xP(e){return Array.isArray(e)?e:[e]}function _S(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function SP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Cl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tg(e){if(e==null)return null;if(typeof e!="object")throw new _r("Week settings must be an object");if(!Ti(e.firstDay,1,7)||!Ti(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ti(t,1,7)))throw new _r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ti(e,t,r){return og(e)&&e>=t&&e<=r}function oG(e,t){return e-t*Math.floor(e/t)}function gr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function aa(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function Tl(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function ag(e){if(!(He(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function yf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Mu(e){return e%4===0&&(e%100!==0||e%400===0)}function El(e){return Mu(e)?366:365}function xf(e,t){let r=oG(t-1,12)+1,n=e+(t-r)/12;return r===2?Mu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function wf(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function bP(e,t,r){return-ny(ry(e,1,t),r)+t-1}function Pu(e,t=4,r=1){let n=bP(e,t,r),i=bP(e+1,t,r);return(El(e)-n+i)/7}function lg(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function Zw(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},l=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return l?l.value:null}function Tu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function xS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new _r(`Invalid unit value ${e}`);return t}function Sf(e,t){let r={};for(let n in e)if(Cl(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=xS(i)}return r}function bl(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${gr(r,2)}:${gr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${gr(r,2)}${gr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function sg(e){return SP(e,["hour","minute","second","millisecond"])}var Zn=O(()=>{wl();xl();bS()});function sS(e){switch(e){case"narrow":return[...aG];case"short":return[...SS];case"long":return[...sG];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 aS(e){switch(e){case"narrow":return[...lG];case"short":return[...CS];case"long":return[...ES];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function cS(e){switch(e){case"narrow":return[...dG];case"short":return[...uG];case"long":return[...cG];default:return null}}function EP(e){return lS[e.hour<12?0:1]}function CP(e,t){return aS(t)[e.weekday-1]}function TP(e,t){return sS(t)[e.month-1]}function PP(e,t){return cS(t)[e.year<0?0:1]}function tP(e,t,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(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,l=Math.abs(t),a=l===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${l} ${h} ago`:`in ${l} ${h}`}var sG,SS,aG,ES,CS,lG,lS,cG,uG,dG,ey=O(()=>{Kh();Zn();sG=["January","February","March","April","May","June","July","August","September","October","November","December"],SS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aG=["J","F","M","A","M","J","J","A","S","O","N","D"];ES=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],CS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lG=["M","T","W","T","F","S","S"];lS=["AM","PM"],cG=["Before Christ","Anno Domini"],uG=["BC","AD"],dG=["B","A"]});function MP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var pG,cn,cg=O(()=>{ey();Kh();Zn();pG={D:yl,DD:Oh,DDD:Rh,DDDD:Dh,t:Fh,tt:$h,ttt:Vh,tttt:Uh,T:zh,TT:Wh,TTT:Bh,TTTT:Gh,f:jh,ff:Hh,fff:Yh,ffff:Xh,F:qh,FF:Zh,FFF:Jh,FFFF:Qh},cn=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let l=t.charAt(s);l==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||l===r?n+=l:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=l,r=l)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return pG[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return gr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(S,P)=>this.loc.extract(t,S,P),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",l=()=>n?EP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,P)=>n?TP(t,S):o(P?{month:S}:{month:S,day:"numeric"},"month"),d=(S,P)=>n?CP(t,S):o(P?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let P=e.macroTokenToFormatOpts(S);return P?this.formatWithSystemDefault(t,P):S},g=S=>n?PP(t,S):o({era:S},"era"),b=S=>{switch(S){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.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 t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.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(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.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(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.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(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(S)}};return MP(e.parseFormat(r),b)}formatDurationFromString(t,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=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),l=t.shiftTo(...s.map(n).filter(a=>a));return MP(o,i(l))}}});function Cf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Tf(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,l,a]=o(t,i);return[{...r,...s},l||n,a]},[{},null,1]).slice(0,2)}function Pf(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function LP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=aa(t[r+i]);return[n,null,r+i]}}function Ef(e,t,r){let n=e[t];return He(n)?r:aa(n)}function _G(e,t){return[{year:Ef(e,t),month:Ef(e,t+1,1),day:Ef(e,t+2,1)},null,t+3]}function Mf(e,t){return[{hours:Ef(e,t,0),minutes:Ef(e,t+1,0),seconds:Ef(e,t+2,0),milliseconds:ag(e[t+3])},null,t+4]}function ug(e,t){let r=!e[t]&&!e[t+1],n=Tu(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function dg(e,t){let r=e[t]?or.create(e[t]):null;return[{},r,t+1]}function EG(e){let[t,r,n,i,o,s,l,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",b=(S,P=!1)=>S!==void 0&&(P||S&&h)?-S:S;return[{years:b(Tl(r)),months:b(Tl(n)),weeks:b(Tl(i)),days:b(Tl(o)),hours:b(Tl(s)),minutes:b(Tl(l)),seconds:b(Tl(a),a==="-0"),milliseconds:b(ag(d),g)}]}function MS(e,t,r,n,i,o,s){let l={year:t.length===2?lg(aa(t)):aa(t),month:SS.indexOf(r)+1,day:aa(n),hour:aa(i),minute:aa(o)};return s&&(l.second=aa(s)),e&&(l.weekday=e.length>3?ES.indexOf(e)+1:CS.indexOf(e)+1),l}function PG(e){let[,t,r,n,i,o,s,l,a,d,h,g]=e,b=MS(t,i,n,r,o,s,l),S;return a?S=CG[a]:d?S=0:S=Tu(h,g),[b,new Rt(S)]}function MG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function AP(e){let[,t,r,n,i,o,s,l]=e;return[MS(t,i,n,r,o,s,l),Rt.utcInstance]}function kG(e){let[,t,r,n,i,o,s,l]=e;return[MS(t,l,r,n,i,o,s),Rt.utcInstance]}function DP(e){return Pf(e,[NG,RP],[OG,FG],[RG,$G],[DG,VG])}function FP(e){return Pf(MG(e),[TG,PG])}function $P(e){return Pf(e,[AG,AP],[IG,AP],[LG,kG])}function VP(e){return Pf(e,[SG,EG])}function UP(e){return Pf(e,[xG,UG])}function zP(e){return Pf(e,[zG,RP],[WG,BG])}var IP,kP,fG,TS,NP,PS,mG,hG,gG,wG,yG,vG,OP,bG,xG,SG,CG,TG,AG,IG,LG,NG,OG,RG,DG,RP,FG,$G,VG,UG,zG,WG,BG,AS=O(()=>{Zn();ey();vf();_l();IP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;kP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,fG=`(?:${kP.source}?(?:\\[(${IP.source})\\])?)?`,TS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,NP=RegExp(`${TS.source}${fG}`),PS=RegExp(`(?:T${NP.source})?`),mG=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,hG=/(\d{4})-?W(\d\d)(?:-?(\d))?/,gG=/(\d{4})-?(\d{3})/,wG=LP("weekYear","weekNumber","weekDay"),yG=LP("year","ordinal"),vG=/(\d{4})-(\d\d)-(\d\d)/,OP=RegExp(`${TS.source} ?(?:${kP.source}|(${IP.source}))?`),bG=RegExp(`(?: ${OP.source})?`);xG=RegExp(`^T?${TS.source}$`),SG=/^-?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)?)?)$/;CG={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};TG=/^(?:(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)))$/;AG=/^(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$/,IG=/^(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$/,LG=/^(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})$/;NG=Cf(mG,PS),OG=Cf(hG,PS),RG=Cf(gG,PS),DG=Cf(NP),RP=Tf(_G,Mf,ug,dg),FG=Tf(wG,Mf,ug,dg),$G=Tf(yG,Mf,ug,dg),VG=Tf(Mf,ug,dg);UG=Tf(Mf);zG=Cf(vG,bG),WG=Cf(OP),BG=Tf(Mf,ug,dg)});function Pl(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new wr(n)}function jP(e,t){let r=t.milliseconds??0;for(let n of qG.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function BP(e,t){let r=jP(e,t)<0?-1:1;Au.reduceRight((n,i)=>{if(He(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],l=Math.floor(o/s);t[i]+=l*r,t[n]-=l*s*r}return i},null),Au.reduce((n,i)=>{if(He(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function HG(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var WP,GP,GG,Yi,Af,jG,Au,qG,wr,pg=O(()=>{wl();cg();ng();rg();AS();Zn();xl();Sl();WP="Invalid Duration",GP={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}},GG={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},...GP},Yi=146097/400,Af=146097/4800,jG={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:Af/7,days:Af,hours:Af*24,minutes:Af*24*60,seconds:Af*24*60*60,milliseconds:Af*24*60*60*1e3},...GP},Au=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qG=Au.slice(0).reverse();wr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?jG:GG;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||St.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new _r(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Sf(t,e.normalizeUnit),loc:St.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(ko(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new _r(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=VP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=UP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the Duration is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new jw(n);return new e({invalid:n})}static normalizeUnit(t){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"}[t&&t.toLowerCase()];if(!r)throw new gf(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?cn.create(this.loc,n).formatDurationFromString(this,t):WP}toHuman(t={}){if(!this.isValid)return WP;let r=Au.map(n=>{let i=this.values[n];return He(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=yf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ce.fromMillis(r,{zone:"UTC"}).toISOTime(t))}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?jP(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of Au)(Cl(r.values,i)||Cl(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Pl(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=xS(t(this.values[n],n));return Pl(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Sf(t,e.normalizeUnit)};return Pl(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return Pl(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return BP(this.matrix,t),Pl(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=HG(this.normalize().shiftToAll().toObject());return Pl(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of Au)if(t.indexOf(s)>=0){o=s;let l=0;for(let d in n)l+=this.matrix[d][s]*n[d],n[d]=0;ko(i[s])&&(l+=i[s]);let a=Math.trunc(l);r[s]=a,n[s]=(l*1e3-a*1e3)/1e3}else ko(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 BP(this.matrix,r),Pl(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 t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return Pl(this,{values:t},!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(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of Au)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function ZG(e,t){return!e||!e.isValid?la.invalid("missing or invalid start"):!t||!t.isValid?la.invalid("missing or invalid end"):t<e?la.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var If,la,IS=O(()=>{Sl();pg();xl();wl();ng();cg();Kh();If="Invalid Interval";la=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the Interval is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new Gw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Lf(t),i=Lf(r),o=ZG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Ce.fromISO(n,r),s=o.isValid}catch{s=!1}let l,a;try{l=Ce.fromISO(i,r),a=l.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,l);if(s){let d=wr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=wr.fromISO(n,r);if(d.isValid)return e.before(l,d)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e: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(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(Lf).filter(s=>this.contains(s)).sort((s,l)=>s.toMillis()-l.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,l=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,l)),i=l,o+=1}return n}splitBy(t){let r=wr.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let l=this.start.plus(r.mapUnits(a=>a*i));o=+l>+this.e?this.e:l,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.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(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),l=s.sort((a,d)=>a.time-d.time);for(let a of l)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:If}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=yl,r={}){return this.isValid?cn.create(this.s.loc.clone(r),t).formatInterval(this):If}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:If}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:If}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:If}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:If}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):wr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var ca,LS=O(()=>{Sl();xl();rg();_l();ty();Zn();ca=class{static hasDST(t=xt.defaultZone){let r=Ce.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return or.isValidZone(t)}static normalizeZone(t){return Lo(t,xt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return St.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return St.create(r,null,"gregory").eras(t)}static features(){return{relative:Qw(),localeWeek:Kw()}}}});function qP(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(wr.fromMillis(n).as("days"))}function YG(e,t,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=qP(a,d);return(h-h%7)/7}],["days",qP]],i={},o=e,s,l;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),l=o.plus(i),l>t?(i[a]--,e=o.plus(i),e>t&&(l=e,i[a]--,e=o.plus(i))):e=l);return[e,i,l,s]}function HP(e,t,r,n){let[i,o,s,l]=YG(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[l]:1})),s!==i&&(o[l]=(o[l]||0)+a/(s-i)));let h=wr.fromObject(o,n);return d.length>0?wr.fromMillis(a,n).shiftTo(...d).plus(h):h}var ZP=O(()=>{pg()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(iP(r))}}function QG(e){return e.replace(/\./g,"\\.?").replace(QP,XP)}function YP(e){return e.replace(/\./g,"").replace(QP," ").toLowerCase()}function No(e,t){return e===null?null:{regex:RegExp(e.map(QG).join("|")),deser:([r])=>e.findIndex(n=>YP(r)===YP(n))+t}}function JP(e,t){return{regex:e,deser:([,r,n])=>Tu(r,n),groups:t}}function oy(e){return{regex:e,deser:([t])=>t}}function KG(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ej(e,t){let r=Hi(t),n=Hi(t,"{2}"),i=Hi(t,"{3}"),o=Hi(t,"{4}"),s=Hi(t,"{6}"),l=Hi(t,"{1,2}"),a=Hi(t,"{1,3}"),d=Hi(t,"{1,6}"),h=Hi(t,"{1,9}"),g=Hi(t,"{2,4}"),b=Hi(t,"{4,6}"),S=F=>({regex:RegExp(KG(F.val)),deser:([W])=>W,literal:!0}),A=(F=>{if(e.literal)return S(F);switch(F.val){case"G":return No(t.eras("short"),0);case"GG":return No(t.eras("long"),0);case"y":return Tt(d);case"yy":return Tt(g,lg);case"yyyy":return Tt(o);case"yyyyy":return Tt(b);case"yyyyyy":return Tt(s);case"M":return Tt(l);case"MM":return Tt(n);case"MMM":return No(t.months("short",!0),1);case"MMMM":return No(t.months("long",!0),1);case"L":return Tt(l);case"LL":return Tt(n);case"LLL":return No(t.months("short",!1),1);case"LLLL":return No(t.months("long",!1),1);case"d":return Tt(l);case"dd":return Tt(n);case"o":return Tt(a);case"ooo":return Tt(i);case"HH":return Tt(n);case"H":return Tt(l);case"hh":return Tt(n);case"h":return Tt(l);case"mm":return Tt(n);case"m":return Tt(l);case"q":return Tt(l);case"qq":return Tt(n);case"s":return Tt(l);case"ss":return Tt(n);case"S":return Tt(a);case"SSS":return Tt(i);case"u":return oy(h);case"uu":return oy(l);case"uuu":return Tt(r);case"a":return No(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,lg);case"W":return Tt(l);case"WW":return Tt(n);case"E":case"c":return Tt(r);case"EEE":return No(t.weekdays("short",!1),1);case"EEEE":return No(t.weekdays("long",!1),1);case"ccc":return No(t.weekdays("short",!0),1);case"cccc":return No(t.weekdays("long",!0),1);case"Z":case"ZZ":return JP(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return JP(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return oy(/[a-z_+-/]{1,256}?/i);case" ":return oy(/[^\S\n\r]/);default:return S(F)}})(e)||{invalidReason:JG};return A.token=e,A}function rj(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let l=tj[s];if(typeof l=="object"&&(l=l[o]),l)return{literal:!1,val:l}}function nj(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function ij(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Cl(r,s)){let l=r[s],a=l.groups?l.groups+1:1;!l.literal&&l.token&&(i[l.token.val[0]]=l.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function oj(e){let t=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 He(e.z)||(r=or.create(e.z)),He(e.Z)||(r||(r=new Rt(e.Z)),n=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),He(e.u)||(e.S=ag(e.u)),[Object.keys(e).reduce((o,s)=>{let l=t(s);return l&&(o[l]=e[s]),o},{}),r,n]}function sj(){return kS||(kS=Ce.fromMillis(1555555555555)),kS}function aj(e,t){if(e.literal)return e;let r=cn.macroTokenToFormatOpts(e.val),n=RS(r,t);return n==null||n.includes(void 0)?e:n}function NS(e,t){return Array.prototype.concat(...e.map(r=>aj(r,t)))}function OS(e,t,r){return new fg(e,r).explainFromTokens(t)}function KP(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=OS(e,t,r);return[n,i,o,s]}function RS(e,t){if(!e)return null;let n=cn.create(t,e).dtFormatter(sj()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>rj(s,e,o))}var JG,XG,XP,QP,tj,kS,fg,eM=O(()=>{Zn();cg();vf();_l();Sl();mS();wl();JG="missing Intl.DateTimeFormat.formatToParts support";XG="\xA0",XP=`[ ${XG}]`,QP=new RegExp(XP,"g");tj={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"}};kS=null;fg=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=NS(cn.parseFormat(r),t),this.units=this.tokens.map(n=>ej(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=nj(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=ij(t,this.regex,this.handlers),[i,o,s]=n?oj(n):[null,null,void 0];if(Cl(n,"a")&&Cl(n,"H"))throw new Mo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function mg(e){return new ln("unsupported zone",`the zone "${e.name}" is not supported`)}function FS(e){return e.weekData===null&&(e.weekData=ig(e.c)),e.weekData}function $S(e){return e.localWeekData===null&&(e.localWeekData=ig(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Iu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ce({...r,...t,old:r})}function lM(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function sy(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function ly(e,t,r){return lM(wf(e),t,r)}function rM(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,xf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=wr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=wf(o),[a,d]=lM(l,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function kf(e,t,r,n,i,o){let{setZone:s,zone:l}=r;if(e&&Object.keys(e).length!==0||t){let a=t||l,d=Ce.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(l)}else return Ce.invalid(new ln("unparsable",`the input "${i}" can't be parsed as ${n}`))}function ay(e,t,r=!0){return e.isValid?cn.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function VS(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=gr(e.c.year,r?6:4),t?(n+="-",n+=gr(e.c.month),n+="-",n+=gr(e.c.day)):(n+=gr(e.c.month),n+=gr(e.c.day)),n}function nM(e,t,r,n,i,o){let s=gr(e.c.hour);return t?(s+=":",s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=gr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=gr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=gr(Math.trunc(-e.o/60)),s+=":",s+=gr(Math.trunc(-e.o%60))):(s+="+",s+=gr(Math.trunc(e.o/60)),s+=":",s+=gr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function pj(e){let t={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"}[e.toLowerCase()];if(!t)throw new gf(e);return t}function iM(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return pj(e)}}function fj(e){return uy[e]||(cy===void 0&&(cy=xt.now()),uy[e]=e.offset(cy)),uy[e]}function oM(e,t){let r=Lo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(mg(r));let n=St.fromObject(t),i,o;if(He(e.year))i=xt.now();else{for(let a of uM)He(e[a])&&(e[a]=cM[a]);let s=yS(e)||vS(e);if(s)return Ce.invalid(s);let l=fj(r);[i,o]=ly(e,l,r)}return new Ce({ts:i,zone:r,loc:n,o})}function sM(e,t,r){let n=He(r.round)?!0:r.round,i=(s,l)=>(s=yf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,l)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let l=o(s);if(Math.abs(l)>=1)return i(l,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function aM(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function Lf(e){if(Ce.isDateTime(e))return e;if(e&&e.valueOf&&ko(e.valueOf()))return Ce.fromJSDate(e);if(e&&typeof e=="object")return Ce.fromObject(e);throw new _r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var DS,tM,cM,lj,cj,uM,uj,dj,cy,uy,Ce,Sl=O(()=>{pg();IS();xl();LS();cg();vf();rg();Zn();ty();ZP();AS();eM();bS();Kh();wl();ng();DS="Invalid DateTime",tM=864e13;cM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},lj={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},cj={ordinal:1,hour:0,minute:0,second:0,millisecond:0},uM=["year","month","day","hour","minute","second","millisecond"],uj=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],dj=["year","ordinal","hour","minute","second","millisecond"];uy={},Ce=class e{constructor(t){let r=t.zone||xt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new ln("invalid input"):null)||(r.isValid?null:mg(r));this.ts=He(t.ts)?xt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let l=ko(t.o)&&!t.old?t.o:r.offset(this.ts);i=sy(this.ts,l),n=Number.isNaN(i.year)?new ln("invalid input"):null,i=n?null:i,o=n?null:l}this._zone=r,this.loc=t.loc||St.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=aM(arguments),[n,i,o,s,l,a,d]=r;return oM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static utc(){let[t,r]=aM(arguments),[n,i,o,s,l,a,d]=r;return t.zone=Rt.utcInstance,oM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=_P(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Lo(r.zone,xt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:St.fromObject(r)}):e.invalid(mg(i))}static fromMillis(t,r={}){if(ko(t))return t<-tM||t>tM?e.invalid("Timestamp out of range"):new e({ts:t,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ko(t))return new e({ts:t*1e3,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Lo(r.zone,xt.defaultZone);if(!n.isValid)return e.invalid(mg(n));let i=St.fromObject(r),o=Sf(t,iM),{minDaysInFirstWeek:s,startOfWeek:l}=wS(o,i),a=xt.now(),d=He(r.specificOffset)?n.offset(a):r.specificOffset,h=!He(o.ordinal),g=!He(o.year),b=!He(o.month)||!He(o.day),S=g||b,P=o.weekYear||o.weekNumber;if((S||h)&&P)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&h)throw new Mo("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!S,F,W,z=sy(a,d);A?(F=uj,W=lj,z=ig(z,s,l)):h?(F=dj,W=cj,z=iy(z)):(F=uM,W=cM);let q=!1;for(let Ee of F){let Ne=o[Ee];He(Ne)?q?o[Ee]=W[Ee]:o[Ee]=z[Ee]:q=!0}let G=A?yP(o,s,l):h?vP(o):yS(o),Y=G||vS(o);if(Y)return e.invalid(Y);let ie=A?hS(o,s,l):h?gS(o):o,[U,me]=ly(ie,d,n),Ae=new e({ts:U,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=DP(t);return kf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=FP(t);return kf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=$P(t);return kf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[l,a,d,h]=KP(s,t,r);return h?e.invalid(h):kf(l,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=zP(t);return kf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the DateTime is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new Bw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=RS(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return NS(cn.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){cy=void 0,uy={}}get(t){return this[t]}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?FS(this).weekYear:NaN}get weekNumber(){return this.isValid?FS(this).weekNumber:NaN}get weekday(){return this.isValid?FS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?$S(this).weekday:NaN}get localWeekNumber(){return this.isValid?$S(this).weekNumber:NaN}get localWeekYear(){return this.isValid?$S(this).weekYear:NaN}get ordinal(){return this.isValid?iy(this.c).ordinal:NaN}get monthShort(){return this.isValid?ca.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ca.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ca.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ca.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 t=864e5,r=6e4,n=wf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),l=this.zone.offset(n-o*r);if(s===l)return[this];let a=n-s*r,d=n-l*r,h=sy(a,s),g=sy(d,l);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Iu(this,{ts:a}),Iu(this,{ts:d})]:[this]}get isInLeapYear(){return Mu(this.year)}get daysInMonth(){return xf(this.year,this.month)}get daysInYear(){return this.isValid?El(this.year):NaN}get weeksInWeekYear(){return this.isValid?Pu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Pu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=cn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Rt.instance(t),r)}toLocal(){return this.setZone(xt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Lo(t,xt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=ly(s,o,t)}return Iu(this,{ts:i,zone:t})}else return e.invalid(mg(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Iu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Sf(t,iM),{minDaysInFirstWeek:n,startOfWeek:i}=wS(r,this.loc),o=!He(r.weekYear)||!He(r.weekNumber)||!He(r.weekday),s=!He(r.ordinal),l=!He(r.year),a=!He(r.month)||!He(r.day),d=l||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Mo("Can't mix ordinal dates with month/day");let g;o?g=hS({...ig(this.c,n,i),...r},n,i):He(r.ordinal)?(g={...this.toObject(),...r},He(r.day)&&(g.day=Math.min(xf(g.year,g.month),g.day))):g=gS({...iy(this.c),...r});let[b,S]=ly(g,this.o,this.zone);return Iu(this,{ts:b,o:S})}plus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t);return Iu(this,rM(this,r))}minus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t).negate();return Iu(this,rM(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=wr.normalizeUnit(t);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(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?cn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):DS}toLocaleString(t=yl,r={}){return this.isValid?cn.create(this.loc.clone(r),t).formatDateTime(this):DS}toLocaleParts(t={}){return this.isValid?cn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",l=VS(this,s);return l+="T",l+=nM(this,s,r,n,i,o),l}toISODate({format:t="extended"}={}){return this.isValid?VS(this,t==="extended"):null}toISOWeekDate(){return ay(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+nM(this,s==="extended",r,t,n,o):null}toRFC2822(){return ay(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ay(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?VS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),ay(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():DS}[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(t={}){if(!this.isValid)return{};let r={...this.c};return t.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(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return wr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=xP(r).map(wr.normalizeUnit),s=t.valueOf()>this.valueOf(),l=s?this:t,a=s?t:this,d=HP(l,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?la.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),sM(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?sM(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new _r("min requires all arguments be DateTimes");return _S(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new _r("max requires all arguments be DateTimes");return _S(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return OS(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=St.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new fg(o,t)}static fromFormatParser(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new _r(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:l,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):kf(l,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return yl}static get DATE_MED(){return Oh}static get DATE_MED_WITH_WEEKDAY(){return Jx}static get DATE_FULL(){return Rh}static get DATE_HUGE(){return Dh}static get TIME_SIMPLE(){return Fh}static get TIME_WITH_SECONDS(){return $h}static get TIME_WITH_SHORT_OFFSET(){return Vh}static get TIME_WITH_LONG_OFFSET(){return Uh}static get TIME_24_SIMPLE(){return zh}static get TIME_24_WITH_SECONDS(){return Wh}static get TIME_24_WITH_SHORT_OFFSET(){return Bh}static get TIME_24_WITH_LONG_OFFSET(){return Gh}static get DATETIME_SHORT(){return jh}static get DATETIME_SHORT_WITH_SECONDS(){return qh}static get DATETIME_MED(){return Hh}static get DATETIME_MED_WITH_SECONDS(){return Zh}static get DATETIME_MED_WITH_WEEKDAY(){return Xx}static get DATETIME_FULL(){return Yh}static get DATETIME_FULL_WITH_SECONDS(){return Jh}static get DATETIME_HUGE(){return Xh}static get DATETIME_HUGE_WITH_SECONDS(){return Qh}}});var Dn=O(()=>{Sl();pg();IS();LS();Cu();vf();_l();pS();Hw();xl()});function Lu(e){return e instanceof Nr?e===Yr.instance:e?.toString().toLowerCase()==="unknown"}function dy(e){return Lu(e)?Yr.instance:e}var Yr,hg=O(()=>{Dn();Yr=class{};Yr.instance=new or("Etc/UTC")});function Nf(e,t,r){return e<t?e-t:e>r?e-r:0}function Of(e,t,r){return e<t?t:e>r?r:e}function Oo(e,t=!0){if(e instanceof Nr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Yr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Rt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=or.create(e);if(!r.isValid){if(t)throw new US(py.TimeZoneNotRecognized);return null}return r}var py,mj,US,Rf,zS=O(()=>{gl();hg();Dn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(py||(py={}));mj={[py.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},US=class e extends Error{constructor(t,r){super(ys(mj[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Rf=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,l=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(l))return null;let d=Ce.local(t,r).daysInMonth,h=Ce.fromObject({day:Of(n,1,d),year:t,month:Of(r,1,12),hour:Of(i,0,23),minute:Of(o,0,59),second:Of(s,0,59),millisecond:Of(l,0,999)},{zone:Oo(a)});return h=h.plus({months:Nf(r,1,12),days:Nf(n,1,d),hours:Nf(i,0,23),minutes:Nf(o,0,59),seconds:Nf(s,0,59),milliseconds:Nf(l,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Oo(r);return t.isUnknownTimeZone||n===Yr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Ce.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ce.fromMillis(t,{zone:Yr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ce.fromMillis(t.getTime(),{zone:Yr.instance}))}static epochToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Oo(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Oo(r);return t.zone===Yr.instance||n===Yr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Oo(t);return new e(Ce.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ce.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===Yr.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 t=this._date.weekday;return t>6&&(t=0),t}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 t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,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 e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Ce.fromISO(t,{setZone:!0});return new e(r)}}});function Pt(e){return e?{remove(){e&&(e(),e=void 0)}}:hj}function gj(e){e.forEach(t=>t?.remove())}function ku(e){return Pt(()=>gj(e))}var hj,ci=O(()=>{hj={remove:()=>{}}});function pM(){let e=WS?.getAttribute("lang"),t=globalThis.navigator?.language;return yj??e??t??"en"}function Ji(){return gg===void 0&&(gg=pM()),gg}function BS(e){return fy.push(e),Pt(()=>fy.splice(fy.indexOf(e),1))}function Df(e){return my.push(e),Pt(()=>my.splice(my.indexOf(e),1))}function dM(){let e=wj??pM();gg!==e&&([...my].forEach(t=>t(e)),gg=e,[...fy].forEach(t=>t(e)))}var wj,gg,yj,WS,fy,my,Ml=O(()=>{ci();yj=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,WS=globalThis.document?.documentElement;fy=[];my=[];globalThis.addEventListener?.("languagechange",dM),WS&&new MutationObserver(()=>{dM()}).observe(WS,{attributeFilter:["lang"]})});function fM(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",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 e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var un,wg=O(()=>{zS();Ml();Dn();un=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}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(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(t)})}toDateTimeLuxon(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=fM(t)),!t)return"";let n=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(t)}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(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Ce.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Ce.fromMillis(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ce.fromSeconds(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=fM(r))&&n.push(r);else if(r===null||r===""){let i=Ce.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ce.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ce.fromJSDate(new Date).setZone(Oo(t));return new e(r.year,r.month,r.day)}}});var K,vj,oe,Al=O(()=>{gl();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(K||(K={}));vj={[K.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[K.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[K.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[K.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[K.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[K.UnsupportedOperator]:"Unsupported operator - {operator}",[K.UnsupportedSyntax]:"Unsupported syntax - {node}",[K.UnsupportedSqlFunction]:"Sql function not found = {function}",[K.InvalidDataType]:"Invalid sql data type",[K.InvalidDate]:"Invalid date encountered",[K.InvalidOperator]:"Invalid operator encountered",[K.InvalidTime]:"Invalid time encountered",[K.IllegalInterval]:"Illegal interval",[K.FunctionNotRecognized]:"Function not recognized",[K.InvalidTimeStamp]:"Invalid timestamp encountered",[K.InvalidParameterCount]:"Invalid parameter count for call to {name}",[K.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[K.YearMonthIntervals]:"Year-Month Intervals not supported",[K.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(ys(vj[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function mM(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var bn,yg=O(()=>{Dn();bn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ce.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return mM(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return mM(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 e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Ce.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,l=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,b="";s<10&&(b="0");let S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${b+s.toString()}`;l!==0&&(S+="."+l.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+P)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function R(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var gt=O(()=>{});var hy,gy=O(()=>{hy="20250114"});var Mt,Il=O(()=>{tt();ws();gy();Mt={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&&(H8(Mt,globalThis.esriConfig,!0),delete Mt.has),!Mt.assetsPath){{let e="4.32.0";Mt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${hy}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function bj(e,t,...r){console[e](`[${t}]`,...r)}function _j(...e){return Q8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hM,ot,it=O(()=>{Il();tt();gl();hM={info:0,warn:1,error:2,none:3},ot=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=_j(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Mt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",bj)}_matchLevel(t){let r=Mt.log.level||"warn";return hM[this._parentWithMember("level",r)]<=hM[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ot._loggers=new Map,ot._tickCounter=0,ot._tickCounterScheduled=!1,ot._throttlingDisabled=!1});function Ff(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var wy=O(()=>{});function xj(e){return e==null?e:new Date(e)}function Sj(e){return e==null?e:!!e}function Ej(e){return e==null?e:e.toString()}function HS(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function Cj(e){return e==null?e:Math.round(parseFloat(e))}function Tj(e){return null}function wM(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function yM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function yy(e,t){return t!=null&&e&&!(t instanceof e)}function vM(e){return e&&"isCollection"in e}function gM(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function Pj(e,t){if(!t?.constructor||!vM(t.constructor))return GS(e,t)?t:new e(t);let r=gM(e.prototype.itemType),n=gM(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(GS(e,t),t):new e(t):t}function GS(e,t){return!!yM(t)&&($f().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+vy(e)+"'"),!0)}function ZS(e,t){return t==null?t:vM(e)?Pj(e,t):yy(e,t)?GS(e,t)?t:new e(t):t}function vy(e){return e?.prototype?.declaredClass||"unknown"}function Aj(e){switch(e){case Number:return t=>HS(t);case di:return Cj;case Boolean:return Sj;case String:return Ej;case Date:return xj;case bg:return Tj;default:return Ff(Mj,e,()=>ZS.bind(null,e))}}function ui(e,t){let r=Aj(e);return arguments.length===1?r:r(t)}function Vf(e,t,r){return arguments.length===1?Vf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function bM(e,t){return arguments.length===1?Vf(r=>ui(e,r)):Vf(r=>ui(e,r),t)}function _M(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>_M(e,t-1,n)):e(r)}function vg(e,t,r){if(arguments.length===2)return o=>vg(e,t,o);if(!r)return r;r=_M(e,t,r);let n=t,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 xM(e,t,r){return arguments.length===2?vg(n=>ui(e,n),t):vg(n=>ui(e,n),t,r)}function by(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function _y(e,t){if(arguments.length===2)return _y(e).call(null,t);let r=new Set,n=e.filter(l=>typeof l!="function"),i=e.filter(l=>typeof l=="function");for(let l of e)typeof l!="string"&&typeof l!="number"||r.add(l);let o=null,s=null;return(l,a)=>{if(l==null)return l;let d=typeof l,h=d==="string"||d==="number";return h&&(r.has(l)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!yy(l,g))?l:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),$f().error("Accessor#set",`'${l}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof l=="object"&&i.length?(s||(s=i.map(g=>vy(g)).join(", ")),$f().error("Accessor#set",`'${l}' is not a valid value for this property, value must be one of ${s}`)):$f().error("Accessor#set",`'${l}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Ro(e,t){if(arguments.length===2)return Ro(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=ui(d),n.push(vy(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,l=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!yy(e.base,a)||a==null)return a;let d=l(a)||e.defaultKeyValue,h=r[d];if(!h)return $f().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(!yy(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!yM(a)){let g={};for(let b in a)b!==e.key&&(g[b]=a[b]);return h(g)}return h(a)}}function SM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function YS(e){switch(e.type){case"native":return ui(e.value);case"array":return Vf(YS(e.value));case"one-of":return Ij(e);default:return null}}function Ij(e){let t=null;return(r,n)=>qS(r,e)?r:(t==null&&(t=jS(e)),$f().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function jS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case di:return"integer";case Date:return"date";case bg:return"null";default:return vy(e.value)}case"array":return`array of ${jS(e.value)}`;case"one-of":{let t=e.values.map(r=>jS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function qS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case di:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case bg:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!qS(r,t.value));case"one-of":return t.values.some(r=>qS(e,r))}}var $f,Mj,di,bg,Xi=O(()=>{tt();it();wy();$f=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");Mj=new WeakMap;di=class{},bg=class{}});function Pi(e){return e.__accessor__??null}function CM(e,t){return e?.metadata?.[t]!=null}function Uf(e,t,r){return r?xy(e,t,{policy:r,path:""}):xy(e,t,null)}function xy(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,l="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,l=r.policy(s)),l==="replace"||l==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Je(t[o]),n;let a=n[o],d=t[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]=xy(a,d,r),r.path=h}else n[o]=xy(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function Sy(e){return Array.isArray(e)?e:e.split(".")}function EM(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function Lj(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...EM(r));return t}return EM(e)}function JS(e,t,r,n){let i=Lj(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return ku(o)}return n(e,i[0],r)}var ua=O(()=>{ci();ar()});function TM(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=Pi(t);return CM(n,r)?n.get(r):t[r]}function PM(e,t,r){if(e==null)return e;let n=TM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:PM(n,t,r+1)}function Nu(e,t,r=0){return typeof t!="string"||t.includes(".")?PM(e,Sy(t),r):TM(t,e)}function vs(e,t){return Nu(e,t)}function XS(e,t){return Nu(t,e)!==void 0}var Ou=O(()=>{ua()});function Ll(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=Je(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function zf(e,t){let r=Ll(e),n=r[t];return n||(n=r[t]={}),n}function MM(e,t){return Uf(e,t,Nj)}function Nj(e){return kj.test(e)?"replace":"merge"}var kj,Wf=O(()=>{ar();ua();kj=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function Oj(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(qi(n,t)??"").toString())}var Bf,QS=O(()=>{ws();Bf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&Oj(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var je,Fn=O(()=>{ar();it();QS();je=class e extends Bf{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Je(r)}catch{return"[object]"}}))}}catch(t){throw ot.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};je.prototype.type="error"});function Gf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Gf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Gf(vs(e,i),o,r)}let n=e.__accessor__;n!=null&&Rj(t,n),e[t]=r}}function Rj(e,t){if(fe("esri-unknown-property-errors")&&!Dj(e,t))throw new je("set:unknown-property",Fj(e,t))}function Dj(e,t){return t.metadata[e]!=null}function Fj(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var KS=O(()=>{Fn();tt();it();Ou()});function V(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=zf(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ot.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.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=vs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let b=vs(this,h);b&&(g=g.bind(b))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Gf(this,a,g)})}let s=e.type,l=e.types;if(!i.cast){let a;s?a=$j(s):l&&(a=Array.isArray(l)?Vf(Ro(l[0])):Ro(l)),e.cast=Vj(e.cast,a)}MM(i,e),e.range&&(i.cast=wM(i.cast,e.range))}}function Ey(e,t,r){let n=zf(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function $j(e){let t=0,r=e;if(SM(e))return YS(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(by(n))return t===0?_y(n):vg(_y(n),t);if(t===1)return bM(n);if(t>1)return xM(n,t);let i=e;return i.from?i.from:ui(i)}function Vj(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var yt=O(()=>{it();Xi();Ou();Wf();KS()});var Cy,e4=O(()=>{Cy=Symbol("Accessor-beforeDestroy")});var dn,_g=O(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(dn||(dn={}))});var vt,Ty=O(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(vt||(vt={}))});var bs,xg=O(()=>{bs=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Ve(e){Eg.onAccessed(e)}function Do(e,t,r){if(Py)return t4(e,t,r);let n=null;return LM(e),n=t.call(r),kM(),n}function IM(e,t){return Do(Ay,e,t)}function t4(e,t,r){let n=Py;Py=!0,LM(e);let i=null;try{i=t.call(r)}catch(o){My&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return kM(),Py=n,i}function LM(e){Eg=e,Sg.push(e)}function kM(){let e=Sg.length;if(e>1){let t=Sg.pop();Eg=Sg[e-2],t.onTrackingEnd()}else if(e===1){let t=Sg.pop();Eg=Ay,t.onTrackingEnd()}else Eg=Ay}function r4(e,t){if(t.flags&vt.DepTrackingInitialized)return;t.flags|=vt.DepTrackingInitialized;let r=My;My=!1,t.flags&vt.AutoTracked?t4(t.trackingTarget,t.metadata.get,e):n4(e,t),My=r}function n4(e,t){t.flags&vt.ExplicitlyTracking||(t.flags|=vt.ExplicitlyTracking,t4(t.trackingTarget,()=>{let r=t.metadata.dependsOn||Uj;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Sy(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=AM(s,i[o],o!==i.length-1)}else AM(e,n,!1)}),t.flags&=~vt.ExplicitlyTracking)}function AM(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=Pi(e);if(i){let o=i.propertiesByName.get(n);o&&(Ve(o),r4(e,o))}return r?e[n]:void 0}var Ay,Sg,Eg,Py,My,Uj,_s=O(()=>{tt();it();ua();Ty();xg();Ay=new bs,Sg=[],Eg=Ay;Py=!1,My=!1;Uj=[]});function NM(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var OM=O(()=>{});var Cg,RM=O(()=>{QS();Cg=class extends Bf{constructor(t,r,n){super(t,r,n)}};Cg.prototype.type="warning"});function Iy(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var i4=O(()=>{});function s4(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||Bj(e)&&oa("read.reader",a4(e),t))}function a4(e){let t=e.ndimArray??0;if(t>1)return Wj(e);if(t===1)return DM(e);if("type"in e&&$M(e.type)){let r=e.type.prototype?.itemType?.Type,n=DM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let l=n(i,o,s);return l&&new e.type(l)}}return l4(e)}function l4(e){return"type"in e?zj(e.type):Gj(e.types)}function zj(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void o4().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function FM(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>FM(e,i,r,n-1)):e(t,void 0,r)}function Wj(e){let t=l4(e),r=FM.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let l=n,a=i;for(;l>0&&Array.isArray(a);)l--,a=a[0];if(a!==void 0)for(let d=0;d<l;d++)i=[i];return i}}function DM(e){let t=l4(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let l of r){let a=t(l,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function $M(e){if(!Iy(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?c4(t.Type):VM(t.Type))}function Bj(e){return"types"in e?VM(e.types):c4(e.type)}function c4(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||$M(e))}function VM(e){for(let t in e.typeMap)if(!c4(e.typeMap[t]))return!1;return!0}function Gj(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let l=typeof i;if(l!=="object")return void o4().error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);t||(t=jj(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let b=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Cg(`${r}:unsupported`,b,{definition:i,context:s})),void o4().error(b)}let g=new h;return g.read(i,s),n?n(g):g}}function jj(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Ll(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let l=s.target,a=typeof l=="string"?l:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var o4,u4=O(()=>{it();ws();RM();Wf();i4();o4=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function BM(e){if(e.json||(e.json={}),zM(e.json),WM(e.json),UM(e.json),e.json.origins)for(let t in e.json.origins)zM(e.json.origins[t]),WM(e.json.origins[t]),UM(e.json.origins[t]);return!0}function UM(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function zM(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function WM(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var GM=O(()=>{});function d4(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&Iy(e.type))?t.write.writer=Yj:r>1?t.write.writer=Jj(r):t.types?Array.isArray(t.types)?t.write.writer=Hj(t.types[0]):t.write.writer=qj(t.types):t.write.writer=Tg}function qj(e){return(t,r,n,i)=>t?jM(t,e,i)?Tg(t,r,n,i):void 0:Tg(t,r,n,i)}function jM(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new je(`${n}:unsupported`,i,{definition:e,context:r})),ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function Hj(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Tg(t,r,n,i):Tg(t.filter(o=>jM(o,e,i)),r,n,i)}function Tg(e,t,r,n){oa(r,Ly(e,n),t)}function Ly(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?Zj(e):e}function Zj(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function Yj(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>Ly(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[Ly(e,n)],oa(r,i,t)}function qM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>qM(n,t,r-1)):Ly(e,t)}function Jj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=qM(t,i,e);let s=e,l=o;for(;s>0&&Array.isArray(l);)s--,l=l[0];if(l!==void 0)for(let a=0;a<s;a++)o=[o]}oa(n,o,r)}}var HM=O(()=>{Fn();it();ws();i4()});function ZM(e,t){return f4(e,"any",t?.origin)}function ky(e,t){return f4(e,"read",t?.origin)}function YM(e,t){return f4(e,"write",t?.origin)}function f4(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function Xj(e){let t=Qj(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?Kj(n):t;s4(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),d4(i,n)}s4(t,e.json,!0),d4(t,e.json)}function Qj(e){return e.json.types?p4(e.json):e.type?JM(e):p4(e)}function Kj(e){return e.type?JM(e):p4(e)}function JM(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!by(r);)r=r[0],t++;return{type:r,ndimArray:t}}function p4(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function XM(e){BM(e)&&(NM(e),Xj(e))}var Ny=O(()=>{Xi();OM();u4();GM();HM()});function Le(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,tq(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!m4.has(i.initialize)&&(m4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!h4.has(i.destroy)&&(h4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);m4.clear(),h4.clear();let o=class extends t{constructor(...l){if(super(...l),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[Cy];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){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__=Ll(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function eq(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Ve(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function tq(e){let t=e.prototype,r=Ll(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XM(o),n[i]={enumerable:!0,configurable:!0,get:eq(i,o),set(s){let l=this.__accessor__;if(l!==void 0){if(l.mutable)return l.initialized&&o.readOnly?QM("read-only",i):l.lifecycle===dn.CONSTRUCTED&&o.constructOnly?QM("construct-only",i):void l.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var m4,h4,QM,ft=O(()=>{tt();it();e4();_g();Wf();_s();Ny();m4=new Set,h4=new Set;QM=(e,t)=>{ot.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function rq(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=KM.get(e);i||(i=new Set,KM.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function eA(e,t,r={}){if(fe("esri-deprecation-warnings")){let{moduleName:n}=r;nq(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function nq(e,t,r={}){if(fe("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,l=t;n&&(l+=`
1
+ "use strict";(()=>{var Tz=Object.defineProperty;var NT=(e=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(e,{get:(t,r)=>(typeof require<"u"?require:t)[r]}):e)(function(e){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+e+'" is not supported')});var O=(e,t)=>()=>(e&&(t=e(e=0)),t);var OT=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Qs=(e,t)=>{for(var r in t)Tz(e,r,{get:t[r],enumerable:!0})};function EB(e,t){let r=e;for(;r;){if(r===t)return!0;if(!r.parentNode)return!1;r.parentNode instanceof ShadowRoot?r=r.parentNode.host:r=r.parentNode}return!1}function CB(e,t,r){let{subscribe:n}=TB(t);return n(i=>{i.some(s=>EB(e,s.target))&&r()})}function TB(e){let t=e.join(","),r=qx[t];if(r!==void 0)return r;let n=new Set,i=new MutationObserver(s=>n.forEach(l=>l(s)));globalThis.document&&i.observe(document.documentElement,{attributes:!0,attributeFilter:e,subtree:!0});let o={subscribe(s){return n.add(s),{remove:()=>{n.delete(s),n.size===0&&(i.disconnect(),qx[t]=void 0)}}}};return qx[t]=o,o}function PB(e,t){let r=e;for(;r;){let n=r.closest?.(t);if(n)return n;let i=r.getRootNode?.();if(i===globalThis.document)return null;r=i.host}return null}function MB(e,t,r){return PB(e,`[${t}]`)?.getAttribute(t)??r}function Ot(e,t,...r){try{return e?.call(t,...r)}catch(n){console.error(n,e)}}async function Lh(e,t,...r){try{let n=e?.call(t,...r);return n instanceof Promise?await n:n}catch(n){console.error(n,e)}}async function kB(e,t,r=""){let n=`${t}/${r}`,i=`${n}${e}.json`;return Hx[i]??(Hx[i]=S8(e,n)),await Hx[i]}async function S8(e,t){let r=`${t}${e}.json`;try{let n=await fetch(r);if(n.ok)return await n.json()}catch(n){return console.error(n),{}}return e===Fw?{}:await S8(Fw,t)}function Zx(e){let t=MB(e,"lang",globalThis.navigator?.language||Fw);return{lang:t,t9nLocale:E8(t)}}function E8(e){let[t,r]=e.split("-"),n=t.toLowerCase(),i=n;return r&&(i=`${n}-${r.toUpperCase()}`),i=LB[i]??i,IB.has(i)?i:r?E8(n):Fw}function C8(e,t,r,n){let i,o=()=>void NB(e,t,n).then(s=>{(i?.lang!==s.lang||i.t9nLocale!==s.t9nLocale||i.t9nStrings!==s.t9nStrings)&&r(s),i=s}).catch(console.error);return o(),CB(e,["lang"],o)}async function NB(e,t,r=e.tagName.toLowerCase().split("-").slice(1).join("-")){let{lang:n,t9nLocale:i}=Zx(e),o=`${t}/${r}/t9n`,l=r===null?{}:await kB(i,o,"messages.");return{lang:n,t9nLocale:i,t9nStrings:l}}function T8(e,t){let r=t>RB?DB:t/FB,n=0,i=setInterval(()=>{n+=r,n>=t&&(clearInterval(i),e())},r);return i}function P8(e){return e!==void 0}var Co,qx,AB,IB,Fw,LB,Hx,$w,OB,RB,DB,FB,To=O(()=>{"use strict";Co=class{resolve(e){}reject(e){}constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}};qx={};AB=["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"],IB=new Set(AB),Fw="en",LB={pt:"pt-PT",nb:"no",zh:"zh-CN"};Hx={};$w=e=>e.replace(OB,(t,r)=>`${r===0?"":"-"}${t.toLowerCase()}`),OB=/[A-Z]+(?![a-z])|[A-Z]/gu;RB=4e3,DB=2e3,FB=4});function de(e){return typeof fl[e]=="function"?fl[e]=fl[e](globalThis):fl[e]}var fl,tt=O(()=>{fl=globalThis.dojoConfig?.has||globalThis.esriConfig?.has?{...globalThis.dojoConfig?.has,...globalThis.esriConfig?.has}:{},de.add=(e,t,r,n)=>{(n||fl[e]===void 0)&&(fl[e]=t),r&&de(e)},de.cache=fl,de.add("big-integer-warning-enabled",!0),de.add("esri-deprecation-warnings",!0),de.add("esri-tests-disable-screenshots",!1),de.add("esri-tests-use-full-window",!1),de.add("esri-tests-post-to-influx",!0),de.add("esri-cim-animations-enable-status","enabled"),de.add("esri-cim-animations-spotlight",!1),de.add("esri-cim-animations-freeze-time",!1),de.add("enable-feature:multiple-highlights",!0),(()=>{de.add("host-webworker",globalThis.WorkerGlobalScope!==void 0&&self instanceof globalThis.WorkerGlobalScope);let e=typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;if(de.add("host-browser",e),de.add("host-node",typeof globalThis.process=="object"&&globalThis.process.versions?.node&&globalThis.process.versions.v8),de.add("dom",e),de("host-browser")){let t=navigator,r=t.userAgent,n=t.appVersion,i=parseFloat(n);if(de.add("wp",parseFloat(r.split("Windows Phone")[1])||void 0),de.add("msapp",parseFloat(r.split("MSAppHost/")[1])||void 0),de.add("khtml",n.includes("Konqueror")?i:void 0),de.add("edge",parseFloat(r.split("Edge/")[1])||void 0),de.add("opr",parseFloat(r.split("OPR/")[1])||void 0),de.add("webkit",!de("wp")&&!de("edge")&&parseFloat(r.split("WebKit/")[1])||void 0),de.add("chrome",!de("edge")&&!de("opr")&&parseFloat(r.split("Chrome/")[1])||void 0),de.add("android",!de("wp")&&parseFloat(r.split("Android ")[1])||void 0),de.add("safari",!n.includes("Safari")||de("wp")||de("chrome")||de("android")||de("edge")||de("opr")?void 0:parseFloat(n.split("Version/")[1])),de.add("mac",n.includes("Macintosh")),!de("wp")&&/(iPhone|iPod|iPad)/.test(r)){let o=RegExp.$1.replace(/P/,"p"),s=/OS ([\d_]+)/.test(r)?RegExp.$1:"1",l=parseFloat(s.replace(/_/,".").replaceAll("_",""));de.add(o,l),de.add("ios",l)}de("webkit")||(!r.includes("Gecko")||de("wp")||de("khtml")||de("edge")||de.add("mozilla",i),de("mozilla")&&de.add("ff",parseFloat(r.split("Firefox/")[1]||r.split("Minefield/")[1])||void 0))}})(),(()=>{if(globalThis.navigator){let e=navigator.userAgent,t=/Android|webOS|iPhone|iPad|iPod|BlackBerry|Opera Mini|IEMobile/i.test(e),r=/iPhone/i.test(e);t&&de.add("esri-mobile",t),r&&de.add("esri-iPhone",r),de.add("esri-geolocation",!!navigator.geolocation)}de.add("esri-wasm","WebAssembly"in globalThis),de.add("esri-performance-mode-frames-between-render",20),de.add("esri-force-performance-mode",!1),de.add("esri-shared-array-buffer",()=>{let e="SharedArrayBuffer"in globalThis,t=globalThis.crossOriginIsolated===!1;return e&&!t}),de.add("wasm-simd",()=>{let e=[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(e))}),de.add("esri-atomics","Atomics"in globalThis),de.add("esri-workers","Worker"in globalThis),de.add("web-feat:cache","caches"in globalThis),de.add("esri-workers-arraybuffer-transfer",!de("safari")||Number(de("safari"))>=12),de.add("workers-pool-size",8),de.add("featurelayer-simplify-thresholds",[.5,.5,.5,.5]),de.add("featurelayer-simplify-payload-size-factors",[1,1,4]),de.add("featurelayer-fast-triangulation-enabled",!0),de.add("featurelayer-animation-enabled",!0),de.add("featurelayer-snapshot-enabled",!0),de.add("featurelayer-snapshot-point-min-threshold",8e4),de.add("featurelayer-snapshot-point-max-threshold",4e5),de.add("featurelayer-snapshot-point-coverage",.1),de.add("featurelayer-query-max-depth",4),de.add("featurelayer-query-pausing-enabled",!1),de.add("featurelayer-advanced-symbols",!1),de.add("featurelayer-pbf",!0),de.add("featurelayer-pbf-statistics",!1),de.add("feature-layers-workers",!0),de.add("feature-polyline-generalization-factor",1),de.add("mapview-transitions-duration",200),de.add("mapview-essential-goto-duration",200),de.add("mapview-srswitch-adjust-rotation-scale-threshold",24e6),de.add("mapserver-pbf-version-support",10.81),de.add("mapservice-popup-identify-max-tolerance",20),de.add("request-queue-hosted-concurrency",16),de.add("request-queue-non-hosted-concurrency",4),de.add("curve-densification-coarse-segments",128),de.add("curve-densification-max-segments",2e3),de.add("curve-densification-min-segments",3),de.add("curve-densification-pixels-per-segment",16),de("host-webworker")||de("host-browser")&&(de.add("esri-csp-restrictions",()=>{try{new Function}catch{return!0}return!1}),de.add("esri-image-decode",()=>{if("decode"in new Image){let e=new Image;return e.src='data:image/svg+xml;charset=UTF-8,<svg version="1.1" xmlns="http://www.w3.org/2000/svg"></svg>',void e.decode().then(()=>{de.add("esri-image-decode",!0,!0,!0)}).catch(()=>{de.add("esri-image-decode",!1,!0,!0)})}return!1}),de.add("esri-url-encodes-apostrophe",()=>{let e=window.document.createElement("a");return e.href="?'",e.href.includes("?%27")}))})()});var Eu,Zr=O(()=>{Eu=class e{constructor(t=1){this._seed=t}set seed(t){this._seed=t??Math.random()*e._m}getInt(){return this._seed=(e._a*this._seed+e._c)%e._m,this._seed}getFloat(){return this.getInt()/(e._m-1)}getIntRange(t,r){return Math.round(this.getFloatRange(t,r))}getFloatRange(t,r){let n=r-t;return t+this.getInt()/e._m*n}};Eu._m=2147483647,Eu._a=48271,Eu._c=0});function ml(e,t,r){if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;if(r){for(let n=0;n<e.length;n++)if(!r(e[n],t[n]))return!1}else for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Yx(e,t,r,n){n=n||M8;let i=Math.max(0,n.last-10);for(let s=i;s<r;++s)if(e[s]===t)return n.last=s,s;let o=Math.min(i,r);for(let s=0;s<o;++s)if(e[s]===t)return n.last=s,s;return-1}function A8(e,t,r=e.length,n=t.length,i,o){if(n===0||r===0)return r;Po.clear();for(let l=0;l<n;++l)Po.add(t[l]);i=i||M8;let s=Math.max(0,i.last-10);for(let l=s;l<r;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;for(let l=0;l<s;++l)if(Po.has(e[l])&&(o?.push(e[l]),Po.delete(e[l]),e[l]=e[r-1],--r,--l,Po.size===0||r===0))return Po.clear(),r;return Po.clear(),r}function I8(e,t){let r=e.indexOf(t);return r!==-1?(e.splice(r,1),t):null}function L8(e,t){return e!=null}var $B,Fle,kh,M8,Po,$le,hl=O(()=>{Zr();$B=1.5,Fle=1/$B;kh=class{constructor(){this.last=0}},M8=new kh;Po=new Set;$le=new Eu});function k8(e){return e?.constructor?.name==="Int8Array"}function N8(e){return e?.constructor?.name==="Uint8Array"}function O8(e){return e?.constructor?.name==="Uint8ClampedArray"}function R8(e){return e?.constructor?.name==="Int16Array"}function D8(e){return e?.constructor?.name==="Uint16Array"}function F8(e){return e?.constructor?.name==="Int32Array"}function $8(e){return e?.constructor?.name==="Uint32Array"}function V8(e){return e?.constructor?.name==="Float32Array"}function U8(e){return e?.constructor?.name==="Float64Array"}var z8=O(()=>{tt()});function zw(e,t){let r;if(t)for(r in e)e.hasOwnProperty(r)&&(e[r]===void 0?delete e[r]:e[r]instanceof Object&&zw(e[r],!0));else for(r in e)e.hasOwnProperty(r)&&e[r]===void 0&&delete e[r];return e}function Je(e){if(!e||typeof e!="object"||typeof e=="function")return e;let t=q8(e);if(t!=null)return t;if(B8(e))return e.clone();if(G8(e))return e.map(Je);if(j8(e))throw new Error("Trying to clone an unclonable Accessor instance");let r={};for(let n of Object.getOwnPropertyNames(e))r[n]=Je(e[n]);return r}function Uw(e){if(!e||typeof e!="object"||typeof e=="function"||"HTMLElement"in globalThis&&e instanceof HTMLElement)return e;let t=q8(e);if(t!=null)return t;if(G8(e)){let n=!0,i=e.map(o=>{let s=Uw(o);return o!=null&&s==null&&(n=!1),s});return n?i:null}if(B8(e))return e.clone();if(e instanceof File||e instanceof Blob)return e;if(j8(e))return null;let r=new(Object.getPrototypeOf(e)).constructor;for(let n of Object.getOwnPropertyNames(e)){let i=e[n],o=Uw(i);if(i!=null&&o==null)return null;r[n]=o}return r}function B8(e){return typeof e.clone=="function"}function G8(e){return typeof e.map=="function"&&typeof e.forEach=="function"}function j8(e){return typeof e.notifyChange=="function"&&typeof e.watch=="function"}function W8(e){if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function q8(e){if(k8(e)||N8(e)||O8(e)||R8(e)||D8(e)||F8(e)||$8(e)||V8(e)||U8(e))return e.slice();if(e instanceof Date)return new Date(e.getTime());if(e instanceof ArrayBuffer)return e.slice(0,e.byteLength);if(e instanceof Map){let t=new Map;for(let[r,n]of e)t.set(r,Je(n));return t}if(e instanceof Set){let t=new Set;for(let r of e)t.add(Je(r));return t}return null}function Nh(e,t){return e===t||typeof e=="number"&&isNaN(e)&&typeof t=="number"&&isNaN(t)||typeof e?.getTime=="function"&&typeof t?.getTime=="function"&&e.getTime()===t.getTime()||!1}function Ww(e,t){return e===t||(e==null||typeof e=="string"?e===t:typeof e=="number"?e===t||typeof t=="number"&&isNaN(e)&&isNaN(t):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():Array.isArray(e)?Array.isArray(t)&&ml(e,t):e instanceof Set?t instanceof Set&&UB(e,t):e instanceof Map?t instanceof Map&&zB(e,t):!!W8(e)&&W8(t)&&VB(e,t))}function VB(e,t){if(e===null||t===null)return!1;let r=Object.keys(e);if(t===null||Object.keys(t).length!==r.length)return!1;for(let n of r)if(e[n]!==t[n]||!Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function UB(e,t){if(e.size!==t.size)return!1;for(let r of e)if(!t.has(r))return!1;return!0}function zB(e,t){if(e.size!==t.size)return!1;for(let[r,n]of e){let i=t.get(r);if(i!==n||i===void 0&&!t.has(r))return!1}return!0}var ar=O(()=>{hl();z8()});function H8(e,t,r=!1){return Y8(e,t,r)}function qi(e,t){if(t!=null)return t[e]||Z8(e.split("."),!1,t)}function oa(e,t,r){let n=e.split("."),i=n.pop(),o=Z8(n,!0,r);o&&i&&(o[i]=t)}function Z8(e,t,r){let n=r;for(let i of e){if(n==null)return;if(!(i in n)){if(!t)return;n[i]={}}n=n[i]}return n}function Y8(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=n[i],s=t[i];return o===s?n:o===void 0?(n[i]=Je(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(l=>{o.includes(l)||o.push(l)}):n[i]=s.slice())):s&&typeof s=="object"?n[i]=Y8(o,s,r):n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[i]=s),n)},e||{}):e}var ws=O(()=>{ar()});function J8(e){return e??""}function ys(e,t){return t?e.replaceAll(WB,typeof t=="object"?(r,n)=>J8(qi(n,t)):(r,n)=>J8(t(n))):e}function X8(e,t){return e.replaceAll(/([.$?*|{}()[\]\\/+\-^])/g,r=>t?.includes(r)?r:`\\${r}`)}function Q8(e){let t=0;for(let r=0;r<e.length;r++)t=(t<<5)-t+e.charCodeAt(r),t|=0;return t}var WB,gl=O(()=>{ws();WB=/\{([^}]+)\}/g});var sa,Bw,Gw,jw,Mo,gf,_r,Ao,wl=O(()=>{sa=class extends Error{},Bw=class extends sa{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}},Gw=class extends sa{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}},jw=class extends sa{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}},Mo=class extends sa{},gf=class extends sa{constructor(t){super(`Invalid unit ${t}`)}},_r=class extends sa{},Ao=class extends sa{constructor(){super("Zone is an abstract class")}}});var ke,Io,Ci,yl,Oh,Jx,Rh,Dh,Fh,$h,Vh,Uh,zh,Wh,Bh,Gh,jh,qh,Hh,Zh,Xx,Yh,Jh,Xh,Qh,Kh=O(()=>{ke="numeric",Io="short",Ci="long",yl={year:ke,month:ke,day:ke},Oh={year:ke,month:Io,day:ke},Jx={year:ke,month:Io,day:ke,weekday:Io},Rh={year:ke,month:Ci,day:ke},Dh={year:ke,month:Ci,day:ke,weekday:Ci},Fh={hour:ke,minute:ke},$h={hour:ke,minute:ke,second:ke},Vh={hour:ke,minute:ke,second:ke,timeZoneName:Io},Uh={hour:ke,minute:ke,second:ke,timeZoneName:Ci},zh={hour:ke,minute:ke,hourCycle:"h23"},Wh={hour:ke,minute:ke,second:ke,hourCycle:"h23"},Bh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Io},Gh={hour:ke,minute:ke,second:ke,hourCycle:"h23",timeZoneName:Ci},jh={year:ke,month:ke,day:ke,hour:ke,minute:ke},qh={year:ke,month:ke,day:ke,hour:ke,minute:ke,second:ke},Hh={year:ke,month:Io,day:ke,hour:ke,minute:ke},Zh={year:ke,month:Io,day:ke,hour:ke,minute:ke,second:ke},Xx={year:ke,month:Io,day:ke,weekday:Io,hour:ke,minute:ke},Yh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,timeZoneName:Io},Jh={year:ke,month:Ci,day:ke,hour:ke,minute:ke,second:ke,timeZoneName:Io},Xh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,timeZoneName:Ci},Qh={year:ke,month:Ci,day:ke,weekday:Ci,hour:ke,minute:ke,second:ke,timeZoneName:Ci}});var Nr,Cu=O(()=>{wl();Nr=class{get type(){throw new Ao}get name(){throw new Ao}get ianaName(){return this.name}get isUniversal(){throw new Ao}offsetName(t,r){throw new Ao}formatOffset(t,r){throw new Ao}offset(t){throw new Ao}equals(t){throw new Ao}get isValid(){throw new Ao}}});var Qx,vl,Hw=O(()=>{Zn();Cu();Qx=null,vl=class e extends Nr{static get instance(){return Qx===null&&(Qx=new e),Qx}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Zw(t,r,n)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}});function BB(e){return Jw[e]||(Jw[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),Jw[e]}function jB(e,t){let r=e.format(t).replace(/\u200E/g,""),n=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(r),[,i,o,s,l,a,d,h]=n;return[s,i,o,l,a,d,h]}function qB(e,t){let r=e.formatToParts(t),n=[];for(let i=0;i<r.length;i++){let{type:o,value:s}=r[i],l=GB[o];o==="era"?n[l]=s:He(l)||(n[l]=parseInt(s,10))}return n}var Jw,GB,Yw,or,_l=O(()=>{Zn();Cu();Jw={};GB={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};Yw={},or=class e extends Nr{static create(t){return Yw[t]||(Yw[t]=new e(t)),Yw[t]}static resetCache(){Yw={},Jw={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=e.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:r,locale:n}){return Zw(t,r,n,this.name)}formatOffset(t,r){return bl(this.offset(t),r)}offset(t){let r=new Date(t);if(isNaN(r))return NaN;let n=BB(this.name),[i,o,s,l,a,d,h]=n.formatToParts?qB(n,r):jB(n,r);l==="BC"&&(i=-Math.abs(i)+1);let b=wf({year:i,month:o,day:s,hour:a===24?0:a,minute:d,second:h,millisecond:0}),S=+r,P=S%1e3;return S-=P>=0?P:1e3+P,(b-S)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}});function HB(e,t={}){let r=JSON.stringify([e,t]),n=K8[r];return n||(n=new Intl.ListFormat(e,t),K8[r]=n),n}function eS(e,t={}){let r=JSON.stringify([e,t]),n=Kx[r];return n||(n=new Intl.DateTimeFormat(e,t),Kx[r]=n),n}function ZB(e,t={}){let r=JSON.stringify([e,t]),n=tS[r];return n||(n=new Intl.NumberFormat(e,t),tS[r]=n),n}function YB(e,t={}){let{base:r,...n}=t,i=JSON.stringify([e,n]),o=rS[i];return o||(o=new Intl.RelativeTimeFormat(e,t),rS[i]=o),o}function JB(){return eg||(eg=new Intl.DateTimeFormat().resolvedOptions().locale,eg)}function XB(e){let t=eP[e];if(!t){let r=new Intl.Locale(e);t="getWeekInfo"in r?r.getWeekInfo():r.weekInfo,eP[e]=t}return t}function QB(e){let t=e.indexOf("-x-");t!==-1&&(e=e.substring(0,t));let r=e.indexOf("-u-");if(r===-1)return[e];{let n,i;try{n=eS(e).resolvedOptions(),i=e}catch{let a=e.substring(0,r);n=eS(a).resolvedOptions(),i=a}let{numberingSystem:o,calendar:s}=n;return[i,o,s]}}function KB(e,t,r){return(r||t)&&(e.includes("-u-")||(e+="-u"),r&&(e+=`-ca-${r}`),t&&(e+=`-nu-${t}`)),e}function eG(e){let t=[];for(let r=1;r<=12;r++){let n=Ce.utc(2009,r,1);t.push(e(n))}return t}function tG(e){let t=[];for(let r=1;r<=7;r++){let n=Ce.utc(2016,11,13+r);t.push(e(n))}return t}function Xw(e,t,r,n){let i=e.listingMode();return i==="error"?null:i==="en"?r(t):n(t)}function rG(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}var K8,Kx,tS,rS,eg,eP,nS,iS,oS,nG,St,rg=O(()=>{Zn();ey();xl();Sl();_l();K8={};Kx={};tS={};rS={};eg=null;eP={};nS=class{constructor(t,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 l={useGrouping:!1,...n};n.padTo>0&&(l.minimumIntegerDigits=n.padTo),this.inf=ZB(t,l)}}format(t){if(this.inf){let r=this.floor?Math.floor(t):t;return this.inf.format(r)}else{let r=this.floor?Math.floor(t):yf(t,3);return gr(r,this.padTo)}}},iS=class{constructor(t,r,n){this.opts=n,this.originalZone=void 0;let i;if(this.opts.timeZone)this.dt=t;else if(t.zone.type==="fixed"){let s=-1*(t.offset/60),l=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&or.create(l).valid?(i=l,this.dt=t):(i="UTC",this.dt=t.offset===0?t:t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone)}else t.zone.type==="system"?this.dt=t:t.zone.type==="iana"?(this.dt=t,i=t.zone.name):(i="UTC",this.dt=t.setZone("UTC").plus({minutes:t.offset}),this.originalZone=t.zone);let o={...this.opts};o.timeZone=o.timeZone||i,this.dtf=eS(r,o)}format(){return this.originalZone?this.formatToParts().map(({value:t})=>t).join(""):this.dtf.format(this.dt.toJSDate())}formatToParts(){let t=this.dtf.formatToParts(this.dt.toJSDate());return this.originalZone?t.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}):t}resolvedOptions(){return this.dtf.resolvedOptions()}},oS=class{constructor(t,r,n){this.opts={style:"long",...n},!r&&Qw()&&(this.rtf=YB(t,n))}format(t,r){return this.rtf?this.rtf.format(t,r):tP(r,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,r){return this.rtf?this.rtf.formatToParts(t,r):[]}},nG={firstDay:1,minimalDays:4,weekend:[6,7]},St=class e{static fromOpts(t){return e.create(t.locale,t.numberingSystem,t.outputCalendar,t.weekSettings,t.defaultToEN)}static create(t,r,n,i,o=!1){let s=t||xt.defaultLocale,l=s||(o?"en-US":JB()),a=r||xt.defaultNumberingSystem,d=n||xt.defaultOutputCalendar,h=tg(i)||xt.defaultWeekSettings;return new e(l,a,d,h,s)}static resetCache(){eg=null,Kx={},tS={},rS={}}static fromObject({locale:t,numberingSystem:r,outputCalendar:n,weekSettings:i}={}){return e.create(t,r,n,i)}constructor(t,r,n,i,o){let[s,l,a]=QB(t);this.locale=s,this.numberingSystem=r||l||null,this.outputCalendar=n||a||null,this.weekSettings=i,this.intl=KB(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=rG(this)),this.fastNumbersCached}listingMode(){let t=this.isEnglish(),r=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&r?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:e.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,tg(t.weekSettings)||this.weekSettings,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone({...t,defaultToEN:!0})}redefaultToSystem(t={}){return this.clone({...t,defaultToEN:!1})}months(t,r=!1){return Xw(this,t,sS,()=>{let n=r?{month:t,day:"numeric"}:{month:t},i=r?"format":"standalone";return this.monthsCache[i][t]||(this.monthsCache[i][t]=eG(o=>this.extract(o,n,"month"))),this.monthsCache[i][t]})}weekdays(t,r=!1){return Xw(this,t,aS,()=>{let n=r?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},i=r?"format":"standalone";return this.weekdaysCache[i][t]||(this.weekdaysCache[i][t]=tG(o=>this.extract(o,n,"weekday"))),this.weekdaysCache[i][t]})}meridiems(){return Xw(this,void 0,()=>lS,()=>{if(!this.meridiemCache){let t={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Ce.utc(2016,11,13,9),Ce.utc(2016,11,13,19)].map(r=>this.extract(r,t,"dayperiod"))}return this.meridiemCache})}eras(t){return Xw(this,t,cS,()=>{let r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Ce.utc(-40,1,1),Ce.utc(2017,1,1)].map(n=>this.extract(n,r,"era"))),this.eraCache[t]})}extract(t,r,n){let i=this.dtFormatter(t,r),o=i.formatToParts(),s=o.find(l=>l.type.toLowerCase()===n);return s?s.value:null}numberFormatter(t={}){return new nS(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,r={}){return new iS(t,this.intl,r)}relFormatter(t={}){return new oS(this.intl,this.isEnglish(),t)}listFormatter(t={}){return HB(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}getWeekSettings(){return this.weekSettings?this.weekSettings:Kw()?XB(this.locale):nG}getStartOfWeek(){return this.getWeekSettings().firstDay}getMinDaysInFirstWeek(){return this.getWeekSettings().minimalDays}getWeekendDays(){return this.getWeekSettings().weekend}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}toString(){return`Locale(${this.locale}, ${this.numberingSystem}, ${this.outputCalendar})`}}});var dS,Rt,vf=O(()=>{Zn();Cu();dS=null,Rt=class e extends Nr{static get utcInstance(){return dS===null&&(dS=new e(0)),dS}static instance(t){return t===0?e.utcInstance:new e(t)}static parseSpecifier(t){if(t){let r=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(r)return new e(Tu(r[1],r[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${bl(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${bl(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,r){return bl(this.fixed,r)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}});var bf,pS=O(()=>{Cu();bf=class extends Nr{constructor(t){super(),this.zoneName=t}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 Lo(e,t){let r;if(He(e)||e===null)return t;if(e instanceof Nr)return e;if(rP(e)){let n=e.toLowerCase();return n==="default"?t:n==="local"||n==="system"?vl.instance:n==="utc"||n==="gmt"?Rt.utcInstance:Rt.parseSpecifier(n)||or.create(e)}else return ko(e)?Rt.instance(e):typeof e=="object"&&"offset"in e&&typeof e.offset=="function"?e:new bf(e)}var ty=O(()=>{Cu();_l();vf();pS();Zn();Hw()});function iP(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if(e[r].search(fS.hanidec)!==-1)t+=iG.indexOf(e[r]);else for(let i in nP){let[o,s]=nP[i];n>=o&&n<=s&&(t+=n-o)}}return parseInt(t,10)}else return t}function oP(){_f={}}function Hi({numberingSystem:e},t=""){let r=e||"latn";return _f[r]||(_f[r]={}),_f[r][t]||(_f[r][t]=new RegExp(`${fS[r]}${t}`)),_f[r][t]}var fS,nP,iG,_f,mS=O(()=>{fS={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"},nP={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]},iG=fS.hanidec.replace(/[\[|\]]/g,"").split("");_f={}});var sP,aP,lP,cP,uP,dP,pP,fP,xt,xl=O(()=>{Hw();_l();rg();Sl();ty();Zn();mS();sP=()=>Date.now(),aP="system",lP=null,cP=null,uP=null,dP=60,fP=null,xt=class{static get now(){return sP}static set now(t){sP=t}static set defaultZone(t){aP=t}static get defaultZone(){return Lo(aP,vl.instance)}static get defaultLocale(){return lP}static set defaultLocale(t){lP=t}static get defaultNumberingSystem(){return cP}static set defaultNumberingSystem(t){cP=t}static get defaultOutputCalendar(){return uP}static set defaultOutputCalendar(t){uP=t}static get defaultWeekSettings(){return fP}static set defaultWeekSettings(t){fP=tg(t)}static get twoDigitCutoffYear(){return dP}static set twoDigitCutoffYear(t){dP=t%100}static get throwOnInvalid(){return pP}static set throwOnInvalid(t){pP=t}static resetCaches(){St.resetCache(),or.resetCache(),Ce.resetCache(),oP()}}});var ln,ng=O(()=>{ln=class{constructor(t,r){this.reason=t,this.explanation=r}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}});function Zi(e,t){return new ln("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function ry(e,t,r){let n=new Date(Date.UTC(e,t-1,r));e<100&&e>=0&&n.setUTCFullYear(n.getUTCFullYear()-1900);let i=n.getUTCDay();return i===0?7:i}function gP(e,t,r){return r+(Mu(e)?hP:mP)[t-1]}function wP(e,t){let r=Mu(e)?hP:mP,n=r.findIndex(o=>o<t),i=t-r[n];return{month:n+1,day:i}}function ny(e,t){return(e-t+7)%7+1}function ig(e,t=4,r=1){let{year:n,month:i,day:o}=e,s=gP(n,i,o),l=ny(ry(n,i,o),r),a=Math.floor((s-l+14-t)/7),d;return a<1?(d=n-1,a=Pu(d,t,r)):a>Pu(n,t,r)?(d=n+1,a=1):d=n,{weekYear:d,weekNumber:a,weekday:l,...sg(e)}}function hS(e,t=4,r=1){let{weekYear:n,weekNumber:i,weekday:o}=e,s=ny(ry(n,1,t),r),l=El(n),a=i*7+o-s-7+t,d;a<1?(d=n-1,a+=El(d)):a>l?(d=n+1,a-=El(n)):d=n;let{month:h,day:g}=wP(d,a);return{year:d,month:h,day:g,...sg(e)}}function iy(e){let{year:t,month:r,day:n}=e,i=gP(t,r,n);return{year:t,ordinal:i,...sg(e)}}function gS(e){let{year:t,ordinal:r}=e,{month:n,day:i}=wP(t,r);return{year:t,month:n,day:i,...sg(e)}}function wS(e,t){if(!He(e.localWeekday)||!He(e.localWeekNumber)||!He(e.localWeekYear)){if(!He(e.weekday)||!He(e.weekNumber)||!He(e.weekYear))throw new Mo("Cannot mix locale-based week fields with ISO-based week fields");return He(e.localWeekday)||(e.weekday=e.localWeekday),He(e.localWeekNumber)||(e.weekNumber=e.localWeekNumber),He(e.localWeekYear)||(e.weekYear=e.localWeekYear),delete e.localWeekday,delete e.localWeekNumber,delete e.localWeekYear,{minDaysInFirstWeek:t.getMinDaysInFirstWeek(),startOfWeek:t.getStartOfWeek()}}else return{minDaysInFirstWeek:4,startOfWeek:1}}function yP(e,t=4,r=1){let n=og(e.weekYear),i=Ti(e.weekNumber,1,Pu(e.weekYear,t,r)),o=Ti(e.weekday,1,7);return n?i?o?!1:Zi("weekday",e.weekday):Zi("week",e.weekNumber):Zi("weekYear",e.weekYear)}function vP(e){let t=og(e.year),r=Ti(e.ordinal,1,El(e.year));return t?r?!1:Zi("ordinal",e.ordinal):Zi("year",e.year)}function yS(e){let t=og(e.year),r=Ti(e.month,1,12),n=Ti(e.day,1,xf(e.year,e.month));return t?r?n?!1:Zi("day",e.day):Zi("month",e.month):Zi("year",e.year)}function vS(e){let{hour:t,minute:r,second:n,millisecond:i}=e,o=Ti(t,0,23)||t===24&&r===0&&n===0&&i===0,s=Ti(r,0,59),l=Ti(n,0,59),a=Ti(i,0,999);return o?s?l?a?!1:Zi("millisecond",i):Zi("second",n):Zi("minute",r):Zi("hour",t)}var mP,hP,bS=O(()=>{Zn();ng();wl();mP=[0,31,59,90,120,151,181,212,243,273,304,334],hP=[0,31,60,91,121,152,182,213,244,274,305,335]});function He(e){return typeof e>"u"}function ko(e){return typeof e=="number"}function og(e){return typeof e=="number"&&e%1===0}function rP(e){return typeof e=="string"}function _P(e){return Object.prototype.toString.call(e)==="[object Date]"}function Qw(){try{return typeof Intl<"u"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Kw(){try{return typeof Intl<"u"&&!!Intl.Locale&&("weekInfo"in Intl.Locale.prototype||"getWeekInfo"in Intl.Locale.prototype)}catch{return!1}}function xP(e){return Array.isArray(e)?e:[e]}function _S(e,t,r){if(e.length!==0)return e.reduce((n,i)=>{let o=[t(i),i];return n&&r(n[0],o[0])===n[0]?n:o},null)[1]}function SP(e,t){return t.reduce((r,n)=>(r[n]=e[n],r),{})}function Cl(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function tg(e){if(e==null)return null;if(typeof e!="object")throw new _r("Week settings must be an object");if(!Ti(e.firstDay,1,7)||!Ti(e.minimalDays,1,7)||!Array.isArray(e.weekend)||e.weekend.some(t=>!Ti(t,1,7)))throw new _r("Invalid week settings");return{firstDay:e.firstDay,minimalDays:e.minimalDays,weekend:Array.from(e.weekend)}}function Ti(e,t,r){return og(e)&&e>=t&&e<=r}function oG(e,t){return e-t*Math.floor(e/t)}function gr(e,t=2){let r=e<0,n;return r?n="-"+(""+-e).padStart(t,"0"):n=(""+e).padStart(t,"0"),n}function aa(e){if(!(He(e)||e===null||e===""))return parseInt(e,10)}function Tl(e){if(!(He(e)||e===null||e===""))return parseFloat(e)}function ag(e){if(!(He(e)||e===null||e==="")){let t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function yf(e,t,r=!1){let n=10**t;return(r?Math.trunc:Math.round)(e*n)/n}function Mu(e){return e%4===0&&(e%100!==0||e%400===0)}function El(e){return Mu(e)?366:365}function xf(e,t){let r=oG(t-1,12)+1,n=e+(t-r)/12;return r===2?Mu(n)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][r-1]}function wf(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(e.year,e.month-1,e.day)),+t}function bP(e,t,r){return-ny(ry(e,1,t),r)+t-1}function Pu(e,t=4,r=1){let n=bP(e,t,r),i=bP(e+1,t,r);return(El(e)-n+i)/7}function lg(e){return e>99?e:e>xt.twoDigitCutoffYear?1900+e:2e3+e}function Zw(e,t,r,n=null){let i=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};n&&(o.timeZone=n);let s={timeZoneName:t,...o},l=new Intl.DateTimeFormat(r,s).formatToParts(i).find(a=>a.type.toLowerCase()==="timezonename");return l?l.value:null}function Tu(e,t){let r=parseInt(e,10);Number.isNaN(r)&&(r=0);let n=parseInt(t,10)||0,i=r<0||Object.is(r,-0)?-n:n;return r*60+i}function xS(e){let t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new _r(`Invalid unit value ${e}`);return t}function Sf(e,t){let r={};for(let n in e)if(Cl(e,n)){let i=e[n];if(i==null)continue;r[t(n)]=xS(i)}return r}function bl(e,t){let r=Math.trunc(Math.abs(e/60)),n=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${gr(r,2)}:${gr(n,2)}`;case"narrow":return`${i}${r}${n>0?`:${n}`:""}`;case"techie":return`${i}${gr(r,2)}${gr(n,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function sg(e){return SP(e,["hour","minute","second","millisecond"])}var Zn=O(()=>{wl();xl();bS()});function sS(e){switch(e){case"narrow":return[...aG];case"short":return[...SS];case"long":return[...sG];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 aS(e){switch(e){case"narrow":return[...lG];case"short":return[...CS];case"long":return[...ES];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}function cS(e){switch(e){case"narrow":return[...dG];case"short":return[...uG];case"long":return[...cG];default:return null}}function EP(e){return lS[e.hour<12?0:1]}function CP(e,t){return aS(t)[e.weekday-1]}function TP(e,t){return sS(t)[e.month-1]}function PP(e,t){return cS(t)[e.year<0?0:1]}function tP(e,t,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(e)===-1;if(r==="auto"&&o){let g=e==="days";switch(t){case 1:return g?"tomorrow":`next ${i[e][0]}`;case-1:return g?"yesterday":`last ${i[e][0]}`;case 0:return g?"today":`this ${i[e][0]}`;default:}}let s=Object.is(t,-0)||t<0,l=Math.abs(t),a=l===1,d=i[e],h=n?a?d[1]:d[2]||d[1]:a?i[e][0]:e;return s?`${l} ${h} ago`:`in ${l} ${h}`}var sG,SS,aG,ES,CS,lG,lS,cG,uG,dG,ey=O(()=>{Kh();Zn();sG=["January","February","March","April","May","June","July","August","September","October","November","December"],SS=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],aG=["J","F","M","A","M","J","J","A","S","O","N","D"];ES=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],CS=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],lG=["M","T","W","T","F","S","S"];lS=["AM","PM"],cG=["Before Christ","Anno Domini"],uG=["BC","AD"],dG=["B","A"]});function MP(e,t){let r="";for(let n of e)n.literal?r+=n.val:r+=t(n.val);return r}var pG,cn,cg=O(()=>{ey();Kh();Zn();pG={D:yl,DD:Oh,DDD:Rh,DDDD:Dh,t:Fh,tt:$h,ttt:Vh,tttt:Uh,T:zh,TT:Wh,TTT:Bh,TTTT:Gh,f:jh,ff:Hh,fff:Yh,ffff:Xh,F:qh,FF:Zh,FFF:Jh,FFFF:Qh},cn=class e{static create(t,r={}){return new e(t,r)}static parseFormat(t){let r=null,n="",i=!1,o=[];for(let s=0;s<t.length;s++){let l=t.charAt(s);l==="'"?(n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),r=null,n="",i=!i):i||l===r?n+=l:(n.length>0&&o.push({literal:/^\s+$/.test(n),val:n}),n=l,r=l)}return n.length>0&&o.push({literal:i||/^\s+$/.test(n),val:n}),o}static macroTokenToFormatOpts(t){return pG[t]}constructor(t,r){this.opts=r,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,r){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,{...this.opts,...r}).format()}dtFormatter(t,r={}){return this.loc.dtFormatter(t,{...this.opts,...r})}formatDateTime(t,r){return this.dtFormatter(t,r).format()}formatDateTimeParts(t,r){return this.dtFormatter(t,r).formatToParts()}formatInterval(t,r){return this.dtFormatter(t.start,r).dtf.formatRange(t.start.toJSDate(),t.end.toJSDate())}resolvedOptions(t,r){return this.dtFormatter(t,r).resolvedOptions()}num(t,r=0){if(this.opts.forceSimple)return gr(t,r);let n={...this.opts};return r>0&&(n.padTo=r),this.loc.numberFormatter(n).format(t)}formatDateTimeFromString(t,r){let n=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(S,P)=>this.loc.extract(t,S,P),s=S=>t.isOffsetFixed&&t.offset===0&&S.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,S.format):"",l=()=>n?EP(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),a=(S,P)=>n?TP(t,S):o(P?{month:S}:{month:S,day:"numeric"},"month"),d=(S,P)=>n?CP(t,S):o(P?{weekday:S}:{weekday:S,month:"long",day:"numeric"},"weekday"),h=S=>{let P=e.macroTokenToFormatOpts(S);return P?this.formatWithSystemDefault(t,P):S},g=S=>n?PP(t,S):o({era:S},"era"),b=S=>{switch(S){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.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 t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return l();case"d":return i?o({day:"numeric"},"day"):this.num(t.day);case"dd":return i?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return d("short",!0);case"cccc":return d("long",!0);case"ccccc":return d("narrow",!0);case"E":return this.num(t.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(t.month);case"LL":return i?o({month:"2-digit",day:"numeric"},"month"):this.num(t.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(t.month);case"MM":return i?o({month:"2-digit"},"month"):this.num(t.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(t.year);case"yy":return i?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return g("short");case"GG":return g("long");case"GGGGG":return g("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"n":return this.num(t.localWeekNumber);case"nn":return this.num(t.localWeekNumber,2);case"ii":return this.num(t.localWeekYear.toString().slice(-2),2);case"iiii":return this.num(t.localWeekYear,4);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return h(S)}};return MP(e.parseFormat(r),b)}formatDurationFromString(t,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=e.parseFormat(r),s=o.reduce((a,{literal:d,val:h})=>d?a:a.concat(h),[]),l=t.shiftTo(...s.map(n).filter(a=>a));return MP(o,i(l))}}});function Cf(...e){let t=e.reduce((r,n)=>r+n.source,"");return RegExp(`^${t}$`)}function Tf(...e){return t=>e.reduce(([r,n,i],o)=>{let[s,l,a]=o(t,i);return[{...r,...s},l||n,a]},[{},null,1]).slice(0,2)}function Pf(e,...t){if(e==null)return[null,null];for(let[r,n]of t){let i=r.exec(e);if(i)return n(i)}return[null,null]}function LP(...e){return(t,r)=>{let n={},i;for(i=0;i<e.length;i++)n[e[i]]=aa(t[r+i]);return[n,null,r+i]}}function Ef(e,t,r){let n=e[t];return He(n)?r:aa(n)}function _G(e,t){return[{year:Ef(e,t),month:Ef(e,t+1,1),day:Ef(e,t+2,1)},null,t+3]}function Mf(e,t){return[{hours:Ef(e,t,0),minutes:Ef(e,t+1,0),seconds:Ef(e,t+2,0),milliseconds:ag(e[t+3])},null,t+4]}function ug(e,t){let r=!e[t]&&!e[t+1],n=Tu(e[t+1],e[t+2]),i=r?null:Rt.instance(n);return[{},i,t+3]}function dg(e,t){let r=e[t]?or.create(e[t]):null;return[{},r,t+1]}function EG(e){let[t,r,n,i,o,s,l,a,d]=e,h=t[0]==="-",g=a&&a[0]==="-",b=(S,P=!1)=>S!==void 0&&(P||S&&h)?-S:S;return[{years:b(Tl(r)),months:b(Tl(n)),weeks:b(Tl(i)),days:b(Tl(o)),hours:b(Tl(s)),minutes:b(Tl(l)),seconds:b(Tl(a),a==="-0"),milliseconds:b(ag(d),g)}]}function MS(e,t,r,n,i,o,s){let l={year:t.length===2?lg(aa(t)):aa(t),month:SS.indexOf(r)+1,day:aa(n),hour:aa(i),minute:aa(o)};return s&&(l.second=aa(s)),e&&(l.weekday=e.length>3?ES.indexOf(e)+1:CS.indexOf(e)+1),l}function PG(e){let[,t,r,n,i,o,s,l,a,d,h,g]=e,b=MS(t,i,n,r,o,s,l),S;return a?S=CG[a]:d?S=0:S=Tu(h,g),[b,new Rt(S)]}function MG(e){return e.replace(/\([^()]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}function AP(e){let[,t,r,n,i,o,s,l]=e;return[MS(t,i,n,r,o,s,l),Rt.utcInstance]}function kG(e){let[,t,r,n,i,o,s,l]=e;return[MS(t,l,r,n,i,o,s),Rt.utcInstance]}function DP(e){return Pf(e,[NG,RP],[OG,FG],[RG,$G],[DG,VG])}function FP(e){return Pf(MG(e),[TG,PG])}function $P(e){return Pf(e,[AG,AP],[IG,AP],[LG,kG])}function VP(e){return Pf(e,[SG,EG])}function UP(e){return Pf(e,[xG,UG])}function zP(e){return Pf(e,[zG,RP],[WG,BG])}var IP,kP,fG,TS,NP,PS,mG,hG,gG,wG,yG,vG,OP,bG,xG,SG,CG,TG,AG,IG,LG,NG,OG,RG,DG,RP,FG,$G,VG,UG,zG,WG,BG,AS=O(()=>{Zn();ey();vf();_l();IP=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/;kP=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,fG=`(?:${kP.source}?(?:\\[(${IP.source})\\])?)?`,TS=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,NP=RegExp(`${TS.source}${fG}`),PS=RegExp(`(?:T${NP.source})?`),mG=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,hG=/(\d{4})-?W(\d\d)(?:-?(\d))?/,gG=/(\d{4})-?(\d{3})/,wG=LP("weekYear","weekNumber","weekDay"),yG=LP("year","ordinal"),vG=/(\d{4})-(\d\d)-(\d\d)/,OP=RegExp(`${TS.source} ?(?:${kP.source}|(${IP.source}))?`),bG=RegExp(`(?: ${OP.source})?`);xG=RegExp(`^T?${TS.source}$`),SG=/^-?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)?)?)$/;CG={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};TG=/^(?:(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)))$/;AG=/^(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$/,IG=/^(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$/,LG=/^(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})$/;NG=Cf(mG,PS),OG=Cf(hG,PS),RG=Cf(gG,PS),DG=Cf(NP),RP=Tf(_G,Mf,ug,dg),FG=Tf(wG,Mf,ug,dg),$G=Tf(yG,Mf,ug,dg),VG=Tf(Mf,ug,dg);UG=Tf(Mf);zG=Cf(vG,bG),WG=Cf(OP),BG=Tf(Mf,ug,dg)});function Pl(e,t,r=!1){let n={values:r?t.values:{...e.values,...t.values||{}},loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy,matrix:t.matrix||e.matrix};return new wr(n)}function jP(e,t){let r=t.milliseconds??0;for(let n of qG.slice(1))t[n]&&(r+=t[n]*e[n].milliseconds);return r}function BP(e,t){let r=jP(e,t)<0?-1:1;Au.reduceRight((n,i)=>{if(He(t[i]))return n;if(n){let o=t[n]*r,s=e[i][n],l=Math.floor(o/s);t[i]+=l*r,t[n]-=l*s*r}return i},null),Au.reduce((n,i)=>{if(He(t[i]))return n;if(n){let o=t[n]%1;t[n]-=o,t[i]+=o*e[n][i]}return i},null)}function HG(e){let t={};for(let[r,n]of Object.entries(e))n!==0&&(t[r]=n);return t}var WP,GP,GG,Yi,Af,jG,Au,qG,wr,pg=O(()=>{wl();cg();ng();rg();AS();Zn();xl();Sl();WP="Invalid Duration",GP={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}},GG={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},...GP},Yi=146097/400,Af=146097/4800,jG={years:{quarters:4,months:12,weeks:Yi/7,days:Yi,hours:Yi*24,minutes:Yi*24*60,seconds:Yi*24*60*60,milliseconds:Yi*24*60*60*1e3},quarters:{months:3,weeks:Yi/28,days:Yi/4,hours:Yi*24/4,minutes:Yi*24*60/4,seconds:Yi*24*60*60/4,milliseconds:Yi*24*60*60*1e3/4},months:{weeks:Af/7,days:Af,hours:Af*24,minutes:Af*24*60,seconds:Af*24*60*60,milliseconds:Af*24*60*60*1e3},...GP},Au=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],qG=Au.slice(0).reverse();wr=class e{constructor(t){let r=t.conversionAccuracy==="longterm"||!1,n=r?jG:GG;t.matrix&&(n=t.matrix),this.values=t.values,this.loc=t.loc||St.create(),this.conversionAccuracy=r?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n,this.isLuxonDuration=!0}static fromMillis(t,r){return e.fromObject({milliseconds:t},r)}static fromObject(t,r={}){if(t==null||typeof t!="object")throw new _r(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new e({values:Sf(t,e.normalizeUnit),loc:St.fromObject(r),conversionAccuracy:r.conversionAccuracy,matrix:r.matrix})}static fromDurationLike(t){if(ko(t))return e.fromMillis(t);if(e.isDuration(t))return t;if(typeof t=="object")return e.fromObject(t);throw new _r(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,r){let[n]=VP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,r){let[n]=UP(t);return n?e.fromObject(n,r):e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the Duration is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new jw(n);return new e({invalid:n})}static normalizeUnit(t){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"}[t&&t.toLowerCase()];if(!r)throw new gf(t);return r}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,r={}){let n={...r,floor:r.round!==!1&&r.floor!==!1};return this.isValid?cn.create(this.loc,n).formatDurationFromString(this,t):WP}toHuman(t={}){if(!this.isValid)return WP;let r=Au.map(n=>{let i=this.values[n];return He(i)?null:this.loc.numberFormatter({style:"unit",unitDisplay:"long",...t,unit:n.slice(0,-1)}).format(i)}).filter(n=>n);return this.loc.listFormatter({type:"conjunction",style:t.listStyle||"narrow",...t}).format(r)}toObject(){return this.isValid?{...this.values}:{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=yf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;let r=this.toMillis();return r<0||r>=864e5?null:(t={suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended",...t,includeOffset:!1},Ce.fromMillis(r,{zone:"UTC"}).toISOTime(t))}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?jP(this.matrix,this.values):NaN}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t),n={};for(let i of Au)(Cl(r.values,i)||Cl(this.values,i))&&(n[i]=r.get(i)+this.get(i));return Pl(this,{values:n},!0)}minus(t){if(!this.isValid)return this;let r=e.fromDurationLike(t);return this.plus(r.negate())}mapUnits(t){if(!this.isValid)return this;let r={};for(let n of Object.keys(this.values))r[n]=xS(t(this.values[n],n));return Pl(this,{values:r},!0)}get(t){return this[e.normalizeUnit(t)]}set(t){if(!this.isValid)return this;let r={...this.values,...Sf(t,e.normalizeUnit)};return Pl(this,{values:r})}reconfigure({locale:t,numberingSystem:r,conversionAccuracy:n,matrix:i}={}){let s={loc:this.loc.clone({locale:t,numberingSystem:r}),matrix:i,conversionAccuracy:n};return Pl(this,s)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;let t=this.toObject();return BP(this.matrix,t),Pl(this,{values:t},!0)}rescale(){if(!this.isValid)return this;let t=HG(this.normalize().shiftToAll().toObject());return Pl(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>e.normalizeUnit(s));let r={},n={},i=this.toObject(),o;for(let s of Au)if(t.indexOf(s)>=0){o=s;let l=0;for(let d in n)l+=this.matrix[d][s]*n[d],n[d]=0;ko(i[s])&&(l+=i[s]);let a=Math.trunc(l);r[s]=a,n[s]=(l*1e3-a*1e3)/1e3}else ko(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 BP(this.matrix,r),Pl(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 t={};for(let r of Object.keys(this.values))t[r]=this.values[r]===0?0:-this.values[r];return Pl(this,{values:t},!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(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function r(n,i){return n===void 0||n===0?i===void 0||i===0:n===i}for(let n of Au)if(!r(this.values[n],t.values[n]))return!1;return!0}}});function ZG(e,t){return!e||!e.isValid?la.invalid("missing or invalid start"):!t||!t.isValid?la.invalid("missing or invalid end"):t<e?la.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}var If,la,IS=O(()=>{Sl();pg();xl();wl();ng();cg();Kh();If="Invalid Interval";la=class e{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the Interval is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new Gw(n);return new e({invalid:n})}static fromDateTimes(t,r){let n=Lf(t),i=Lf(r),o=ZG(n,i);return o??new e({start:n,end:i})}static after(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i,i.plus(n))}static before(t,r){let n=wr.fromDurationLike(r),i=Lf(t);return e.fromDateTimes(i.minus(n),i)}static fromISO(t,r){let[n,i]=(t||"").split("/",2);if(n&&i){let o,s;try{o=Ce.fromISO(n,r),s=o.isValid}catch{s=!1}let l,a;try{l=Ce.fromISO(i,r),a=l.isValid}catch{a=!1}if(s&&a)return e.fromDateTimes(o,l);if(s){let d=wr.fromISO(i,r);if(d.isValid)return e.after(o,d)}else if(a){let d=wr.fromISO(n,r);if(d.isValid)return e.before(l,d)}}return e.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e: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(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds",r){if(!this.isValid)return NaN;let n=this.start.startOf(t,r),i;return r?.useLocaleWeeks?i=this.end.reconfigure({locale:n.locale}):i=this.end,i=i.startOf(t,r),Math.floor(i.diff(n,t).get(t))+(i.valueOf()!==this.end.valueOf())}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:r}={}){return this.isValid?e.fromDateTimes(t||this.s,r||this.e):this}splitAt(...t){if(!this.isValid)return[];let r=t.map(Lf).filter(s=>this.contains(s)).sort((s,l)=>s.toMillis()-l.toMillis()),n=[],{s:i}=this,o=0;for(;i<this.e;){let s=r[o]||this.e,l=+s>+this.e?this.e:s;n.push(e.fromDateTimes(i,l)),i=l,o+=1}return n}splitBy(t){let r=wr.fromDurationLike(t);if(!this.isValid||!r.isValid||r.as("milliseconds")===0)return[];let{s:n}=this,i=1,o,s=[];for(;n<this.e;){let l=this.start.plus(r.mapUnits(a=>a*i));o=+l>+this.e?this.e:l,s.push(e.fromDateTimes(n,o)),n=o,i+=1}return s}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;let r=this.s>t.s?this.s:t.s,n=this.e<t.e?this.e:t.e;return r>=n?null:e.fromDateTimes(r,n)}union(t){if(!this.isValid)return this;let r=this.s<t.s?this.s:t.s,n=this.e>t.e?this.e:t.e;return e.fromDateTimes(r,n)}static merge(t){let[r,n]=t.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(t){let r=null,n=0,i=[],o=t.map(a=>[{time:a.s,type:"s"},{time:a.e,type:"e"}]),s=Array.prototype.concat(...o),l=s.sort((a,d)=>a.time-d.time);for(let a of l)n+=a.type==="s"?1:-1,n===1?r=a.time:(r&&+r!=+a.time&&i.push(e.fromDateTimes(r,a.time)),r=null);return e.merge(i)}difference(...t){return e.xor([this].concat(t)).map(r=>this.intersection(r)).filter(r=>r&&!r.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:If}[Symbol.for("nodejs.util.inspect.custom")](){return this.isValid?`Interval { start: ${this.s.toISO()}, end: ${this.e.toISO()} }`:`Interval { Invalid, reason: ${this.invalidReason} }`}toLocaleString(t=yl,r={}){return this.isValid?cn.create(this.s.loc.clone(r),t).formatInterval(this):If}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:If}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:If}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:If}toFormat(t,{separator:r=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${r}${this.e.toFormat(t)}`:If}toDuration(t,r){return this.isValid?this.e.diff(this.s,t,r):wr.invalid(this.invalidReason)}mapEndpoints(t){return e.fromDateTimes(t(this.s),t(this.e))}}});var ca,LS=O(()=>{Sl();xl();rg();_l();ty();Zn();ca=class{static hasDST(t=xt.defaultZone){let r=Ce.now().setZone(t).set({month:12});return!t.isUniversal&&r.offset!==r.set({month:6}).offset}static isValidIANAZone(t){return or.isValidZone(t)}static normalizeZone(t){return Lo(t,xt.defaultZone)}static getStartOfWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getStartOfWeek()}static getMinimumDaysInFirstWeek({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getMinDaysInFirstWeek()}static getWeekendWeekdays({locale:t=null,locObj:r=null}={}){return(r||St.create(t)).getWeekendDays().slice()}static months(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t)}static monthsFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null,outputCalendar:o="gregory"}={}){return(i||St.create(r,n,o)).months(t,!0)}static weekdays(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:r=null,numberingSystem:n=null,locObj:i=null}={}){return(i||St.create(r,n,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return St.create(t).meridiems()}static eras(t="short",{locale:r=null}={}){return St.create(r,null,"gregory").eras(t)}static features(){return{relative:Qw(),localeWeek:Kw()}}}});function qP(e,t){let r=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),n=r(t)-r(e);return Math.floor(wr.fromMillis(n).as("days"))}function YG(e,t,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=qP(a,d);return(h-h%7)/7}],["days",qP]],i={},o=e,s,l;for(let[a,d]of n)r.indexOf(a)>=0&&(s=a,i[a]=d(e,t),l=o.plus(i),l>t?(i[a]--,e=o.plus(i),e>t&&(l=e,i[a]--,e=o.plus(i))):e=l);return[e,i,l,s]}function HP(e,t,r,n){let[i,o,s,l]=YG(e,t,r),a=t-i,d=r.filter(g=>["hours","minutes","seconds","milliseconds"].indexOf(g)>=0);d.length===0&&(s<t&&(s=i.plus({[l]:1})),s!==i&&(o[l]=(o[l]||0)+a/(s-i)));let h=wr.fromObject(o,n);return d.length>0?wr.fromMillis(a,n).shiftTo(...d).plus(h):h}var ZP=O(()=>{pg()});function Tt(e,t=r=>r){return{regex:e,deser:([r])=>t(iP(r))}}function QG(e){return e.replace(/\./g,"\\.?").replace(QP,XP)}function YP(e){return e.replace(/\./g,"").replace(QP," ").toLowerCase()}function No(e,t){return e===null?null:{regex:RegExp(e.map(QG).join("|")),deser:([r])=>e.findIndex(n=>YP(r)===YP(n))+t}}function JP(e,t){return{regex:e,deser:([,r,n])=>Tu(r,n),groups:t}}function oy(e){return{regex:e,deser:([t])=>t}}function KG(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function ej(e,t){let r=Hi(t),n=Hi(t,"{2}"),i=Hi(t,"{3}"),o=Hi(t,"{4}"),s=Hi(t,"{6}"),l=Hi(t,"{1,2}"),a=Hi(t,"{1,3}"),d=Hi(t,"{1,6}"),h=Hi(t,"{1,9}"),g=Hi(t,"{2,4}"),b=Hi(t,"{4,6}"),S=F=>({regex:RegExp(KG(F.val)),deser:([W])=>W,literal:!0}),A=(F=>{if(e.literal)return S(F);switch(F.val){case"G":return No(t.eras("short"),0);case"GG":return No(t.eras("long"),0);case"y":return Tt(d);case"yy":return Tt(g,lg);case"yyyy":return Tt(o);case"yyyyy":return Tt(b);case"yyyyyy":return Tt(s);case"M":return Tt(l);case"MM":return Tt(n);case"MMM":return No(t.months("short",!0),1);case"MMMM":return No(t.months("long",!0),1);case"L":return Tt(l);case"LL":return Tt(n);case"LLL":return No(t.months("short",!1),1);case"LLLL":return No(t.months("long",!1),1);case"d":return Tt(l);case"dd":return Tt(n);case"o":return Tt(a);case"ooo":return Tt(i);case"HH":return Tt(n);case"H":return Tt(l);case"hh":return Tt(n);case"h":return Tt(l);case"mm":return Tt(n);case"m":return Tt(l);case"q":return Tt(l);case"qq":return Tt(n);case"s":return Tt(l);case"ss":return Tt(n);case"S":return Tt(a);case"SSS":return Tt(i);case"u":return oy(h);case"uu":return oy(l);case"uuu":return Tt(r);case"a":return No(t.meridiems(),0);case"kkkk":return Tt(o);case"kk":return Tt(g,lg);case"W":return Tt(l);case"WW":return Tt(n);case"E":case"c":return Tt(r);case"EEE":return No(t.weekdays("short",!1),1);case"EEEE":return No(t.weekdays("long",!1),1);case"ccc":return No(t.weekdays("short",!0),1);case"cccc":return No(t.weekdays("long",!0),1);case"Z":case"ZZ":return JP(new RegExp(`([+-]${l.source})(?::(${n.source}))?`),2);case"ZZZ":return JP(new RegExp(`([+-]${l.source})(${n.source})?`),2);case"z":return oy(/[a-z_+-/]{1,256}?/i);case" ":return oy(/[^\S\n\r]/);default:return S(F)}})(e)||{invalidReason:JG};return A.token=e,A}function rj(e,t,r){let{type:n,value:i}=e;if(n==="literal"){let a=/^\s+$/.test(i);return{literal:!a,val:a?" ":i}}let o=t[n],s=n;n==="hour"&&(t.hour12!=null?s=t.hour12?"hour12":"hour24":t.hourCycle!=null?t.hourCycle==="h11"||t.hourCycle==="h12"?s="hour12":s="hour24":s=r.hour12?"hour12":"hour24");let l=tj[s];if(typeof l=="object"&&(l=l[o]),l)return{literal:!1,val:l}}function nj(e){return[`^${e.map(r=>r.regex).reduce((r,n)=>`${r}(${n.source})`,"")}$`,e]}function ij(e,t,r){let n=e.match(t);if(n){let i={},o=1;for(let s in r)if(Cl(r,s)){let l=r[s],a=l.groups?l.groups+1:1;!l.literal&&l.token&&(i[l.token.val[0]]=l.deser(n.slice(o,o+a))),o+=a}return[n,i]}else return[n,{}]}function oj(e){let t=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 He(e.z)||(r=or.create(e.z)),He(e.Z)||(r||(r=new Rt(e.Z)),n=e.Z),He(e.q)||(e.M=(e.q-1)*3+1),He(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),He(e.u)||(e.S=ag(e.u)),[Object.keys(e).reduce((o,s)=>{let l=t(s);return l&&(o[l]=e[s]),o},{}),r,n]}function sj(){return kS||(kS=Ce.fromMillis(1555555555555)),kS}function aj(e,t){if(e.literal)return e;let r=cn.macroTokenToFormatOpts(e.val),n=RS(r,t);return n==null||n.includes(void 0)?e:n}function NS(e,t){return Array.prototype.concat(...e.map(r=>aj(r,t)))}function OS(e,t,r){return new fg(e,r).explainFromTokens(t)}function KP(e,t,r){let{result:n,zone:i,specificOffset:o,invalidReason:s}=OS(e,t,r);return[n,i,o,s]}function RS(e,t){if(!e)return null;let n=cn.create(t,e).dtFormatter(sj()),i=n.formatToParts(),o=n.resolvedOptions();return i.map(s=>rj(s,e,o))}var JG,XG,XP,QP,tj,kS,fg,eM=O(()=>{Zn();cg();vf();_l();Sl();mS();wl();JG="missing Intl.DateTimeFormat.formatToParts support";XG="\xA0",XP=`[ ${XG}]`,QP=new RegExp(XP,"g");tj={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"}};kS=null;fg=class{constructor(t,r){if(this.locale=t,this.format=r,this.tokens=NS(cn.parseFormat(r),t),this.units=this.tokens.map(n=>ej(n,t)),this.disqualifyingUnit=this.units.find(n=>n.invalidReason),!this.disqualifyingUnit){let[n,i]=nj(this.units);this.regex=RegExp(n,"i"),this.handlers=i}}explainFromTokens(t){if(this.isValid){let[r,n]=ij(t,this.regex,this.handlers),[i,o,s]=n?oj(n):[null,null,void 0];if(Cl(n,"a")&&Cl(n,"H"))throw new Mo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:this.tokens,regex:this.regex,rawMatches:r,matches:n,result:i,zone:o,specificOffset:s}}else return{input:t,tokens:this.tokens,invalidReason:this.invalidReason}}get isValid(){return!this.disqualifyingUnit}get invalidReason(){return this.disqualifyingUnit?this.disqualifyingUnit.invalidReason:null}}});function mg(e){return new ln("unsupported zone",`the zone "${e.name}" is not supported`)}function FS(e){return e.weekData===null&&(e.weekData=ig(e.c)),e.weekData}function $S(e){return e.localWeekData===null&&(e.localWeekData=ig(e.c,e.loc.getMinDaysInFirstWeek(),e.loc.getStartOfWeek())),e.localWeekData}function Iu(e,t){let r={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Ce({...r,...t,old:r})}function lM(e,t,r){let n=e-t*60*1e3,i=r.offset(n);if(t===i)return[n,t];n-=(i-t)*60*1e3;let o=r.offset(n);return i===o?[n,i]:[e-Math.min(i,o)*60*1e3,Math.max(i,o)]}function sy(e,t){e+=t*60*1e3;let r=new Date(e);return{year:r.getUTCFullYear(),month:r.getUTCMonth()+1,day:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),millisecond:r.getUTCMilliseconds()}}function ly(e,t,r){return lM(wf(e),t,r)}function rM(e,t){let r=e.o,n=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o={...e.c,year:n,month:i,day:Math.min(e.c.day,xf(n,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7},s=wr.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),l=wf(o),[a,d]=lM(l,r,e.zone);return s!==0&&(a+=s,d=e.zone.offset(a)),{ts:a,o:d}}function kf(e,t,r,n,i,o){let{setZone:s,zone:l}=r;if(e&&Object.keys(e).length!==0||t){let a=t||l,d=Ce.fromObject(e,{...r,zone:a,specificOffset:o});return s?d:d.setZone(l)}else return Ce.invalid(new ln("unparsable",`the input "${i}" can't be parsed as ${n}`))}function ay(e,t,r=!0){return e.isValid?cn.create(St.create("en-US"),{allowZ:r,forceSimple:!0}).formatDateTimeFromString(e,t):null}function VS(e,t){let r=e.c.year>9999||e.c.year<0,n="";return r&&e.c.year>=0&&(n+="+"),n+=gr(e.c.year,r?6:4),t?(n+="-",n+=gr(e.c.month),n+="-",n+=gr(e.c.day)):(n+=gr(e.c.month),n+=gr(e.c.day)),n}function nM(e,t,r,n,i,o){let s=gr(e.c.hour);return t?(s+=":",s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=":")):s+=gr(e.c.minute),(e.c.millisecond!==0||e.c.second!==0||!r)&&(s+=gr(e.c.second),(e.c.millisecond!==0||!n)&&(s+=".",s+=gr(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!o?s+="Z":e.o<0?(s+="-",s+=gr(Math.trunc(-e.o/60)),s+=":",s+=gr(Math.trunc(-e.o%60))):(s+="+",s+=gr(Math.trunc(e.o/60)),s+=":",s+=gr(Math.trunc(e.o%60)))),o&&(s+="["+e.zone.ianaName+"]"),s}function pj(e){let t={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"}[e.toLowerCase()];if(!t)throw new gf(e);return t}function iM(e){switch(e.toLowerCase()){case"localweekday":case"localweekdays":return"localWeekday";case"localweeknumber":case"localweeknumbers":return"localWeekNumber";case"localweekyear":case"localweekyears":return"localWeekYear";default:return pj(e)}}function fj(e){return uy[e]||(cy===void 0&&(cy=xt.now()),uy[e]=e.offset(cy)),uy[e]}function oM(e,t){let r=Lo(t.zone,xt.defaultZone);if(!r.isValid)return Ce.invalid(mg(r));let n=St.fromObject(t),i,o;if(He(e.year))i=xt.now();else{for(let a of uM)He(e[a])&&(e[a]=cM[a]);let s=yS(e)||vS(e);if(s)return Ce.invalid(s);let l=fj(r);[i,o]=ly(e,l,r)}return new Ce({ts:i,zone:r,loc:n,o})}function sM(e,t,r){let n=He(r.round)?!0:r.round,i=(s,l)=>(s=yf(s,n||r.calendary?0:2,!0),t.loc.clone(r).relFormatter(r).format(s,l)),o=s=>r.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(r.unit)return i(o(r.unit),r.unit);for(let s of r.units){let l=o(s);if(Math.abs(l)>=1)return i(l,s)}return i(e>t?-0:0,r.units[r.units.length-1])}function aM(e){let t={},r;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],r=Array.from(e).slice(0,e.length-1)):r=Array.from(e),[t,r]}function Lf(e){if(Ce.isDateTime(e))return e;if(e&&e.valueOf&&ko(e.valueOf()))return Ce.fromJSDate(e);if(e&&typeof e=="object")return Ce.fromObject(e);throw new _r(`Unknown datetime argument: ${e}, of type ${typeof e}`)}var DS,tM,cM,lj,cj,uM,uj,dj,cy,uy,Ce,Sl=O(()=>{pg();IS();xl();LS();cg();vf();rg();Zn();ty();ZP();AS();eM();bS();Kh();wl();ng();DS="Invalid DateTime",tM=864e13;cM={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},lj={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},cj={ordinal:1,hour:0,minute:0,second:0,millisecond:0},uM=["year","month","day","hour","minute","second","millisecond"],uj=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],dj=["year","ordinal","hour","minute","second","millisecond"];uy={},Ce=class e{constructor(t){let r=t.zone||xt.defaultZone,n=t.invalid||(Number.isNaN(t.ts)?new ln("invalid input"):null)||(r.isValid?null:mg(r));this.ts=He(t.ts)?xt.now():t.ts;let i=null,o=null;if(!n)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(r))[i,o]=[t.old.c,t.old.o];else{let l=ko(t.o)&&!t.old?t.o:r.offset(this.ts);i=sy(this.ts,l),n=Number.isNaN(i.year)?new ln("invalid input"):null,i=n?null:i,o=n?null:l}this._zone=r,this.loc=t.loc||St.create(),this.invalid=n,this.weekData=null,this.localWeekData=null,this.c=i,this.o=o,this.isLuxonDateTime=!0}static now(){return new e({})}static local(){let[t,r]=aM(arguments),[n,i,o,s,l,a,d]=r;return oM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static utc(){let[t,r]=aM(arguments),[n,i,o,s,l,a,d]=r;return t.zone=Rt.utcInstance,oM({year:n,month:i,day:o,hour:s,minute:l,second:a,millisecond:d},t)}static fromJSDate(t,r={}){let n=_P(t)?t.valueOf():NaN;if(Number.isNaN(n))return e.invalid("invalid input");let i=Lo(r.zone,xt.defaultZone);return i.isValid?new e({ts:n,zone:i,loc:St.fromObject(r)}):e.invalid(mg(i))}static fromMillis(t,r={}){if(ko(t))return t<-tM||t>tM?e.invalid("Timestamp out of range"):new e({ts:t,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,r={}){if(ko(t))return new e({ts:t*1e3,zone:Lo(r.zone,xt.defaultZone),loc:St.fromObject(r)});throw new _r("fromSeconds requires a numerical input")}static fromObject(t,r={}){t=t||{};let n=Lo(r.zone,xt.defaultZone);if(!n.isValid)return e.invalid(mg(n));let i=St.fromObject(r),o=Sf(t,iM),{minDaysInFirstWeek:s,startOfWeek:l}=wS(o,i),a=xt.now(),d=He(r.specificOffset)?n.offset(a):r.specificOffset,h=!He(o.ordinal),g=!He(o.year),b=!He(o.month)||!He(o.day),S=g||b,P=o.weekYear||o.weekNumber;if((S||h)&&P)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(b&&h)throw new Mo("Can't mix ordinal dates with month/day");let A=P||o.weekday&&!S,F,W,z=sy(a,d);A?(F=uj,W=lj,z=ig(z,s,l)):h?(F=dj,W=cj,z=iy(z)):(F=uM,W=cM);let q=!1;for(let Ee of F){let Ne=o[Ee];He(Ne)?q?o[Ee]=W[Ee]:o[Ee]=z[Ee]:q=!0}let G=A?yP(o,s,l):h?vP(o):yS(o),Y=G||vS(o);if(Y)return e.invalid(Y);let ie=A?hS(o,s,l):h?gS(o):o,[U,me]=ly(ie,d,n),Ae=new e({ts:U,zone:n,o:me,loc:i});return o.weekday&&S&&t.weekday!==Ae.weekday?e.invalid("mismatched weekday",`you can't specify both a weekday of ${o.weekday} and a date of ${Ae.toISO()}`):Ae.isValid?Ae:e.invalid(Ae.invalid)}static fromISO(t,r={}){let[n,i]=DP(t);return kf(n,i,r,"ISO 8601",t)}static fromRFC2822(t,r={}){let[n,i]=FP(t);return kf(n,i,r,"RFC 2822",t)}static fromHTTP(t,r={}){let[n,i]=$P(t);return kf(n,i,r,"HTTP",r)}static fromFormat(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormat requires an input string and a format");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0}),[l,a,d,h]=KP(s,t,r);return h?e.invalid(h):kf(l,a,n,`format ${r}`,t,d)}static fromString(t,r,n={}){return e.fromFormat(t,r,n)}static fromSQL(t,r={}){let[n,i]=zP(t);return kf(n,i,r,"SQL",t)}static invalid(t,r=null){if(!t)throw new _r("need to specify a reason the DateTime is invalid");let n=t instanceof ln?t:new ln(t,r);if(xt.throwOnInvalid)throw new Bw(n);return new e({invalid:n})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}static parseFormatForOpts(t,r={}){let n=RS(t,St.fromObject(r));return n?n.map(i=>i?i.val:null).join(""):null}static expandFormat(t,r={}){return NS(cn.parseFormat(t),St.fromObject(r)).map(i=>i.val).join("")}static resetCache(){cy=void 0,uy={}}get(t){return this[t]}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?FS(this).weekYear:NaN}get weekNumber(){return this.isValid?FS(this).weekNumber:NaN}get weekday(){return this.isValid?FS(this).weekday:NaN}get isWeekend(){return this.isValid&&this.loc.getWeekendDays().includes(this.weekday)}get localWeekday(){return this.isValid?$S(this).weekday:NaN}get localWeekNumber(){return this.isValid?$S(this).weekNumber:NaN}get localWeekYear(){return this.isValid?$S(this).weekYear:NaN}get ordinal(){return this.isValid?iy(this.c).ordinal:NaN}get monthShort(){return this.isValid?ca.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?ca.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?ca.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?ca.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 t=864e5,r=6e4,n=wf(this.c),i=this.zone.offset(n-t),o=this.zone.offset(n+t),s=this.zone.offset(n-i*r),l=this.zone.offset(n-o*r);if(s===l)return[this];let a=n-s*r,d=n-l*r,h=sy(a,s),g=sy(d,l);return h.hour===g.hour&&h.minute===g.minute&&h.second===g.second&&h.millisecond===g.millisecond?[Iu(this,{ts:a}),Iu(this,{ts:d})]:[this]}get isInLeapYear(){return Mu(this.year)}get daysInMonth(){return xf(this.year,this.month)}get daysInYear(){return this.isValid?El(this.year):NaN}get weeksInWeekYear(){return this.isValid?Pu(this.weekYear):NaN}get weeksInLocalWeekYear(){return this.isValid?Pu(this.localWeekYear,this.loc.getMinDaysInFirstWeek(),this.loc.getStartOfWeek()):NaN}resolvedLocaleOptions(t={}){let{locale:r,numberingSystem:n,calendar:i}=cn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:r,numberingSystem:n,outputCalendar:i}}toUTC(t=0,r={}){return this.setZone(Rt.instance(t),r)}toLocal(){return this.setZone(xt.defaultZone)}setZone(t,{keepLocalTime:r=!1,keepCalendarTime:n=!1}={}){if(t=Lo(t,xt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(r||n){let o=t.offset(this.ts),s=this.toObject();[i]=ly(s,o,t)}return Iu(this,{ts:i,zone:t})}else return e.invalid(mg(t))}reconfigure({locale:t,numberingSystem:r,outputCalendar:n}={}){let i=this.loc.clone({locale:t,numberingSystem:r,outputCalendar:n});return Iu(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;let r=Sf(t,iM),{minDaysInFirstWeek:n,startOfWeek:i}=wS(r,this.loc),o=!He(r.weekYear)||!He(r.weekNumber)||!He(r.weekday),s=!He(r.ordinal),l=!He(r.year),a=!He(r.month)||!He(r.day),d=l||a,h=r.weekYear||r.weekNumber;if((d||s)&&h)throw new Mo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(a&&s)throw new Mo("Can't mix ordinal dates with month/day");let g;o?g=hS({...ig(this.c,n,i),...r},n,i):He(r.ordinal)?(g={...this.toObject(),...r},He(r.day)&&(g.day=Math.min(xf(g.year,g.month),g.day))):g=gS({...iy(this.c),...r});let[b,S]=ly(g,this.o,this.zone);return Iu(this,{ts:b,o:S})}plus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t);return Iu(this,rM(this,r))}minus(t){if(!this.isValid)return this;let r=wr.fromDurationLike(t).negate();return Iu(this,rM(this,r))}startOf(t,{useLocaleWeeks:r=!1}={}){if(!this.isValid)return this;let n={},i=wr.normalizeUnit(t);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(t,r){return this.isValid?this.plus({[t]:1}).startOf(t,r).minus(1):this}toFormat(t,r={}){return this.isValid?cn.create(this.loc.redefaultToEN(r)).formatDateTimeFromString(this,t):DS}toLocaleString(t=yl,r={}){return this.isValid?cn.create(this.loc.clone(r),t).formatDateTime(this):DS}toLocaleParts(t={}){return this.isValid?cn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:r=!1,suppressMilliseconds:n=!1,includeOffset:i=!0,extendedZone:o=!1}={}){if(!this.isValid)return null;let s=t==="extended",l=VS(this,s);return l+="T",l+=nM(this,s,r,n,i,o),l}toISODate({format:t="extended"}={}){return this.isValid?VS(this,t==="extended"):null}toISOWeekDate(){return ay(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:r=!1,includeOffset:n=!0,includePrefix:i=!1,extendedZone:o=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+nM(this,s==="extended",r,t,n,o):null}toRFC2822(){return ay(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ay(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?VS(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:r=!1,includeOffsetSpace:n=!0}={}){let i="HH:mm:ss.SSS";return(r||t)&&(n&&(i+=" "),r?i+="z":t&&(i+="ZZ")),ay(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():DS}[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(t={}){if(!this.isValid)return{};let r={...this.c};return t.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(t,r="milliseconds",n={}){if(!this.isValid||!t.isValid)return wr.invalid("created by diffing an invalid DateTime");let i={locale:this.locale,numberingSystem:this.numberingSystem,...n},o=xP(r).map(wr.normalizeUnit),s=t.valueOf()>this.valueOf(),l=s?this:t,a=s?t:this,d=HP(l,a,o,i);return s?d.negate():d}diffNow(t="milliseconds",r={}){return this.diff(e.now(),t,r)}until(t){return this.isValid?la.fromDateTimes(this,t):this}hasSame(t,r,n){if(!this.isValid)return!1;let i=t.valueOf(),o=this.setZone(t.zone,{keepLocalTime:!0});return o.startOf(r,n)<=i&&i<=o.endOf(r,n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;let r=t.base||e.fromObject({},{zone:this.zone}),n=t.padding?this<r?-t.padding:t.padding:0,i=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(i=t.unit,o=void 0),sM(r,this.plus(n),{...t,numeric:"always",units:i,unit:o})}toRelativeCalendar(t={}){return this.isValid?sM(t.base||e.fromObject({},{zone:this.zone}),this,{...t,numeric:"auto",units:["years","months","days"],calendary:!0}):null}static min(...t){if(!t.every(e.isDateTime))throw new _r("min requires all arguments be DateTimes");return _S(t,r=>r.valueOf(),Math.min)}static max(...t){if(!t.every(e.isDateTime))throw new _r("max requires all arguments be DateTimes");return _S(t,r=>r.valueOf(),Math.max)}static fromFormatExplain(t,r,n={}){let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});return OS(s,t,r)}static fromStringExplain(t,r,n={}){return e.fromFormatExplain(t,r,n)}static buildFormatParser(t,r={}){let{locale:n=null,numberingSystem:i=null}=r,o=St.fromOpts({locale:n,numberingSystem:i,defaultToEN:!0});return new fg(o,t)}static fromFormatParser(t,r,n={}){if(He(t)||He(r))throw new _r("fromFormatParser requires an input string and a format parser");let{locale:i=null,numberingSystem:o=null}=n,s=St.fromOpts({locale:i,numberingSystem:o,defaultToEN:!0});if(!s.equals(r.locale))throw new _r(`fromFormatParser called with a locale of ${s}, but the format parser was created for ${r.locale}`);let{result:l,zone:a,specificOffset:d,invalidReason:h}=r.explainFromTokens(t);return h?e.invalid(h):kf(l,a,n,`format ${r.format}`,t,d)}static get DATE_SHORT(){return yl}static get DATE_MED(){return Oh}static get DATE_MED_WITH_WEEKDAY(){return Jx}static get DATE_FULL(){return Rh}static get DATE_HUGE(){return Dh}static get TIME_SIMPLE(){return Fh}static get TIME_WITH_SECONDS(){return $h}static get TIME_WITH_SHORT_OFFSET(){return Vh}static get TIME_WITH_LONG_OFFSET(){return Uh}static get TIME_24_SIMPLE(){return zh}static get TIME_24_WITH_SECONDS(){return Wh}static get TIME_24_WITH_SHORT_OFFSET(){return Bh}static get TIME_24_WITH_LONG_OFFSET(){return Gh}static get DATETIME_SHORT(){return jh}static get DATETIME_SHORT_WITH_SECONDS(){return qh}static get DATETIME_MED(){return Hh}static get DATETIME_MED_WITH_SECONDS(){return Zh}static get DATETIME_MED_WITH_WEEKDAY(){return Xx}static get DATETIME_FULL(){return Yh}static get DATETIME_FULL_WITH_SECONDS(){return Jh}static get DATETIME_HUGE(){return Xh}static get DATETIME_HUGE_WITH_SECONDS(){return Qh}}});var Dn=O(()=>{Sl();pg();IS();LS();Cu();vf();_l();pS();Hw();xl()});function Lu(e){return e instanceof Nr?e===Yr.instance:e?.toString().toLowerCase()==="unknown"}function dy(e){return Lu(e)?Yr.instance:e}var Yr,hg=O(()=>{Dn();Yr=class{};Yr.instance=new or("Etc/UTC")});function Nf(e,t,r){return e<t?e-t:e>r?e-r:0}function Of(e,t,r){return e<t?t:e>r?r:e}function Oo(e,t=!0){if(e instanceof Nr)return e;if(e.toLowerCase()==="system")return"system";if(e.toLowerCase()==="utc")return"UTC";if(e.toLowerCase()==="unknown")return Yr.instance;if(/^[+-]?[0-9]{1,2}([:][0-9]{2})?$/.test(e)){let n=Rt.parseSpecifier("UTC"+(e.startsWith("+")||e.startsWith("-")?"":"+")+e);if(n)return n}let r=or.create(e);if(!r.isValid){if(t)throw new US(py.TimeZoneNotRecognized);return null}return r}var py,mj,US,Rf,zS=O(()=>{gl();hg();Dn();(function(e){e.TimeZoneNotRecognized="TimeZoneNotRecognized"})(py||(py={}));mj={[py.TimeZoneNotRecognized]:"Timezone identifier has not been recognized."},US=class e extends Error{constructor(t,r){super(ys(mj[t],r)),this.declaredRootClass="esri.arcade.arcadedate.dateerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}};Rf=class e{constructor(t){this._date=t,this.declaredRootClass="esri.arcade.arcadedate"}static fromParts(t=0,r=1,n=1,i=0,o=0,s=0,l=0,a){if(isNaN(t)||isNaN(r)||isNaN(n)||isNaN(i)||isNaN(o)||isNaN(s)||isNaN(l))return null;let d=Ce.local(t,r).daysInMonth,h=Ce.fromObject({day:Of(n,1,d),year:t,month:Of(r,1,12),hour:Of(i,0,23),minute:Of(o,0,59),second:Of(s,0,59),millisecond:Of(l,0,999)},{zone:Oo(a)});return h=h.plus({months:Nf(r,1,12),days:Nf(n,1,d),hours:Nf(i,0,23),minutes:Nf(o,0,59),seconds:Nf(s,0,59),milliseconds:Nf(l,0,999)}),new e(h)}static get systemTimeZoneCanonicalName(){return Intl.DateTimeFormat().resolvedOptions().timeZone??"system"}static arcadeDateAndZoneToArcadeDate(t,r){let n=Oo(r);return t.isUnknownTimeZone||n===Yr.instance?e.fromParts(t.year,t.monthJS+1,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t._date.setZone(n))}static dateJSToArcadeDate(t){return new e(Ce.fromJSDate(t,{zone:"system"}))}static dateJSAndZoneToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromJSDate(t,{zone:n}))}static unknownEpochToArcadeDate(t){return new e(Ce.fromMillis(t,{zone:Yr.instance}))}static unknownDateJSToArcadeDate(t){return new e(Ce.fromMillis(t.getTime(),{zone:Yr.instance}))}static epochToArcadeDate(t,r="system"){let n=Oo(r);return new e(Ce.fromMillis(t,{zone:n}))}static dateTimeToArcadeDate(t){return new e(t)}clone(){return new e(this._date)}changeTimeZone(t){let r=Oo(t);return e.dateTimeToArcadeDate(this._date.setZone(r))}static dateTimeAndZoneToArcadeDate(t,r){let n=Oo(r);return t.zone===Yr.instance||n===Yr.instance?e.fromParts(t.year,t.month,t.day,t.hour,t.minute,t.second,t.millisecond,n):new e(t.setZone(n))}static nowToArcadeDate(t){let r=Oo(t);return new e(Ce.fromJSDate(new Date,{zone:r}))}static nowUTCToArcadeDate(){return new e(Ce.utc())}get isSystem(){return this.timeZone==="system"||this.timeZone===e.systemTimeZoneCanonicalName}equals(t){return this.isSystem&&t.isSystem?this.toNumber()===t.toNumber():this.isUnknownTimeZone===t.isUnknownTimeZone&&this._date.equals(t._date)}get isUnknownTimeZone(){return this._date.zone===Yr.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 t=this._date.weekday;return t>6&&(t=0),t}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 t=this.zone;return t.type==="fixed"?t.fixed===0?"UTC":t.formatOffset(0,"short"):t.name}stringify(){return JSON.stringify(this.toJSDate())}plus(t){return new e(this._date.plus(t))}diff(t,r="milliseconds"){return this._date.diff(t._date,r)[r]}toISODate(){return this._date.toISODate()}toISOString(t){return t?this._date.toISO({suppressMilliseconds:!0,includeOffset:!this.isUnknownTimeZone}):this._date.toISO({includeOffset:!this.isUnknownTimeZone})}toISOTime(t,r){return this._date.toISOTime({suppressMilliseconds:t,includeOffset:r&&!this.isUnknownTimeZone})}toFormat(t,r){return this.isUnknownTimeZone&&(t=t.replaceAll("Z","")),this._date.toFormat(t,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 e(this._date.toUTC())}toLocal(){return new e(this._date.toLocal())}toString(){return this.toISOString(!0)}static fromReaderAsTimeStampOffset(t){if(!t)return null;let r=Ce.fromISO(t,{setZone:!0});return new e(r)}}});function Pt(e){return e?{remove(){e&&(e(),e=void 0)}}:hj}function gj(e){e.forEach(t=>t?.remove())}function ku(e){return Pt(()=>gj(e))}var hj,ci=O(()=>{hj={remove:()=>{}}});function pM(){let e=WS?.getAttribute("lang"),t=globalThis.navigator?.language;return yj??e??t??"en"}function Ji(){return gg===void 0&&(gg=pM()),gg}function BS(e){return fy.push(e),Pt(()=>fy.splice(fy.indexOf(e),1))}function Df(e){return my.push(e),Pt(()=>my.splice(my.indexOf(e),1))}function dM(){let e=wj??pM();gg!==e&&([...my].forEach(t=>t(e)),gg=e,[...fy].forEach(t=>t(e)))}var wj,gg,yj,WS,fy,my,Ml=O(()=>{ci();yj=globalThis.esriConfig?.locale??globalThis.dojoConfig?.locale,WS=globalThis.document?.documentElement;fy=[];my=[];globalThis.addEventListener?.("languagechange",dM),WS&&new MutationObserver(()=>{dM()}).observe(WS,{attributeFilter:["lang"]})});function fM(e){e=e.replaceAll(/LTS|LT|L{1,4}|l{1,4}/g,"[$&]");let t="",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 e.match(r)||[])switch(n){case"D":t+="d";break;case"DD":t+="dd";break;case"DDD":t+="o";break;case"d":t+="c";break;case"ddd":t+="ccc";break;case"dddd":t+="cccc";break;case"M":t+="L";break;case"MM":t+="LL";break;case"MMM":t+="LLL";break;case"MMMM":t+="LLLL";break;case"YY":t+="yy";break;case"Y":case"YYYY":t+="yyyy";break;case"Q":t+="q";break;case"X":case"x":t+=n;break;default:n.length>=2&&n.slice(0,1)==="["&&n.slice(-1)==="]"?t+=`'${n.slice(1,-1)}'`:t+=`'${n}'`}return t}var un,wg=O(()=>{zS();Ml();Dn();un=class e{constructor(t,r,n){this._year=t,this._month=r,this._day=n,this.declaredRootClass="esri.core.sql.dateonly"}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(t){return t instanceof e&&t.day===this.day&&t.month===this.month&&t.year===this.year}clone(){return new e(this._year,this._month,this._day)}toDateTime(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(t)})}toDateTimeLuxon(t){return Ce.fromObject({day:this.day,month:this.month,year:this.year},{zone:Oo(t)})}toString(){return`${this.year.toString().padStart(4,"0")}-${this.month.toString().padStart(2,"0")}-${this.day.toString().padStart(2,"0")}`}toFormat(t=null,r=!0){if(t===null||t==="")return this.toString();if(r&&(t=fM(t)),!t)return"";let n=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(n).toFormat(t,{locale:Ji(),numberingSystem:"latn"})}toArcadeDate(){let t=this.toDateTime("unknown");return Rf.dateTimeToArcadeDate(t)}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(t,r){return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}toUTCDateTime(){return Ce.utc(this.year,this.month,this.day,0,0,0,0)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}static fromMilliseconds(t){let r=Ce.fromMillis(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromSeconds(t){let r=Ce.fromSeconds(t,{zone:Rt.utcInstance});return r.isValid?e.fromParts(r.year,r.month,r.day):null}static fromReader(t){if(!t)return null;let r=t.split("-");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10))}static fromParts(t,r,n){let i=new e(t,r,n);return i.isValid===!1?null:i}static fromDateJS(t){return e.fromParts(t.getFullYear(),t.getMonth()+1,t.getDay())}static fromDateTime(t){return e.fromParts(t.year,t.month,t.day)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];if(r)(r=fM(r))&&n.push(r);else if(r===null||r===""){let i=Ce.fromISO(t,{setZone:!0});return i.isValid?e.fromParts(i.year,i.month,i.day):null}for(let i of n){let o=Ce.fromFormat(t,r??i);if(o.isValid)return new e(o.year,o.month,o.day)}return null}static fromNow(t="system"){let r=Ce.fromJSDate(new Date).setZone(Oo(t));return new e(r.year,r.month,r.day)}}});var K,vj,oe,Al=O(()=>{gl();(function(e){e.InvalidFunctionParameters="InvalidFunctionParameters",e.InvalidValueForAggregateFunction="InvalidValueForAggregateFunction",e.UnsupportedSqlFunction="UnsupportedSqlFunction",e.UnsupportedOperator="UnsupportedOperator",e.UnsupportedSyntax="UnsupportedSyntax",e.UnsupportedIsRhs="UnsupportedIsRhs",e.UnsupportedIsLhs="UnsupportedIsLhs",e.InvalidDataType="InvalidDataType",e.CannotCastValue="CannotCastValue",e.FunctionNotRecognized="FunctionNotRecognized",e.InvalidTime="InvalidTime",e.InvalidParameterCount="InvalidParameterCount",e.InvalidTimeStamp="InvalidTimeStamp",e.InvalidDate="InvalidDate",e.InvalidOperator="InvalidOperator",e.IllegalInterval="IllegalInterval",e.YearMonthIntervals="YearMonthIntervals",e.PrimarySecondaryQualifiers="PrimarySecondaryQualifiers",e.MissingStatisticParameters="MissingStatisticParameters"})(K||(K={}));vj={[K.InvalidValueForAggregateFunction]:"Invalid value used in aggregate function",[K.MissingStatisticParameters]:"Statistic does not have 1 or 0 Parameters",[K.InvalidFunctionParameters]:"Invalid parameters for call to {function}",[K.UnsupportedIsLhs]:"Unsupported left hand expression in is statement",[K.UnsupportedIsRhs]:"Unsupported right hand expression in is statement",[K.UnsupportedOperator]:"Unsupported operator - {operator}",[K.UnsupportedSyntax]:"Unsupported syntax - {node}",[K.UnsupportedSqlFunction]:"Sql function not found = {function}",[K.InvalidDataType]:"Invalid sql data type",[K.InvalidDate]:"Invalid date encountered",[K.InvalidOperator]:"Invalid operator encountered",[K.InvalidTime]:"Invalid time encountered",[K.IllegalInterval]:"Illegal interval",[K.FunctionNotRecognized]:"Function not recognized",[K.InvalidTimeStamp]:"Invalid timestamp encountered",[K.InvalidParameterCount]:"Invalid parameter count for call to {name}",[K.PrimarySecondaryQualifiers]:"Primary and Secondary SqlInterval qualifiers not supported",[K.YearMonthIntervals]:"Year-Month Intervals not supported",[K.CannotCastValue]:"Cannot cast value to the required data type"},oe=class e extends Error{constructor(t,r){super(ys(vj[t],r)),this.declaredRootClass="esri.arcade.featureset.support.sqlerror",Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});function mM(e){return Number.isNaN(e)||e===0?e:Math.trunc(e)}var bn,yg=O(()=>{Dn();bn=class e{constructor(t){this._timeStampOffset=t,this._date=null}toDateTime(){return this._date??(this._date=Ce.fromISO(this._timeStampOffset,{setZone:!0})),this._date}get isValid(){return this.toDateTime().isValid}get timezoneOffsetHour(){return mM(this.toDateTime().offset/60)}get timezoneOffsetMinutes(){return mM(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 e.fromDateTime(this.toDateTime().startOf("day"))}static fromJSDate(t){return new e(Ce.fromJSDate(t).toISO({includeOffset:!0}))}static fromDateTime(t){return new e(t.toISO({includeOffset:!0}))}static fromParts(t,r,n=0,i=0,o=0,s=0,l=0,a=!1,d=0,h=0){let g=`${t.toString().padStart(4,"0")}-${r.toString().padStart(2,"0")}-${n.toString().padStart(2,"0")}`,b="";s<10&&(b="0");let S=`${i.toString().padStart(2,"0")}:${o.toString().padStart(2,"0")}:${b+s.toString()}`;l!==0&&(S+="."+l.toString().padStart(3,"0"));let P=`${a?"-":"+"}${d.toString().padStart(2,"0")}:${h.toString().padStart(2,"0")}`;return new e(g+"T"+S+P)}toStorageFormat(){return this._timeStampOffset}toString(){return this._timeStampOffset}toSQLValue(){let t=this.toDateTime().toSQL({includeOffset:!0,includeOffsetSpace:!0});return t&&(t=t.replace(".000","")),t}toSQLWithKeyword(){return`timestamp '${this.toSQLValue()}'`}addMilliseconds(t){let r=this.toDateTime().plus(t);return e.fromDateTime(r)}}});function R(e,t,r,n){var i,o=arguments.length,s=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(e,t,r,n);else for(var l=e.length-1;l>=0;l--)(i=e[l])&&(s=(o<3?i(s):o>3?i(t,r,s):i(t,r))||s);return o>3&&s&&Object.defineProperty(t,r,s),s}var gt=O(()=>{});var hy,gy=O(()=>{hy="20250115"});var Mt,Il=O(()=>{tt();ws();gy();Mt={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&&(H8(Mt,globalThis.esriConfig,!0),delete Mt.has),!Mt.assetsPath){{let e="4.32.0";Mt.assetsPath=`https://cdn.jsdelivr.net/npm/@arcgis/core@${e}-next.${hy}/assets`}Mt.defaultAssetsPath=Mt.assetsPath}});function bj(e,t,...r){console[e](`[${t}]`,...r)}function _j(...e){return Q8(JSON.stringify(e,(r,n)=>typeof n!="object"||Array.isArray(n)?n:"[Object]"))}var hM,ot,it=O(()=>{Il();tt();gl();hM={info:0,warn:1,error:2,none:3},ot=class e{constructor(t){this.level=null,this._module="",this._parent=null,this.writer=null,this._loggedMessages={error:new Map,warn:new Map,info:new Map},t.level!=null&&(this.level=t.level),t.writer!=null&&(this.writer=t.writer),this._module=t.module,e._loggers.set(this.module,this);let r=this.module.lastIndexOf(".");r!==-1&&(this._parent=e.getLogger(this.module.slice(0,r)))}get module(){return this._module}get parent(){return this._parent}error(...t){this._log("error","always",...t)}warn(...t){this._log("warn","always",...t)}info(...t){this._log("info","always",...t)}errorOnce(...t){this._log("error","once",...t)}warnOnce(...t){this._log("warn","once",...t)}infoOnce(...t){this._log("info","once",...t)}errorOncePerTick(...t){this._log("error","oncePerTick",...t)}warnOncePerTick(...t){this._log("warn","oncePerTick",...t)}infoOncePerTick(...t){this._log("info","oncePerTick",...t)}get test(){}static get test(){}static getLogger(t){return t=typeof t!="string"?t.declaredClass:t,e._loggers.get(t)||new e({module:t})}_log(t,r,...n){if(this._matchLevel(t)){if(r!=="always"&&!e._throttlingDisabled){let i=_j(n),o=this._loggedMessages[t].get(i);if(r==="once"&&o!=null||r==="oncePerTick"&&o&&o>=e._tickCounter)return;this._loggedMessages[t].set(i,e._tickCounter),e._scheduleTickCounterIncrement()}for(let i of Mt.log.interceptors)if(i(t,this.module,...n))return;this._inheritedWriter()(t,this.module,...n)}}_parentWithMember(t,r){let n=this;for(;n!=null;){let i=n[t];if(i!=null)return i;n=n.parent}return r}_inheritedWriter(){return this._parentWithMember("writer",bj)}_matchLevel(t){let r=Mt.log.level||"warn";return hM[this._parentWithMember("level",r)]<=hM[t]}static _scheduleTickCounterIncrement(){e._tickCounterScheduled||(e._tickCounterScheduled=!0,Promise.resolve().then(()=>{e._tickCounter++,e._tickCounterScheduled=!1}))}};ot._loggers=new Map,ot._tickCounter=0,ot._tickCounterScheduled=!1,ot._throttlingDisabled=!1});function Ff(e,t,r){let n=e.get(t);if(n!==void 0)return n;let i=r();return e.set(t,i),i}var wy=O(()=>{});function xj(e){return e==null?e:new Date(e)}function Sj(e){return e==null?e:!!e}function Ej(e){return e==null?e:e.toString()}function HS(e,t=0){return e==null?e:(e=parseFloat(e),isNaN(e)?t:e)}function Cj(e){return e==null?e:Math.round(parseFloat(e))}function Tj(e){return null}function wM(e,t){return r=>{let n=e(r);return t.step!=null&&(n=Math.round(n/t.step)*t.step),t.min!=null&&(n=Math.max(t.min,n)),t.max!=null&&(n=Math.min(t.max,n)),n}}function yM(e){return e?.constructor&&e.constructor.__accessorMetadata__!==void 0}function yy(e,t){return t!=null&&e&&!(t instanceof e)}function vM(e){return e&&"isCollection"in e}function gM(e){return e?.Type?typeof e.Type=="function"?e.Type:e.Type.base:null}function Pj(e,t){if(!t?.constructor||!vM(t.constructor))return GS(e,t)?t:new e(t);let r=gM(e.prototype.itemType),n=gM(t.constructor.prototype.itemType);return r?n?r===n?t:r.prototype.isPrototypeOf(n.prototype)?new e(t):(GS(e,t),t):new e(t):t}function GS(e,t){return!!yM(t)&&($f().error("Accessor#set","Assigning an instance of '"+(t.declaredClass||"unknown")+"' which is not a subclass of '"+vy(e)+"'"),!0)}function ZS(e,t){return t==null?t:vM(e)?Pj(e,t):yy(e,t)?GS(e,t)?t:new e(t):t}function vy(e){return e?.prototype?.declaredClass||"unknown"}function Aj(e){switch(e){case Number:return t=>HS(t);case di:return Cj;case Boolean:return Sj;case String:return Ej;case Date:return xj;case bg:return Tj;default:return Ff(Mj,e,()=>ZS.bind(null,e))}}function ui(e,t){let r=Aj(e);return arguments.length===1?r:r(t)}function Vf(e,t,r){return arguments.length===1?Vf.bind(null,e):t&&(Array.isArray(t)?t.map(n=>e(n,r)):[e(t,r)])}function bM(e,t){return arguments.length===1?Vf(r=>ui(e,r)):Vf(r=>ui(e,r),t)}function _M(e,t,r){return t!==0&&Array.isArray(r)?r.map(n=>_M(e,t-1,n)):e(r)}function vg(e,t,r){if(arguments.length===2)return o=>vg(e,t,o);if(!r)return r;r=_M(e,t,r);let n=t,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 xM(e,t,r){return arguments.length===2?vg(n=>ui(e,n),t):vg(n=>ui(e,n),t,r)}function by(e){return!!Array.isArray(e)&&!e.some(t=>{let r=typeof t;return!(r==="string"||r==="number"||r==="function"&&e.length>1)})}function _y(e,t){if(arguments.length===2)return _y(e).call(null,t);let r=new Set,n=e.filter(l=>typeof l!="function"),i=e.filter(l=>typeof l=="function");for(let l of e)typeof l!="string"&&typeof l!="number"||r.add(l);let o=null,s=null;return(l,a)=>{if(l==null)return l;let d=typeof l,h=d==="string"||d==="number";return h&&(r.has(l)||i.some(g=>d==="string"&&g===String||d==="number"&&g===Number))||d==="object"&&i.some(g=>!yy(l,g))?l:(h&&n.length?(o||(o=n.map(g=>typeof g=="string"?`'${g}'`:`${g}`).join(", ")),$f().error("Accessor#set",`'${l}' is not a valid value for this property, only the following values are valid: ${o}`)):typeof l=="object"&&i.length?(s||(s=i.map(g=>vy(g)).join(", ")),$f().error("Accessor#set",`'${l}' is not a valid value for this property, value must be one of ${s}`)):$f().error("Accessor#set",`'${l}' is not a valid value for this property`),a&&(a.valid=!1),null)}}function Ro(e,t){if(arguments.length===2)return Ro(e).call(null,t);let r={},n=[],i=[];for(let a in e.typeMap){let d=e.typeMap[a];r[a]=ui(d),n.push(vy(d)),i.push(a)}let o=()=>`'${n.join("', '")}'`,s=()=>`'${i.join("', '")}'`,l=typeof e.key=="string"?a=>a[e.key]:e.key;return a=>{if(e.base&&!yy(e.base,a)||a==null)return a;let d=l(a)||e.defaultKeyValue,h=r[d];if(!h)return $f().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(!yy(e.typeMap[d],a))return a;if(typeof e.key=="string"&&!yM(a)){let g={};for(let b in a)b!==e.key&&(g[b]=a[b]);return h(g)}return h(a)}}function SM(e){if(!e||!("type"in e))return!1;switch(e.type){case"native":case"array":case"one-of":return!0}return!1}function YS(e){switch(e.type){case"native":return ui(e.value);case"array":return Vf(YS(e.value));case"one-of":return Ij(e);default:return null}}function Ij(e){let t=null;return(r,n)=>qS(r,e)?r:(t==null&&(t=jS(e)),$f().error("Accessor#set",`Invalid property value, value needs to be of type ${t}`),n&&(n.valid=!1),null)}function jS(e){switch(e.type){case"native":switch(e.value){case Number:return"number";case String:return"string";case Boolean:return"boolean";case di:return"integer";case Date:return"date";case bg:return"null";default:return vy(e.value)}case"array":return`array of ${jS(e.value)}`;case"one-of":{let t=e.values.map(r=>jS(r));return`one of ${t.slice(0,-1)} or ${t[t.length-1]}`}}return"unknown"}function qS(e,t){if(e==null)return!0;switch(t.type){case"native":switch(t.value){case Number:case di:return typeof e=="number";case Boolean:return typeof e=="boolean";case String:return typeof e=="string";case bg:return e===null}return e instanceof t.value;case"array":return!!Array.isArray(e)&&!e.some(r=>!qS(r,t.value));case"one-of":return t.values.some(r=>qS(e,r))}}var $f,Mj,di,bg,Xi=O(()=>{tt();it();wy();$f=()=>ot.getLogger("esri.core.accessorSupport.ensureTypes");Mj=new WeakMap;di=class{},bg=class{}});function Pi(e){return e.__accessor__??null}function CM(e,t){return e?.metadata?.[t]!=null}function Uf(e,t,r){return r?xy(e,t,{policy:r,path:""}):xy(e,t,null)}function xy(e,t,r){return t?Object.keys(t).reduce((n,i)=>{let o=i,s=null,l="merge";if(r&&(s=r.path?`${r.path}.${i}`:i,l=r.policy(s)),l==="replace"||l==="replace-arrays"&&Array.isArray(n[o]))return n[o]=t[o],n;if(n[o]===void 0)return n[o]=Je(t[o]),n;let a=n[o],d=t[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]=xy(a,d,r),r.path=h}else n[o]=xy(a,d,null);else n.hasOwnProperty(i)&&!t.hasOwnProperty(i)||(n[o]=d);return n},e||{}):e}function Sy(e){return Array.isArray(e)?e:e.split(".")}function EM(e){return e.includes(",")?e.split(",").map(t=>t.trim()):[e.trim()]}function Lj(e){if(Array.isArray(e)){let t=[];for(let r of e)t.push(...EM(r));return t}return EM(e)}function JS(e,t,r,n){let i=Lj(t);if(i.length!==1){let o=i.map(s=>n(e,s,r));return ku(o)}return n(e,i[0],r)}var ua=O(()=>{ci();ar()});function TM(e,t){let r=e[e.length-1]==="?"?e.slice(0,-1):e;if(t.getItemAt!=null||Array.isArray(t)){let i=parseInt(r,10);if(!isNaN(i))return Array.isArray(t)?t[i]:t.at(i)}let n=Pi(t);return CM(n,r)?n.get(r):t[r]}function PM(e,t,r){if(e==null)return e;let n=TM(t[r],e);return!n&&r<t.length-1?void 0:r===t.length-1?n:PM(n,t,r+1)}function Nu(e,t,r=0){return typeof t!="string"||t.includes(".")?PM(e,Sy(t),r):TM(t,e)}function vs(e,t){return Nu(e,t)}function XS(e,t){return Nu(t,e)!==void 0}var Ou=O(()=>{ua()});function Ll(e){let t=e.constructor.__accessorMetadata__,r=Object.prototype.hasOwnProperty.call(e.constructor,"__accessorMetadata__");if(t){if(!r){t=Object.create(t);for(let n in t)t[n]=Je(t[n]);Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0})}}else t={},Object.defineProperty(e.constructor,"__accessorMetadata__",{value:t,enumerable:!1,configurable:!0,writable:!0});return e.constructor.__accessorMetadata__}function zf(e,t){let r=Ll(e),n=r[t];return n||(n=r[t]={}),n}function MM(e,t){return Uf(e,t,Nj)}function Nj(e){return kj.test(e)?"replace":"merge"}var kj,Wf=O(()=>{ar();ua();kj=/^(?:[^.]+\.)?(?:value|type|(?:json\.type|json\.origins\.[^.]\.type))$/});function Oj(e,t){return e.replaceAll(/\$\{([^\s:}]*)(?::([^\s:}]+))?\}/g,(r,n)=>n===""?"$":(qi(n,t)??"").toString())}var Bf,QS=O(()=>{ws();Bf=class{constructor(t,r,n=void 0){this.name=t,this.details=n,this.message=(r&&Oj(r,n))??""}toString(){return"["+this.name+"]: "+this.message}}});var je,Fn=O(()=>{ar();it();QS();je=class e extends Bf{constructor(t,r,n){super(t,r,n)}toJSON(){if(this.details!=null)try{return{name:this.name,message:this.message,details:JSON.parse(JSON.stringify(this.details,(t,r)=>{if(r&&typeof r=="object"&&typeof r.toJSON=="function")return r;try{return Je(r)}catch{return"[object]"}}))}}catch(t){throw ot.getLogger("esri.core.Error").error(t),t}return{name:this.name,message:this.message,details:this.details}}static fromJSON(t){return new e(t.name,t.message,t.details)}};je.prototype.type="error"});function Gf(e,t,r){if(e&&t)if(typeof t=="object")for(let n of Object.getOwnPropertyNames(t))Gf(e,n,t[n]);else{if(t.includes(".")){let i=t.split("."),o=i.splice(-1,1)[0];return void Gf(vs(e,i),o,r)}let n=e.__accessor__;n!=null&&Rj(t,n),e[t]=r}}function Rj(e,t){if(de("esri-unknown-property-errors")&&!Dj(e,t))throw new je("set:unknown-property",Fj(e,t))}function Dj(e,t){return t.metadata[e]!=null}function Fj(e,t){return"setting unknown property '"+e+"' on instance of "+t.host.declaredClass}var KS=O(()=>{Fn();tt();it();Ou()});function V(e={}){return(t,r)=>{if(t===Function.prototype)throw new Error(`Inappropriate use of @property() on a static field: ${t.name}.${r}. Accessor does not support static properties.`);let n=Object.getOwnPropertyDescriptor(t,r),i=zf(t,r);n&&(n.get||n.set?(i.get=n.get||i.get,i.set=n.set||i.set):"value"in n&&("value"in e&&ot.getLogger("esri.core.accessorSupport.decorators.property").warn(`@property() will redefine the value of "${r}" on "${t.constructor.name}" already defined in the metadata`,e),i.value=e.value=n.value)),e.readOnly!=null&&(i.readOnly=e.readOnly);let o=e.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=vs(this,a);if(typeof g=="function"){h||(h=a.split(".").slice(0,-1).join("."));let b=vs(this,h);b&&(g=g.bind(b))}return g},i.readOnly||(i.set=d?function(g){this._override(r,g)}:function(g){Gf(this,a,g)})}let s=e.type,l=e.types;if(!i.cast){let a;s?a=$j(s):l&&(a=Array.isArray(l)?Vf(Ro(l[0])):Ro(l)),e.cast=Vj(e.cast,a)}MM(i,e),e.range&&(i.cast=wM(i.cast,e.range))}}function Ey(e,t,r){let n=zf(e,r);n.json||(n.json={});let i=n.json;return t!==void 0&&(i.origins||(i.origins={}),i.origins[t]||(i.origins[t]={}),i=i.origins[t]),i}function $j(e){let t=0,r=e;if(SM(e))return YS(e);for(;Array.isArray(r)&&r.length===1&&typeof r[0]!="string"&&typeof r[0]!="number";)r=r[0],t++;let n=r;if(by(n))return t===0?_y(n):vg(_y(n),t);if(t===1)return bM(n);if(t>1)return xM(n,t);let i=e;return i.from?i.from:ui(i)}function Vj(e,t){if(e||t)return e?t?(r,n)=>t(e(r,n),n):e:t}var yt=O(()=>{it();Xi();Ou();Wf();KS()});var Cy,e4=O(()=>{Cy=Symbol("Accessor-beforeDestroy")});var dn,_g=O(()=>{(function(e){e[e.INITIALIZING=0]="INITIALIZING",e[e.CONSTRUCTING=1]="CONSTRUCTING",e[e.CONSTRUCTED=2]="CONSTRUCTED",e[e.DESTROYED=3]="DESTROYED"})(dn||(dn={}))});var vt,Ty=O(()=>{(function(e){e[e.Dirty=1]="Dirty",e[e.Overridden=2]="Overridden",e[e.Computing=4]="Computing",e[e.NonNullable=8]="NonNullable",e[e.HasDefaultValue=16]="HasDefaultValue",e[e.DepTrackingInitialized=32]="DepTrackingInitialized",e[e.AutoTracked=64]="AutoTracked",e[e.ExplicitlyTracking=128]="ExplicitlyTracking"})(vt||(vt={}))});var bs,xg=O(()=>{bs=class{constructor(t){this.accessed=void 0,this._handles=void 0,this._observer=t}destroy(){this.accessed?.clear(),this.clear()}onAccessed(t){this._observer!=null&&t!==this._observer&&(this.accessed==null&&(this.accessed=new Set),this.accessed.add(t))}onTrackingEnd(){this._observer!=null&&(this.clear(),this.accessed!=null&&(this._handles==null&&(this._handles=[]),this.accessed.forEach(t=>{this._handles.push(t.observe(this._observer))}),this.accessed.clear()))}clear(){if(this._handles!=null){for(let t=0;t<this._handles.length;++t)this._handles[t].remove();this._handles.length=0}}}});function Ve(e){Eg.onAccessed(e)}function Do(e,t,r){if(Py)return t4(e,t,r);let n=null;return LM(e),n=t.call(r),kM(),n}function IM(e,t){return Do(Ay,e,t)}function t4(e,t,r){let n=Py;Py=!0,LM(e);let i=null;try{i=t.call(r)}catch(o){My&&ot.getLogger("esri.core.accessorSupport.tracking").error(o)}return kM(),Py=n,i}function LM(e){Eg=e,Sg.push(e)}function kM(){let e=Sg.length;if(e>1){let t=Sg.pop();Eg=Sg[e-2],t.onTrackingEnd()}else if(e===1){let t=Sg.pop();Eg=Ay,t.onTrackingEnd()}else Eg=Ay}function r4(e,t){if(t.flags&vt.DepTrackingInitialized)return;t.flags|=vt.DepTrackingInitialized;let r=My;My=!1,t.flags&vt.AutoTracked?t4(t.trackingTarget,t.metadata.get,e):n4(e,t),My=r}function n4(e,t){t.flags&vt.ExplicitlyTracking||(t.flags|=vt.ExplicitlyTracking,t4(t.trackingTarget,()=>{let r=t.metadata.dependsOn||Uj;for(let n of r)if(typeof n!="string"||n.includes(".")){let i=Sy(n);for(let o=0,s=e;o<i.length&&s!=null&&typeof s=="object";++o)s=AM(s,i[o],o!==i.length-1)}else AM(e,n,!1)}),t.flags&=~vt.ExplicitlyTracking)}function AM(e,t,r){let n=t[t.length-1]==="?"?t.slice(0,-1):t;if(e.getItemAt!=null||Array.isArray(e)){let o=parseInt(n,10);if(!isNaN(o))return Array.isArray(e)?e[o]:e.at(o)}let i=Pi(e);if(i){let o=i.propertiesByName.get(n);o&&(Ve(o),r4(e,o))}return r?e[n]:void 0}var Ay,Sg,Eg,Py,My,Uj,_s=O(()=>{tt();it();ua();Ty();xg();Ay=new bs,Sg=[],Eg=Ay;Py=!1,My=!1;Uj=[]});function NM(e){if(e.json&&e.json.origins){let t=e.json.origins,r={"web-document":["web-scene","web-map"]};for(let n in r)if(t[n]){let i=t[n];r[n].forEach(o=>{t[o]=i}),delete t[n]}}}var OM=O(()=>{});var Cg,RM=O(()=>{QS();Cg=class extends Bf{constructor(t,r,n){super(t,r,n)}};Cg.prototype.type="warning"});function Iy(e){return!!e&&e.prototype?.declaredClass&&e.prototype.declaredClass.indexOf("esri.core.Collection")===0}var i4=O(()=>{});function s4(e,t,r){e&&(!r&&!t.read||t.read?.reader||t.read?.enabled===!1||Bj(e)&&oa("read.reader",a4(e),t))}function a4(e){let t=e.ndimArray??0;if(t>1)return Wj(e);if(t===1)return DM(e);if("type"in e&&$M(e.type)){let r=e.type.prototype?.itemType?.Type,n=DM(typeof r=="function"?{type:r}:{types:r});return(i,o,s)=>{let l=n(i,o,s);return l&&new e.type(l)}}return l4(e)}function l4(e){return"type"in e?zj(e.type):Gj(e.types)}function zj(e){return e.prototype.read?(t,r,n)=>{if(t==null)return t;let i=typeof t;if(i!=="object")return void o4().error(`Expected JSON value of type 'object' to deserialize type '${e.prototype.declaredClass}', but got '${i}'`);let o=new e;return o.read(t,n),o}:e.fromJSON}function FM(e,t,r,n){return n!==0&&Array.isArray(t)?t.map(i=>FM(e,i,r,n-1)):e(t,void 0,r)}function Wj(e){let t=l4(e),r=FM.bind(null,t),n=e.ndimArray??0;return(i,o,s)=>{if(i==null)return i;i=r(i,s,n);let l=n,a=i;for(;l>0&&Array.isArray(a);)l--,a=a[0];if(a!==void 0)for(let d=0;d<l;d++)i=[i];return i}}function DM(e){let t=l4(e);return(r,n,i)=>{if(r==null)return r;if(Array.isArray(r)){let s=[];for(let l of r){let a=t(l,void 0,i);a!==void 0&&s.push(a)}return s}let o=t(r,void 0,i);return o!==void 0?[o]:void 0}}function $M(e){if(!Iy(e))return!1;let t=e.prototype.itemType;return!(!t||!t.Type)&&(typeof t.Type=="function"?c4(t.Type):VM(t.Type))}function Bj(e){return"types"in e?VM(e.types):c4(e.type)}function c4(e){return!Array.isArray(e)&&!!e&&e.prototype&&("read"in e.prototype||"fromJSON"in e||$M(e))}function VM(e){for(let t in e.typeMap)if(!c4(e.typeMap[t]))return!1;return!0}function Gj(e){let t=null,r=e.errorContext??"type",n=e.validate;return(i,o,s)=>{if(i==null)return i;let l=typeof i;if(l!=="object")return void o4().error(`Expected JSON value of type 'object' to deserialize, but got '${l}'`);t||(t=jj(e));let a=e.key;if(typeof a!="string")return;let d=i[a],h=d?t[d]:e.defaultKeyValue?e.typeMap[e.defaultKeyValue]:void 0;if(!h){let b=`Type '${d||"unknown"}' is not supported`;return s?.messages&&i&&s.messages.push(new Cg(`${r}:unsupported`,b,{definition:i,context:s})),void o4().error(b)}let g=new h;return g.read(i,s),n?n(g):g}}function jj(e){let t={};for(let r in e.typeMap){let n=e.typeMap[r],i=Ll(n.prototype);if(typeof e.key=="function")continue;let o=i[e.key];if(!o)continue;if(o.json?.type&&Array.isArray(o.json.type)&&o.json.type.length===1&&typeof o.json.type[0]=="string"){t[o.json.type[0]]=n;continue}let s=o.json?.write;if(!s?.writer){t[r]=n;continue}let l=s.target,a=typeof l=="string"?l:e.key,d={};s.writer(r,d,a),d[a]&&(t[d[a]]=n)}return t}var o4,u4=O(()=>{it();ws();RM();Wf();i4();o4=()=>ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.reader")});function BM(e){if(e.json||(e.json={}),zM(e.json),WM(e.json),UM(e.json),e.json.origins)for(let t in e.json.origins)zM(e.json.origins[t]),WM(e.json.origins[t]),UM(e.json.origins[t]);return!0}function UM(e){e.name&&(e.read&&typeof e.read=="object"?e.read.source===void 0&&(e.read.source=e.name):e.read={source:e.name},e.write&&typeof e.write=="object"?e.write.target===void 0&&(e.write.target=e.name):e.write={target:e.name})}function zM(e){typeof e.read=="boolean"?e.read={enabled:e.read}:typeof e.read=="function"?e.read={enabled:!0,reader:e.read}:e.read&&typeof e.read=="object"&&e.read.enabled===void 0&&(e.read.enabled=!0)}function WM(e){typeof e.write=="boolean"?e.write={enabled:e.write}:typeof e.write=="function"?e.write={enabled:!0,writer:e.write}:e.write&&typeof e.write=="object"&&e.write.enabled===void 0&&(e.write.enabled=!0)}var GM=O(()=>{});function d4(e,t){if(!t.write||t.write.writer||t.write.enabled===!1&&!t.write.overridePolicy)return;let r=e?.ndimArray??0;e&&(r===1||"type"in e&&Iy(e.type))?t.write.writer=Yj:r>1?t.write.writer=Jj(r):t.types?Array.isArray(t.types)?t.write.writer=Hj(t.types[0]):t.write.writer=qj(t.types):t.write.writer=Tg}function qj(e){return(t,r,n,i)=>t?jM(t,e,i)?Tg(t,r,n,i):void 0:Tg(t,r,n,i)}function jM(e,t,r){for(let n in t.typeMap)if(e instanceof t.typeMap[n])return!0;if(r?.messages){let n=t.errorContext??"type",i=`Values of type '${(typeof t.key!="function"?e[t.key]:e.declaredClass)??"Unknown"}' cannot be written`;r&&r.messages&&e&&r.messages.push(new je(`${n}:unsupported`,i,{definition:e,context:r})),ot.getLogger("esri.core.accessorSupport.extensions.serializableProperty.writer").error(i)}return!1}function Hj(e){return(t,r,n,i)=>!t||!Array.isArray(t)?Tg(t,r,n,i):Tg(t.filter(o=>jM(o,e,i)),r,n,i)}function Tg(e,t,r,n){oa(r,Ly(e,n),t)}function Ly(e,t){return e&&typeof e.write=="function"?e.write({},t):e&&typeof e.toJSON=="function"?e.toJSON():typeof e=="number"?Zj(e):e}function Zj(e){return e===-1/0?-Number.MAX_VALUE:e===1/0?Number.MAX_VALUE:isNaN(e)?null:e}function Yj(e,t,r,n){let i;e===null?i=null:e&&typeof e.map=="function"?(i=e.map(o=>Ly(o,n)),typeof i.toArray=="function"&&(i=i.toArray())):i=[Ly(e,n)],oa(r,i,t)}function qM(e,t,r){return r!==0&&Array.isArray(e)?e.map(n=>qM(n,t,r-1)):Ly(e,t)}function Jj(e){return(t,r,n,i)=>{let o;if(t===null)o=null;else{o=qM(t,i,e);let s=e,l=o;for(;s>0&&Array.isArray(l);)s--,l=l[0];if(l!==void 0)for(let a=0;a<s;a++)o=[o]}oa(n,o,r)}}var HM=O(()=>{Fn();it();ws();i4()});function ZM(e,t){return f4(e,"any",t?.origin)}function ky(e,t){return f4(e,"read",t?.origin)}function YM(e,t){return f4(e,"write",t?.origin)}function f4(e,t,r){let n=e?.json;if(n?.origins&&r){let i;i=r==="link-chart"?n.origins[r]&&(t==="any"||t in n.origins[r])?n.origins[r]:n.origins["web-map"]:n.origins[r],i&&(t==="any"||t in i)&&(n=i)}return n}function Xj(e){let t=Qj(e);if(e.json.origins)for(let r in e.json.origins){let n=e.json.origins[r],i=n.types?Kj(n):t;s4(i,n,!1),n.types&&!n.write&&e.json.write?.enabled&&(n.write={...e.json.write}),d4(i,n)}s4(t,e.json,!0),d4(t,e.json)}function Qj(e){return e.json.types?p4(e.json):e.type?JM(e):p4(e)}function Kj(e){return e.type?JM(e):p4(e)}function JM(e){if(!e.type)return;let t=0,r=e.type;for(;Array.isArray(r)&&!by(r);)r=r[0],t++;return{type:r,ndimArray:t}}function p4(e){if(!e.types)return;let t=0,r=e.types;for(;Array.isArray(r);)r=r[0],t++;return{types:r,ndimArray:t}}function XM(e){BM(e)&&(NM(e),Xj(e))}var Ny=O(()=>{Xi();OM();u4();GM();HM()});function Le(e){return t=>{e??(e="esri.core.Accessor"),t.prototype.declaredClass=e,tq(t);let r=[],n=[],i=t.prototype;for(;i;)i.hasOwnProperty("initialize")&&!m4.has(i.initialize)&&(m4.add(i.initialize),r.push(i.initialize)),i.hasOwnProperty("destroy")&&!h4.has(i.destroy)&&(h4.add(i.destroy),n.push(i.destroy)),i=Object.getPrototypeOf(i);m4.clear(),h4.clear();let o=class extends t{constructor(...l){if(super(...l),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[Cy];Object.defineProperty(this,"destroy",{enumerable:!1,configurable:!0,value(){if(!a){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__=Ll(t.prototype),o.prototype.declaredClass=e;let s=(e||"AccessorSubclass").split(".").slice(-1)[0];return Object.defineProperty(o,"name",{value:s,configurable:!0}),o}}function eq(e,t){return t.get==null?function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n===void 0)return;r.mutable&&Ve(n);let i=r.store;return i.has(e)?i.get(e):n.metadata.value}:function(){let r=this.__accessor__,n=r.propertiesByName.get(e);if(n!==void 0)return n.getComputed(r)}}function tq(e){let t=e.prototype,r=Ll(t),n={};for(let i of Object.getOwnPropertyNames(r)){let o=r[i];XM(o),n[i]={enumerable:!0,configurable:!0,get:eq(i,o),set(s){let l=this.__accessor__;if(l!==void 0){if(l.mutable)return l.initialized&&o.readOnly?QM("read-only",i):l.lifecycle===dn.CONSTRUCTED&&o.constructOnly?QM("construct-only",i):void l.set(i,s)}else Object.defineProperty(this,i,{enumerable:!0,configurable:!0,writable:!0,value:s})}}}Object.defineProperties(e.prototype,n)}var m4,h4,QM,ft=O(()=>{tt();it();e4();_g();Wf();_s();Ny();m4=new Set,h4=new Set;QM=(e,t)=>{ot.getLogger("esri.core.Accessor").error(`cannot assign to ${e} property '${t}'`)}});function rq(e,t,r=!1){let n=`\u{1F6D1} DEPRECATED - ${t}`;if(!r)return void e.warn(n);let i=KM.get(e);i||(i=new Set,KM.set(e,i)),i.has(t)||(i.add(t),e.warn(n))}function eA(e,t,r={}){if(de("esri-deprecation-warnings")){let{moduleName:n}=r;nq(e,`Function: ${(n?n+"::":"")+t+"()"}`,r)}}function nq(e,t,r={}){if(de("esri-deprecation-warnings")){let{replacement:n,version:i,see:o,warnOnce:s}=r,l=t;n&&(l+=`
2
2
  \u{1F6E0}\uFE0F Replacement: ${n}`),i&&(l+=`
3
3
  \u2699\uFE0F Version: ${i}`),o&&(l+=`
4
4
  \u{1F517} See ${o} for more details.`),rq(e,l,s)}}var KM,tA=O(()=>{tt();KM=new WeakMap});function g4(e){return e!=null&&typeof e[Symbol.iterator]=="function"}var rA=O(()=>{});function Oy(e){return e||"_default_"}function nA(e){for(let t of e)t instanceof jf?t.removeAll():t.remove()}function iA(e){return e!=null&&(!!e.remove||e instanceof jf)}var jf,oA=O(()=>{rA();jf=class{constructor(){this._groups=new Map}destroy(){this.removeAll()}get size(){let t=0;return this._groups.forEach(r=>{t+=r.length}),t}add(t,r){if(g4(t)){let n=this._getOrCreateGroup(r);for(let i of t)iA(i)&&n.push(i)}else iA(t)&&this._getOrCreateGroup(r).push(t);return this}forEach(t,r){if(typeof t=="function")this._groups.forEach(n=>n.forEach(t));else{let n=this._getGroup(t);n&&r&&n.forEach(r)}}has(t){return this._groups.has(Oy(t))}remove(t){if(typeof t!="string"&&g4(t)){for(let r of t)this.remove(r);return this}return this.has(t)?(nA(this._getGroup(t)),this._groups.delete(Oy(t)),this):this}removeAll(){return this._groups.forEach(nA),this._groups.clear(),this}removeReference(t){return this._groups.delete(t),this}_getOrCreateGroup(t){if(this.has(t))return this._getGroup(t);let r=[];return this._groups.set(Oy(t),r),r}_getGroup(t){return this._groups.get(Oy(t))}}});function sA(e,t){if(e==null)throw new Error(t??"value is None")}function Pg(e){return e?.destroy(),null}function kl(e){return e?.remove(),null}function aA(e){return e?.abort(),null}var da=O(()=>{});function iq(e){return e?.release&&typeof e.release=="function"}function oq(e){return e?.acquire&&typeof e.acquire=="function"}var Fo,Mg=O(()=>{Fo=class e{constructor(t,r,n,i=1,o=0){this._ctor=t,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(...t){let r;if(e.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,...t):oq(r)&&r.acquire(...t),r}release(t){t&&!e.test.disabled&&(this._releaseFunction?this._releaseFunction(t):iq(t)&&t.release(),this._pool.push(t))}prune(t=this._initialSize){if(!(t>=this._pool.length)){for(let r=t;r<this._pool.length;++r){let n=this._pool[r];this._dispose(n)}this._pool.length=t}}_dispose(t){t.dispose&&typeof t.dispose=="function"&&t.dispose()}};Fo.test={disabled:!1}});var Ry,lA=O(()=>{hl();Ry=class{constructor(t,r){this._observers=t,this._observer=r}remove(){I8(this._observers,this._observer)}}});var qf,sq,w4=O(()=>{ci();lA();qf=class{constructor(){this._observers=null,this.destroyed=!1}observe(t){if(this.destroyed||t.destroyed)return sq;this._observers==null&&(this._observers=[]);let r=this._observers,n=!1,i=!1,o=r.length;for(let s=0;s<o;++s){let l=r[s];if(l.destroyed)i=!0;else if(l===t){n=!0;break}}return n||(r.push(t),i&&this._removeDestroyedObservers()),new Ry(r,t)}_removeDestroyedObservers(){let t=this._observers;if(!t||t.length===0)return;let r=t.length,n=0;for(let i=0;i<r;++i){for(;i+n<r&&t[i+n].destroyed;)++n;if(n>0){if(!(i+n<r))break;t[i]=t[i+n]}}t.length=r-n}destroy(){if(this.destroyed)return;this.destroyed=!0;let t=this._observers;if(t!=null){for(let r of t)r.onCommitted();this._observers=null}}},sq=Pt()});function Dy(e){switch(e){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 Fy(e){switch(e){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 cA(e){return Fy(e)}var lt,tfe,Nl=O(()=>{(function(e){e[e.DEFAULTS=0]="DEFAULTS",e[e.COMPUTED=1]="COMPUTED",e[e.SERVICE=2]="SERVICE",e[e.PORTAL_ITEM=3]="PORTAL_ITEM",e[e.WEB_SCENE=4]="WEB_SCENE",e[e.WEB_MAP=5]="WEB_MAP",e[e.LINK_CHART=6]="LINK_CHART",e[e.USER=7]="USER"})(lt||(lt={}));tfe=lt.USER+1});var Ag,uA=O(()=>{w4();Nl();_s();Ty();xg();Ag=class extends qf{constructor(t,r){super(),this.propertyName=t,this.metadata=r,this.trackingTarget=new bs(this),this.flags=0,this.flags=vt.Dirty|(r.nonNullable?vt.NonNullable:0)|(r.hasOwnProperty("value")?vt.HasDefaultValue:0)|(r.get===void 0?vt.DepTrackingInitialized:0)|(r.dependsOn===void 0?vt.AutoTracked:0)}destroy(){this.flags&vt.Dirty&&this.onCommitted(),super.destroy(),this.trackingTarget.destroy()}getComputed(t){t.mutable&&Ve(this);let r=t.store,n=this.propertyName,i=this.flags,o=r.get(n);if(i&vt.Computing||~i&vt.Dirty&&r.has(n))return o;this.flags|=vt.Computing;let s=t.host,l;i&vt.AutoTracked?l=Do(this.trackingTarget,this.metadata.get,s):(n4(s,this),l=this.metadata.get.call(s)),this.flags|=vt.DepTrackingInitialized,r.set(n,l,lt.COMPUTED);let a=r.get(n);return a===o?this.flags&=~vt.Dirty:IM(this.commit,this),this.flags&=~vt.Computing,a}notifyChange(){this.onInvalidated(),this.onCommitted()}invalidate(){this.onInvalidated()}commit(){this.flags&=~vt.Dirty,this.onCommitted()}onInvalidated(){~this.flags&vt.Overridden&&(this.flags|=vt.Dirty);let t=this._observers;if(t&&t.length>0)for(let r of t)r.onInvalidated()}onCommitted(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onCommitted()}}}});var $y,dA=O(()=>{ar();Nl();$y=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Je(n))}),r}get(t){return this._values.get(t)}originOf(){return lt.USER}keys(){return[...this._values.keys()]}set(t,r){this._values.set(t,r)}delete(t){this._values.delete(t)}has(t){return this._values.has(t)}forEach(t){this._values.forEach(t)}}});function Vy(e,t,r){return e!==void 0}function pA(e,t,r,n){return e!==void 0&&(!(r==null&&e.flags&vt.NonNullable)||(n.lifecycle,dn.INITIALIZING,!1))}var Uy,v4,y4,fA=O(()=>{tt();ar();it();Mg();_g();uA();Nl();dA();_s();Ty();xg();Uy=class{constructor(t){this.host=t,this.propertiesByName=new Map,this.ctorArgs=null,this.lifecycle=dn.INITIALIZING,this.store=new $y,this.mutable=!0,this._origin=lt.USER;let r=this.host.constructor.__accessorMetadata__;for(let n in r){let i=new Ag(n,r[n]);this.propertiesByName.set(n,i)}this.metadata=r}initialize(){this.lifecycle=dn.CONSTRUCTING}constructed(){this.lifecycle=dn.CONSTRUCTED}destroy(){this.lifecycle=dn.DESTROYED,this.propertiesByName.forEach(t=>t.destroy())}get initialized(){return this.lifecycle!==dn.INITIALIZING}get(t){let r=this.propertiesByName.get(t);if(r.metadata.get)return r.getComputed(this);this.mutable&&Ve(r);let n=this.store;return n.has(t)?n.get(t):r.metadata.value}originOf(t){let r=this.store.originOf(t);if(r===void 0){let n=this.propertiesByName.get(t);if(n!==void 0&&n.flags&vt.HasDefaultValue)return"defaults"}return Fy(r)}has(t){return this.propertiesByName.has(t)&&this.store.has(t)}keys(){return[...this.propertiesByName.keys()]}internalGet(t){let r=this.propertiesByName.get(t);if(Vy(r))return this.store.has(t)?this.store.get(t):r.metadata.value}internalSet(t,r){let n=this.propertiesByName.get(t);Vy(n)&&this._internalSet(n,r)}getDependsInfo(t,r,n){let i=this.propertiesByName.get(r);if(!Vy(i))return"";let o=new bs,s=Do(o,()=>i.metadata.get?.call(t)),l=`${n}${t.declaredClass.split(".").pop()}.${r}: ${s}
5
5
  `,a=o.accessed??new Set;if(a.size===0)return l;n+=" ";for(let d of a)d instanceof Ag&&(l+=`${n}${d.propertyName}: undefined
6
- `);return l}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(Vy(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&vt.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&vt.Overridden&&(r.flags&=~vt.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!pA(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:l}=o;if(y4.release(o),!s)return;r=l}n.flags|=vt.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!pA(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:l,value:a}=s;if(y4.release(s),!l)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=Dy(t)}getDefaultOrigin(){return Fy(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==dn.INITIALIZING?this._origin:lt.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&Nh(r,i.get(o))&&~t.flags&vt.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),r4(this.host,t))}_cast(t,r){let n=y4.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},v4=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},y4=new Fo(v4)});function b4(){return aq}var aq,mA,hA=O(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(mA||(mA={}))});function lq(e){e.length=0}var Yn,_4,zy=O(()=>{Mg();Yn=class{constructor(t=50,r=50){this._pool=new Fo(Array,void 0,lq,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return _4.acquire()}static release(t){return _4.release(t)}static prune(){_4.prune()}},_4=new Yn(100)});var Wy,gA=O(()=>{Mg();Wy=class extends Fo{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function x4(e){By.push(e),By.length===1&&queueMicrotask(()=>{let t=By.slice();By.length=0;for(let r of t)r()})}var By,wA=O(()=>{By=[]});var Ig,yA=O(()=>{Ig=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var S4,E4,vA=O(()=>{(function(e){let t=(o,s,l,a)=>{let d=s,h=s,g=l>>>1,b=o[d-1];for(;h<=g;){h=d<<1,h<l&&a(o[h-1],o[h])<0&&++h;let S=o[h-1];if(a(S,b)<=0)break;o[d-1]=S,d=h}o[d-1]=b},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let h=l>>>1;h>s;h--)t(o,h,l,a);let d=s+1;for(let h=l-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let h=l>>>1;h>s;h--)t(o,h,l,a),yield;let d=s+1;for(let h=l-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a),yield}}e.sort=n,e.iterableSort=i})(S4||(S4={}));E4=S4});function bA(e){e.data.length>cq*e.length&&(e.data.length=Math.floor(e.length*uq))}var cq,uq,Lg,_A=O(()=>{hl();vA();cq=1.5,uq=1.1,Lg=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new kh,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>bA(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,bA(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=Yx(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(Yx(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=A8(this.data,t,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(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){E4.sort(this.data,0,this.length,t)}iterableSort(t){return E4.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(t.call(r,n[o]))return n[o]}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.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(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});function dq(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Pt(()=>e.clearTimeout(n))}}}var xA,SA=O(()=>{ci();xA=dq(globalThis)});function kg(e){return pq(e)||EA(e)}function pq(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function EA(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Ol(e,t,r){if(!kg(e))throw new TypeError("target is not a Evented or EventTarget object");return EA(e)?fq(e,t,r):e.on(t,r)}function fq(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Pt(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Pt(()=>e.removeEventListener(t,r,n))}function C4(e,t,r){if(!kg(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Ol(e,t,i=>{n.remove(),r.call(e,i)});return n}var Ng=O(()=>{ci()});function Xn(e="Aborted"){return new je("AbortError",e)}function T4(e,t="Aborted"){if(xs(e))throw Xn(t)}function Og(e){return e instanceof AbortSignal?e:e?.signal??void 0}function xs(e){let t=Og(e);return t!=null&&t.aborted}function P4(e){if(!Rg(e))throw e}function Jn(e,t){let r=Og(e);if(r!=null){if(!r.aborted)return C4(r,"abort",()=>t());t()}}function TA(e,t){let r=Og(e);if(r!=null)return T4(r),C4(r,"abort",()=>t(Xn()))}function Rg(e){return e?.name==="AbortError"}function mq(e,t=void 0,r){let n=new AbortController;return Jn(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Jn(n,()=>{s&&(clearTimeout(s),o(Xn()))})})}function M4(e){return e&&typeof e.then=="function"}function CA(e){return M4(e)?e:Promise.resolve(e)}function PA(e,t=-1){let r,n,i,o,s=null,l=(...a)=>{if(r){n=a,o&&o.reject(Xn()),o=$n();let b=o.promise;if(s){let S=s;s=null,S.abort()}return b}if(i=o||$n(),o=null,t>0){let b=new AbortController;r=CA(e(...a,b.signal));let S=r;mq(t).then(()=>{r===S&&(o?b.abort():s=b)})}else r=1,r=CA(e(...a));let d=()=>{let b=n;n=i=r=s=null,b!=null&&l(...b)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return l}function $n(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>xA.setTimeout(()=>n.reject(o),i),n.promise=r,n}var Qi=O(()=>{SA();Fn();Ng();it();da()});var MA=O(()=>{});function hq(){Fg!=null&&(cancelAnimationFrame(Fg),Fg=requestAnimationFrame(LA))}function Zf(e){let t=new A4(e);return L4.push(t),jy.willDispatch||(jy.willDispatch=!0,x4(NA)),t}function gq(e=!1){Hf.forAll(t=>{t.removed=!0}),e&&kA()}function LA(){let e=performance.now();Fg=null,Fg=Hf.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(LA):null,jy.executeFrameTasks(e)}function wq(e){let t=e-AA;AA=e;let r=IA>0?IA:1e3/60,n=Math.max(0,t-r);Dg.time=e,Dg.frameDuration=r-n;for(let i=0;i<I4.length;i++){let o=performance.now(),s=I4[i];Hf.forAll(l=>{l.paused||l.removed||(i===0&&l.ticks++,l.phases[s]&&(Dg.elapsedFrameTime=performance.now()-e,Dg.deltaTime=l.ticks===0?0:t,l.phases[s]?.call(l,Dg)))}),bq[i].push(performance.now()-o)}kA(),_q.push(performance.now()-e)}function kA(){Hf.forAll(e=>{e.removed&&Gy.push(e)}),Hf.removeUnorderedMany(Gy.data,Gy.length),Gy.clear()}function NA(){for(;L4.length;){let e=L4.shift();e.isActive&&e.callback()}jy.willDispatch=!1}function yq(e=1,t){let r=$n(),n=()=>{xs(t)?r.reject(Xn()):e===0?r():(--e,x4(()=>n()))};return n(),r.promise}function vq(e){return yq(1,e)}async function OA(e){await vq(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var A4,AA,IA,Dg,I4,L4,Hf,jy,Fg,Gy,bq,_q,$g=O(()=>{wA();yA();_A();Qi();MA();A4=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},AA=0,IA=0,Dg={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},I4=["prepare","preRender","render","postRender","update","finish"],L4=[],Hf=new Lg;jy={frameTasks:Hf,willDispatch:!1,clearFrameTasks:gq,dispatch:NA,executeFrameTasks:wq,reschedule:hq};Fg=null;Gy=new Lg;bq=I4.map(e=>new Ig(e)),_q=new Ig("total")});function RA(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function DA(e,t){let r=new Set;return RA(r,e),RA(r,t),r}var k4=O(()=>{});function qy(){return++xq}var xq,FA=O(()=>{xq=0});function Sq(){}var Ru,N4,$A,O4=O(()=>{xg();Ru=class extends bs{constructor(t){super(new N4(t)),this._observer&&$A.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&$A.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},N4=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=Sq}},$A=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function D4(e,t){let r=new Ru(o),n=null,i=!1;function o(){if(!r||i)return;if(R4)return void Eq(o);let l=n;r.clear(),R4=!0,i=!0,n=Do(r,e),i=!1,R4=!1,t(n,l),Cq()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Do(r,e),i=!1,Pt(s)}function F4(e,t){let r=new Ru(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=Do(r,e),n):null}return s(),Pt(o)}function Eq(e){Hy.includes(e)||Hy.unshift(e)}function Cq(){for(;Hy.length;)Hy.pop()()}var R4,Hy,$4=O(()=>{ci();_s();O4();R4=!1,Hy=[]});function Jy(e){Rl.delete(e),Rl.add(e),Yy||(Yy=Zf(Pq))}function Tq(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function VA(e){for(let t of Rl.values())t.target===e&&(t.removed=!0)}function Pq(){let e=10;for(;Yy&&e--;){Yy=null;let t=Mq(),r=Zy.acquire();for(let n of t){let i=n.uid;Tq(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Rl)n.removed&&(r.push(n),Rl.delete(n));for(let n of r)Du.pool.release(n);Zy.release(r),Zy.release(t),Aq.forEach(n=>n())}}function Mq(){let e=Zy.acquire();e.length=Rl.size;let t=0;for(let r of Rl)e[t]=r,++t;return Rl.clear(),e}function Iq(e,t,r){let n=JS(e,t,r,(i,o,s)=>{let l,a,d=F4(()=>Nu(i,o),(h,g)=>{i.__accessor__?.lifecycle===dn.DESTROYED||l&&l.uid!==a?n.remove():(l||(l=Du.acquireUntracked(h,s,g,i,o),a=l.uid),Jy(l))});return Pt(()=>{d.remove(),l&&(l.uid!==a||l.removed||(l.removed=!0,Jy(l)),l=null),n=d=null})});return n}function Lq(e,t,r){let n=JS(e,t,r,(i,o,s)=>{let l=!1;return D4(()=>Nu(i,o),(a,d)=>{i.__accessor__.lifecycle!==dn.DESTROYED?l||(l=!0,Nh(d,a)||s.call(i,a,d,o,i),l=!1):n.remove()})});return n}function UA(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==dn.DESTROYED?n?Lq(e,t,r):Iq(e,t,r):Pt()}function kq(e,t,r){let n,i,o=F4(e,(s,l)=>{n&&n.uid!==i?o.remove():(n||(n=Du.acquireTracked(s,t,l,r),i=n.uid),Jy(n))});return Pt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Jy(n)),n=null),o=null})}function Nq(e,t,r){let n=!1;return D4(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function zA(e,t,r=!1,n=Ww){return r?Nq(e,t,n):kq(e,t,n)}var Vg,Du,Zy,Rl,Yy,Aq,V4=O(()=>{zy();ci();ar();gA();$g();k4();FA();Ou();_g();$4();ua();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Vg||(Vg={}));Du=class{constructor(){this.uid=qy(),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 acquireUntracked(t,r,n,i,o){return this.pool.acquire(Vg.Untracked,t,r,n,i,o,Nh)}static acquireTracked(t,r,n,i){return this.pool.acquire(Vg.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Vg.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,l){this.uid=qy(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=l}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=qy(),this.removed=!0}};Du.pool=new Wy(Du);Zy=new Yn,Rl=new Set;Aq=new Set});function Oq(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var WA,BA,Ss,U4,Jr,Dl=O(()=>{tA();oA();it();da();e4();Ou();_g();Wf();fA();KS();hA();V4();yt();ft();Ss=Symbol("Accessor-Handles"),U4=Symbol("Accessor-Initialized"),Jr=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Ll(s.prototype);for(let l in t){let a=t[l];s.prototype[l]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...b){if(o.prototype[l])return o.prototype[l].apply(this,b)};try{g=a.apply(this,d)}catch(b){throw this.inherited=h,b}return this.inherited=h,g}:t[l]}for(let l in r){let a=Oq(r[l]);V(a)(s.prototype,l)}return Le(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[WA]=null,this[BA]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new Uy(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),b4()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[U4]=!0}initialize(){}[Cy](){this[Ss]=Pg(this[Ss])}destroy(){this.destroyed||(VA(this),this.__accessor__.destroy(),b4()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[U4]}get destroyed(){return this.__accessor__?.lifecycle===dn.DESTROYED||!1}commitProperty(t){vs(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return Gf(this,t,r),this}watch(t,r,n){return eA(ot.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch",warnOnce:!0}),UA(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[Ss]??(this[Ss]=new jf)).add(t,r)}removeHandles(t){this[Ss]?.remove(t)}removeAllHandles(){this[Ss]?.removeAll()}removeHandlesReference(t){this[Ss]?.removeReference(t)}hasHandles(t){return this[Ss]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};WA=Ss,BA=U4});var Xy,z4,GA=O(()=>{ar();Nl();Xy=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Je(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??lt.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===lt.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new z4(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===lt.DEFAULTS?t:lt.USER}},z4=class{constructor(t,r){this.value=t,this.origin=r}}});function jA(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),lt.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),lt.DEFAULTS)})}var qA=O(()=>{Nl()});function Rq(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&XS(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&XS(i,r))return!0;return!1}function Dq(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function Fq(e,t,r,n,i){let o=ky(t[r],i);Dq(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=ky(t[s],i),Rq(o,r,n)&&(e[s]=!0)}function $q(e,t,r,n){let i=r.metadata,o=ZM(i[t],n),s=o?.default;if(s===void 0)return;let l=typeof s=="function"?s.call(e,t,n):s;l!==void 0&&r.set(t,l)}function HA(e,t,r=Vq){if(!t||typeof t!="object")return;let n=Pi(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))Fq(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let l=ky(i[s],r).read,a=l?.source,d;d=a&&typeof a=="string"?Nu(t,a):t[s],l?.reader&&(d=l.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||$q(e,s,n,r)}n.setDefaultOrigin("user")}var Vq,ZA=O(()=>{Ou();ua();Ny();Vq={origin:"service"}});function Uq(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function zq(e,t,r,n,i,o){if(!n?.write)return!1;let s=vs(e,r);if(!i&&n.write.overridePolicy){let l=n.write.overridePolicy.call(e,s,r,o??void 0);l!==void 0&&(i=l)}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 l=new je("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return l&&o?.messages?o.messages.push(l):l&&!o&&ot.getLogger("esri.core.accessorSupport.write").error(l.name,l.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===lt.DEFAULTS)&&Wq(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<Dy(o.origin))}function Wq(e,t,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(e,t,r??void 0);return ml(s,i)}return!1}return o===i}function YA(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Uf(t,e.toJSON(r));let n=Pi(e),i=n.metadata;for(let o in i){let s=YM(i[o],r);if(!zq(e,n,o,s,void 0,r))continue;let l=vs(e,o),a=Uq(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,l,r);Object.keys(a).length>0&&(t=Uf(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Uf(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:cA(n.store.originOf(o)),newOrigin:r.origin}))}return t}var JA=O(()=>{hl();Fn();it();Ou();Nl();ua();Ny()});function Bq(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}var XA,Ug,ut,Or=O(()=>{gt();Dl();GA();qA();ZA();ua();JA();ft();XA=e=>{let t=class extends e{constructor(...r){super(...r);let n=Pi(this),i=n.store,o=new Xy;n.store=o,jA(n,i,o)}read(r,n){HA(this,r,n)}write(r,n){return YA(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return Bq.call(this,r,n)}};return t=R([Le("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};Ug=class extends XA(Jr){};Ug=R([Le("esri.core.JSONSupport")],Ug),function(e){function t(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}e.JSONSupportMixin=XA,e.isSerializable=t}(Ug||(Ug={}));ut=Ug});function Mi(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let l=o.constructor.prototype;n.forEach(a=>{let d=Ey(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=l[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var Yf=O(()=>{yt()});function Gq(e){let t={};for(let r in e)t[e[r]]=r;return t}function QA(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function Ki(){return function(e,t){return new Rr(e,{ignoreUnknown:!0,...t})}}var Rr,Ai=O(()=>{ws();Rr=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=Gq(t),this.apiValues=QA(this._apiToJSON),this.jsonValues=QA(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&oa(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var zg,$o,Qy,Ky,ev=O(()=>{zg=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let l=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*l,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}},$o=new zg(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Qy=new zg(3396190,1/169.8944472236118,23e4,6e4,.111),Ky=new zg(1737400,0,0,0,0)});function tv(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function Jf(e){let t=/^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 t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}var Wg=O(()=>{});function KA(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var eI=O(()=>{});function eH(){let e=Vn.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Vn.scheme}://${Vn.host}${Vn.port!=null?`:${Vn.port}`:""}`}${t}`}function fa(e){if(!e)return null;let t={path:null,query:null},r=new _n(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Fl(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function Fl(e){let t=e.split("&"),r={};for(let n of t){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 l=r[o];typeof l=="string"&&(l=r[o]=[l]),Array.isArray(l)?l.push(s):r[o]=s}return r}function Fu(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>ut.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):ut.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function oI(e=!1){let t,r=Xf.proxyUrl;if(typeof e=="string"){t=rH(e);let n=Kf(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw jq().warn(tI),new je("urlUtils:proxy-not-set",tI);return t&&W4()&&(r=av(r)),fa(r)}function sI(e){let t=e.indexOf("?");return t!==-1?(Bg.path=e.slice(0,t),Bg.query=e.slice(t+1)):(Bg.path=e,Bg.query=null),Bg}function aI(e){return e=(e=cI(e=aH(e=sI(e).path),!0)).toLowerCase()}function lI(e){let t={proxyUrl:e.proxyUrl,urlPrefix:aI(e.urlPrefix)},r=Xf.proxyRules,n=t.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,t),i}function Kf(e){let t=Xf.proxyRules,r=aI(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function G4(e,t=Xf.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function xn(e,t,r=!1){if(!e||!t)return!1;let n=B4(e),i=B4(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function nv(e){if(typeof e=="string"){if(!$l(e))return!0;e=B4(e)}if(xn(e,Vn))return!0;let t=Xf.trustedServers||[];for(let r=0;r<t.length;r++){let n=tH(t[r]);for(let i=0;i<n.length;i++)if(xn(e,n[i]))return!0}return!1}function tH(e){return rv[e]||(q4(e)||Vl(e)?rv[e]=[new _n(eo(e))]:rv[e]=[new _n(`http://${e}`),new _n(`https://${e}`)]),rv[e]}function eo(e,t=iI,r){return Vl(e)?r?.preserveProtocolRelative?e:Vn.scheme==="http"&&Vn.authority===Sn(e).slice(2)?`http:${e}`:`https:${e}`:q4(e)?e:iv(e[0]==="/"?sH(t):t,e)}function j4(e,t=iI,r){if(e==null||!$l(e))return e;let n=pa(e),i=n.toLowerCase(),o=pa(t).toLowerCase().replace(/\/+$/,""),s=r?pa(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return e;let l=(g,b,S)=>(S=g.indexOf(b,S))===-1?g.length:S,a=l(i,"/",i.indexOf("//")+2),d=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(d=a+1,a!==i.length);)a=l(i,"/",a+1);if(d===-1||s&&d<s.length)return e;e=n.slice(d);let h=o.slice(d-1).replaceAll(/[^/]+/g,"").length;if(h>0)for(let g=0;g<h;g++)e=`../${e}`;else e=`./${e}`;return e}function pa(e){return e=uH(e=cH(e=lH(e=eo(e=e.trim()))))}function iv(...e){let t=e.filter(L8);if(!t?.length)return;let r=[];if($l(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),iH(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.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 Sn(e,t=!1){if(e==null||ov(e)||em(e))return null;let r=e.indexOf("://");if(r===-1&&Vl(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=cI(e,!0)),e}function $l(e){return Vl(e)||q4(e)}function ov(e){return e!=null&&e.slice(0,5)==="blob:"}function em(e){return e!=null&&e.slice(0,5)==="data:"}function sv(e){return KA(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Vl(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function q4(e){return e!=null&&rI.test(e)}function rH(e){return e!=null&&qq.test(e)||Vn.scheme==="https"&&Vl(e)}function nH(e){return e!=null&&nI.test(e)||Vn.scheme==="http"&&Vl(e)}function iH(e){return e!=null&&Hq.test(e)}function av(e){return Vl(e)?`https:${e}`:e.replace(nI,"https:")}function oH(){return Vn.scheme==="http"}function W4(){return Vn.scheme==="https"}function cI(e,t=!1){return Vl(e)?e.slice(2):(e=e.replace(rI,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function sH(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function aH(e){return e.endsWith("/")?e:`${e}/`}function lH(e){if(/^https?:\/\//i.test(e)){let t=sI(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function cH(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function uH(e){let t=Xf.httpsDomains;if(!nH(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),Zq.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return oH()&&n===Vn.authority&&!Yq.test(e)||(W4()&&n===Vn.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||W4()&&!Kf(e))&&(e=av(e)),e}function lv(e,t,r){if(!(t&&r&&e&&$l(e)))return e;let n=e.indexOf("//"),i=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(i<0?e.length:i,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function B4(e){return typeof e=="string"?new _n(eo(e)):(e.scheme||(e.scheme=Vn.scheme),e)}function tm(e,t){if(!t)return e;let r=fa(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Fu(n);return i?`${r.path}?${i}`:r.path}function H4(e){if(e==null)return null;let t=e.match(dH);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}var jq,Xf,tI,rI,nI,qq,Hq,Zq,Yq,Jq,Xq,_n,rv,Qq,Vn,Kq,iI,Qf,Bg,dH,Es=O(()=>{Il();hl();Fn();Or();it();Wg();eI();jq=()=>ot.getLogger("esri.core.urlUtils"),Xf=Mt.request,tI="esri/config: esriConfig.request.proxyUrl is not set.",rI=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,nI=/^\s*http:/i,qq=/^\s*https:/i,Hq=/^\s*file:/i,Zq=/:\d+$/,Yq=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,Jq=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),Xq=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),_n=class{constructor(t=""){this.uri=t,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(Jq);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(Xq),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}},rv={},Qq=new _n(Mt.applicationUrl),Vn=Qq,Kq=eH(),iI=Kq,Qf=()=>Vn;Bg={path:"",query:""};dH=/([^.]*)\.([^/]*)$/});function uI(e){lr=e}var pH,lr,fH,Gg=O(()=>{tt();Es();gy();gy();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));pH="4.32",fH=pH;fH=`4.32.0-next.${hy}`;fe("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),fe("host-webworker")});function dI(e,t){let r=t?.url?.path;if(e&&r&&(e=eo(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){let n=j4(e,t.portalItem.itemUrl);n!=null&&hH.test(n)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(n).path)}return(e=Z4(e,t?.portal))&&cv.test(e)?hI(e):e}function pI(e,t,r=jg.YES){if((e=e&&cv.test(e)?gI(e):e)==null)return e;!$l(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=eo(e);if(t){let i=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(i){let o=Z4(i,t.portal),s=Z4(n,t.portal);n=j4(s,o,o),n!=null&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=mI(n,t?.portal),$l(n)&&(n=pa(n)),t?.resources&&t?.portalItem&&!$l(n)&&!em(n)&&r===jg.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function mH(e,t,r){return dI(e,r)}function fI(e,t,r,n){let i=pI(e,n);i!==void 0&&(t[r]=i)}function gH(e){return(e?.match(cv)??null)?.[1]??null}function wH(e){let t=e?.match(cv)??null;if(t==null)return null;let r=t[2],n=r.lastIndexOf("/");if(n===-1){let{path:s,extension:l}=H4(r);return{prefix:null,filename:s,extension:l}}let{path:i,extension:o}=H4(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:o}}function mI(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?lv(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function Z4(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;let r=`${t.urlKey}.${t.customBaseUrl}`,n=Qf();return xn(n,`${n.scheme}://${r}`)?lv(e,t.portalHostname,r):lv(e,r,t.portalHostname)}function hI(e){if(!e)return e||null;let t=e;return t&&lr&&!lr.findCredential(t)&&(t=Jf(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function gI(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&lr&&!lr.findCredential(t)&&(t=Jf(t)),t}var cv,hH,jg,Dhe,wI=O(()=>{Gg();Es();Wg();cv=/\/items\/([^/]+)\/resources\/(.*)/,hH=/^\.\/resources\//;(function(e){e[e.YES=0]="YES",e[e.NO=1]="NO"})(jg||(jg={}));Dhe=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return jg},ensureMainOnlineDomain:mI,fromCDNUrl:gI,fromJSON:dI,itemIdFromResourceUrl:gH,prefixAndFilenameFromResourceUrl:wH,read:mH,toCDNUrl:hI,toJSON:pI,write:fI},Symbol.toStringTag,{value:"Module"}))});function Y4(e){let t=Sn(e,!0);return!!t&&(t=t.toLowerCase(),t.endsWith(".arcgis.com")&&(t.startsWith("services")||t.startsWith("tiles")||t.startsWith("features")))}var yH,yI,Whe,Bhe,vI=O(()=>{Es();wI();yH={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},yI=Object.values(yH),Whe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${yI.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),Bhe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${yI.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i")});function bH(e){let t=Sn(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!vH.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function bI(e,t){return!(!t&&!Mt.apiKey||!bH(e))}var vH,_I=O(()=>{Il();Es();vH=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function SI(e,t,r=!1,n){return new Promise((i,o)=>{if(xs(n))return void o(xI());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},l=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(xI())},d=()=>{fe("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",l)),s=null,l=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),fe("esri-image-decode")?e.decode().then(l,s):(e.addEventListener("error",s),e.addEventListener("load",l))})}function xI(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function EI(){return new Error(_H)}function CI(e){Mt.request.crossOriginNoCorsDomains||(Mt.request.crossOriginNoCorsDomains={});let t=Mt.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[Sn(r)??""]=0:(t[Sn("http://"+r)??""]=0,t[Sn("https://"+r)??""]=0)}function TI(e){let t=Mt.request.crossOriginNoCorsDomains;if(t){let r=Sn(e);if(r)return r=r.toLowerCase(),!xn(r,Qf())&&t[r]<Date.now()-36e5}return!1}async function PI(e){let t=fa(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=Mt.request.crossOriginNoCorsDomains,n=Sn(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var _H,MI=O(()=>{Il();tt();Qi();Es();_H="Timeout exceeded"});var Cs,qg=O(()=>{w4();Cs=class extends qf{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});var uv,AI=O(()=>{_s();qg();uv=class{constructor(t=r=>r.values().next().value){this._peeker=t,this._observable=new Cs,this._items=new Set}get length(){return Ve(this._observable),this._items.size}clear(){this.length!==0&&(this._items.clear(),this._observable.notify())}last(){if(this.length===0)return;let t;for(t of this._items);return t}peek(){if(this.length!==0)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return Ve(this._observable),this._items.has(t)}pop(){if(this.length===0)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(this.length===0)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let r=this.length;return this._items.forEach(n=>{t(n)||this._items.delete(n)}),r!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){Ve(this._observable),yield*this._items}}});var rm,II=O(()=>{_s();qg();rm=class{constructor(t){this._observable=new Cs,this._map=new Map(t)}get size(){return Ve(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(t){let r=this._map.delete(t);return r&&this._observable.notify(),r}entries(){return Ve(this._observable),this._map.entries()}forEach(t,r){Ve(this._observable),this._map.forEach((n,i)=>t.call(r,n,i,this),r)}get(t){return Ve(this._observable),this._map.get(t)}has(t){return Ve(this._observable),this._map.has(t)}keys(){return Ve(this._observable),this._map.keys()}set(t,r){return this._map.set(t,r),this._observable.notify(),this}values(){return Ve(this._observable),this._map.values()}[Symbol.iterator](){return Ve(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}});function LI(e,t=Ww){return new J4(e,t)}var J4,kI=O(()=>{ar();_s();qg();J4=class{constructor(t,r){this._observable=new Cs,this._value=t,this._equalityFunction=r}get value(){return Ve(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}});var X4,dv,NI=O(()=>{tt();da();Qi();AI();II();$g();kI();X4=class{constructor(t,r){this.item=t,this.controller=r,this.promise=null}},dv=class{constructor(t){this._schedule=null,this._task=null,this._deferreds=new rm,this._controllers=new rm,this._processingItems=new rm,this._pausedSignal=LI(!1),this.concurrency=1,t.concurrency&&(this.concurrency=t.concurrency),this._queue=new uv(t.peeker),this.process=t.process;let r=t.scheduler;t.priority&&r&&(this._task=r.registerTask(t.priority,this))}destroy(){this.clear(),this._schedule=kl(this._schedule),this._task=kl(this._task)}get updating(){return!!this._task?.updating||this.running}get length(){return this._processingItems.size+this._queue.length}abort(t){let r=this._controllers.get(t);r&&r.abort()}clear(){this._queue.clear();let t=[];this._controllers.forEach(r=>t.push(r)),this._controllers.clear(),t.forEach(r=>r.abort()),this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((r,n)=>t(n))}get(t){let r=this._deferreds.get(t);return r?r.promise:void 0}isOngoing(t){return this._processingItems.has(t)}has(t){return this._deferreds.has(t)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,r){let n=this.get(t);if(n)return n;let i=new AbortController,o=null;r&&(o=Jn(r,()=>i.abort()));let s=()=>{let h=this._processingItems.get(t);h&&h.controller.abort(),l(),d.reject(Xn())},l=()=>{a.remove(),o?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()},a=TA(i.signal,s),d=$n();return this._deferreds.set(t,d),this._controllers.set(t,i),d.promise.then(l,l),this._queue.push(t),this._scheduleNext(),d.promise}last(){return this._queue.last()}lastPromise(){let t=this.last();return t?this.get(t):null}peek(){return this._queue.peek()}popLast(){let t=this._queue.popLast();return t&&(this._deferreds.get(t)?.reject(Xn()),this._removeItem(t)),t}reset(){let t=Array.from(this._processingItems.values());this._processingItems.clear();for(let r of t)this._queue.push(r.item),r.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}runTask(t){for(;!t.done&&this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop()),t.madeProgress()}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.delete(t)}_scheduleNext(){this._task||this._pausedSignal.value||this._schedule||(this._schedule=Zf(()=>{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(t,r){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(r))}_processError(t,r){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(r))}_canProcessFulfillment(t){return!!this._deferreds.get(t.item)&&this._processingItems.get(t.item)===t}_process(t){if(t==null)return;let r,n=new AbortController,i=new X4(t,n);this._processingItems.set(t,i);try{r=this.process(t,n.signal)}catch(o){this._processError(i,o)}M4(r)?(i.promise=r,r.then(o=>this._processResult(i,o),o=>this._processError(i,o))):this._processResult(i,r)}get test(){}}});var OI={};Qs(OI,{execute:()=>xH});function xH(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,l,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:e,requestOptions:t};throw new je("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new je("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,l=await fetch(i.data.url,i.data),i.httpStatus=l.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=l;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var RI=O(()=>{Fn()});var Vo,pv=O(()=>{gt();Dl();ci();ft();Vo=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{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 l=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(l,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 l=i.map(a=>this.on(a,o));return ku(l)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),Pt(()=>{let l=this._listenersMap?.get(i),a=l?.indexOf(o)??-1;a>=0&&l.splice(a,1)})}once(i,o){let s=this.on(i,l=>{s.remove(),("deref"in o?o.deref():o)?.call(null,l)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}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=R([Le("esri.core.Evented")],i),i};let r=class extends Jr{constructor(){super(...arguments),this._emitter=new Vo.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=R([Le("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Vo)});var Q4,DI=O(()=>{Q4=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 SH(e){return"timeZoneIANA"in e}function EH(e){return e.startsWith("UTC")}function fv(e,t=Uo){return e?SH(e)?e.timeZoneIANA:CH(e,t):t}function CH(e,t=Uo){if(!e||!Q4.has(e.timeZone))return t;let r=Q4.get(e.timeZone);return EH(e.timeZone)||e.respectsDaylightSaving?r:TH(r)}function TH(e){let t=Ce.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${Rt.instance(-r).formatOffset(0,"narrow")}`}var Uo,$u,nm,FI,Hg=O(()=>{DI();Dn();Uo="system",$u="unknown",nm="UTC",FI=Intl.DateTimeFormat().resolvedOptions().timeZone});function IH(e){let t=K4.get(e);if(!t){let r=Ji(),n=MH[r]||r,i=mv(e.timeZone??Uo),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),K4.set(e,t)}return t}function im(e,t=AH){return IH(t).format(e)}function mv(e){switch(e){case Uo:return FI;case $u:return nm;default:return e}}var Ts,Zg,Yg,Jg,Ul,Vu,$I,Xg,Qg,PH,Dge,MH,K4,AH,hv=O(()=>{Ai();Ml();Hg();Dn();Ts={year:"numeric",month:"numeric",day:"numeric"},Zg={year:"numeric",month:"long",day:"numeric"},Yg={year:"numeric",month:"short",day:"numeric"},Jg={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ul={hour:"numeric",minute:"numeric"},Vu={...Ul,second:"numeric"},$I={hourCycle:"h23"},Xg={...Ul,...$I},Qg={...Vu,...$I},PH={"short-date":Ts,"short-date-short-time":{...Ts,...Ul},"short-date-short-time-24":{...Ts,...Xg},"short-date-long-time":{...Ts,...Vu},"short-date-long-time-24":{...Ts,...Qg},"short-date-le":Ts,"short-date-le-short-time":{...Ts,...Ul},"short-date-le-short-time-24":{...Ts,...Xg},"short-date-le-long-time":{...Ts,...Vu},"short-date-le-long-time-24":{...Ts,...Qg},"long-month-day-year":Zg,"long-month-day-year-short-time":{...Zg,...Ul},"long-month-day-year-short-time-24":{...Zg,...Xg},"long-month-day-year-long-time":{...Zg,...Vu},"long-month-day-year-long-time-24":{...Zg,...Qg},"day-short-month-year":Yg,"day-short-month-year-short-time":{...Yg,...Ul},"day-short-month-year-short-time-24":{...Yg,...Xg},"day-short-month-year-long-time":{...Yg,...Vu},"day-short-month-year-long-time-24":{...Yg,...Qg},"long-date":Jg,"long-date-short-time":{...Jg,...Ul},"long-date-short-time-24":{...Jg,...Xg},"long-date-long-time":{...Jg,...Vu},"long-date-long-time-24":{...Jg,...Qg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ul,"long-time":Vu},Dge=Ki()({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"}),MH={ar:"ar-u-nu-latn-ca-gregory"},K4=new WeakMap,AH=PH["short-date-short-time"];Df(()=>{K4=new WeakMap})});function kH(e){let t=e||VI;if(!gv.has(t)){let r=Ji(),n=LH[Ji()]||r;gv.set(t,new Intl.NumberFormat(n,e))}return gv.get(t)}function om(e,t){return Object.is(e,-0)&&(e=0),kH(t).format(e)}var LH,gv,VI,e5=O(()=>{Ml();LH={ar:"ar-u-nu-latn"},gv=new WeakMap,VI={};Df(()=>{gv=new WeakMap,VI={}})});function t5(e,t,r={}){let{format:n={}}=r;return ys(e,i=>NH(i,t,n))}function NH(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=qi(n,t);if(s==null)return"";let l=(i?r?.[i]:null)??r?.[n];return l?OH(s,l):i?RH(s,i):r5(s)}function OH(e,t){switch(t.type){case"date":return im(e,t.intlOptions);case"number":return om(e,t.intlOptions);default:return UI().warn("missing format descriptor for key {key}"),r5(e)}}function RH(e,t){switch(t.toLowerCase()){case"dateformat":return im(e);case"numberformat":return om(e);default:return UI().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?im(e):/^numberformat/i.test(t)?om(e):r5(e)}}function r5(e){switch(typeof e){case"string":return e;case"number":return om(e);case"boolean":return""+e;default:return e instanceof Date?im(e):""}}var UI,n5=O(()=>{it();ws();gl();hv();e5();UI=()=>ot.getLogger("esri.intl.substitute")});function DH(e){return e in GI}function WI(e){if(DH(e)){let t=GI[e];return t===!0?e:t}return null}function BI(e){for(let t of sm.keys())qI(e.pattern,t)&&sm.delete(t)}function jI(e){return Kg.includes(e)||(BI(e),Kg.unshift(e)),Pt(()=>{let t=Kg.indexOf(e);t>-1&&(Kg.splice(t,1),BI(e))})}async function i5(e){let t=Ji();sm.has(e)||sm.set(e,FH(e,t));let r=sm.get(e);return r&&await $H.add(r),r}function o5(e){if(!zI.test(e))return null;let t=zI.exec(e);if(t===null)return null;let[,r,n]=t;return WI(r+(n?"-"+n.toUpperCase():""))??WI(r)}async function FH(e,t){let r=[];for(let n of Kg)if(qI(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new je("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new je("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function qI(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var zI,GI,Kg,sm,$H,e1=O(()=>{Fn();ci();Qi();Ml();zI=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,GI={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};Kg=[],sm=new Map;Df(()=>{sm.clear()});$H=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.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 VH(e,t,r,n){let i=t.exec(r);if(!i)throw new je("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],l=o5(n),a=`${o}${s}.json`,d=l?`${o}${s}_${l}.json`:a,h;try{h=await HI(e(d))}catch(g){if(d===a)throw new je("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await HI(e(a))}catch(b){throw new je("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:b})}}return h}async function HI(e){if(ZI.fetchBundleAsset!=null)return ZI.fetchBundleAsset(e);let t=await yr(e,{responseType:"text"});return JSON.parse(t.data)}function YI(e){return new s5(e)}var s5,ZI,JI=O(()=>{wv();Fn();e1();s5=class{constructor({base:t="",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,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return VH(this.getAssetUrl,this.matcher,t,r)}};ZI={}});var a5=O(()=>{hv();e5();n5();Ml();e1();e1();JI();yv();jI(YI({pattern:"esri/",location:am}))});function XI(e){return typeof e=="string"?document.getElementById(e):e??null}var QI=O(()=>{});var zl,l5,KI,t1,eL,tL=O(()=>{gt();Dl();Qi();ft();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(zl||(zl={}));l5=class{constructor(){this._resolver=$n(),this._status=zl.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=zl.RESOLVED,this._cleanUp()},()=>{this._status=zl.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===zl.RESOLVED}isRejected(){return this._status===zl.REJECTED}isFulfilled(){return this._status!==zl.PENDING}abort(){this._resolver.reject(Xn())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=$n(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Rg(i)||this._resolver.reject(i)}),t.resolve()}},KI=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new l5,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 t=R([Le("esri.core.Promise")],t),t},t1=class extends KI(Jr){};t1=R([Le("esri.core.Promise")],t1),function(e){e.EsriPromiseMixin=KI}(t1||(t1={}));eL=t1});function UH(e){return{ok:!0,value:e}}function zH(e){return{ok:!1,error:e}}function WH(e){return e!=null&&e.ok===!0?e.value:null}function BH(e){return e!=null&&e.ok===!1?e.error:null}var Uu,rL=O(()=>{gt();Dl();da();Qi();yt();ft();Uu=class extends Jr{get value(){return WH(this._result)}get error(){return BH(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=aA(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=UH(n),this._cleanup()},n=>{this._result=zH(n),this._cleanup()}),this._abortHandle=Jn(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=kl(this._abortHandle),this._abortController=null}};R([V()],Uu.prototype,"value",null),R([V()],Uu.prototype,"error",null),R([V()],Uu.prototype,"finished",null),R([V()],Uu.prototype,"promise",void 0),R([V()],Uu.prototype,"_result",void 0),Uu=R([Le("esri.core.asyncUtils.ReactiveTask")],Uu)});var _t,nL=O(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(_t||(_t={}))});function iL(e){return(t,r)=>{t[r]=e}}var oL=O(()=>{});function sL(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function c5(e){return e?e instanceof jl?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function u5(e){if(e?.length)return e[0]}function GH(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function aL(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),aL(e,r.call(n,i,o,s),r,n)})}var ma,p5,f5,to,Wl,Bl,Gl,d5,jH,jl,lL=O(()=>{gt();zy();pv();ci();ar();Mg();nL();$g();Xi();_s();yt();oL();ft();qg();p5=class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},f5=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},to=new Fo(p5,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});Wl=new Set,Bl=new Set,Gl=new Set,d5=new Map,jH=0,jl=ma=class extends Vo.EventedAccessor{static isCollection(e){return e!=null&&e instanceof ma}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new Cs,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:jH++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof ma?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return Ve(this._observable),this._items}set items(e){this._emitBeforeChanges(_t.ADD)||(this._splice(0,this.length,c5(e)),this._emitAfterChanges(_t.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return Pt();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),Pt(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if(Ve(this._observable),this._emitBeforeChanges(_t.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(_t.ADD),this}addMany(e,t=this._items.length){if(Ve(this._observable),!e?.length)return this;if(this._emitBeforeChanges(_t.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,c5(e)),this._emitAfterChanges(_t.ADD),this}at(e){if(Ve(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(_t.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Ve(this._observable),this._createNewInstance({items:this._items.map(Je)})}concat(...e){Ve(this._observable);let t=e.map(c5);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(_t.REMOVE)}destroyAll(){this.drain(sL)}destroyMany(e){let t=this.removeMany(e);return t.forEach(sL),t}every(e,t){return Ve(this._observable),this._items.every(e,t)}filter(e,t){Ve(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return Ve(this._observable),this._items.find(e,t)}findIndex(e,t){return Ve(this._observable),this._items.findIndex(e,t)}flatten(e,t){Ve(this._observable);let r=[];return aL(r,this,e,t),new ma(r)}forEach(e,t){return Ve(this._observable),this._items.forEach(e,t)}getItemAt(e){return Ve(this._observable),this._items[e]}getNextIndex(e){Ve(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Ve(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Ve(this._observable),this._items.indexOf(e,t)}join(e=","){return Ve(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Ve(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Ve(this._observable);let r=this._items.map(e,t);return new ma({items:r})}reorder(e,t=this.length-1){Ve(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(_t.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(_t.MOVE)}return e}}pop(){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let e=u5(this._splice(this.length-1,1));return this._emitAfterChanges(_t.REMOVE),e}push(...e){return Ve(this._observable),this._emitBeforeChanges(_t.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(_t.ADD)),this.length}reduce(e,t){Ve(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Ve(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Ve(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Ve(this._observable),e<0||e>=this.length||this._emitBeforeChanges(_t.REMOVE))return;let t=u5(this._splice(e,1));return this._emitAfterChanges(_t.REMOVE),t}removeMany(e){if(Ve(this._observable),!e?.length||this._emitBeforeChanges(_t.REMOVE))return[];let t=e instanceof ma?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],l=r.indexOf(s);if(l>-1){let a=1+GH(t,r,o+1,l+1),d=this._splice(l,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(_t.REMOVE),n}reverse(){if(Ve(this._observable),this._emitBeforeChanges(_t.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(_t.MOVE),this}shift(){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let e=u5(this._splice(0,1));return this._emitAfterChanges(_t.REMOVE),e}slice(e=0,t=this.length){return Ve(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Ve(this._observable),this._items.some(e,t)}sort(e){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.MOVE))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(_t.MOVE),this}splice(e,t,...r){Ve(this._observable);let n=(t?_t.REMOVE:0)|(r.length?_t.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Ve(this._observable),this._items.slice()}toJSON(){return Ve(this._observable),this.toArray()}toLocaleString(){return Ve(this._observable),this._items.toLocaleString()}toString(){return Ve(this._observable),this._items.toString()}unshift(...e){return Ve(this._observable),!e.length||this._emitBeforeChanges(_t.ADD)||(this._splice(0,0,e),this._emitAfterChanges(_t.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=Zf(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let l=to.acquire();l.target=this,l.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],l.reset(o),this.emit("before-remove",l),l.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);to.release(l)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let l=to.acquire();l.target=this,l.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)l.reset(s[d]),this.emit("after-remove",l);to.release(l)}}if(r?.length){if(i){let h=[];for(let g of r){let b=i.ensureType(g);b==null&&g!=null||h.push(b)}r=h}let l=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(l||a){let h=to.acquire();h.target=this,h.cancellable=!0;let g=to.acquire();g.target=this,g.cancellable=!1;for(let b of r)l?(h.reset(b),this.emit("before-add",h),h.defaultPrevented||(d?n.push(b):n.splice(e++,0,b),this._set("length",n.length),a&&(g.reset(b),this.emit("after-add",g)))):(d?n.push(b):n.splice(e++,0,b),this._set("length",n.length),g.reset(b),this.emit("after-add",g));to.release(g),to.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let l=new f5(this,r,s,e,t);this.emit("after-splice",l)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=to.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,to.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=to.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),to.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;Wl.clear(),Bl.clear(),Gl.clear();for(let{added:a,removed:d}of r){if(a)if(Gl.size===0&&Bl.size===0)for(let h of a)Wl.add(h);else for(let h of a)Bl.has(h)?(Gl.add(h),Bl.delete(h)):Gl.has(h)||Wl.add(h);if(d)if(Gl.size===0&&Wl.size===0)for(let h of d)Bl.add(h);else for(let h of d)Wl.has(h)?Wl.delete(h):(Gl.delete(h),Bl.add(h))}let n=Yn.acquire();Wl.forEach(a=>{n.push(a)});let i=Yn.acquire();Bl.forEach(a=>{i.push(a)});let o=this._items,s=t.items,l=Yn.acquire();if(Gl.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&l.push(a)}),t.listeners&&(n.length||i.length||l.length)){let a={target:this,added:n,removed:i,moved:l},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Yn.release(n),Yn.release(i),Yn.release(l)}Wl.clear(),Bl.clear(),Gl.clear()}};jl.ofType=e=>{if(!e)return ma;if(d5.has(e))return d5.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends ma{};return R([iL({Type:e,ensureType:typeof e=="function"?ui(e):Ro(e)})],r.prototype,"itemType",void 0),r=R([Le(`esri.core.Collection<${t}>`)],r),d5.set(e,r),r},R([V()],jl.prototype,"_updating",void 0),R([V()],jl.prototype,"length",void 0),R([V()],jl.prototype,"items",null),R([V({readOnly:!0})],jl.prototype,"updating",null),jl=ma=R([Le("esri.core.Collection")],jl)});function r1(e,t,r={}){return uL(e,t,r,qH)}function cL(e,t,r={}){return uL(e,t,r,HH)}function uL(e,t,r={},n){let i=null,o=r.once?(s,l)=>{n(s)&&(kl(i),t(s,l))}:(s,l)=>{n(s)&&t(s,l)};if(i=zA(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function qH(e){return!0}function HH(e){return!!e}var vv,m5=O(()=>{rL();lL();Ng();ci();da();Qi();V4();$4();vv={sync:!0,initial:!0}});function dL(){if(ZH)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var ZH,pL=O(()=>{ZH="randomUUID"in crypto});function JH(e){let t="__accessorMetadata__"in e?ui(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return XH.apply(this,r)}}function XH(e,t,r,n){zf(e,t).cast=n}function QH(e){return(t,r)=>{zf(t,e).cast=t[r]}}function ha(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&YH.call(e[0])==="[object Function]"?JH(e[0]):e.length===1&&typeof e[0]=="string"?QH(e[0]):void 0}var YH,n1=O(()=>{Xi();Wf();YH=Object.prototype.toString});function wL(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function KH(e,t,r){}function eZ(e,t,r){}function rZ(e,t){return tZ.test(t)?"":t}function iZ(e,t){e=i1.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function l(){if(!n){var h=i1.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var b=i1.trim(h.slice(0,g)),S=i1.trim(h.slice(g+1));if(b){var P=t(i,s.length,b,S,h);P&&(s+=P+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||l():a===`
7
- `&&l()}return i1.trim(s)}function fL(e){return e==null}function aZ(e){var t={};for(var r in e)t[r]=e[r];return t}function yL(e){e=aZ(e||{}),e.whiteList=e.whiteList||bv.whiteList,e.onAttr=e.onAttr||bv.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||bv.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||bv.safeAttrValue,this.options=e}function vL(){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 dZ(e,t,r){}function pZ(e,t,r){}function fZ(e,t,r){}function mZ(e,t,r){}function _L(e){return e.replace(gZ,"&lt;").replace(wZ,"&gt;")}function hZ(e,t,r,n){if(r=PL(r),t==="href"||t==="src"){if(r=Cv.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(t==="background"){if(_v.lastIndex=0,_v.test(r))return""}else if(t==="style"){if(mL.lastIndex=0,mL.test(r)||(hL.lastIndex=0,hL.test(r)&&(_v.lastIndex=0,_v.test(r))))return"";n!==!1&&(n=n||bL,r=n.process(r))}return r=ML(r),r}function xL(e){return e.replace(yZ,"&quot;")}function SL(e){return e.replace(vZ,'"')}function EL(e){return e.replace(bZ,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function CL(e){return e.replace(_Z,":").replace(xZ," ")}function TL(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Cv.trim(t)}function PL(e){return e=SL(e),e=EL(e),e=CL(e),e=TL(e),e}function ML(e){return e=xL(e),e=_L(e),e}function SZ(){return""}function EZ(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:Cv.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,l,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 t(s,l,a)},remove:function(s){var l="",a=0;return Cv.forEach(i,function(d){l+=s.slice(a,d[0]),a=d[1]}),l+=s.slice(a),l}}}function CZ(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function TZ(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function PZ(e){var t=ql.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=ql.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function MZ(e){return e.slice(0,2)==="</"}function AZ(e,t,r){var n="",i=0,o=!1,s=!1,l=0,a=e.length,d="",h="";e:for(l=0;l<a;l++){var g=e.charAt(l);if(o===!1){if(g==="<"){o=l;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,l)),o=l,i=l;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,l+1),d=PZ(h),n+=t(o,n.length,d,h,MZ(h)),i=l+1,o=!1;continue}if(g==='"'||g==="'")for(var b=1,S=e.charAt(l-b);S.trim()===""||S==="=";){if(S==="="){s=g;continue e}S=e.charAt(l-++b)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function LZ(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function l(b,S){if(b=ql.trim(b),b=b.replace(IZ,"").toLowerCase(),!(b.length<1)){var P=t(b,S||"");P&&i.push(P)}}for(var a=0;a<s;a++){var d=e.charAt(a),h,g;if(o===!1&&d==="="){o=e.slice(r,a),r=a+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:NZ(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=ql.trim(e.slice(n+1,g)),l(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(g=kZ(e,a),g===-1){h=ql.trim(e.slice(r,a)),l(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=OZ(e,a-1),g===-1){h=ql.trim(e.slice(r,a)),h=gL(h),l(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?l(e.slice(r)):l(o,gL(ql.trim(e.slice(r))))),ql.trim(i.join(" "))}function kZ(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function NZ(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function OZ(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function RZ(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function gL(e){return RZ(e)?e.substr(1,e.length-2):e}function xv(e){return e==null}function VZ(e){var t=Sv.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Sv.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Sv.trim(e.slice(0,-1))),{html:e,closing:r}}function UZ(e){var t={};for(var r in e)t[r]=e[r];return t}function zZ(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function IL(e){e=UZ(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=zo.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=zZ(e.whiteList||e.allowList):e.whiteList=zo.whiteList,e.onTag=e.onTag||zo.onTag,e.onTagAttr=e.onTagAttr||zo.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||zo.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||zo.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||zo.safeAttrValue,e.escapeHtml=e.escapeHtml||zo.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new DZ(e.css))}var Ev,h5,vr,g5,zu,tZ,nZ,i1,oZ,bv,sZ,lZ,w5,y5,cZ,uZ,Cv,bL,gZ,wZ,yZ,vZ,bZ,_Z,xZ,_v,mL,hL,Tv,ql,IZ,DZ,zo,AL,FZ,$Z,Sv,WZ,lm,BZ,LL,kL=O(()=>{Ev=function(){return Ev=Object.assign||function(t){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)&&(t[o]=r[o])}return t},Ev.apply(this,arguments)},h5={exports:{}},vr={},g5={exports:{}},zu={};tZ=/javascript\s*\:/img;zu.whiteList=wL();zu.getDefaultWhiteList=wL;zu.onAttr=KH;zu.onIgnoreAttr=eZ;zu.safeAttrValue=rZ;nZ={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},i1=nZ;oZ=iZ,bv=zu,sZ=oZ;yL.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,l=sZ(e,function(a,d,h,g,b){var S=n[h],P=!1;if(S===!0?P=S:typeof S=="function"?P=S(g):S instanceof RegExp&&(P=S.test(g)),P!==!0&&(P=!1),g=s(h,g),!!g){var A={position:d,sourcePosition:a,source:b,isWhite:P};if(P){var F=i(h,g,A);return fL(F)?h+":"+g:F}else{var F=o(h,g,A);if(!fL(F))return F}}});return l};lZ=yL;(function(e,t){var r=zu,n=lZ;function i(s,l){var a=new n(l);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(g5,g5.exports);w5=g5.exports,y5={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},cZ=w5.FilterCSS,uZ=w5.getDefaultWhiteList,Cv=y5;bL=new cZ;gZ=/</g,wZ=/>/g,yZ=/"/g,vZ=/&quot;/g,bZ=/&#([a-zA-Z0-9]*);?/gim,_Z=/&colon;?/gim,xZ=/&newline;?/gim,_v=/((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,mL=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,hL=/u\s*r\s*l\s*\(.*/gi;vr.whiteList=vL();vr.getDefaultWhiteList=vL;vr.onTag=dZ;vr.onIgnoreTag=pZ;vr.onTagAttr=fZ;vr.onIgnoreTagAttr=mZ;vr.safeAttrValue=hZ;vr.escapeHtml=_L;vr.escapeQuote=xL;vr.unescapeQuote=SL;vr.escapeHtmlEntities=EL;vr.escapeDangerHtml5Entities=CL;vr.clearNonPrintableCharacter=TL;vr.friendlyAttrValue=PL;vr.escapeAttrValue=ML;vr.onIgnoreTagStripAll=SZ;vr.StripTagBody=EZ;vr.stripCommentTag=CZ;vr.stripBlankChar=TZ;vr.cssFilter=bL;vr.getDefaultCSSWhiteList=uZ;Tv={},ql=y5;IZ=/[^a-zA-Z0-9\\_:.-]/gim;Tv.parseTag=AZ;Tv.parseAttr=LZ;DZ=w5.FilterCSS,zo=vr,AL=Tv,FZ=AL.parseTag,$Z=AL.parseAttr,Sv=y5;IL.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,l=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=zo.stripBlankChar(e)),r.allowCommentTag||(e=zo.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=zo.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var b=FZ(e,function(S,P,A,F,W){var z={sourcePosition:S,position:P,isClosing:W,isWhite:Object.prototype.hasOwnProperty.call(n,A)},q=i(A,F,z);if(!xv(q))return q;if(z.isWhite){if(z.isClosing)return"</"+A+">";var G=VZ(F),Y=n[A],ie=$Z(G.html,function(U,me){var Ae=Sv.indexOf(Y,U)!==-1,Ee=s(A,U,me,Ae);return xv(Ee)?Ae?(me=a(A,U,me,h),me?U+'="'+me+'"':U):(Ee=l(A,U,me,Ae),xv(Ee)?void 0:Ee):Ee});return F="<"+A,ie&&(F+=" "+ie),G.closing&&(F+=" /"),F+=">",F}else return q=o(A,F,z),xv(q)?d(F):q},d);return g&&(b=g.remove(b)),b};WZ=IL;(function(e,t){var r=vr,n=Tv,i=WZ;function o(l,a){var d=new i(a);return d.process(l)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var l in r)t[l]=r[l];for(var a in n)t[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(h5,h5.exports);lm=h5.exports,BZ=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},LL=function(){function e(t,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=Ev(Ev({},lm.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,l,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(l):lm.safeAttrValue(o,s,l,a)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(l){return i.css.whiteList[l]=s[l]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new lm.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",l=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||l||a?lm.escapeAttrValue(t):!o&&!i?lm.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):lm.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.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},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(l,a){var d=n.validate(a,r);return d.isValid?l.concat([a]):(i=!0,l.concat([d.sanitized]))},[]);else if(BZ(t)){var s=Object.keys(t);o=s.reduce(function(l,a){var d=t[a],h=n.validate(d,r);return h.isValid?l[a]=d:(i=!0,l[a]=h.sanitized),l},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function Mv(){Pv.clear()}function NL(e){return Pv.get(e)}function OL(e,t){Pv.set(e,t)}function Av(e){Pv.delete(e)}var Pv,v5=O(()=>{Pv=new Map});function RL(...e){let t=Yn.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return Yn.release(t),r}async function DL(e,t){await OA(Og(t));let r=typeof e=="function"?e():e;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var I0e,GZ,jZ,qZ,b5,Iv=O(()=>{kL();zy();ci();tt();it();Qi();m5();$g();v5();I0e=(()=>{let e=new Map,t=new ResizeObserver(n=>{Mv();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Pt(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return ku([r1(()=>typeof n=="function"?n():n,l=>{s?.remove(),l&&(s=r(l,i,o))},vv),Pt(()=>s?.remove())])}})(),GZ=["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"],jZ=GZ.reduce((e,t)=>(e[t]=[],e),{}),qZ=["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"],b5=new LL({whiteList:jZ,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(qZ.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function E5(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var zL,kv,WL,FL,Nv,T5,BL,HZ,_5,ZZ,x5,S5,GL,$L,VL,UL,YZ,Lv,JZ,P5,Wu,C5,XZ,QZ,cm,jL=O(()=>{Iv();zL="http://www.w3.org/",kv=`${zL}2000/svg`,WL=`${zL}1999/xlink`,FL=[],Nv=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},T5=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),BL=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},HZ=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(T5(e[n],t))return n}return-1},_5=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let l=e[s];if(T5(l,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.`)}}},ZZ=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},x5=[],S5=!1,GL=e=>{(e.children||[]).forEach(GL),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},$L=()=>{S5=!1,x5.forEach(GL),x5.length=0},VL=e=>{x5.push(e),S5||(S5=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback($L,{timeout:16}):setTimeout($L,16))},UL=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),VL(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),VL(e))},YZ=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let l=i[s],a=t[l];if(l==="className")throw new Error('Property "className" is not supported, use "class".');if(l==="class")C5(e,a,!0);else if(l==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let b=d[g];a[b]&&e.classList.add(b)}}else if(l==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let b=d[g],S=a[b];S&&(BL(S),r.styleApplyer(e,b,S))}}else if(l!=="key"&&a!=null){let d=typeof a;d==="function"?(l.lastIndexOf("on",0)===0&&(n&&(a=n(l,a,e,t)),l==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[l]=a):r.namespace===kv?l==="href"?e.setAttributeNS(WL,l,a):e.setAttribute(l,a):d==="string"&&l!=="value"?l==="innerHTML"?e[l]=b5.sanitize(a):E5(e)&&l in e?e[l]=a:e.setAttribute(l,a):e[l]=a}}};JZ=(e,t,r)=>{if(t)for(let n of t)Wu(n,e,void 0,r)},P5=(e,t,r)=>{JZ(e,t.children,r),t.text&&(e.textContent=t.text),YZ(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},Wu=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,l=t.ownerDocument;if(s==="")i=e.domNode=l.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.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=Nv(n,{namespace:kv})),n.namespace!==void 0?i=e.domNode=l.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||l.createElement(g),g==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=a+1}}P5(i,e,n)}},C5=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},XZ=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let l=0;l<s;l++){let a=o[l],d=r[a],h=t[a];if(a==="class")h!==d&&(C5(e,h,!1),C5(e,d,!0));else if(a==="classes"){let g=e.classList,b=Object.keys(d),S=b.length;for(let P=0;P<S;P++){let A=b[P],F=!!d[A];F!==!!h[A]&&(i=!0,F?g.add(A):g.remove(A))}}else if(a==="styles"){let g=Object.keys(d),b=g.length;for(let S=0;S<b;S++){let P=g[S],A=d[P];A!==h[P]&&(i=!0,A?(BL(A),n.styleApplyer(e,P,A)):n.styleApplyer(e,P,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||E5(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===kv?a==="href"?e.setAttributeNS(WL,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=b5.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):E5(e)&&a in e?e[a]=d:e.setAttribute(a,d):e[a]!==d&&(e[a]=d),i=!0)}}else{let g=e[a];g!==d&&(e["oninput-value"]?g===e["oninput-value"]:d!==h)&&(e[a]=d,e["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},QZ=(e,t,r,n,i)=>{if(r===n)return!1;n=n||FL;let o,s=(r=r||FL).length,l=n.length,a=0,d=0,h=!1;for(;d<l;){let g=a<s?r[a]:void 0,b=n[d];if(g!==void 0&&T5(g,b))h=Lv(g,b,i)||h,a++;else{let S=HZ(r,b,a+1);if(S>=0){for(o=a;o<S;o++)UL(r[o]),_5(r,o,e,"removed");h=Lv(r[S],b,i)||h,a=S+1}else Wu(b,t,a<s?r[a].domNode:void 0,i),ZZ(b),_5(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)UL(r[o]),_5(r,o,e,"removed");return h};Lv=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=Nv(r,{namespace:kv})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=QZ(t,n,e.children,t.children,r)||o,o=XZ(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};cm=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.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=e;e=r,Lv(n,r,t)},domNode:e.domNode})});var KZ,um,dm,M5=O(()=>{jL();KZ={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},um=e=>Nv(KZ,e),dm={create:(e,t)=>(t=um(t),Wu(e,document.createElement("div"),void 0,t),cm(e,t)),append:(e,t,r)=>(r=um(r),Wu(t,e,void 0,r),cm(t,r)),insertBefore:(e,t,r)=>(r=um(r),Wu(t,e.parentNode,e,r),cm(t,r)),merge:(e,t,r)=>(r=um(r),t.domNode=e,P5(e,t,r),cm(t,r)),replace:(e,t,r)=>(r=um(r),Wu(t,e.parentNode,e,r),e.parentNode.removeChild(e),cm(t,r))}});var eY,qL=O(()=>{M5();eY=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var HL,ZL=O(()=>{HL={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var tY,YL,JL=O(()=>{tY={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},YL=e=>({...tY,...e})});var rY,nY,XL,QL,KL=O(()=>{M5();qL();ZL();JL();rY=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},nY=(e,t)=>e.find(t),XL=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?nY(n.children,l=>l.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},QL=e=>{let t,r={...HL,...e},n=YL(r),i=n.performanceLogger,o,s=!0,l=!1,a=[],d=[],h=(b,S,P)=>{let A;n.eventHandlerInterceptor=(W,z,q,G)=>function(Y){let ie;i("domEvent",Y);let U=rY(Y.currentTarget,A.domNode),me=U.some(Ee=>customElements.get(Ee?.tagName?.toLowerCase()));if(Y.eventPhase===Event.CAPTURING_PHASE||!me)U.reverse(),ie=XL(A.getLastRender(),U);else{let Ee=Y.composedPath(),Ne=Ee.slice(Ee.indexOf(Y.currentTarget),Ee.indexOf(A.domNode)).reverse();ie=XL(A.getLastRender(),Ne,!0)}let Ae;return ie&&(Ae=r.handleInterceptedEvent(t,ie,this,Y)),i("domEventProcessed",Y),Ae},r.postProcessProjectionOptions?.(n);let F=P();A=b(S,F,n),n.eventHandlerInterceptor=void 0,a.push(A),d.push(P),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(A,F)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let b=0;b<a.length;b++){let S=d[b]();i("rendered",void 0);try{a[b].update(S)}catch(P){console.error(P)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),t={renderNow:g,scheduleRender:()=>{o||l||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,s=!0,t.scheduleRender()},append:(b,S)=>{h(dm.append,b,S)},insertBefore:(b,S)=>{h(dm.insertBefore,b,S)},merge:(b,S)=>{h(dm.merge,b,S)},replace:(b,S)=>{h(dm.replace,b,S)},detach:b=>{for(let S=0;S<d.length;S++)if(d[S]===b)return d.splice(S,1),a.splice(S,1)[0];throw new Error("renderFunction was not found")}},t}});var ek,A5=O(()=>{"use strict";ek=":"});function I5(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let r=t;return r.manager?.loadedCalled||r._offspring.push(e),r._postLoad.promise}return!1}function iY(e){let t=e.split(ek);return t.length===1?[t[0],$w(t[0])]:t}function sY([e,t]){this[e]=t}var Ov,oY,pm,X0e,L5,tk=O(()=>{"use strict";A5();To();Ov=Object.defineProperty;oY=globalThis.HTMLElement??iY,X0e=(pm=class extends oY{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new Co,this._postLoaded=new Co,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(this._initializeComponent.bind(this)).catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})})}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){Ov(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(r){this._store[t]=r}})}static _bindAsync(t){Ov(this.prototype,t,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...r)},configurable:!0})}static _bindSync(t){Ov(this.prototype,t,{value(...r){return this._litElement[t](...r)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,r=this;t._properties?.forEach(n=>{Object.hasOwn(this,n)&&(this._store[n]=r[n],delete r[n])})}attributeChangedCallback(t,r,n){this._litElement?.attributeChangedCallback(t,r,n),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=I5(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let r=this.constructor,n=r._name,i=this._store,o=Object.values(t).find(P=>P.tagName===n),s=`${n}--lazy`,l=o;for(;l&&!Object.hasOwn(l,"lumina");)l=Object.getPrototypeOf(l);let a=l.prototype,d=Element.prototype;Object.hasOwn(a,"isConnected")||(a.setAttribute=function(P,A){d.setAttribute.call(this.el,P,A)},a.removeAttribute=function(P){d.removeAttribute.call(this.el,P)},Ov(a,"isConnected",{get(){return Reflect.get(d,"isConnected",this.el)}})),!r._LitConstructor&&(r._LitConstructor=o,customElements.define(s,o)),o.lazy=this;let b=document.createElement(s);o.lazy=void 0,this._litElement=b,this._store=b,this._pendingAttributes.forEach(P=>{let A=this.getAttribute(P);b.attributeChangedCallback(P,null,A)}),Object.entries(i).forEach(sY,b);let S=this.isConnected;(S||this._ancestorLoad)&&(b.connectedCallback?.(),S||b.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}},pm.lumina=!0,pm);L5={}});function rk(e,t){if(t){let r=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(r,([n,i])=>i.noAccessor?void 0:[n,[(i.readOnly?2048:0)|(i.state?32:16)]]).filter(P8))}else{let r=e.constructor,n=r.__registerControllers?.(e)??void 0;if(r.__registerControllers=void 0,typeof n!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(n).filter(([i,[o]])=>(o&63)!==0))}}function nk(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var ik,k5=O(()=>{"use strict";To();ik=(e,t)=>e.manager.internals.members?.[t]?.[0]});function ju(e){o1!==e&&(o1=e,queueMicrotask(()=>{o1===e&&(o1=void 0)}))}function qu(e){return o1}function R5(e){if(e===void 0){Bu=[];return}let t=Bu.indexOf(e);Bu=t===-1?[...Bu,e]:Bu.slice(0,t+1),queueMicrotask(()=>{Bu=[]})}function D5(){return Bu}function aY(e){fm!==e&&(fm=e,queueMicrotask(()=>{fm===e&&(fm=void 0)}))}function lY(){let e=fm;return fm=void 0,e}function ok(e){Ot(e,void 0,this)}function sk(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(r,n,i){if(!(dY.has(n)&&n in r&&r[n]===t)&&(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 t}function uk(e,t,r){let n=Object.keys(e),i=n.length;Gu===void 0&&queueMicrotask(l1),Gu??(Gu=new Map);let o=Gu.get(e);return o===void 0&&(o={callbacks:[],keyCount:i},Gu.set(e,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let l=d=>Ot(t,null,d),a=s[i];a===void 0?l(void 0):e[a]===r?l(a):l(void 0)}),r}function l1(){Array.from(Gu?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(n=>n(r))}),Gu=void 0}function $v(e,t,r){var n;let i=t,o=e.manager.internals;(n=o.allWatchers)[i]??(n[i]=[]);let s=o.allWatchers[i],l=r,a=(d,h,g)=>Ot(l,null,d,h,g);return s.push(a),()=>{let d=s.indexOf(a);d!==-1&&s.splice(d,1)}}function pk(e,t,r){let n=e.manager.internals;return n.trackedValue!==O5&&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)=>Ot(t,void 0,r===o?i:void 0)),r}function Vv(e=[qu(),...D5()],t,r){let n=Array.isArray(e)?e:[e],i=n.length+1,o=l=>{i-=1,l!==void 0&&(i=Math.min(i,0)),i===0&&t(l)};n.forEach(l=>uk(l,a=>o(a===void 0?void 0:{key:a,host:l,isReactive:!1}),r));let s=n.find(l=>"manager"in l&&typeof l.manager=="object"&&l.manager.component===l);return s&&pk(s,l=>o(l===void 0?void 0:{key:l,host:s,isReactive:!0}),r),r}function fk(e){s1.readOnly=!0;try{return e()}finally{s1.readOnly=!1}}function pY(e,{host:t,key:r,isReactive:n},i){let o=t,s=o[r]!==e.exports,l=o[r]!==i,a=i!==e.exports;if(s&&!l&&a&&(o[r]=e.exports),t===e.component){if(n){let h=e.component.manager.internals;l&&h.markExports(e,o[r]),$v(e.component,r,g=>{g!==e.exports&&h.markExports(e,g)})}e.assignedProperty=n?void 0:r}e.watchExports(()=>{if(o[r]===e.exports)return;let h=e.component.manager;h.internals.setters[r]?.includes(h.internals.readonlySetter)?fk(()=>{o[r]=e.exports}):o[r]=e.exports})}var Dv,ak,o1,Bu,fm,cY,uY,F5,s1,a1,lk,Fv,ck,dY,Gu,dk,N5,Rv,O5,mk,hk=O(()=>{"use strict";k5();To();To();To();To();Dv=Symbol.for("controller"),ak=e=>typeof e=="object"&&e!==null&&(Dv in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);Bu=[];cY=async(e,t)=>{let r=F5(e);if(r===void 0)return e;if(await r.ready,typeof t=="function"){let n=r.watchExports(i=>t(i,n))}return r.exports},uY=async e=>{let t=F5(e);return await t.ready,t},F5=e=>{let r=qu().manager.internals.resolveExports(e);if(r!==void 0)return r;if(ak(e))return e;let n=lY();if(n!==void 0)return n},s1={setter:!1,getter:!1,readOnly:!1},a1=new WeakMap;lk=Dv;Fv=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new Co,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[lk]=!0,this.ready=this._ready.promise,this._exports=sk(this),this._exportWatchers=new Set;let t=e??qu(new.target.name);this.component=t,this.component.addController(this),this.component.manager===void 0||(R5(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 t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(Ot),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?sk(e):e,this._exportWatchers.forEach(Ot)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return ju(this.component),cY}get useRef(){return ju(this.component),uY}get useRefSync(){return ju(this.component),F5}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&&Ot(e.hostConnected,e),this._callbacks.hostConnected.forEach(Ot),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&Ot(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(Ot),this._lifecycleCleanups.forEach(Ot),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await Lh(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(Lh)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&Ot(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(Ot),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&Ot(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(ok,e)}triggerUpdated(e){let t=this;t.hostUpdated&&Ot(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(ok,e)}triggerDestroy(){let e=this;e.hostDestroy&&Ot(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(Ot)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){ju(this.component);let t=Ot(e);(Array.isArray(t)?t:[t]).forEach(n=>{typeof n=="function"?this._lifecycleCleanups.push(n):typeof n=="object"&&typeof n.remove=="function"&&this._lifecycleCleanups.push(n.remove)})}};ck=Fv;dY=new Set(["exports","_exports"]);Gu=void 0;dk=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([r,[n]])=>{var i;n&2048&&((i=t.setters)[r]??(i[r]=[]),t.setters[r].push(t.readonlySetter))})},this.trackedValue=O5,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,r,n)=>{if(s1.readOnly)return t;throw new Error(`Cannot assign to read-only property "${n}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let r=this.keyTrackers;this.trackedValue=O5,this.keyTrackers=[],r.forEach(n=>n(e,t))}getSetProxy(e){let t=this.component,r=t.constructor.prototype;if(this._getSetProxy(r,e,"class"),t.manager.isLit)return;let n=t.el.constructor.prototype;r!==n&&this._getSetProxy(n,e,"html")}_getSetProxy(e,t,r){let n=this.component,i=ik(n,t),o;do o=Object.getOwnPropertyDescriptor(e,t);while(!o&&(e=Object.getPrototypeOf(e)));if(!o)return;let s=o.get,l=o.set,a=Rv in s,d=Rv in l;if(a&&d)return;let h=!a,g=!d,b=h?function(){let A=s.call(this),F=a1.get(this);if(s1.getter||F===void 0)return A;let W=F.manager.internals;A=W.accessorGetter[t](A,t);let z=W.getters[t]??N5;for(let q=0;q<z.length;q++)A=z[q](A,t);return A}:s,S=g?function(A){let F=s.call(this),W=a1.get(this);if(W===void 0){l.call(this,A);return}let z=W.manager.isLit?A??void 0:nk(A,i),q=W.manager.internals;if(z===F)l.call(this,z);else{let G=s1.setter?N5:q.setters[t]??N5;for(let Y=0;Y<G.length&&(z=G[Y](z,F,t),z!==F);Y++);z=q.accessorSetter[t](z,F,t),l.call(this,z),z!==F&&q.enabledWatchers[t]?.forEach(Y=>Y(z,F,t))}q.keyTrackers.length>0&&q?.firePropTrackers(t,A)}:l;h&&(b[Rv]=!0),g&&(S[Rv]=!0),Object.defineProperty(e,t,{...o,get:b,set:S})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},N5=[],Rv=Symbol(),O5=Symbol();mk=e=>(...t)=>{let r=D5(),n=new e(...t),i=n.exports;R5(r.at(-1));let o=n.component.manager.internals;o.markExports(n,i),n.watchExports(l=>o.markExports(n,l)),aY(n);let s=[n.component,...r].reverse();return Vv(s,l=>l===void 0?void 0:pY(n,l,i),i)}});function hY(e){"triggerConnected"in e?e.triggerConnected():Ot(e.hostConnected,e)}function gY(e){"triggerDisconnected"in e?e.triggerDisconnected():Ot(e.hostDisconnected,e)}async function wY(e){"triggerLoad"in e?await e.triggerLoad():await Lh(e.hostLoad,e)}function yY(e){"triggerLoaded"in e?e.triggerLoaded():Ot(e.hostLoaded,e)}function vY(e){"triggerUpdate"in e?e.triggerUpdate(this):Ot(e.hostUpdate,e,this)}function bY(e){"triggerUpdated"in e?e.triggerUpdated(this):Ot(e.hostUpdated,e,this)}function _Y(e){"triggerDestroy"in e?e.triggerDestroy():Ot(e.hostDestroy,e)}function vk(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([n,i])=>{typeof i=="object"?r[n]=vk(e[n],i):r[n]=i??e[n]}),r}var wk,fY,$5,mY,gk,xY,SY,EY,Uv,CY,yk,Hu=O(()=>{"use strict";hk();k5();To();To();To();wk=(e,t)=>new fY(e,t),fY=class extends ck{constructor(e,t){let r="addController"in e,n=new Set;function i(a){n.add(a),!(Dv in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function o(a){n.delete(a),a.controllerRemoved?.()}let s=e;if(s.addController=i,s.removeController=o,!r){let a=t??e.constructor.__forceUpdate;s.requestUpdate=()=>a(e)}super(e),this.internals=new dk(this.component),this.destroyed=!1,this._updatePromise=new Co,this._originalLifecycles={},this.isLit=r,this.component.manager=this,rk(e,r),this._controllers=n,this.exports=void 0,this.hasDestroy=$5 in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let l=this.internals;Object.keys(l.members).forEach(a=>{l.accessorGetter[a]=gk,l.accessorSetter[a]=gk,l.getSetProxy(a)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(l.enableReadonly),ju(e),a1.set(e.el,e),a1.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,r=e.el===e;this._originalLifecycles={_connectedCallback:t||r?void 0:e.connectedCallback,_disconnectedCallback:t||r?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let n=this._connectedCallback.bind(this),i=this._disconnectedCallback.bind(this),o=this._update.bind(this),s=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:n,hostDisconnected:i,hostUpdate:o,hostUpdated:s}):(e.connectedCallback=n,e.disconnectedCallback=i,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=o,e.componentDidUpdate=s),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${$5} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,l1(),e.enableReadonly?.(),this._controllers.forEach(hY),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(gY),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,wY)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&$v(this.component,$5,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(yY),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;this._controllers.forEach(vY,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(bY,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new Co,t.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(_Y),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=T8(e,mY)}}},$5="autoDestroyDisabled",mY=1e3,gk=e=>e;xY=e=>EY(void 0,e),SY=class extends Fv{constructor(e,t){super(e);let r=this.exports;try{ju(this.component);let n=t(this.component,this),i=this.exports!==r;if(n instanceof Promise){i||this.setProvisionalExports(n);let o=n.then(s=>{this.exports=s,super.catchUpLifecycle()}).catch(s=>{this._ready.reject(s),console.error(s)});this.onLoad(async()=>await o)}else(!i||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this._ready.reject(n),console.error(n)}}catchUpLifecycle(){}},EY=mk(SY),Uv=(e,t)=>new CY(e,t),CY=class extends Fv{constructor(e,t){super(),this._attributes=e,this._callback=t,this._observer=new MutationObserver(r=>{r.forEach(n=>{e.includes(n.attributeName)&&t.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.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()}},yk=(e,t)=>(r={})=>xY((n,i)=>{let o=Zx(n.el),s={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},l=n;queueMicrotask(()=>i.onLifecycle(()=>C8(n.el,e("./assets"),({t9nLocale:d,t9nStrings:h,lang:g})=>{let b={...h,_lang:g,_t9nLocale:d,_loading:!1};i.exports=b;let S=h.componentLabel;typeof S=="string"&&"label"in n&&n.label==null&&(n.label??(n.label=S)),a(l.messageOverrides)},r.name)));function a(d){let h=i.exports,g=h._original??h,b=vk(g,d);d&&(b._original=g),i.exports=b}return"messageOverrides"in l&&i.onLifecycle(()=>$v(l,"messageOverrides",a)),r.blocking?(i.setProvisionalExports(s,!1),i.ready):s})});var c1=O(()=>{});var bk=O(()=>{});var U5=O(()=>{c1();});var _k=O(()=>{});var z5=O(()=>{c1();_k();});var xk=O(()=>{c1();});var Ek=O(()=>{z5();});var Tk=O(()=>{U5();});var Pk=O(()=>{c1();bk();U5();z5();xk();Ek();Tk()});var zv,Wv,W5,Mk,u1,Ak,Dt,B5,Bv,En=O(()=>{zv=globalThis,Wv=zv.ShadowRoot&&(zv.ShadyCSS===void 0||zv.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W5=Symbol(),Mk=new WeakMap,u1=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==W5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Wv&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Mk.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Mk.set(r,t))}return t}toString(){return this.cssText}},Ak=e=>new u1(typeof e=="string"?e:e+"",void 0,W5),Dt=(e,...t)=>{let r=e.length===1?e[0]:t.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)+e[o+1],e[0]);return new u1(r,e,W5)},B5=(e,t)=>{if(Wv)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=zv.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Bv=Wv?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Ak(r)})(e):e});var TY,PY,MY,AY,IY,LY,Hl,Ik,kY,NY,d1,Gv,G5,Lk,ga,p1=O(()=>{En();En();({is:TY,defineProperty:PY,getOwnPropertyDescriptor:MY,getOwnPropertyNames:AY,getOwnPropertySymbols:IY,getPrototypeOf:LY}=Object),Hl=globalThis,Ik=Hl.trustedTypes,kY=Ik?Ik.emptyScript:"",NY=Hl.reactiveElementPolyfillSupport,d1=(e,t)=>e,Gv={toAttribute(e,t){switch(t){case Boolean:e=e?kY:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},G5=(e,t)=>!TY(e,t),Lk={attribute:!0,type:String,converter:Gv,reflect:!1,hasChanged:G5};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Hl.litPropertyMetadata??(Hl.litPropertyMetadata=new WeakMap);ga=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Lk){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&PY(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=MY(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let l=i?.call(this);o.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Lk}static _$Ei(){if(this.hasOwnProperty(d1("elementProperties")))return;let t=LY(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d1("properties"))){let r=this.properties,n=[...AY(r),...IY(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);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(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Bv(i))}else t!==void 0&&r.push(Bv(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return B5(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:Gv).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);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:Gv;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??G5)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.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 t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}};ga.elementStyles=[],ga.shadowRootOptions={mode:"open"},ga[d1("elementProperties")]=new Map,ga[d1("finalized")]=new Map,NY?.({ReactiveElement:ga}),(Hl.reactiveElementVersions??(Hl.reactiveElementVersions=[])).push("2.0.4")});var j5=O(()=>{p1();});var kk=O(()=>{j5();});function Wk(e,t){if(!Y5(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nk!==void 0?Nk.createHTML(t):t}function Xu(e,t,r=e,n){if(t===Cn)return t;let i=n!==void 0?r.o?.[n]:r.l,o=g1(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r.o??(r.o=[]))[n]=i:r.l=i),i!==void 0&&(t=Xu(e,i._$AS(e,t.values),i,n)),t}var m1,jv,Nk,H5,wa,Z5,RY,Ju,h1,g1,Y5,Vk,q5,f1,Ok,Rk,Zu,Dk,Fk,Uk,J5,xe,Ps,zk,Cn,Re,$k,Yu,Bk,w1,qv,mm,Qu,Hv,Zv,Yv,Jv,Gk,DY,jk,Dr=O(()=>{m1=globalThis,jv=m1.trustedTypes,Nk=jv?jv.createPolicy("lit-html",{createHTML:e=>e}):void 0,H5="$lit$",wa=`lit$${Math.random().toFixed(9).slice(2)}$`,Z5="?"+wa,RY=`<${Z5}>`,Ju=document,h1=()=>Ju.createComment(""),g1=e=>e===null||typeof e!="object"&&typeof e!="function",Y5=Array.isArray,Vk=e=>Y5(e)||typeof e?.[Symbol.iterator]=="function",q5=`[
6
+ `);return l}setAtOrigin(t,r,n){let i=this.propertiesByName.get(t);if(Vy(i))return this._setAtOrigin(i,r,n)}isOverridden(t){let r=this.propertiesByName.get(t);return r!==void 0&&!!(r.flags&vt.Overridden)}clearOverride(t){let r=this.propertiesByName.get(t);r&&r.flags&vt.Overridden&&(r.flags&=~vt.Overridden,r.notifyChange())}override(t,r){let n=this.propertiesByName.get(t);if(!pA(n,t,r,this))return;let i=n.metadata.cast;if(i){let o=this._cast(i,r),{valid:s,value:l}=o;if(y4.release(o),!s)return;r=l}n.flags|=vt.Overridden,this._internalSet(n,r)}set(t,r){let n=this.propertiesByName.get(t);if(!pA(n,t,r,this))return;let i=n.metadata.cast;if(i){let s=this._cast(i,r),{valid:l,value:a}=s;if(y4.release(s),!l)return;r=a}let o=n.metadata.set;o?o.call(this.host,r):this._internalSet(n,r)}setDefaultOrigin(t){this._origin=Dy(t)}getDefaultOrigin(){return Fy(this._origin)}notifyChange(t){let r=this.propertiesByName.get(t);r!==void 0&&r.notifyChange()}invalidate(t){let r=this.propertiesByName.get(t);r!==void 0&&r.invalidate()}commit(t){let r=this.propertiesByName.get(t);r!==void 0&&r.commit()}_internalSet(t,r){let n=this.lifecycle!==dn.INITIALIZING?this._origin:lt.DEFAULTS;this._setAtOrigin(t,r,n)}_setAtOrigin(t,r,n){let i=this.store,o=t.propertyName;i.has(o,n)&&Nh(r,i.get(o))&&~t.flags&vt.Overridden&&n===i.originOf(o)||(t.invalidate(),i.set(o,r,n),t.commit(),r4(this.host,t))}_cast(t,r){let n=y4.acquire();return n.valid=!0,n.value=r,t&&(n.value=t.call(this.host,r,n)),n}},v4=class{constructor(){this.value=null,this.valid=!0}acquire(){this.valid=!0}release(){this.value=null}},y4=new Fo(v4)});function b4(){return aq}var aq,mA,hA=O(()=>{(function(e){e[e.Ignore=0]="Ignore",e[e.Destroy=1]="Destroy",e[e.ThrowError=2]="ThrowError"})(mA||(mA={}))});function lq(e){e.length=0}var Yn,_4,zy=O(()=>{Mg();Yn=class{constructor(t=50,r=50){this._pool=new Fo(Array,void 0,lq,r,t)}acquire(){return this._pool.acquire()}release(t){this._pool.release(t)}prune(){this._pool.prune(0)}static acquire(){return _4.acquire()}static release(t){return _4.release(t)}static prune(){_4.prune()}},_4=new Yn(100)});var Wy,gA=O(()=>{Mg();Wy=class extends Fo{constructor(){super(...arguments),this._set=new Set}destroy(){super.destroy(),this._set=null}acquire(...t){let r=super.acquire(...t);return this._set.delete(r),r}release(t){t&&!this._set.has(t)&&(super.release(t),this._set.add(t))}_dispose(t){this._set.delete(t),super._dispose(t)}}});function x4(e){By.push(e),By.length===1&&queueMicrotask(()=>{let t=By.slice();By.length=0;for(let r of t)r()})}var By,wA=O(()=>{By=[]});var Ig,yA=O(()=>{Ig=class{constructor(t,r=30){this.name=t,this._counter=0,this._samples=new Array(r)}push(t){t!=null&&(this._samples[++this._counter%this._samples.length]=t)}set(t){t!=null&&(this._samples[this._counter%this._samples.length]=t)}get median(){return this._samples.slice().sort((t,r)=>t-r)[Math.floor(this._samples.length/2)]}get average(){return this._samples.reduce((t,r)=>t+r,0)/this._samples.length}get last(){return this._samples[this._counter%this._samples.length]}}});var S4,E4,vA=O(()=>{(function(e){let t=(o,s,l,a)=>{let d=s,h=s,g=l>>>1,b=o[d-1];for(;h<=g;){h=d<<1,h<l&&a(o[h-1],o[h])<0&&++h;let S=o[h-1];if(a(S,b)<=0)break;o[d-1]=S,d=h}o[d-1]=b},r=(o,s)=>o<s?-1:o>s?1:0;function n(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let h=l>>>1;h>s;h--)t(o,h,l,a);let d=s+1;for(let h=l-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a)}}function*i(o,s,l,a){s===void 0&&(s=0),l===void 0&&(l=o.length),a===void 0&&(a=r);for(let h=l>>>1;h>s;h--)t(o,h,l,a),yield;let d=s+1;for(let h=l-1;h>s;h--){let g=o[s];o[s]=o[h],o[h]=g,t(o,d,h,a),yield}}e.sort=n,e.iterableSort=i})(S4||(S4={}));E4=S4});function bA(e){e.data.length>cq*e.length&&(e.data.length=Math.floor(e.length*uq))}var cq,uq,Lg,_A=O(()=>{hl();vA();cq=1.5,uq=1.1,Lg=class{constructor(t){this.data=[],this._length=0,this._allocator=void 0,this._deallocator=()=>null,this._shrink=()=>{},this._hint=new kh,t&&(t.initialSize&&(this.data=new Array(t.initialSize)),t.allocator&&(this._allocator=t.allocator),t.deallocator!==void 0&&(this._deallocator=t.deallocator),t.shrink&&(this._shrink=()=>bA(this)))}toArray(){return this.data.slice(0,this.length)}filter(t){let r=new Array;for(let n=0;n<this._length;n++){let i=this.data[n];t(i)&&r.push(i)}return r}at(t){if((t=Math.trunc(t)||0)<0&&(t+=this._length),!(t<0||t>=this._length))return this.data[t]}includes(t,r){let n=this.data.indexOf(t,r);return n!==-1&&n<this.length}get length(){return this._length}set length(t){if(t>this._length){if(this._allocator){for(;this._length<t;)this.data[this._length++]=this._allocator(this.data[this._length]);return}this._length=t}else{if(this._deallocator)for(let r=t;r<this._length;++r)this.data[r]=this._deallocator(this.data[r]);this._length=t,this._shrink()}}clear(){this.length=0}prune(){this.clear(),this.data=[]}push(t){this.data[this._length++]=t}pushArray(t,r=t.length){for(let n=0;n<r;n++)this.data[this._length++]=t[n]}fill(t,r){for(let n=0;n<r;n++)this.data[this._length++]=t}pushNew(){this._allocator&&(this.data[this.length]=this._allocator(this.data[this.length]));let t=this.data[this._length];return++this._length,t}unshift(t){this.data.unshift(t),this._length++,bA(this)}pop(){if(this.length===0)return;let t=this.data[this.length-1];return this.length=this.length-1,this._shrink(),t}remove(t){let r=Yx(this.data,t,this.length,this._hint);if(r!==-1)return this.data.splice(r,1),this.length=this.length-1,t}removeUnordered(t){return this.removeUnorderedIndex(Yx(this.data,t,this.length,this._hint))}removeUnorderedIndex(t){if(!(t>=this.length||t<0))return this.swapElements(t,this.length-1),this.pop()}removeUnorderedMany(t,r=t.length,n){this.length=A8(this.data,t,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(t,r){if(t>=this.length||r>=this.length||t===r)return;let n=this.data[t];this.data[t]=this.data[r],this.data[r]=n}sort(t){E4.sort(this.data,0,this.length,t)}iterableSort(t){return E4.iterableSort(this.data,0,this.length,t)}some(t,r){for(let n=0;n<this.length;++n)if(t.call(r,this.data[n],n,this.data))return!0;return!1}find(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)if(t.call(r,n[o]))return n[o]}filterInPlace(t,r){let n=0;for(let i=0;i<this._length;++i){let o=this.data[i];t.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(t,r){let{data:n,length:i}=this;for(let o=0;o<i;++o)t.call(r,n[o],o,n)}forEach(t,r){this.data.slice(0,this.length).forEach(t,r)}map(t,r){let n=new Array(this.length);for(let i=0;i<this.length;++i)n[i]=t.call(r,this.data[i],i,this.data);return n}reduce(t,r){let n=r;for(let i=0;i<this.length;++i)n=t(n,this.data[i],i,this.data);return n}has(t){let r=this.length,n=this.data;for(let i=0;i<r;++i)if(n[i]===t)return!0;return!1}*[Symbol.iterator](){for(let t=0;t<this.length;t++)yield this.data[t]}}});function dq(e){return{setTimeout:(t,r)=>{let n=e.setTimeout(t,r);return Pt(()=>e.clearTimeout(n))}}}var xA,SA=O(()=>{ci();xA=dq(globalThis)});function kg(e){return pq(e)||EA(e)}function pq(e){return e!=null&&typeof e=="object"&&"on"in e&&typeof e.on=="function"}function EA(e){return e!=null&&typeof e=="object"&&"addEventListener"in e&&typeof e.addEventListener=="function"}function Ol(e,t,r){if(!kg(e))throw new TypeError("target is not a Evented or EventTarget object");return EA(e)?fq(e,t,r):e.on(t,r)}function fq(e,t,r,n){if(Array.isArray(t)){let i=t.slice();for(let o of i)e.addEventListener(o,r,n);return Pt(()=>{for(let o of i)e.removeEventListener(o,r,n)})}return e.addEventListener(t,r,n),Pt(()=>e.removeEventListener(t,r,n))}function C4(e,t,r){if(!kg(e))throw new TypeError("target is not a Evented or EventTarget object");if("once"in e)return e.once(t,r);let n=Ol(e,t,i=>{n.remove(),r.call(e,i)});return n}var Ng=O(()=>{ci()});function Xn(e="Aborted"){return new je("AbortError",e)}function T4(e,t="Aborted"){if(xs(e))throw Xn(t)}function Og(e){return e instanceof AbortSignal?e:e?.signal??void 0}function xs(e){let t=Og(e);return t!=null&&t.aborted}function P4(e){if(!Rg(e))throw e}function Jn(e,t){let r=Og(e);if(r!=null){if(!r.aborted)return C4(r,"abort",()=>t());t()}}function TA(e,t){let r=Og(e);if(r!=null)return T4(r),C4(r,"abort",()=>t(Xn()))}function Rg(e){return e?.name==="AbortError"}function mq(e,t=void 0,r){let n=new AbortController;return Jn(r,()=>n.abort()),new Promise((i,o)=>{let s=setTimeout(()=>{s=0,i(t)},e);Jn(n,()=>{s&&(clearTimeout(s),o(Xn()))})})}function M4(e){return e&&typeof e.then=="function"}function CA(e){return M4(e)?e:Promise.resolve(e)}function PA(e,t=-1){let r,n,i,o,s=null,l=(...a)=>{if(r){n=a,o&&o.reject(Xn()),o=$n();let b=o.promise;if(s){let S=s;s=null,S.abort()}return b}if(i=o||$n(),o=null,t>0){let b=new AbortController;r=CA(e(...a,b.signal));let S=r;mq(t).then(()=>{r===S&&(o?b.abort():s=b)})}else r=1,r=CA(e(...a));let d=()=>{let b=n;n=i=r=s=null,b!=null&&l(...b)},h=r,g=i;return h.then(d,d),h.then(g.resolve,g.reject),g.promise};return l}function $n(){let e,t,r=new Promise((i,o)=>{e=i,t=o}),n=i=>{e(i)};return n.resolve=i=>e(i),n.reject=i=>t(i),n.timeout=(i,o)=>xA.setTimeout(()=>n.reject(o),i),n.promise=r,n}var Qi=O(()=>{SA();Fn();Ng();it();da()});var MA=O(()=>{});function hq(){Fg!=null&&(cancelAnimationFrame(Fg),Fg=requestAnimationFrame(LA))}function Zf(e){let t=new A4(e);return L4.push(t),jy.willDispatch||(jy.willDispatch=!0,x4(NA)),t}function gq(e=!1){Hf.forAll(t=>{t.removed=!0}),e&&kA()}function LA(){let e=performance.now();Fg=null,Fg=Hf.some(r=>!r.paused&&!r.removed)?requestAnimationFrame(LA):null,jy.executeFrameTasks(e)}function wq(e){let t=e-AA;AA=e;let r=IA>0?IA:1e3/60,n=Math.max(0,t-r);Dg.time=e,Dg.frameDuration=r-n;for(let i=0;i<I4.length;i++){let o=performance.now(),s=I4[i];Hf.forAll(l=>{l.paused||l.removed||(i===0&&l.ticks++,l.phases[s]&&(Dg.elapsedFrameTime=performance.now()-e,Dg.deltaTime=l.ticks===0?0:t,l.phases[s]?.call(l,Dg)))}),bq[i].push(performance.now()-o)}kA(),_q.push(performance.now()-e)}function kA(){Hf.forAll(e=>{e.removed&&Gy.push(e)}),Hf.removeUnorderedMany(Gy.data,Gy.length),Gy.clear()}function NA(){for(;L4.length;){let e=L4.shift();e.isActive&&e.callback()}jy.willDispatch=!1}function yq(e=1,t){let r=$n(),n=()=>{xs(t)?r.reject(Xn()):e===0?r():(--e,x4(()=>n()))};return n(),r.promise}function vq(e){return yq(1,e)}async function OA(e){await vq(e),await new Promise(t=>requestAnimationFrame(()=>{e?.aborted||t()}))}var A4,AA,IA,Dg,I4,L4,Hf,jy,Fg,Gy,bq,_q,$g=O(()=>{wA();yA();_A();Qi();MA();A4=class{constructor(t){this.callback=t,this.isActive=!0}remove(){this.isActive=!1}},AA=0,IA=0,Dg={time:0,deltaTime:0,elapsedFrameTime:0,frameDuration:0},I4=["prepare","preRender","render","postRender","update","finish"],L4=[],Hf=new Lg;jy={frameTasks:Hf,willDispatch:!1,clearFrameTasks:gq,dispatch:NA,executeFrameTasks:wq,reschedule:hq};Fg=null;Gy=new Lg;bq=I4.map(e=>new Ig(e)),_q=new Ig("total")});function RA(e,t){if(!t)return e;for(let r of t)r!=null&&e.add(r);return e}function DA(e,t){let r=new Set;return RA(r,e),RA(r,t),r}var k4=O(()=>{});function qy(){return++xq}var xq,FA=O(()=>{xq=0});function Sq(){}var Ru,N4,$A,O4=O(()=>{xg();Ru=class extends bs{constructor(t){super(new N4(t)),this._observer&&$A.register(this,new WeakRef(this._observer),this)}destroy(){this._observer&&$A.unregister(this._observer),this.accessed?.clear(),this.clear(),this._observer?.destroy()}},N4=class{constructor(t){this._notify=t,this._invalidCount=0,this.destroyed=!1}onInvalidated(){this._invalidCount++}onCommitted(){if(this.destroyed)return;let t=this._invalidCount;if(t===1)return this._invalidCount=0,void this._notify();this._invalidCount=t>0?t-1:0}destroy(){this.destroyed=!0,this._notify=Sq}},$A=new FinalizationRegistry(e=>{e.deref()?.destroy()})});function D4(e,t){let r=new Ru(o),n=null,i=!1;function o(){if(!r||i)return;if(R4)return void Eq(o);let l=n;r.clear(),R4=!0,i=!0,n=Do(r,e),i=!1,R4=!1,t(n,l),Cq()}function s(){r&&(r.destroy(),r=null,n=null)}return i=!0,n=Do(r,e),i=!1,Pt(s)}function F4(e,t){let r=new Ru(i),n=null;function i(){t(n,s)}function o(){r&&(r.destroy(),r=null),n=null}function s(){return r?(r.clear(),n=Do(r,e),n):null}return s(),Pt(o)}function Eq(e){Hy.includes(e)||Hy.unshift(e)}function Cq(){for(;Hy.length;)Hy.pop()()}var R4,Hy,$4=O(()=>{ci();_s();O4();R4=!1,Hy=[]});function Jy(e){Rl.delete(e),Rl.add(e),Yy||(Yy=Zf(Pq))}function Tq(e){if(e.removed)return;let t=e.oldValue,r=e.getValue();e.equals(t,r)||(e.oldValue=r,e.notify(r,t))}function VA(e){for(let t of Rl.values())t.target===e&&(t.removed=!0)}function Pq(){let e=10;for(;Yy&&e--;){Yy=null;let t=Mq(),r=Zy.acquire();for(let n of t){let i=n.uid;Tq(n),i===n.uid&&n.removed&&r.push(n)}for(let n of Rl)n.removed&&(r.push(n),Rl.delete(n));for(let n of r)Du.pool.release(n);Zy.release(r),Zy.release(t),Aq.forEach(n=>n())}}function Mq(){let e=Zy.acquire();e.length=Rl.size;let t=0;for(let r of Rl)e[t]=r,++t;return Rl.clear(),e}function Iq(e,t,r){let n=JS(e,t,r,(i,o,s)=>{let l,a,d=F4(()=>Nu(i,o),(h,g)=>{i.__accessor__?.lifecycle===dn.DESTROYED||l&&l.uid!==a?n.remove():(l||(l=Du.acquireUntracked(h,s,g,i,o),a=l.uid),Jy(l))});return Pt(()=>{d.remove(),l&&(l.uid!==a||l.removed||(l.removed=!0,Jy(l)),l=null),n=d=null})});return n}function Lq(e,t,r){let n=JS(e,t,r,(i,o,s)=>{let l=!1;return D4(()=>Nu(i,o),(a,d)=>{i.__accessor__.lifecycle!==dn.DESTROYED?l||(l=!0,Nh(d,a)||s.call(i,a,d,o,i),l=!1):n.remove()})});return n}function UA(e,t,r,n=!1){return e.__accessor__&&e.__accessor__.lifecycle!==dn.DESTROYED?n?Lq(e,t,r):Iq(e,t,r):Pt()}function kq(e,t,r){let n,i,o=F4(e,(s,l)=>{n&&n.uid!==i?o.remove():(n||(n=Du.acquireTracked(s,t,l,r),i=n.uid),Jy(n))});return Pt(()=>{o.remove(),n&&(n.uid!==i||n.removed||(n.removed=!0,Jy(n)),n=null),o=null})}function Nq(e,t,r){let n=!1;return D4(e,(i,o)=>{n||(n=!0,r(o,i)||t(i,o),n=!1)})}function zA(e,t,r=!1,n=Ww){return r?Nq(e,t,n):kq(e,t,n)}var Vg,Du,Zy,Rl,Yy,Aq,V4=O(()=>{zy();ci();ar();gA();$g();k4();FA();Ou();_g();$4();ua();(function(e){e[e.Untracked=0]="Untracked",e[e.Tracked=1]="Tracked"})(Vg||(Vg={}));Du=class{constructor(){this.uid=qy(),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 acquireUntracked(t,r,n,i,o){return this.pool.acquire(Vg.Untracked,t,r,n,i,o,Nh)}static acquireTracked(t,r,n,i){return this.pool.acquire(Vg.Tracked,t,r,n,null,null,i)}notify(t,r){this.type===Vg.Untracked?this.callback.call(this.target,t,r,this.path,this.target):this.callback.call(null,t,r,void 0,void 0)}acquire(t,r,n,i,o,s,l){this.uid=qy(),this.removed=!1,this.type=t,this.oldValue=r,this.callback=n,this.getValue=i,this.target=o,this.path=s,this.equals=l}release(){this.target=this.path=this.oldValue=this.callback=this.getValue=null,this.uid=qy(),this.removed=!0}};Du.pool=new Wy(Du);Zy=new Yn,Rl=new Set;Aq=new Set});function Oq(e){if(e==null)return{value:e};if(Array.isArray(e))return{type:[e[0]],value:null};switch(typeof e){case"object":return e.constructor?.__accessorMetadata__||e instanceof Date?{type:e.constructor,value:e}:e;case"boolean":return{type:Boolean,value:e};case"string":return{type:String,value:e};case"number":return{type:Number,value:e};case"function":return{type:e,value:null};default:return}}var WA,BA,Ss,U4,Jr,Dl=O(()=>{tA();oA();it();da();e4();Ou();_g();Wf();fA();KS();hA();V4();yt();ft();Ss=Symbol("Accessor-Handles"),U4=Symbol("Accessor-Initialized"),Jr=class e{static createSubclass(t={}){if(Array.isArray(t))throw new Error("Multi-inheritance unsupported since 4.16");let{properties:r,declaredClass:n,constructor:i}=t;delete t.declaredClass,delete t.properties,delete t.constructor;let o=this;class s extends o{constructor(...a){super(...a),this.inherited=null,i&&i.apply(this,a)}}Ll(s.prototype);for(let l in t){let a=t[l];s.prototype[l]=typeof a=="function"?function(...d){let h=this.inherited,g;this.inherited=function(...b){if(o.prototype[l])return o.prototype[l].apply(this,b)};try{g=a.apply(this,d)}catch(b){throw this.inherited=h,b}return this.inherited=h,g}:t[l]}for(let l in r){let a=Oq(r[l]);V(a)(s.prototype,l)}return Le(n)(s)}static freeze(t){return t instanceof e?t.__accessor__.mutable=!1:Object.freeze(t),t}static isFrozen(t){return t instanceof e?!t.__accessor__.mutable:Object.isFrozen(t)}constructor(...t){if(this[WA]=null,this[BA]=!1,this.constructor===e)throw new Error("[accessor] cannot instantiate Accessor. This can be fixed by creating a subclass of Accessor");let r=new Uy(this);Object.defineProperty(this,"__accessor__",{enumerable:!1,value:r}),t.length>0&&(r.ctorArgs=this.normalizeCtorArgs?.apply(this,t)??t[0]),b4()?.onInstanceConstruct(this)}postscript(){let t=this.__accessor__,r=t.ctorArgs;t.initialize(),r&&(this.set(r),t.ctorArgs=null),t.constructed(),this.initialize(),this[U4]=!0}initialize(){}[Cy](){this[Ss]=Pg(this[Ss])}destroy(){this.destroyed||(VA(this),this.__accessor__.destroy(),b4()?.onInstanceDestroy(this))}[Symbol.dispose](){this.destroy()}get constructed(){return this.__accessor__&&this.__accessor__.initialized||!1}get initialized(){return this[U4]}get destroyed(){return this.__accessor__?.lifecycle===dn.DESTROYED||!1}commitProperty(t){vs(this,t)}hasOwnProperty(t){return this.__accessor__?this.__accessor__.has(t):Object.prototype.hasOwnProperty.call(this,t)}keys(){return this.__accessor__?this.__accessor__.keys():[]}set(t,r){return Gf(this,t,r),this}watch(t,r,n){return eA(ot.getLogger(this),"`watch` is deprecated in favor of reactiveUtils.watch",{replacement:"reactiveUtils.watch",version:"4.32",see:"https://developers.arcgis.com/javascript/latest/api-reference/esri-core-reactiveUtils.html#watch",warnOnce:!0}),UA(this,t,r,n)}addHandles(t,r){if(this.destroyed){let n=Array.isArray(t)?t:[t];for(let i of n)i.remove();return}(this[Ss]??(this[Ss]=new jf)).add(t,r)}removeHandles(t){this[Ss]?.remove(t)}removeAllHandles(){this[Ss]?.removeAll()}removeHandlesReference(t){this[Ss]?.removeReference(t)}hasHandles(t){return this[Ss]?.has(t)===!0}_override(t,r){r===void 0?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_clearOverride(t){return this.__accessor__.clearOverride(t)}_overrideIfSome(t,r){r==null?this.__accessor__.clearOverride(t):this.__accessor__.override(t,r)}_isOverridden(t){return this.__accessor__.isOverridden(t)}notifyChange(t){this.__accessor__.notifyChange(t)}_get(t){return this.__accessor__.internalGet(t)}_set(t,r){return this.__accessor__.internalSet(t,r),this}};WA=Ss,BA=U4});var Xy,z4,GA=O(()=>{ar();Nl();Xy=class e{constructor(){this._values=new Map,this.multipleOriginsSupported=!1}clone(t){let r=new e;return this._values.forEach((n,i)=>{t&&t.has(i)||r.set(i,Je(n.value),n.origin)}),r}get(t,r){r=this._normalizeOrigin(r);let n=this._values.get(t);return r==null||n?.origin===r?n?.value:void 0}originOf(t){return this._values.get(t)?.origin??lt.USER}keys(t){t=this._normalizeOrigin(t);let r=[...this._values.keys()];return t==null?r:r.filter(n=>this._values.get(n)?.origin===t)}set(t,r,n){if((n=this._normalizeOrigin(n))===lt.DEFAULTS){let i=this._values.get(t);if(i?.origin!=null&&i.origin>n)return}this._values.set(t,new z4(r,n))}delete(t,r){(r=this._normalizeOrigin(r))!=null&&this._values.get(t)?.origin!==r||this._values.delete(t)}has(t,r){return(r=this._normalizeOrigin(r))!=null?this._values.get(t)?.origin===r:this._values.has(t)}forEach(t){this._values.forEach(({value:r},n)=>t(r,n))}_normalizeOrigin(t){if(t!=null)return t===lt.DEFAULTS?t:lt.USER}},z4=class{constructor(t,r){this.value=t,this.origin=r}}});function jA(e,t,r){t.keys().forEach(i=>{r.set(i,t.get(i),lt.DEFAULTS)});let n=e.metadata;Object.keys(n).forEach(i=>{e.internalGet(i)&&r.set(i,e.internalGet(i),lt.DEFAULTS)})}var qA=O(()=>{Nl()});function Rq(e,t,r){if(!e?.read||e.read.enabled===!1||!e.read.source)return!1;let n=e.read.source;if(typeof n=="string"){if(n===t||n.includes(".")&&n.indexOf(t)===0&&XS(n,r))return!0}else for(let i of n)if(i===t||i.includes(".")&&i.indexOf(t)===0&&XS(i,r))return!0;return!1}function Dq(e){return e&&(!e.read||e.read.enabled!==!1&&!e.read.source)}function Fq(e,t,r,n,i){let o=ky(t[r],i);Dq(o)&&(e[r]=!0);for(let s of Object.getOwnPropertyNames(t))o=ky(t[s],i),Rq(o,r,n)&&(e[s]=!0)}function $q(e,t,r,n){let i=r.metadata,o=ZM(i[t],n),s=o?.default;if(s===void 0)return;let l=typeof s=="function"?s.call(e,t,n):s;l!==void 0&&r.set(t,l)}function HA(e,t,r=Vq){if(!t||typeof t!="object")return;let n=Pi(e),i=n.metadata,o={};for(let s of Object.getOwnPropertyNames(t))Fq(o,i,s,t,r);n.setDefaultOrigin(r.origin);for(let s of Object.getOwnPropertyNames(o)){let l=ky(i[s],r).read,a=l?.source,d;d=a&&typeof a=="string"?Nu(t,a):t[s],l?.reader&&(d=l.reader.call(e,d,t,r)),d!==void 0&&n.set(s,d)}if(!r||!r.ignoreDefaults){n.setDefaultOrigin("defaults");for(let s of Object.getOwnPropertyNames(i))o[s]||$q(e,s,n,r)}n.setDefaultOrigin("user")}var Vq,ZA=O(()=>{Ou();ua();Ny();Vq={origin:"service"}});function Uq(e,t,r,n,i){let o={};return t.write?.writer?.call(e,n,o,r,i),o}function zq(e,t,r,n,i,o){if(!n?.write)return!1;let s=vs(e,r);if(!i&&n.write.overridePolicy){let l=n.write.overridePolicy.call(e,s,r,o??void 0);l!==void 0&&(i=l)}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 l=new je("web-document-write:property-required",`Missing value for required property '${r}' on '${e.declaredClass}'`,{propertyName:r,target:e});return l&&o?.messages?o.messages.push(l):l&&!o&&ot.getLogger("esri.core.accessorSupport.write").error(l.name,l.message),!1}return!(s===void 0||s===null&&!i.allowNull&&!i.writerEnsuresNonNull||!i.alwaysWriteDefaults&&(!t.store.multipleOriginsSupported||t.store.originOf(r)===lt.DEFAULTS)&&Wq(e,r,o,n,s)||!i.ignoreOrigin&&o?.origin&&t.store.multipleOriginsSupported&&t.store.originOf(r)<Dy(o.origin))}function Wq(e,t,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(e,t,r??void 0);return ml(s,i)}return!1}return o===i}function YA(e,t,r){if(e&&typeof e.toJSON=="function"&&(!e.toJSON.isDefaultToJSON||!e.write))return Uf(t,e.toJSON(r));let n=Pi(e),i=n.metadata;for(let o in i){let s=YM(i[o],r);if(!zq(e,n,o,s,void 0,r))continue;let l=vs(e,o),a=Uq(e,s,s.write&&typeof s.write.target=="string"?s.write.target:o,l,r);Object.keys(a).length>0&&(t=Uf(t,a),r?.resources?.pendingOperations?.length&&r.resources.pendingOperations.push(Promise.all(r.resources.pendingOperations).then(()=>Uf(t,a,()=>"replace-arrays"))),r?.writtenProperties&&r.writtenProperties.push({target:e,propName:o,oldOrigin:cA(n.store.originOf(o)),newOrigin:r.origin}))}return t}var JA=O(()=>{hl();Fn();it();Ou();Nl();ua();Ny()});function Bq(e,t){if(!e)return null;if(e.declaredClass)throw new Error("JSON object is already hydrated");let r=new this;return r.read(e,t),r}var XA,Ug,ut,Or=O(()=>{gt();Dl();GA();qA();ZA();ua();JA();ft();XA=e=>{let t=class extends e{constructor(...r){super(...r);let n=Pi(this),i=n.store,o=new Xy;n.store=o,jA(n,i,o)}read(r,n){HA(this,r,n)}write(r,n){return YA(this,r??{},n)}toJSON(r){return this.write({},r)}static fromJSON(r,n){return Bq.call(this,r,n)}};return t=R([Le("esri.core.JSONSupport")],t),t.prototype.toJSON.isDefaultToJSON=!0,t};Ug=class extends XA(Jr){};Ug=R([Le("esri.core.JSONSupport")],Ug),function(e){function t(r){return r&&typeof r=="object"&&"toJSON"in r&&typeof r.toJSON=="function"}e.JSONSupportMixin=XA,e.isSerializable=t}(Ug||(Ug={}));ut=Ug});function Mi(e,t,r){let n,i;return t===void 0||Array.isArray(t)?(i=e,r=t,n=[void 0]):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let l=o.constructor.prototype;n.forEach(a=>{let d=Ey(o,a,i);d.read&&typeof d.read=="object"||(d.read={}),d.read.reader=l[s],r&&(d.read.source=(d.read.source||[]).concat(r))})}}var Yf=O(()=>{yt()});function Gq(e){let t={};for(let r in e)t[e[r]]=r;return t}function QA(e){let t=[];for(let r in e)t.push(r);return t.sort(),t}function Ki(){return function(e,t){return new Rr(e,{ignoreUnknown:!0,...t})}}var Rr,Ai=O(()=>{ws();Rr=class{constructor(t,r={ignoreUnknown:!1,useNumericKeys:!1}){this._jsonToAPI=t,this._options=r,this.apiValues=[],this.jsonValues=[],this._apiToJSON=Gq(t),this.apiValues=QA(this._apiToJSON),this.jsonValues=QA(this._jsonToAPI),this.read=n=>this.fromJSON(n),this.write=(n,i,o)=>{let s=this.toJSON(n);s!==void 0&&oa(o,s,i)},this.write.isJSONMapWriter=!0}toJSON(t){if(t==null)return null;if(this._apiToJSON.hasOwnProperty(t)){let r=this._apiToJSON[t];return this._options.useNumericKeys?+r:r}return this._options.ignoreUnknown?void 0:t}fromJSON(t){return t!=null&&this._jsonToAPI.hasOwnProperty(t)?this._jsonToAPI[t]:this._options.ignoreUnknown?void 0:t}}});var zg,$o,Qy,Ky,ev=O(()=>{zg=class{constructor(t,r,n,i,o,s){this.semiMajorAxis=t,this.flattening=r,this.outerAtmosphereRimWidth=n,this.atmosphereHeight=i,this.scaleHeight=o;let l=1-this.flattening;this.semiMinorAxis=this.semiMajorAxis*l,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}},$o=new zg(6378137,1/298.257223563,3e5,1e5,.085,.006694379990137799),Qy=new zg(3396190,1/169.8944472236118,23e4,6e4,.111),Ky=new zg(1737400,0,0,0,0)});function tv(e){return/\/(sharing|usrsvcs)\/(appservices|servers)\//i.test(e)}function Jf(e){let t=/^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 t.test(e)?e=e.replace(t,"https://www.arcgis.com"):r.test(e)?e=e.replace(r,"https://devext.arcgis.com"):n.test(e)&&(e=e.replace(n,"https://qaext.arcgis.com")),e}var Wg=O(()=>{});function KA(e){let t=new Uint8Array(e),r="";for(let n=0;n<t.length;n++)r+=String.fromCharCode(t[n]);return btoa(r)}var eI=O(()=>{});function eH(){let e=Vn.path,t=e.slice(0,e.lastIndexOf("/")+1);return`${`${Vn.scheme}://${Vn.host}${Vn.port!=null?`:${Vn.port}`:""}`}${t}`}function fa(e){if(!e)return null;let t={path:null,query:null},r=new _n(e),n=e.indexOf("?");return r.query===null?t.path=e:(t.path=e.slice(0,n),t.query=Fl(r.query)),r.fragment&&(t.hash=r.fragment,r.query===null&&(t.path=t.path.slice(0,t.path.length-(r.fragment.length+1)))),t}function Fl(e){let t=e.split("&"),r={};for(let n of t){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 l=r[o];typeof l=="string"&&(l=r[o]=[l]),Array.isArray(l)?l.push(s):r[o]=s}return r}function Fu(e,t){return e?t&&typeof t=="function"?Object.keys(e).map(r=>encodeURIComponent(r)+"="+encodeURIComponent(t(r,e[r]))).join("&"):Object.keys(e).map(r=>{let n=e[r];if(n==null)return"";let i=encodeURIComponent(r)+"=",o=t?.[r];return o?i+encodeURIComponent(o(n)):Array.isArray(n)?n.map(s=>ut.isSerializable(s)?i+encodeURIComponent(JSON.stringify(s)):i+encodeURIComponent(s)).join("&"):ut.isSerializable(n)?i+encodeURIComponent(JSON.stringify(n)):i+encodeURIComponent(n)}).filter(r=>r).join("&"):""}function oI(e=!1){let t,r=Xf.proxyUrl;if(typeof e=="string"){t=rH(e);let n=Kf(e);n&&(r=n.proxyUrl)}else t=!!e;if(!r)throw jq().warn(tI),new je("urlUtils:proxy-not-set",tI);return t&&W4()&&(r=av(r)),fa(r)}function sI(e){let t=e.indexOf("?");return t!==-1?(Bg.path=e.slice(0,t),Bg.query=e.slice(t+1)):(Bg.path=e,Bg.query=null),Bg}function aI(e){return e=(e=cI(e=aH(e=sI(e).path),!0)).toLowerCase()}function lI(e){let t={proxyUrl:e.proxyUrl,urlPrefix:aI(e.urlPrefix)},r=Xf.proxyRules,n=t.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,t),i}function Kf(e){let t=Xf.proxyRules,r=aI(e);for(let n=0;n<t.length;n++)if(r.indexOf(t[n].urlPrefix)===0)return t[n]}function G4(e,t=Xf.interceptors){let r=n=>n==null||n instanceof RegExp&&n.test(e)||typeof n=="string"&&e.startsWith(n);if(t){for(let n of t)if(Array.isArray(n.urls)){if(n.urls.some(r))return n}else if(r(n.urls))return n}return null}function xn(e,t,r=!1){if(!e||!t)return!1;let n=B4(e),i=B4(t);return!(!r&&n.scheme!==i.scheme)&&n.host!=null&&i.host!=null&&n.host.toLowerCase()===i.host.toLowerCase()&&n.port===i.port}function nv(e){if(typeof e=="string"){if(!$l(e))return!0;e=B4(e)}if(xn(e,Vn))return!0;let t=Xf.trustedServers||[];for(let r=0;r<t.length;r++){let n=tH(t[r]);for(let i=0;i<n.length;i++)if(xn(e,n[i]))return!0}return!1}function tH(e){return rv[e]||(q4(e)||Vl(e)?rv[e]=[new _n(eo(e))]:rv[e]=[new _n(`http://${e}`),new _n(`https://${e}`)]),rv[e]}function eo(e,t=iI,r){return Vl(e)?r?.preserveProtocolRelative?e:Vn.scheme==="http"&&Vn.authority===Sn(e).slice(2)?`http:${e}`:`https:${e}`:q4(e)?e:iv(e[0]==="/"?sH(t):t,e)}function j4(e,t=iI,r){if(e==null||!$l(e))return e;let n=pa(e),i=n.toLowerCase(),o=pa(t).toLowerCase().replace(/\/+$/,""),s=r?pa(r).toLowerCase().replace(/\/+$/,""):null;if(s&&o.indexOf(s)!==0)return e;let l=(g,b,S)=>(S=g.indexOf(b,S))===-1?g.length:S,a=l(i,"/",i.indexOf("//")+2),d=-1;for(;i.slice(0,a+1)===o.slice(0,a)+"/"&&(d=a+1,a!==i.length);)a=l(i,"/",a+1);if(d===-1||s&&d<s.length)return e;e=n.slice(d);let h=o.slice(d-1).replaceAll(/[^/]+/g,"").length;if(h>0)for(let g=0;g<h;g++)e=`../${e}`;else e=`./${e}`;return e}function pa(e){return e=uH(e=cH(e=lH(e=eo(e=e.trim()))))}function iv(...e){let t=e.filter(L8);if(!t?.length)return;let r=[];if($l(t[0])){let i=t[0],o=i.indexOf("//");o!==-1&&(r.push(i.slice(0,o+1)),iH(t[0])&&(r[0]+="/"),t[0]=i.slice(o+2))}else t[0][0]==="/"&&r.push("");let n=t.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 Sn(e,t=!1){if(e==null||ov(e)||em(e))return null;let r=e.indexOf("://");if(r===-1&&Vl(e))r=2;else{if(r===-1)return null;r+=3}let n=e.indexOf("/",r);return n!==-1&&(e=e.slice(0,n)),t&&(e=cI(e,!0)),e}function $l(e){return Vl(e)||q4(e)}function ov(e){return e!=null&&e.slice(0,5)==="blob:"}function em(e){return e!=null&&e.slice(0,5)==="data:"}function sv(e){return KA(e).replaceAll("+","-").replaceAll("/","_").replace(/=+$/,"")}function Vl(e){return e!=null&&e[0]==="/"&&e[1]==="/"}function q4(e){return e!=null&&rI.test(e)}function rH(e){return e!=null&&qq.test(e)||Vn.scheme==="https"&&Vl(e)}function nH(e){return e!=null&&nI.test(e)||Vn.scheme==="http"&&Vl(e)}function iH(e){return e!=null&&Hq.test(e)}function av(e){return Vl(e)?`https:${e}`:e.replace(nI,"https:")}function oH(){return Vn.scheme==="http"}function W4(){return Vn.scheme==="https"}function cI(e,t=!1){return Vl(e)?e.slice(2):(e=e.replace(rI,""),t&&e.length>1&&e[0]==="/"&&e[1]==="/"&&(e=e.slice(2)),e)}function sH(e){let t=e.indexOf("//"),r=e.indexOf("/",t+2);return r===-1?e:e.slice(0,r)}function aH(e){return e.endsWith("/")?e:`${e}/`}function lH(e){if(/^https?:\/\//i.test(e)){let t=sI(e);e=(e=t.path.replaceAll(/\/{2,}/g,"/")).replace("/","//"),t.query&&(e+=`?${t.query}`)}return e}function cH(e){return e.replace(/^(https?:\/\/)(arcgis\.com)/i,"$1www.$2")}function uH(e){let t=Xf.httpsDomains;if(!nH(e))return e;let r=e.indexOf("/",7),n;if(n=r===-1?e:e.slice(0,r),n=n.toLowerCase().slice(7),Zq.test(n)){if(!n.endsWith(":80"))return e;n=n.slice(0,-3),e=e.replace(":80","")}return oH()&&n===Vn.authority&&!Yq.test(e)||(W4()&&n===Vn.authority||t&&t.some(i=>n===i||n.endsWith(`.${i}`))||W4()&&!Kf(e))&&(e=av(e)),e}function lv(e,t,r){if(!(t&&r&&e&&$l(e)))return e;let n=e.indexOf("//"),i=e.indexOf("/",n+2),o=e.indexOf(":",n+2),s=Math.min(i<0?e.length:i,o<0?e.length:o);return e.slice(n+2,s).toLowerCase()!==t.toLowerCase()?e:`${e.slice(0,n+2)}${r}${e.slice(s)}`}function B4(e){return typeof e=="string"?new _n(eo(e)):(e.scheme||(e.scheme=Vn.scheme),e)}function tm(e,t){if(!t)return e;let r=fa(e),n=r.query||{};for(let[o,s]of Object.entries(t))s!=null&&(n[o]=s);let i=Fu(n);return i?`${r.path}?${i}`:r.path}function H4(e){if(e==null)return null;let t=e.match(dH);return t?{path:t[1],extension:t[2]}:{path:e,extension:null}}var jq,Xf,tI,rI,nI,qq,Hq,Zq,Yq,Jq,Xq,_n,rv,Qq,Vn,Kq,iI,Qf,Bg,dH,Es=O(()=>{Il();hl();Fn();Or();it();Wg();eI();jq=()=>ot.getLogger("esri.core.urlUtils"),Xf=Mt.request,tI="esri/config: esriConfig.request.proxyUrl is not set.",rI=/^\s*[a-z][a-z0-9-+.]*:(?![0-9])/i,nI=/^\s*http:/i,qq=/^\s*https:/i,Hq=/^\s*file:/i,Zq=/:\d+$/,Yq=/^https?:\/\/[^/]+\.arcgis.com\/sharing(\/|$)/i,Jq=new RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?$"),Xq=new RegExp("^((([^[:]+):)?([^@]+)@)?(\\[([^\\]]+)\\]|([^[:]*))(:([0-9]+))?$"),_n=class{constructor(t=""){this.uri=t,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(Jq);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(Xq),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}},rv={},Qq=new _n(Mt.applicationUrl),Vn=Qq,Kq=eH(),iI=Kq,Qf=()=>Vn;Bg={path:"",query:""};dH=/([^.]*)\.([^/]*)$/});function uI(e){lr=e}var pH,lr,fH,Gg=O(()=>{tt();Es();gy();gy();Symbol.dispose??(Symbol.dispose=Symbol("Symbol.dispose")),Symbol.asyncDispose??(Symbol.asyncDispose=Symbol("Symbol.asyncDispose"));pH="4.32",fH=pH;fH=`4.32.0-next.${hy}`;de("host-webworker")||globalThis.$arcgis||Object.defineProperty(globalThis,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),de("host-webworker")});function dI(e,t){let r=t?.url?.path;if(e&&r&&(e=eo(e,r,{preserveProtocolRelative:!0}),t.portalItem&&t.readResourcePaths)){let n=j4(e,t.portalItem.itemUrl);n!=null&&hH.test(n)&&t.readResourcePaths.push(t.portalItem.resourceFromPath(n).path)}return(e=Z4(e,t?.portal))&&cv.test(e)?hI(e):e}function pI(e,t,r=jg.YES){if((e=e&&cv.test(e)?gI(e):e)==null)return e;!$l(e)&&t?.blockedRelativeUrls&&t.blockedRelativeUrls.push(e);let n=eo(e);if(t){let i=t.verifyItemRelativeUrls?.rootPath||t.url?.path;if(i){let o=Z4(i,t.portal),s=Z4(n,t.portal);n=j4(s,o,o),n!=null&&n!==s&&n!==e&&t.verifyItemRelativeUrls&&t.verifyItemRelativeUrls.writtenUrls.push(n)}}return n=mI(n,t?.portal),$l(n)&&(n=pa(n)),t?.resources&&t?.portalItem&&!$l(n)&&!em(n)&&r===jg.YES&&t.resources.toKeep.push({resource:t.portalItem.resourceFromPath(n),compress:!1}),n}function mH(e,t,r){return dI(e,r)}function fI(e,t,r,n){let i=pI(e,n);i!==void 0&&(t[r]=i)}function gH(e){return(e?.match(cv)??null)?.[1]??null}function wH(e){let t=e?.match(cv)??null;if(t==null)return null;let r=t[2],n=r.lastIndexOf("/");if(n===-1){let{path:s,extension:l}=H4(r);return{prefix:null,filename:s,extension:l}}let{path:i,extension:o}=H4(r.slice(n+1));return{prefix:r.slice(0,n),filename:i,extension:o}}function mI(e,t){return t&&!t.isPortal&&t.urlKey&&t.customBaseUrl?lv(e,`${t.urlKey}.${t.customBaseUrl}`,t.portalHostname):e}function Z4(e,t){if(!t||t.isPortal||!t.urlKey||!t.customBaseUrl)return e;let r=`${t.urlKey}.${t.customBaseUrl}`,n=Qf();return xn(n,`${n.scheme}://${r}`)?lv(e,t.portalHostname,r):lv(e,r,t.portalHostname)}function hI(e){if(!e)return e||null;let t=e;return t&&lr&&!lr.findCredential(t)&&(t=Jf(t),t=t.replace(/^https?:\/\/www\.arcgis\.com/,"https://cdn.arcgis.com"),t=t.replace(/^https?:\/\/devext\.arcgis\.com/,"https://cdndev.arcgis.com"),t=t.replace(/^https?:\/\/qaext\.arcgis\.com/,"https://cdnqa.arcgis.com")),t}function gI(e){if(!e)return e||null;let t=e;return t=t.replace(/^https?:\/\/cdn\.arcgis\.com/,"https://www.arcgis.com"),t=t.replace(/^https?:\/\/cdndev\.arcgis\.com/,"https://devext.arcgis.com"),t=t.replace(/^https?:\/\/cdnqa\.arcgis\.com/,"https://qaext.arcgis.com"),t&&lr&&!lr.findCredential(t)&&(t=Jf(t)),t}var cv,hH,jg,Dhe,wI=O(()=>{Gg();Es();Wg();cv=/\/items\/([^/]+)\/resources\/(.*)/,hH=/^\.\/resources\//;(function(e){e[e.YES=0]="YES",e[e.NO=1]="NO"})(jg||(jg={}));Dhe=Object.freeze(Object.defineProperty({__proto__:null,get MarkKeep(){return jg},ensureMainOnlineDomain:mI,fromCDNUrl:gI,fromJSON:dI,itemIdFromResourceUrl:gH,prefixAndFilenameFromResourceUrl:wH,read:mH,toCDNUrl:hI,toJSON:pI,write:fI},Symbol.toStringTag,{value:"Module"}))});function Y4(e){let t=Sn(e,!0);return!!t&&(t=t.toLowerCase(),t.endsWith(".arcgis.com")&&(t.startsWith("services")||t.startsWith("tiles")||t.startsWith("features")))}var yH,yI,Whe,Bhe,vI=O(()=>{Es();wI();yH={mapserver:"MapServer",imageserver:"ImageServer",featureserver:"FeatureServer",knowledgegraphserver:"KnowledgeGraphServer",sceneserver:"SceneServer",streamserver:"StreamServer",vectortileserver:"VectorTileServer","3dtilesserver":"3DTilesServer",videoserver:"VideoServer"},yI=Object.values(yH),Whe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/rest\\/services\\/(.+?)\\/(${yI.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i"),Bhe=new RegExp(`^((?:https?:)?\\/\\/\\S+?\\/([^/\\n]+)\\/(${yI.join("|")}))(?:\\/(?:layers\\/)?(\\d+))?`,"i")});function bH(e){let t=Sn(e,!0);return!!t&&t.endsWith(".arcgis.com")&&!vH.has(t)&&!e.endsWith("/sharing/rest/generateToken")}function bI(e,t){return!(!t&&!Mt.apiKey||!bH(e))}var vH,_I=O(()=>{Il();Es();vH=new Set(["elevation3d.arcgis.com","js.arcgis.com","jsdev.arcgis.com","jsqa.arcgis.com","static.arcgis.com"])});function SI(e,t,r=!1,n){return new Promise((i,o)=>{if(xs(n))return void o(xI());let s=()=>{d(),o(new Error(`Unable to load ${t}`))},l=()=>{let h=e;d(),i(h)},a=()=>{if(!e)return;let h=e;d(),h.src="",o(xI())},d=()=>{de("esri-image-decode")||(e.removeEventListener("error",s),e.removeEventListener("load",l)),s=null,l=null,e=null,n?.removeEventListener("abort",a),a=null,r&&URL.revokeObjectURL(t)};n?.addEventListener("abort",a),de("esri-image-decode")?e.decode().then(l,s):(e.addEventListener("error",s),e.addEventListener("load",l))})}function xI(){try{return new DOMException("Aborted","AbortError")}catch{let e=new Error;return e.name="AbortError",e}}function EI(){return new Error(_H)}function CI(e){Mt.request.crossOriginNoCorsDomains||(Mt.request.crossOriginNoCorsDomains={});let t=Mt.request.crossOriginNoCorsDomains;for(let r of e)r=r.toLowerCase(),/^https?:\/\//.test(r)?t[Sn(r)??""]=0:(t[Sn("http://"+r)??""]=0,t[Sn("https://"+r)??""]=0)}function TI(e){let t=Mt.request.crossOriginNoCorsDomains;if(t){let r=Sn(e);if(r)return r=r.toLowerCase(),!xn(r,Qf())&&t[r]<Date.now()-36e5}return!1}async function PI(e){let t=fa(e);e=t.path,t.query?.f==="json"&&(e+="?f=json");try{await fetch(e,{mode:"no-cors",credentials:"include"})}catch{}let r=Mt.request.crossOriginNoCorsDomains,n=Sn(e);r&&n&&(r[n.toLowerCase()]=Date.now())}var _H,MI=O(()=>{Il();tt();Qi();Es();_H="Timeout exceeded"});var Cs,qg=O(()=>{w4();Cs=class extends qf{notify(){let t=this._observers;if(t&&t.length>0){let r=t.slice();for(let n of r)n.onInvalidated(),n.onCommitted()}}}});var uv,AI=O(()=>{_s();qg();uv=class{constructor(t=r=>r.values().next().value){this._peeker=t,this._observable=new Cs,this._items=new Set}get length(){return Ve(this._observable),this._items.size}clear(){this.length!==0&&(this._items.clear(),this._observable.notify())}last(){if(this.length===0)return;let t;for(t of this._items);return t}peek(){if(this.length!==0)return this._peeker(this._items)}push(t){this.contains(t)||(this._items.add(t),this._observable.notify())}contains(t){return Ve(this._observable),this._items.has(t)}pop(){if(this.length===0)return;let t=this.peek();return this._items.delete(t),this._observable.notify(),t}popLast(){if(this.length===0)return;let t=this.last();return this._items.delete(t),this._observable.notify(),t}remove(t){this.contains(t)&&(this._items.delete(t),this._observable.notify())}filter(t){let r=this.length;return this._items.forEach(n=>{t(n)||this._items.delete(n)}),r!==this._items.size&&this._observable.notify(),this}*[Symbol.iterator](){Ve(this._observable),yield*this._items}}});var rm,II=O(()=>{_s();qg();rm=class{constructor(t){this._observable=new Cs,this._map=new Map(t)}get size(){return Ve(this._observable),this._map.size}clear(){this._map.size>0&&(this._map.clear(),this._observable.notify())}delete(t){let r=this._map.delete(t);return r&&this._observable.notify(),r}entries(){return Ve(this._observable),this._map.entries()}forEach(t,r){Ve(this._observable),this._map.forEach((n,i)=>t.call(r,n,i,this),r)}get(t){return Ve(this._observable),this._map.get(t)}has(t){return Ve(this._observable),this._map.has(t)}keys(){return Ve(this._observable),this._map.keys()}set(t,r){return this._map.set(t,r),this._observable.notify(),this}values(){return Ve(this._observable),this._map.values()}[Symbol.iterator](){return Ve(this._observable),this._map[Symbol.iterator]()}[Symbol.dispose](){this._observable.destroy()}get[Symbol.toStringTag](){return this._map[Symbol.toStringTag]}}});function LI(e,t=Ww){return new J4(e,t)}var J4,kI=O(()=>{ar();_s();qg();J4=class{constructor(t,r){this._observable=new Cs,this._value=t,this._equalityFunction=r}get value(){return Ve(this._observable),this._value}set value(t){this._equalityFunction(t,this._value)||(this._value=t,this._observable.notify())}mutate(t){t(this._value),this._observable.notify()}}});var X4,dv,NI=O(()=>{tt();da();Qi();AI();II();$g();kI();X4=class{constructor(t,r){this.item=t,this.controller=r,this.promise=null}},dv=class{constructor(t){this._schedule=null,this._task=null,this._deferreds=new rm,this._controllers=new rm,this._processingItems=new rm,this._pausedSignal=LI(!1),this.concurrency=1,t.concurrency&&(this.concurrency=t.concurrency),this._queue=new uv(t.peeker),this.process=t.process;let r=t.scheduler;t.priority&&r&&(this._task=r.registerTask(t.priority,this))}destroy(){this.clear(),this._schedule=kl(this._schedule),this._task=kl(this._task)}get updating(){return!!this._task?.updating||this.running}get length(){return this._processingItems.size+this._queue.length}abort(t){let r=this._controllers.get(t);r&&r.abort()}clear(){this._queue.clear();let t=[];this._controllers.forEach(r=>t.push(r)),this._controllers.clear(),t.forEach(r=>r.abort()),this._processingItems.clear(),this._cancelNext()}forEach(t){this._deferreds.forEach((r,n)=>t(n))}get(t){let r=this._deferreds.get(t);return r?r.promise:void 0}isOngoing(t){return this._processingItems.has(t)}has(t){return this._deferreds.has(t)}pause(){this._pausedSignal.value||(this._pausedSignal.value=!0,this._cancelNext())}push(t,r){let n=this.get(t);if(n)return n;let i=new AbortController,o=null;r&&(o=Jn(r,()=>i.abort()));let s=()=>{let h=this._processingItems.get(t);h&&h.controller.abort(),l(),d.reject(Xn())},l=()=>{a.remove(),o?.remove(),this._removeItem(t),this._queue.remove(t),this._scheduleNext()},a=TA(i.signal,s),d=$n();return this._deferreds.set(t,d),this._controllers.set(t,i),d.promise.then(l,l),this._queue.push(t),this._scheduleNext(),d.promise}last(){return this._queue.last()}lastPromise(){let t=this.last();return t?this.get(t):null}peek(){return this._queue.peek()}popLast(){let t=this._queue.popLast();return t&&(this._deferreds.get(t)?.reject(Xn()),this._removeItem(t)),t}reset(){let t=Array.from(this._processingItems.values());this._processingItems.clear();for(let r of t)this._queue.push(r.item),r.controller.abort();this._scheduleNext()}resume(){this._pausedSignal.value&&(this._pausedSignal.value=!1,this._scheduleNext())}takeAll(){let t=[];for(;this._queue.length;)t.push(this._queue.pop());return this.clear(),t}get running(){return!this._pausedSignal.value&&this._queue.length>0&&this._processingItems.size<this.concurrency}runTask(t){for(;!t.done&&this._queue.length>0&&this._processingItems.size<this.concurrency;)this._process(this._queue.pop()),t.madeProgress()}_removeItem(t){this._deferreds.delete(t),this._controllers.delete(t),this._processingItems.delete(t)}_scheduleNext(){this._task||this._pausedSignal.value||this._schedule||(this._schedule=Zf(()=>{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(t,r){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).resolve(r))}_processError(t,r){this._canProcessFulfillment(t)&&(this._scheduleNext(),this._deferreds.get(t.item).reject(r))}_canProcessFulfillment(t){return!!this._deferreds.get(t.item)&&this._processingItems.get(t.item)===t}_process(t){if(t==null)return;let r,n=new AbortController,i=new X4(t,n);this._processingItems.set(t,i);try{r=this.process(t,n.signal)}catch(o){this._processError(i,o)}M4(r)?(i.promise=r,r.then(o=>this._processResult(i,o),o=>this._processError(i,o))):this._processResult(i,r)}get test(){}}});var OI={};Qs(OI,{execute:()=>xH});function xH(e,t){let r=t.responseType;r?r!=="array-buffer"&&r!=="blob"&&r!=="json"&&r!=="native"&&r!=="native-request-init"&&r!=="text"&&(r="text"):r="json",t.responseType=r;let n=t.signal;return delete t.signal,globalThis.invokeStaticMessage("request",{url:e,options:t},{signal:n}).then(async i=>{let o,s,l,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:e,requestOptions:t};throw new je("request:server",h.message,g)}if(s.error){let h={...s.error,url:e,requestOptions:t};throw new je("request:server",s.error.message,h)}}}else r==="native"&&(i.data.signal=n,l=await fetch(i.data.url,i.data),i.httpStatus=l.status);switch(r){case"blob":d=o;break;case"json":d=s;break;case"native":d=l;break;case"text":d=a;break;default:d=i.data}return{data:d,httpStatus:i.httpStatus,requestOptions:t,ssl:i.ssl,url:e}})}var RI=O(()=>{Fn()});var Vo,pv=O(()=>{gt();Dl();ci();ft();Vo=class e{constructor(){this._emitter=new e.EventEmitter(this)}emit(t,r){return this._emitter.emit(t,r)}on(t,r){return this._emitter.on(t,r)}once(t,r){return this._emitter.once(t,r)}hasEventListener(t){return this._emitter.hasEventListener(t)}};(function(e){class t{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 l=this._target||this,a=!1;for(let d of s.slice()){let h="deref"in d?d.deref():d;h?h?.call(l,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 l=i.map(a=>this.on(a,o));return ku(l)}if(i.includes(","))throw new TypeError("Evented.on() with a comma delimited string of event types is not supported");this._listenersMap??(this._listenersMap=new Map);let s=this._listenersMap.get(i)||[];return s.push(o),this._listenersMap.set(i,s),Pt(()=>{let l=this._listenersMap?.get(i),a=l?.indexOf(o)??-1;a>=0&&l.splice(a,1)})}once(i,o){let s=this.on(i,l=>{s.remove(),("deref"in o?o.deref():o)?.call(null,l)});return s}hasEventListener(i){let o=this._listenersMap?.get(i);return o!=null&&o.length>0}}e.EventEmitter=t,e.EventedMixin=n=>{let i=class extends n{constructor(){super(...arguments),this._emitter=new t}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=R([Le("esri.core.Evented")],i),i};let r=class extends Jr{constructor(){super(...arguments),this._emitter=new Vo.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=R([Le("esri.core.Evented.EventedAccessor")],r),e.EventedAccessor=r})(Vo)});var Q4,DI=O(()=>{Q4=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 SH(e){return"timeZoneIANA"in e}function EH(e){return e.startsWith("UTC")}function fv(e,t=Uo){return e?SH(e)?e.timeZoneIANA:CH(e,t):t}function CH(e,t=Uo){if(!e||!Q4.has(e.timeZone))return t;let r=Q4.get(e.timeZone);return EH(e.timeZone)||e.respectsDaylightSaving?r:TH(r)}function TH(e){let t=Ce.local().setZone(e),r=Math.min(t.set({month:1,day:1}).offset,t.set({month:5}).offset);return r===0?"Etc/UTC":`Etc/GMT${Rt.instance(-r).formatOffset(0,"narrow")}`}var Uo,$u,nm,FI,Hg=O(()=>{DI();Dn();Uo="system",$u="unknown",nm="UTC",FI=Intl.DateTimeFormat().resolvedOptions().timeZone});function IH(e){let t=K4.get(e);if(!t){let r=Ji(),n=MH[r]||r,i=mv(e.timeZone??Uo),o={...e,timeZone:i};t=new Intl.DateTimeFormat(n,o),K4.set(e,t)}return t}function im(e,t=AH){return IH(t).format(e)}function mv(e){switch(e){case Uo:return FI;case $u:return nm;default:return e}}var Ts,Zg,Yg,Jg,Ul,Vu,$I,Xg,Qg,PH,Dge,MH,K4,AH,hv=O(()=>{Ai();Ml();Hg();Dn();Ts={year:"numeric",month:"numeric",day:"numeric"},Zg={year:"numeric",month:"long",day:"numeric"},Yg={year:"numeric",month:"short",day:"numeric"},Jg={year:"numeric",month:"long",weekday:"long",day:"numeric"},Ul={hour:"numeric",minute:"numeric"},Vu={...Ul,second:"numeric"},$I={hourCycle:"h23"},Xg={...Ul,...$I},Qg={...Vu,...$I},PH={"short-date":Ts,"short-date-short-time":{...Ts,...Ul},"short-date-short-time-24":{...Ts,...Xg},"short-date-long-time":{...Ts,...Vu},"short-date-long-time-24":{...Ts,...Qg},"short-date-le":Ts,"short-date-le-short-time":{...Ts,...Ul},"short-date-le-short-time-24":{...Ts,...Xg},"short-date-le-long-time":{...Ts,...Vu},"short-date-le-long-time-24":{...Ts,...Qg},"long-month-day-year":Zg,"long-month-day-year-short-time":{...Zg,...Ul},"long-month-day-year-short-time-24":{...Zg,...Xg},"long-month-day-year-long-time":{...Zg,...Vu},"long-month-day-year-long-time-24":{...Zg,...Qg},"day-short-month-year":Yg,"day-short-month-year-short-time":{...Yg,...Ul},"day-short-month-year-short-time-24":{...Yg,...Xg},"day-short-month-year-long-time":{...Yg,...Vu},"day-short-month-year-long-time-24":{...Yg,...Qg},"long-date":Jg,"long-date-short-time":{...Jg,...Ul},"long-date-short-time-24":{...Jg,...Xg},"long-date-long-time":{...Jg,...Vu},"long-date-long-time-24":{...Jg,...Qg},"long-month-year":{month:"long",year:"numeric"},"short-month-year":{month:"short",year:"numeric"},year:{year:"numeric"},"short-time":Ul,"long-time":Vu},Dge=Ki()({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"}),MH={ar:"ar-u-nu-latn-ca-gregory"},K4=new WeakMap,AH=PH["short-date-short-time"];Df(()=>{K4=new WeakMap})});function kH(e){let t=e||VI;if(!gv.has(t)){let r=Ji(),n=LH[Ji()]||r;gv.set(t,new Intl.NumberFormat(n,e))}return gv.get(t)}function om(e,t){return Object.is(e,-0)&&(e=0),kH(t).format(e)}var LH,gv,VI,e5=O(()=>{Ml();LH={ar:"ar-u-nu-latn"},gv=new WeakMap,VI={};Df(()=>{gv=new WeakMap,VI={}})});function t5(e,t,r={}){let{format:n={}}=r;return ys(e,i=>NH(i,t,n))}function NH(e,t,r){let n,i,o=e.indexOf(":");if(o===-1?n=e.trim():(n=e.slice(0,o).trim(),i=e.slice(o+1).trim()),!n)return"";let s=qi(n,t);if(s==null)return"";let l=(i?r?.[i]:null)??r?.[n];return l?OH(s,l):i?RH(s,i):r5(s)}function OH(e,t){switch(t.type){case"date":return im(e,t.intlOptions);case"number":return om(e,t.intlOptions);default:return UI().warn("missing format descriptor for key {key}"),r5(e)}}function RH(e,t){switch(t.toLowerCase()){case"dateformat":return im(e);case"numberformat":return om(e);default:return UI().warn(`inline format is unsupported since 4.12: ${t}`),/^(dateformat|datestring)/i.test(t)?im(e):/^numberformat/i.test(t)?om(e):r5(e)}}function r5(e){switch(typeof e){case"string":return e;case"number":return om(e);case"boolean":return""+e;default:return e instanceof Date?im(e):""}}var UI,n5=O(()=>{it();ws();gl();hv();e5();UI=()=>ot.getLogger("esri.intl.substitute")});function DH(e){return e in GI}function WI(e){if(DH(e)){let t=GI[e];return t===!0?e:t}return null}function BI(e){for(let t of sm.keys())qI(e.pattern,t)&&sm.delete(t)}function jI(e){return Kg.includes(e)||(BI(e),Kg.unshift(e)),Pt(()=>{let t=Kg.indexOf(e);t>-1&&(Kg.splice(t,1),BI(e))})}async function i5(e){let t=Ji();sm.has(e)||sm.set(e,FH(e,t));let r=sm.get(e);return r&&await $H.add(r),r}function o5(e){if(!zI.test(e))return null;let t=zI.exec(e);if(t===null)return null;let[,r,n]=t;return WI(r+(n?"-"+n.toUpperCase():""))??WI(r)}async function FH(e,t){let r=[];for(let n of Kg)if(qI(n.pattern,e))try{return await n.fetchMessageBundle(e,t)}catch(i){r.push(i)}throw r.length?new je("intl:message-bundle-error",`Errors occurred while loading "${e}"`,{errors:r}):new je("intl:no-message-bundle-loader",`No loader found for message bundle "${e}"`)}function qI(e,t){return typeof e=="string"?t.startsWith(e):e.test(t)}var zI,GI,Kg,sm,$H,e1=O(()=>{Fn();ci();Qi();Ml();zI=/^([a-z]{2})(?:[-_]([A-Za-z]{2}))?$/,GI={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};Kg=[],sm=new Map;Df(()=>{sm.clear()});$H=new class{constructor(){this._numLoading=0,this._dfd=null}async waitForAll(){this._dfd&&await this._dfd.promise}add(e){return this._increase(),e.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 VH(e,t,r,n){let i=t.exec(r);if(!i)throw new je("esri-intl:invalid-bundle",`Bundle id "${r}" is not compatible with the pattern "${t}"`);let o=i[1]?`${i[1]}/`:"",s=i[2],l=o5(n),a=`${o}${s}.json`,d=l?`${o}${s}_${l}.json`:a,h;try{h=await HI(e(d))}catch(g){if(d===a)throw new je("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:g});try{h=await HI(e(a))}catch(b){throw new je("intl:unknown-bundle",`Bundle "${r}" cannot be loaded`,{error:b})}}return h}async function HI(e){if(ZI.fetchBundleAsset!=null)return ZI.fetchBundleAsset(e);let t=await yr(e,{responseType:"text"});return JSON.parse(t.data)}function YI(e){return new s5(e)}var s5,ZI,JI=O(()=>{wv();Fn();e1();s5=class{constructor({base:t="",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,t=t?t.endsWith("/")?t:t+"/":"",this.matcher=new RegExp(`^${t}(?:(.*)\\/)?(.*)$`)}fetchMessageBundle(t,r){return VH(this.getAssetUrl,this.matcher,t,r)}};ZI={}});var a5=O(()=>{hv();e5();n5();Ml();e1();e1();JI();yv();jI(YI({pattern:"esri/",location:am}))});function XI(e){return typeof e=="string"?document.getElementById(e):e??null}var QI=O(()=>{});var zl,l5,KI,t1,eL,tL=O(()=>{gt();Dl();Qi();ft();(function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"})(zl||(zl={}));l5=class{constructor(){this._resolver=$n(),this._status=zl.PENDING,this._resolvingPromises=[],this._resolver.promise.then(()=>{this._status=zl.RESOLVED,this._cleanUp()},()=>{this._status=zl.REJECTED,this._cleanUp()}),this.promise=this._resolver.promise}destroy(){this._cleanUp()}addResolvingPromise(t){this._resolvingPromises.push(t),this._tryResolve()}isResolved(){return this._status===zl.RESOLVED}isRejected(){return this._status===zl.REJECTED}isFulfilled(){return this._status!==zl.PENDING}abort(){this._resolver.reject(Xn())}_cleanUp(){this._allPromise=null,this._resolvingPromises=null}_tryResolve(){if(this.isFulfilled())return;let t=$n(),r=[...this._resolvingPromises,t.promise],n=this._allPromise=Promise.all(r);n.then(()=>{this.isFulfilled()||this._allPromise!==n||this._resolver.resolve()},i=>{this.isFulfilled()||this._allPromise!==n||Rg(i)||this._resolver.reject(i)}),t.resolve()}},KI=e=>{let t=class extends e{constructor(...r){super(...r),this._promiseProps=new l5,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 t=R([Le("esri.core.Promise")],t),t},t1=class extends KI(Jr){};t1=R([Le("esri.core.Promise")],t1),function(e){e.EsriPromiseMixin=KI}(t1||(t1={}));eL=t1});function UH(e){return{ok:!0,value:e}}function zH(e){return{ok:!1,error:e}}function WH(e){return e!=null&&e.ok===!0?e.value:null}function BH(e){return e!=null&&e.ok===!1?e.error:null}var Uu,rL=O(()=>{gt();Dl();da();Qi();yt();ft();Uu=class extends Jr{get value(){return WH(this._result)}get error(){return BH(this._result)}get finished(){return this._result!=null}constructor(e,t){super({}),this._result=null,this._abortHandle=null,this.abort=()=>{this._abortController=aA(this._abortController)},this.remove=this.abort,this._abortController=new AbortController;let{signal:r}=this._abortController;this.promise=e(r),this.promise.then(n=>{this._result=UH(n),this._cleanup()},n=>{this._result=zH(n),this._cleanup()}),this._abortHandle=Jn(t,this.abort)}normalizeCtorArgs(){return{}}destroy(){this.abort()}_cleanup(){this._abortHandle=kl(this._abortHandle),this._abortController=null}};R([V()],Uu.prototype,"value",null),R([V()],Uu.prototype,"error",null),R([V()],Uu.prototype,"finished",null),R([V()],Uu.prototype,"promise",void 0),R([V()],Uu.prototype,"_result",void 0),Uu=R([Le("esri.core.asyncUtils.ReactiveTask")],Uu)});var _t,nL=O(()=>{(function(e){e[e.ADD=1]="ADD",e[e.REMOVE=2]="REMOVE",e[e.MOVE=4]="MOVE"})(_t||(_t={}))});function iL(e){return(t,r)=>{t[r]=e}}var oL=O(()=>{});function sL(e){e&&typeof e=="object"&&"destroy"in e&&typeof e.destroy=="function"&&e.destroy()}function c5(e){return e?e instanceof jl?e.toArray():e.length?Array.prototype.slice.apply(e):[]:[]}function u5(e){if(e?.length)return e[0]}function GH(e,t,r,n){let i=Math.min(e.length-r,t.length-n),o=0;for(;o<i&&e[r+o]===t[n+o];)o++;return o}function aL(e,t,r,n){t&&t.forEach((i,o,s)=>{e.push(i),aL(e,r.call(n,i,o,s),r,n)})}var ma,p5,f5,to,Wl,Bl,Gl,d5,jH,jl,lL=O(()=>{gt();zy();pv();ci();ar();Mg();nL();$g();Xi();_s();yt();oL();ft();qg();p5=class{constructor(){this.target=null,this.cancellable=!1,this.defaultPrevented=!1,this.item=void 0,this.type=void 0}preventDefault(){this.cancellable&&(this.defaultPrevented=!0)}reset(t){this.defaultPrevented=!1,this.item=t}},f5=class{constructor(t,r,n,i,o){this.target=t,this.added=r,this.removed=n,this.start=i,this.deleteCount=o}},to=new Fo(p5,void 0,e=>{e.item=null,e.target=null,e.defaultPrevented=!1,e.cancellable=!1});Wl=new Set,Bl=new Set,Gl=new Set,d5=new Map,jH=0,jl=ma=class extends Vo.EventedAccessor{static isCollection(e){return e!=null&&e instanceof ma}constructor(e){super(e),this._chgListeners=[],this._notifications=null,this._updating=!1,this._timer=null,this._observable=new Cs,this.length=0,this._items=[],Object.defineProperty(this,"uid",{value:jH++})}normalizeCtorArgs(e){return e?Array.isArray(e)||e instanceof ma?{items:e}:e:{}}destroy(){this._removeAllRaw(),this._timer&&this._timer.remove(),this._emitter.destroy(),this._notifications=null}*[Symbol.iterator](){yield*this.items}get items(){return Ve(this._observable),this._items}set items(e){this._emitBeforeChanges(_t.ADD)||(this._splice(0,this.length,c5(e)),this._emitAfterChanges(_t.ADD))}hasEventListener(e){return!this.destroyed&&(e==="change"?this._chgListeners.length>0:this._emitter.hasEventListener(e))}on(e,t){if(this.destroyed)return Pt();if(e==="change"){let r=this._chgListeners,n={removed:!1,callback:t};return r.push(n),this._notifications&&this._notifications.push({listeners:r.slice(),items:this._items.slice(),changes:[]}),Pt(()=>{n.removed=!0,r.splice(r.indexOf(n),1)})}return this._emitter.on(e,t)}once(e,t){let r="deref"in t?()=>t.deref():()=>t,n=this.on(e,i=>{r()?.call(null,i),n.remove()});return n}add(e,t){if(Ve(this._observable),this._emitBeforeChanges(_t.ADD))return this;let r=this.getNextIndex(t??null);return this._splice(r,0,[e]),this._emitAfterChanges(_t.ADD),this}addMany(e,t=this._items.length){if(Ve(this._observable),!e?.length)return this;if(this._emitBeforeChanges(_t.ADD))return this;let r=this.getNextIndex(t);return this._splice(r,0,c5(e)),this._emitAfterChanges(_t.ADD),this}at(e){if(Ve(this._observable),(e=Math.trunc(e)||0)<0&&(e+=this.length),!(e<0||e>=this.length))return this._items[e]}removeAll(){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return[];let e=this._removeAllRaw();return this._emitAfterChanges(_t.REMOVE),e}_removeAllRaw(){return this.length===0?[]:this._splice(0,this.length)||[]}clone(){return Ve(this._observable),this._createNewInstance({items:this._items.map(Je)})}concat(...e){Ve(this._observable);let t=e.map(c5);return this._createNewInstance({items:this._items.concat(...t)})}drain(e,t){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let r=this._splice(0,this.length),n=r.length;for(let i=0;i<n;i++)e.call(t,r[i],i,r);this._emitAfterChanges(_t.REMOVE)}destroyAll(){this.drain(sL)}destroyMany(e){let t=this.removeMany(e);return t.forEach(sL),t}every(e,t){return Ve(this._observable),this._items.every(e,t)}filter(e,t){Ve(this._observable);let r=arguments.length===2?this._items.filter(e,t):this._items.filter(e);return this._createNewInstance({items:r})}find(e,t){return Ve(this._observable),this._items.find(e,t)}findIndex(e,t){return Ve(this._observable),this._items.findIndex(e,t)}flatten(e,t){Ve(this._observable);let r=[];return aL(r,this,e,t),new ma(r)}forEach(e,t){return Ve(this._observable),this._items.forEach(e,t)}getItemAt(e){return Ve(this._observable),this._items[e]}getNextIndex(e){Ve(this._observable);let t=this.length;return(e=e??t)<0?e=0:e>t&&(e=t),e}includes(e,t=0){return Ve(this._observable),this._items.includes(e,t)}indexOf(e,t=0){return Ve(this._observable),this._items.indexOf(e,t)}join(e=","){return Ve(this._observable),this._items.join(e)}lastIndexOf(e,t=this.length-1){return Ve(this._observable),this._items.lastIndexOf(e,t)}map(e,t){Ve(this._observable);let r=this._items.map(e,t);return new ma({items:r})}reorder(e,t=this.length-1){Ve(this._observable);let r=this.indexOf(e);if(r!==-1){if(t<0?t=0:t>=this.length&&(t=this.length-1),r!==t){if(this._emitBeforeChanges(_t.MOVE))return e;this._splice(r,1),this._splice(t,0,[e]),this._emitAfterChanges(_t.MOVE)}return e}}pop(){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let e=u5(this._splice(this.length-1,1));return this._emitAfterChanges(_t.REMOVE),e}push(...e){return Ve(this._observable),this._emitBeforeChanges(_t.ADD)||(this._splice(this.length,0,e),this._emitAfterChanges(_t.ADD)),this.length}reduce(e,t){Ve(this._observable);let r=this._items;return arguments.length===2?r.reduce(e,t):r.reduce(e)}reduceRight(e,t){Ve(this._observable);let r=this._items;return arguments.length===2?r.reduceRight(e,t):r.reduceRight(e)}remove(e){return Ve(this._observable),this.removeAt(this.indexOf(e))}removeAt(e){if(Ve(this._observable),e<0||e>=this.length||this._emitBeforeChanges(_t.REMOVE))return;let t=u5(this._splice(e,1));return this._emitAfterChanges(_t.REMOVE),t}removeMany(e){if(Ve(this._observable),!e?.length||this._emitBeforeChanges(_t.REMOVE))return[];let t=e instanceof ma?e.toArray():e,r=this._items,n=[],i=t.length;for(let o=0;o<i;o++){let s=t[o],l=r.indexOf(s);if(l>-1){let a=1+GH(t,r,o+1,l+1),d=this._splice(l,a);d&&d.length>0&&n.push.apply(n,d),o+=a-1}}return this._emitAfterChanges(_t.REMOVE),n}reverse(){if(Ve(this._observable),this._emitBeforeChanges(_t.MOVE))return this;let e=this._splice(0,this.length);return e&&(e.reverse(),this._splice(0,0,e)),this._emitAfterChanges(_t.MOVE),this}shift(){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.REMOVE))return;let e=u5(this._splice(0,1));return this._emitAfterChanges(_t.REMOVE),e}slice(e=0,t=this.length){return Ve(this._observable),this._createNewInstance({items:this._items.slice(e,t)})}some(e,t){return Ve(this._observable),this._items.some(e,t)}sort(e){if(Ve(this._observable),!this.length||this._emitBeforeChanges(_t.MOVE))return this;let t=this._splice(0,this.length);return arguments.length?t.sort(e):t.sort(),this._splice(0,0,t),this._emitAfterChanges(_t.MOVE),this}splice(e,t,...r){Ve(this._observable);let n=(t?_t.REMOVE:0)|(r.length?_t.ADD:0);if(this._emitBeforeChanges(n))return[];let i=this._splice(e,t,r)||[];return this._emitAfterChanges(n),i}toArray(){return Ve(this._observable),this._items.slice()}toJSON(){return Ve(this._observable),this.toArray()}toLocaleString(){return Ve(this._observable),this._items.toLocaleString()}toString(){return Ve(this._observable),this._items.toString()}unshift(...e){return Ve(this._observable),!e.length||this._emitBeforeChanges(_t.ADD)||(this._splice(0,0,e),this._emitAfterChanges(_t.ADD)),this.length}_createNewInstance(e){return new this.constructor(e)}_splice(e,t,r){let n=this._items,i=this.itemType,o,s;if(!this._notifications&&this.hasEventListener("change")&&(this._notifications=[{listeners:this._chgListeners.slice(),items:this._items.slice(),changes:[]}],this._timer&&this._timer.remove(),this._updating=!0,this._timer=Zf(()=>this._dispatchChange())),e<0&&(e+=this.length),t){if(s=n.splice(e,t),this.hasEventListener("before-remove")){let l=to.acquire();l.target=this,l.cancellable=!0;for(let a=0,d=s.length;a<d;a++)o=s[a],l.reset(o),this.emit("before-remove",l),l.defaultPrevented&&(s.splice(a,1),n.splice(e,0,o),e+=1,a-=1,d-=1);to.release(l)}if(this.length=this._items.length,this.hasEventListener("after-remove")){let l=to.acquire();l.target=this,l.cancellable=!1;let a=s.length;for(let d=0;d<a;d++)l.reset(s[d]),this.emit("after-remove",l);to.release(l)}}if(r?.length){if(i){let h=[];for(let g of r){let b=i.ensureType(g);b==null&&g!=null||h.push(b)}r=h}let l=this.hasEventListener("before-add"),a=this.hasEventListener("after-add"),d=e===this.length;if(l||a){let h=to.acquire();h.target=this,h.cancellable=!0;let g=to.acquire();g.target=this,g.cancellable=!1;for(let b of r)l?(h.reset(b),this.emit("before-add",h),h.defaultPrevented||(d?n.push(b):n.splice(e++,0,b),this._set("length",n.length),a&&(g.reset(b),this.emit("after-add",g)))):(d?n.push(b):n.splice(e++,0,b),this._set("length",n.length),g.reset(b),this.emit("after-add",g));to.release(g),to.release(h)}else{if(d)for(let h of r)n.push(h);else n.splice(e,0,...r);this._set("length",n.length)}}if((r?.length||s?.length)&&this._notifyChangeEvent(r,s),this.hasEventListener("after-splice")){let l=new f5(this,r,s,e,t);this.emit("after-splice",l)}return s}_emitBeforeChanges(e){let t=!1;if(this.hasEventListener("before-changes")){let r=to.acquire();r.target=this,r.cancellable=!0,r.type=e,this.emit("before-changes",r),t=r.defaultPrevented,to.release(r)}return t}_emitAfterChanges(e){if(this.hasEventListener("after-changes")){let t=to.acquire();t.target=this,t.cancellable=!1,t.type=e,this.emit("after-changes",t),to.release(t)}this._observable.notify()}_notifyChangeEvent(e,t){this.hasEventListener("change")&&this._notifications&&this._notifications[this._notifications.length-1].changes.push({added:e,removed:t})}get updating(){return this._updating}_dispatchChange(){if(this._timer&&(this._timer.remove(),this._timer=null),this._updating=!1,!this._notifications)return;let e=this._notifications;this._notifications=null;for(let t of e){let r=t.changes;Wl.clear(),Bl.clear(),Gl.clear();for(let{added:a,removed:d}of r){if(a)if(Gl.size===0&&Bl.size===0)for(let h of a)Wl.add(h);else for(let h of a)Bl.has(h)?(Gl.add(h),Bl.delete(h)):Gl.has(h)||Wl.add(h);if(d)if(Gl.size===0&&Wl.size===0)for(let h of d)Bl.add(h);else for(let h of d)Wl.has(h)?Wl.delete(h):(Gl.delete(h),Bl.add(h))}let n=Yn.acquire();Wl.forEach(a=>{n.push(a)});let i=Yn.acquire();Bl.forEach(a=>{i.push(a)});let o=this._items,s=t.items,l=Yn.acquire();if(Gl.forEach(a=>{s.indexOf(a)!==o.indexOf(a)&&l.push(a)}),t.listeners&&(n.length||i.length||l.length)){let a={target:this,added:n,removed:i,moved:l},d=t.listeners.length;for(let h=0;h<d;h++){let g=t.listeners[h];g.removed||g.callback.call(this,a)}}Yn.release(n),Yn.release(i),Yn.release(l)}Wl.clear(),Bl.clear(),Gl.clear()}};jl.ofType=e=>{if(!e)return ma;if(d5.has(e))return d5.get(e);let t=null;if(typeof e=="function")t=e.prototype.declaredClass;else if(e.base)t=e.base.prototype.declaredClass;else for(let n in e.typeMap){let i=e.typeMap[n].prototype.declaredClass;t?t+=` | ${i}`:t=i}let r=class extends ma{};return R([iL({Type:e,ensureType:typeof e=="function"?ui(e):Ro(e)})],r.prototype,"itemType",void 0),r=R([Le(`esri.core.Collection<${t}>`)],r),d5.set(e,r),r},R([V()],jl.prototype,"_updating",void 0),R([V()],jl.prototype,"length",void 0),R([V()],jl.prototype,"items",null),R([V({readOnly:!0})],jl.prototype,"updating",null),jl=ma=R([Le("esri.core.Collection")],jl)});function r1(e,t,r={}){return uL(e,t,r,qH)}function cL(e,t,r={}){return uL(e,t,r,HH)}function uL(e,t,r={},n){let i=null,o=r.once?(s,l)=>{n(s)&&(kl(i),t(s,l))}:(s,l)=>{n(s)&&t(s,l)};if(i=zA(e,o,r.sync,r.equals),r.initial){let s=e();o(s,s)}return i}function qH(e){return!0}function HH(e){return!!e}var vv,m5=O(()=>{rL();lL();Ng();ci();da();Qi();V4();$4();vv={sync:!0,initial:!0}});function dL(){if(ZH)return crypto.randomUUID();let e=crypto.getRandomValues(new Uint16Array(8));e[3]=4095&e[3]|16384,e[4]=16383&e[4]|32768;let t=r=>e[r].toString(16).padStart(4,"0");return t(0)+t(1)+"-"+t(2)+"-"+t(3)+"-"+t(4)+"-"+t(5)+t(6)+t(7)}var ZH,pL=O(()=>{ZH="randomUUID"in crypto});function JH(e){let t="__accessorMetadata__"in e?ui(e):e;return function(...r){if(r.push(t),typeof r[2]=="number")throw new Error("Using @cast has parameter decorator is not supported since 4.16");return XH.apply(this,r)}}function XH(e,t,r,n){zf(e,t).cast=n}function QH(e){return(t,r)=>{zf(t,e).cast=t[r]}}function ha(...e){if(e.length!==3||typeof e[1]!="string")return e.length===1&&YH.call(e[0])==="[object Function]"?JH(e[0]):e.length===1&&typeof e[0]=="string"?QH(e[0]):void 0}var YH,n1=O(()=>{Xi();Wf();YH=Object.prototype.toString});function wL(){var e={};return e["align-content"]=!1,e["align-items"]=!1,e["align-self"]=!1,e["alignment-adjust"]=!1,e["alignment-baseline"]=!1,e.all=!1,e["anchor-point"]=!1,e.animation=!1,e["animation-delay"]=!1,e["animation-direction"]=!1,e["animation-duration"]=!1,e["animation-fill-mode"]=!1,e["animation-iteration-count"]=!1,e["animation-name"]=!1,e["animation-play-state"]=!1,e["animation-timing-function"]=!1,e.azimuth=!1,e["backface-visibility"]=!1,e.background=!0,e["background-attachment"]=!0,e["background-clip"]=!0,e["background-color"]=!0,e["background-image"]=!0,e["background-origin"]=!0,e["background-position"]=!0,e["background-repeat"]=!0,e["background-size"]=!0,e["baseline-shift"]=!1,e.binding=!1,e.bleed=!1,e["bookmark-label"]=!1,e["bookmark-level"]=!1,e["bookmark-state"]=!1,e.border=!0,e["border-bottom"]=!0,e["border-bottom-color"]=!0,e["border-bottom-left-radius"]=!0,e["border-bottom-right-radius"]=!0,e["border-bottom-style"]=!0,e["border-bottom-width"]=!0,e["border-collapse"]=!0,e["border-color"]=!0,e["border-image"]=!0,e["border-image-outset"]=!0,e["border-image-repeat"]=!0,e["border-image-slice"]=!0,e["border-image-source"]=!0,e["border-image-width"]=!0,e["border-left"]=!0,e["border-left-color"]=!0,e["border-left-style"]=!0,e["border-left-width"]=!0,e["border-radius"]=!0,e["border-right"]=!0,e["border-right-color"]=!0,e["border-right-style"]=!0,e["border-right-width"]=!0,e["border-spacing"]=!0,e["border-style"]=!0,e["border-top"]=!0,e["border-top-color"]=!0,e["border-top-left-radius"]=!0,e["border-top-right-radius"]=!0,e["border-top-style"]=!0,e["border-top-width"]=!0,e["border-width"]=!0,e.bottom=!1,e["box-decoration-break"]=!0,e["box-shadow"]=!0,e["box-sizing"]=!0,e["box-snap"]=!0,e["box-suppress"]=!0,e["break-after"]=!0,e["break-before"]=!0,e["break-inside"]=!0,e["caption-side"]=!1,e.chains=!1,e.clear=!0,e.clip=!1,e["clip-path"]=!1,e["clip-rule"]=!1,e.color=!0,e["color-interpolation-filters"]=!0,e["column-count"]=!1,e["column-fill"]=!1,e["column-gap"]=!1,e["column-rule"]=!1,e["column-rule-color"]=!1,e["column-rule-style"]=!1,e["column-rule-width"]=!1,e["column-span"]=!1,e["column-width"]=!1,e.columns=!1,e.contain=!1,e.content=!1,e["counter-increment"]=!1,e["counter-reset"]=!1,e["counter-set"]=!1,e.crop=!1,e.cue=!1,e["cue-after"]=!1,e["cue-before"]=!1,e.cursor=!1,e.direction=!1,e.display=!0,e["display-inside"]=!0,e["display-list"]=!0,e["display-outside"]=!0,e["dominant-baseline"]=!1,e.elevation=!1,e["empty-cells"]=!1,e.filter=!1,e.flex=!1,e["flex-basis"]=!1,e["flex-direction"]=!1,e["flex-flow"]=!1,e["flex-grow"]=!1,e["flex-shrink"]=!1,e["flex-wrap"]=!1,e.float=!1,e["float-offset"]=!1,e["flood-color"]=!1,e["flood-opacity"]=!1,e["flow-from"]=!1,e["flow-into"]=!1,e.font=!0,e["font-family"]=!0,e["font-feature-settings"]=!0,e["font-kerning"]=!0,e["font-language-override"]=!0,e["font-size"]=!0,e["font-size-adjust"]=!0,e["font-stretch"]=!0,e["font-style"]=!0,e["font-synthesis"]=!0,e["font-variant"]=!0,e["font-variant-alternates"]=!0,e["font-variant-caps"]=!0,e["font-variant-east-asian"]=!0,e["font-variant-ligatures"]=!0,e["font-variant-numeric"]=!0,e["font-variant-position"]=!0,e["font-weight"]=!0,e.grid=!1,e["grid-area"]=!1,e["grid-auto-columns"]=!1,e["grid-auto-flow"]=!1,e["grid-auto-rows"]=!1,e["grid-column"]=!1,e["grid-column-end"]=!1,e["grid-column-start"]=!1,e["grid-row"]=!1,e["grid-row-end"]=!1,e["grid-row-start"]=!1,e["grid-template"]=!1,e["grid-template-areas"]=!1,e["grid-template-columns"]=!1,e["grid-template-rows"]=!1,e["hanging-punctuation"]=!1,e.height=!0,e.hyphens=!1,e.icon=!1,e["image-orientation"]=!1,e["image-resolution"]=!1,e["ime-mode"]=!1,e["initial-letters"]=!1,e["inline-box-align"]=!1,e["justify-content"]=!1,e["justify-items"]=!1,e["justify-self"]=!1,e.left=!1,e["letter-spacing"]=!0,e["lighting-color"]=!0,e["line-box-contain"]=!1,e["line-break"]=!1,e["line-grid"]=!1,e["line-height"]=!1,e["line-snap"]=!1,e["line-stacking"]=!1,e["line-stacking-ruby"]=!1,e["line-stacking-shift"]=!1,e["line-stacking-strategy"]=!1,e["list-style"]=!0,e["list-style-image"]=!0,e["list-style-position"]=!0,e["list-style-type"]=!0,e.margin=!0,e["margin-bottom"]=!0,e["margin-left"]=!0,e["margin-right"]=!0,e["margin-top"]=!0,e["marker-offset"]=!1,e["marker-side"]=!1,e.marks=!1,e.mask=!1,e["mask-box"]=!1,e["mask-box-outset"]=!1,e["mask-box-repeat"]=!1,e["mask-box-slice"]=!1,e["mask-box-source"]=!1,e["mask-box-width"]=!1,e["mask-clip"]=!1,e["mask-image"]=!1,e["mask-origin"]=!1,e["mask-position"]=!1,e["mask-repeat"]=!1,e["mask-size"]=!1,e["mask-source-type"]=!1,e["mask-type"]=!1,e["max-height"]=!0,e["max-lines"]=!1,e["max-width"]=!0,e["min-height"]=!0,e["min-width"]=!0,e["move-to"]=!1,e["nav-down"]=!1,e["nav-index"]=!1,e["nav-left"]=!1,e["nav-right"]=!1,e["nav-up"]=!1,e["object-fit"]=!1,e["object-position"]=!1,e.opacity=!1,e.order=!1,e.orphans=!1,e.outline=!1,e["outline-color"]=!1,e["outline-offset"]=!1,e["outline-style"]=!1,e["outline-width"]=!1,e.overflow=!1,e["overflow-wrap"]=!1,e["overflow-x"]=!1,e["overflow-y"]=!1,e.padding=!0,e["padding-bottom"]=!0,e["padding-left"]=!0,e["padding-right"]=!0,e["padding-top"]=!0,e.page=!1,e["page-break-after"]=!1,e["page-break-before"]=!1,e["page-break-inside"]=!1,e["page-policy"]=!1,e.pause=!1,e["pause-after"]=!1,e["pause-before"]=!1,e.perspective=!1,e["perspective-origin"]=!1,e.pitch=!1,e["pitch-range"]=!1,e["play-during"]=!1,e.position=!1,e["presentation-level"]=!1,e.quotes=!1,e["region-fragment"]=!1,e.resize=!1,e.rest=!1,e["rest-after"]=!1,e["rest-before"]=!1,e.richness=!1,e.right=!1,e.rotation=!1,e["rotation-point"]=!1,e["ruby-align"]=!1,e["ruby-merge"]=!1,e["ruby-position"]=!1,e["shape-image-threshold"]=!1,e["shape-outside"]=!1,e["shape-margin"]=!1,e.size=!1,e.speak=!1,e["speak-as"]=!1,e["speak-header"]=!1,e["speak-numeral"]=!1,e["speak-punctuation"]=!1,e["speech-rate"]=!1,e.stress=!1,e["string-set"]=!1,e["tab-size"]=!1,e["table-layout"]=!1,e["text-align"]=!0,e["text-align-last"]=!0,e["text-combine-upright"]=!0,e["text-decoration"]=!0,e["text-decoration-color"]=!0,e["text-decoration-line"]=!0,e["text-decoration-skip"]=!0,e["text-decoration-style"]=!0,e["text-emphasis"]=!0,e["text-emphasis-color"]=!0,e["text-emphasis-position"]=!0,e["text-emphasis-style"]=!0,e["text-height"]=!0,e["text-indent"]=!0,e["text-justify"]=!0,e["text-orientation"]=!0,e["text-overflow"]=!0,e["text-shadow"]=!0,e["text-space-collapse"]=!0,e["text-transform"]=!0,e["text-underline-position"]=!0,e["text-wrap"]=!0,e.top=!1,e.transform=!1,e["transform-origin"]=!1,e["transform-style"]=!1,e.transition=!1,e["transition-delay"]=!1,e["transition-duration"]=!1,e["transition-property"]=!1,e["transition-timing-function"]=!1,e["unicode-bidi"]=!1,e["vertical-align"]=!1,e.visibility=!1,e["voice-balance"]=!1,e["voice-duration"]=!1,e["voice-family"]=!1,e["voice-pitch"]=!1,e["voice-range"]=!1,e["voice-rate"]=!1,e["voice-stress"]=!1,e["voice-volume"]=!1,e.volume=!1,e["white-space"]=!1,e.widows=!1,e.width=!0,e["will-change"]=!1,e["word-break"]=!0,e["word-spacing"]=!0,e["word-wrap"]=!0,e["wrap-flow"]=!1,e["wrap-through"]=!1,e["writing-mode"]=!1,e["z-index"]=!1,e}function KH(e,t,r){}function eZ(e,t,r){}function rZ(e,t){return tZ.test(t)?"":t}function iZ(e,t){e=i1.trimRight(e),e[e.length-1]!==";"&&(e+=";");var r=e.length,n=!1,i=0,o=0,s="";function l(){if(!n){var h=i1.trim(e.slice(i,o)),g=h.indexOf(":");if(g!==-1){var b=i1.trim(h.slice(0,g)),S=i1.trim(h.slice(g+1));if(b){var P=t(i,s.length,b,S,h);P&&(s+=P+"; ")}}}i=o+1}for(;o<r;o++){var a=e[o];if(a==="/"&&e[o+1]==="*"){var d=e.indexOf("*/",o+2);if(d===-1)break;o=d+1,i=o+1,n=!1}else a==="("?n=!0:a===")"?n=!1:a===";"?n||l():a===`
7
+ `&&l()}return i1.trim(s)}function fL(e){return e==null}function aZ(e){var t={};for(var r in e)t[r]=e[r];return t}function yL(e){e=aZ(e||{}),e.whiteList=e.whiteList||bv.whiteList,e.onAttr=e.onAttr||bv.onAttr,e.onIgnoreAttr=e.onIgnoreAttr||bv.onIgnoreAttr,e.safeAttrValue=e.safeAttrValue||bv.safeAttrValue,this.options=e}function vL(){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 dZ(e,t,r){}function pZ(e,t,r){}function fZ(e,t,r){}function mZ(e,t,r){}function _L(e){return e.replace(gZ,"&lt;").replace(wZ,"&gt;")}function hZ(e,t,r,n){if(r=PL(r),t==="href"||t==="src"){if(r=Cv.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(t==="background"){if(_v.lastIndex=0,_v.test(r))return""}else if(t==="style"){if(mL.lastIndex=0,mL.test(r)||(hL.lastIndex=0,hL.test(r)&&(_v.lastIndex=0,_v.test(r))))return"";n!==!1&&(n=n||bL,r=n.process(r))}return r=ML(r),r}function xL(e){return e.replace(yZ,"&quot;")}function SL(e){return e.replace(vZ,'"')}function EL(e){return e.replace(bZ,function(r,n){return n[0]==="x"||n[0]==="X"?String.fromCharCode(parseInt(n.substr(1),16)):String.fromCharCode(parseInt(n,10))})}function CL(e){return e.replace(_Z,":").replace(xZ," ")}function TL(e){for(var t="",r=0,n=e.length;r<n;r++)t+=e.charCodeAt(r)<32?" ":e.charAt(r);return Cv.trim(t)}function PL(e){return e=SL(e),e=EL(e),e=CL(e),e=TL(e),e}function ML(e){return e=xL(e),e=_L(e),e}function SZ(){return""}function EZ(e,t){typeof t!="function"&&(t=function(){});var r=!Array.isArray(e);function n(s){return r?!0:Cv.indexOf(e,s)!==-1}var i=[],o=!1;return{onIgnoreTag:function(s,l,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 t(s,l,a)},remove:function(s){var l="",a=0;return Cv.forEach(i,function(d){l+=s.slice(a,d[0]),a=d[1]}),l+=s.slice(a),l}}}function CZ(e){for(var t="",r=0;r<e.length;){var n=e.indexOf("<!--",r);if(n===-1){t+=e.slice(r);break}t+=e.slice(r,n);var i=e.indexOf("-->",n);if(i===-1)break;r=i+3}return t}function TZ(e){var t=e.split("");return t=t.filter(function(r){var n=r.charCodeAt(0);return n===127?!1:n<=31?n===10||n===13:!0}),t.join("")}function PZ(e){var t=ql.spaceIndex(e),r;return t===-1?r=e.slice(1,-1):r=e.slice(1,t+1),r=ql.trim(r).toLowerCase(),r.slice(0,1)==="/"&&(r=r.slice(1)),r.slice(-1)==="/"&&(r=r.slice(0,-1)),r}function MZ(e){return e.slice(0,2)==="</"}function AZ(e,t,r){var n="",i=0,o=!1,s=!1,l=0,a=e.length,d="",h="";e:for(l=0;l<a;l++){var g=e.charAt(l);if(o===!1){if(g==="<"){o=l;continue}}else if(s===!1){if(g==="<"){n+=r(e.slice(i,l)),o=l,i=l;continue}if(g===">"){n+=r(e.slice(i,o)),h=e.slice(o,l+1),d=PZ(h),n+=t(o,n.length,d,h,MZ(h)),i=l+1,o=!1;continue}if(g==='"'||g==="'")for(var b=1,S=e.charAt(l-b);S.trim()===""||S==="=";){if(S==="="){s=g;continue e}S=e.charAt(l-++b)}}else if(g===s){s=!1;continue}}return i<e.length&&(n+=r(e.substr(i))),n}function LZ(e,t){var r=0,n=0,i=[],o=!1,s=e.length;function l(b,S){if(b=ql.trim(b),b=b.replace(IZ,"").toLowerCase(),!(b.length<1)){var P=t(b,S||"");P&&i.push(P)}}for(var a=0;a<s;a++){var d=e.charAt(a),h,g;if(o===!1&&d==="="){o=e.slice(r,a),r=a+1,n=e.charAt(r)==='"'||e.charAt(r)==="'"?r:NZ(e,a+1);continue}if(o!==!1&&a===n){if(g=e.indexOf(d,a+1),g===-1)break;h=ql.trim(e.slice(n+1,g)),l(o,h),o=!1,a=g,r=a+1;continue}if(/\s|\n|\t/.test(d))if(e=e.replace(/\s|\n|\t/g," "),o===!1)if(g=kZ(e,a),g===-1){h=ql.trim(e.slice(r,a)),l(h),o=!1,r=a+1;continue}else{a=g-1;continue}else if(g=OZ(e,a-1),g===-1){h=ql.trim(e.slice(r,a)),h=gL(h),l(o,h),o=!1,r=a+1;continue}else continue}return r<e.length&&(o===!1?l(e.slice(r)):l(o,gL(ql.trim(e.slice(r))))),ql.trim(i.join(" "))}function kZ(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="="?t:-1}}function NZ(e,t){for(;t<e.length;t++){var r=e[t];if(r!==" ")return r==="'"||r==='"'?t:-1}}function OZ(e,t){for(;t>0;t--){var r=e[t];if(r!==" ")return r==="="?t:-1}}function RZ(e){return e[0]==='"'&&e[e.length-1]==='"'||e[0]==="'"&&e[e.length-1]==="'"}function gL(e){return RZ(e)?e.substr(1,e.length-2):e}function xv(e){return e==null}function VZ(e){var t=Sv.spaceIndex(e);if(t===-1)return{html:"",closing:e[e.length-2]==="/"};e=Sv.trim(e.slice(t+1,-1));var r=e[e.length-1]==="/";return r&&(e=Sv.trim(e.slice(0,-1))),{html:e,closing:r}}function UZ(e){var t={};for(var r in e)t[r]=e[r];return t}function zZ(e){var t={};for(var r in e)Array.isArray(e[r])?t[r.toLowerCase()]=e[r].map(function(n){return n.toLowerCase()}):t[r.toLowerCase()]=e[r];return t}function IL(e){e=UZ(e||{}),e.stripIgnoreTag&&(e.onIgnoreTag&&console.error('Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time'),e.onIgnoreTag=zo.onIgnoreTagStripAll),e.whiteList||e.allowList?e.whiteList=zZ(e.whiteList||e.allowList):e.whiteList=zo.whiteList,e.onTag=e.onTag||zo.onTag,e.onTagAttr=e.onTagAttr||zo.onTagAttr,e.onIgnoreTag=e.onIgnoreTag||zo.onIgnoreTag,e.onIgnoreTagAttr=e.onIgnoreTagAttr||zo.onIgnoreTagAttr,e.safeAttrValue=e.safeAttrValue||zo.safeAttrValue,e.escapeHtml=e.escapeHtml||zo.escapeHtml,this.options=e,e.css===!1?this.cssFilter=!1:(e.css=e.css||{},this.cssFilter=new DZ(e.css))}var Ev,h5,vr,g5,zu,tZ,nZ,i1,oZ,bv,sZ,lZ,w5,y5,cZ,uZ,Cv,bL,gZ,wZ,yZ,vZ,bZ,_Z,xZ,_v,mL,hL,Tv,ql,IZ,DZ,zo,AL,FZ,$Z,Sv,WZ,lm,BZ,LL,kL=O(()=>{Ev=function(){return Ev=Object.assign||function(t){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)&&(t[o]=r[o])}return t},Ev.apply(this,arguments)},h5={exports:{}},vr={},g5={exports:{}},zu={};tZ=/javascript\s*\:/img;zu.whiteList=wL();zu.getDefaultWhiteList=wL;zu.onAttr=KH;zu.onIgnoreAttr=eZ;zu.safeAttrValue=rZ;nZ={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},trimRight:function(e){return String.prototype.trimRight?e.trimRight():e.replace(/(\s*$)/g,"")}},i1=nZ;oZ=iZ,bv=zu,sZ=oZ;yL.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onAttr,o=r.onIgnoreAttr,s=r.safeAttrValue,l=sZ(e,function(a,d,h,g,b){var S=n[h],P=!1;if(S===!0?P=S:typeof S=="function"?P=S(g):S instanceof RegExp&&(P=S.test(g)),P!==!0&&(P=!1),g=s(h,g),!!g){var A={position:d,sourcePosition:a,source:b,isWhite:P};if(P){var F=i(h,g,A);return fL(F)?h+":"+g:F}else{var F=o(h,g,A);if(!fL(F))return F}}});return l};lZ=yL;(function(e,t){var r=zu,n=lZ;function i(s,l){var a=new n(l);return a.process(s)}t=e.exports=i,t.FilterCSS=n;for(var o in r)t[o]=r[o]})(g5,g5.exports);w5=g5.exports,y5={indexOf:function(e,t){var r,n;if(Array.prototype.indexOf)return e.indexOf(t);for(r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1},forEach:function(e,t,r){var n,i;if(Array.prototype.forEach)return e.forEach(t,r);for(n=0,i=e.length;n<i;n++)t.call(r,e[n],n,e)},trim:function(e){return String.prototype.trim?e.trim():e.replace(/(^\s*)|(\s*$)/g,"")},spaceIndex:function(e){var t=/\s|\n|\t/,r=t.exec(e);return r?r.index:-1}},cZ=w5.FilterCSS,uZ=w5.getDefaultWhiteList,Cv=y5;bL=new cZ;gZ=/</g,wZ=/>/g,yZ=/"/g,vZ=/&quot;/g,bZ=/&#([a-zA-Z0-9]*);?/gim,_Z=/&colon;?/gim,xZ=/&newline;?/gim,_v=/((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,mL=/e\s*x\s*p\s*r\s*e\s*s\s*s\s*i\s*o\s*n\s*\(.*/gi,hL=/u\s*r\s*l\s*\(.*/gi;vr.whiteList=vL();vr.getDefaultWhiteList=vL;vr.onTag=dZ;vr.onIgnoreTag=pZ;vr.onTagAttr=fZ;vr.onIgnoreTagAttr=mZ;vr.safeAttrValue=hZ;vr.escapeHtml=_L;vr.escapeQuote=xL;vr.unescapeQuote=SL;vr.escapeHtmlEntities=EL;vr.escapeDangerHtml5Entities=CL;vr.clearNonPrintableCharacter=TL;vr.friendlyAttrValue=PL;vr.escapeAttrValue=ML;vr.onIgnoreTagStripAll=SZ;vr.StripTagBody=EZ;vr.stripCommentTag=CZ;vr.stripBlankChar=TZ;vr.cssFilter=bL;vr.getDefaultCSSWhiteList=uZ;Tv={},ql=y5;IZ=/[^a-zA-Z0-9\\_:.-]/gim;Tv.parseTag=AZ;Tv.parseAttr=LZ;DZ=w5.FilterCSS,zo=vr,AL=Tv,FZ=AL.parseTag,$Z=AL.parseAttr,Sv=y5;IL.prototype.process=function(e){if(e=e||"",e=e.toString(),!e)return"";var t=this,r=t.options,n=r.whiteList,i=r.onTag,o=r.onIgnoreTag,s=r.onTagAttr,l=r.onIgnoreTagAttr,a=r.safeAttrValue,d=r.escapeHtml,h=t.cssFilter;r.stripBlankChar&&(e=zo.stripBlankChar(e)),r.allowCommentTag||(e=zo.stripCommentTag(e));var g=!1;r.stripIgnoreTagBody&&(g=zo.StripTagBody(r.stripIgnoreTagBody,o),o=g.onIgnoreTag);var b=FZ(e,function(S,P,A,F,W){var z={sourcePosition:S,position:P,isClosing:W,isWhite:Object.prototype.hasOwnProperty.call(n,A)},q=i(A,F,z);if(!xv(q))return q;if(z.isWhite){if(z.isClosing)return"</"+A+">";var G=VZ(F),Y=n[A],ie=$Z(G.html,function(U,me){var Ae=Sv.indexOf(Y,U)!==-1,Ee=s(A,U,me,Ae);return xv(Ee)?Ae?(me=a(A,U,me,h),me?U+'="'+me+'"':U):(Ee=l(A,U,me,Ae),xv(Ee)?void 0:Ee):Ee});return F="<"+A,ie&&(F+=" "+ie),G.closing&&(F+=" /"),F+=">",F}else return q=o(A,F,z),xv(q)?d(F):q},d);return g&&(b=g.remove(b)),b};WZ=IL;(function(e,t){var r=vr,n=Tv,i=WZ;function o(l,a){var d=new i(a);return d.process(l)}t=e.exports=o,t.filterXSS=o,t.FilterXSS=i,function(){for(var l in r)t[l]=r[l];for(var a in n)t[a]=n[a]}();function s(){return typeof self<"u"&&typeof DedicatedWorkerGlobalScope<"u"&&self instanceof DedicatedWorkerGlobalScope}s()&&(self.filterXSS=e.exports)})(h5,h5.exports);lm=h5.exports,BZ=function(e){if(typeof e!="object"||e===null||Object.prototype.toString.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t},LL=function(){function e(t,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=Ev(Ev({},lm.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,l,a){return o==="a"&&s==="href"||(o==="img"||o==="source")&&s==="src"?n.sanitizeUrl(l):lm.safeAttrValue(o,s,l,a)}},this._entityMap={"&":"&#x38;","<":"&#x3C;",">":"&#x3E;",'"':"&#x22;","'":"&#x27;","/":"&#x2F;"};var i;t&&!r?i=t:t&&r?(i=Object.create(this.arcgisFilterOptions),i.css={whiteList:this.arcgisCSSWhiteList},Object.keys(t).forEach(function(o){if(o==="whiteList")i.whiteList=n._extendObjectOfArrays([n.arcgisWhiteList,t.whiteList||{}]);else if(o==="css"){var s=t.css.whiteList;s!=null&&t.css instanceof Object&&Object.keys(s).forEach(function(l){return i.css.whiteList[l]=s[l]})}else i[o]=t[o]})):(i=Object.create(this.arcgisFilterOptions),i.whiteList=this.arcgisWhiteList,i.css={whiteList:this.arcgisCSSWhiteList}),this.xssFilterOptions=i,this._xssFilter=new lm.FilterXSS(i)}return e.prototype.sanitize=function(t,r){switch(r===void 0&&(r={}),typeof t){case"number":return isNaN(t)||!isFinite(t)?null:t;case"boolean":return t;case"string":return this._xssFilter.process(t);case"object":return this._iterateOverObject(t,r);default:return r.allowUndefined&&typeof t>"u"?void 0:null}},e.prototype.sanitizeUrl=function(t,r){var n=(r??{}).isProtocolRequired,i=n===void 0?!0:n,o=this._trim(t.substring(0,t.indexOf(":"))),s=t==="/",l=/^#/.test(t),a=o&&this.allowedProtocols.indexOf(o.toLowerCase())>-1;return s||l||a?lm.escapeAttrValue(t):!o&&!i?lm.escapeAttrValue("https://".concat(t)):""},e.prototype.sanitizeHTMLAttribute=function(t,r,n,i){return typeof this.xssFilterOptions.safeAttrValue=="function"?this.xssFilterOptions.safeAttrValue(t,r,n,i):lm.safeAttrValue(t,r,n,i)},e.prototype.validate=function(t,r){r===void 0&&(r={});var n=this.sanitize(t,r);return{isValid:t===n,sanitized:n}},e.prototype.encodeHTML=function(t){var r=this;return String(t).replace(/[&<>"'\/]/g,function(n){return r._entityMap[n]})},e.prototype.encodeAttrValue=function(t){var r=/^[a-zA-Z0-9]$/;return String(t).replace(/[\x00-\xFF]/g,function(n,i){return r.test(n)?n:"&#x".concat(Number(t.charCodeAt(i)).toString(16),";")})},e.prototype._extendObjectOfArrays=function(t){var r={};return t.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},e.prototype._iterateOverObject=function(t,r){var n=this;r===void 0&&(r={});try{var i=!1,o=void 0;if(Array.isArray(t))o=t.reduce(function(l,a){var d=n.validate(a,r);return d.isValid?l.concat([a]):(i=!0,l.concat([d.sanitized]))},[]);else if(BZ(t)){var s=Object.keys(t);o=s.reduce(function(l,a){var d=t[a],h=n.validate(d,r);return h.isValid?l[a]=d:(i=!0,l[a]=h.sanitized),l},{})}else return r.allowUndefined&&typeof t>"u"?void 0:null;return i?o:t}catch{return null}},e.prototype._trim=function(t){return String.prototype.trim?t.trim():t.replace(/(^\s*)|(\s*$)/g,"")},e}()});function Mv(){Pv.clear()}function NL(e){return Pv.get(e)}function OL(e,t){Pv.set(e,t)}function Av(e){Pv.delete(e)}var Pv,v5=O(()=>{Pv=new Map});function RL(...e){let t=Yn.acquire();for(let n=0;n<e.length;n++){let i=e[n],o=typeof i;if(o==="string")t.push(i);else if(Array.isArray(i))t.push.apply(t,i);else if(o==="object")for(let s in i)i[s]&&t.push(s)}let r=t.join(" ");return Yn.release(t),r}async function DL(e,t){await OA(Og(t));let r=typeof e=="function"?e():e;r&&("setFocus"in r&&typeof r.setFocus=="function"?await r.setFocus():r instanceof HTMLElement&&r.focus())}var I0e,GZ,jZ,qZ,b5,Iv=O(()=>{kL();zy();ci();tt();it();Qi();m5();$g();v5();I0e=(()=>{let e=new Map,t=new ResizeObserver(n=>{Mv();for(let i of n)e.get(i.target)?.(i)}),r=(n,i,o)=>(e.set(n,i),t.observe(n,o),Pt(()=>{t.unobserve(n),e.delete(n)}));return(n,i,o)=>{let s=null;return ku([r1(()=>typeof n=="function"?n():n,l=>{s?.remove(),l&&(s=r(l,i,o))},vv),Pt(()=>s?.remove())])}})(),GZ=["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"],jZ=GZ.reduce((e,t)=>(e[t]=[],e),{}),qZ=["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"],b5=new LL({whiteList:jZ,onTagAttr:(e,t,r)=>{let n=`${t}="${r}"`;if(qZ.includes(t))return n},stripIgnoreTag:!0,stripIgnoreTagBody:["script","style"]},!0)});function E5(e){if(!(e instanceof Element&&e.tagName.includes("-")))return!1;let t=window.customElements.get(e.tagName.toLowerCase());return!!t&&e instanceof t}var zL,kv,WL,FL,Nv,T5,BL,HZ,_5,ZZ,x5,S5,GL,$L,VL,UL,YZ,Lv,JZ,P5,Wu,C5,XZ,QZ,cm,jL=O(()=>{Iv();zL="http://www.w3.org/",kv=`${zL}2000/svg`,WL=`${zL}1999/xlink`,FL=[],Nv=(e,t)=>{let r={};return Object.keys(e).forEach(n=>{r[n]=e[n]}),t&&Object.keys(t).forEach(n=>{r[n]=t[n]}),r},T5=(e,t)=>e.vnodeSelector===t.vnodeSelector&&(e.properties&&t.properties?e.properties.key===t.properties.key&&e.properties.bind===t.properties.bind:!e.properties&&!t.properties),BL=e=>{if(typeof e!="string")throw new Error("Style values must be strings")},HZ=(e,t,r)=>{if(t.vnodeSelector!==""){for(let n=r;n<e.length;n++)if(T5(e[n],t))return n}return-1},_5=(e,t,r,n)=>{let i=e[t];if(i.vnodeSelector==="")return;let o=i.properties;if(!(o&&(o.key===void 0?o.bind:o.key))){for(let s=0;s<e.length;s++)if(s!==t){let l=e[s];if(T5(l,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.`)}}},ZZ=e=>{if(e.properties){let t=e.properties.enterAnimation;t&&t(e.domNode,e.properties)}},x5=[],S5=!1,GL=e=>{(e.children||[]).forEach(GL),e.properties&&e.properties.afterRemoved&&e.properties.afterRemoved.apply(e.properties.bind||e.properties,[e.domNode])},$L=()=>{S5=!1,x5.forEach(GL),x5.length=0},VL=e=>{x5.push(e),S5||(S5=!0,typeof window<"u"&&"requestIdleCallback"in window?window.requestIdleCallback($L,{timeout:16}):setTimeout($L,16))},UL=e=>{let t=e.domNode;if(e.properties){let r=e.properties.exitAnimation;if(r)return t.style.pointerEvents="none",void r(t,()=>{t.parentNode&&(t.parentNode.removeChild(t),VL(e))},e.properties)}t.parentNode&&(t.parentNode.removeChild(t),VL(e))},YZ=(e,t,r)=>{if(!t)return;let n=r.eventHandlerInterceptor,i=Object.keys(t),o=i.length;for(let s=0;s<o;s++){let l=i[s],a=t[l];if(l==="className")throw new Error('Property "className" is not supported, use "class".');if(l==="class")C5(e,a,!0);else if(l==="classes"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let b=d[g];a[b]&&e.classList.add(b)}}else if(l==="styles"){let d=Object.keys(a),h=d.length;for(let g=0;g<h;g++){let b=d[g],S=a[b];S&&(BL(S),r.styleApplyer(e,b,S))}}else if(l!=="key"&&a!=null){let d=typeof a;d==="function"?(l.lastIndexOf("on",0)===0&&(n&&(a=n(l,a,e,t)),l==="oninput"&&function(){let h=a;a=function(g){h.apply(this,[g]),g.target["oninput-value"]=g.target.value}}()),e[l]=a):r.namespace===kv?l==="href"?e.setAttributeNS(WL,l,a):e.setAttribute(l,a):d==="string"&&l!=="value"?l==="innerHTML"?e[l]=b5.sanitize(a):E5(e)&&l in e?e[l]=a:e.setAttribute(l,a):e[l]=a}}};JZ=(e,t,r)=>{if(t)for(let n of t)Wu(n,e,void 0,r)},P5=(e,t,r)=>{JZ(e,t.children,r),t.text&&(e.textContent=t.text),YZ(e,t.properties,r),t.properties&&t.properties.afterCreate&&t.properties.afterCreate.apply(t.properties.bind||t.properties,[e,r,t.vnodeSelector,t.properties,t.children])},Wu=(e,t,r,n)=>{let i,o=0,s=e.vnodeSelector,l=t.ownerDocument;if(s==="")i=e.domNode=l.createTextNode(e.text),r!==void 0?t.insertBefore(i,r):t.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=Nv(n,{namespace:kv})),n.namespace!==void 0?i=e.domNode=l.createElementNS(n.namespace,g):(i=e.domNode=e.domNode||l.createElement(g),g==="input"&&e.properties&&e.properties.type!==void 0&&i.setAttribute("type",e.properties.type)),r!==void 0?t.insertBefore(i,r):i.parentNode!==t&&t.appendChild(i)),o=a+1}}P5(i,e,n)}},C5=(e,t,r)=>{t&&t.split(" ").forEach(n=>{n&&e.classList.toggle(n,r)})},XZ=(e,t,r,n)=>{if(!r)return;let i=!1,o=Object.keys(r),s=o.length;for(let l=0;l<s;l++){let a=o[l],d=r[a],h=t[a];if(a==="class")h!==d&&(C5(e,h,!1),C5(e,d,!0));else if(a==="classes"){let g=e.classList,b=Object.keys(d),S=b.length;for(let P=0;P<S;P++){let A=b[P],F=!!d[A];F!==!!h[A]&&(i=!0,F?g.add(A):g.remove(A))}}else if(a==="styles"){let g=Object.keys(d),b=g.length;for(let S=0;S<b;S++){let P=g[S],A=d[P];A!==h[P]&&(i=!0,A?(BL(A),n.styleApplyer(e,P,A)):n.styleApplyer(e,P,""))}}else if(d||typeof h!="string"||(d=""),a!=="value"||E5(e)){if(d!==h){let g=typeof d;g==="function"&&n.eventHandlerInterceptor||(n.namespace===kv?a==="href"?e.setAttributeNS(WL,a,d):e.setAttribute(a,d):g==="string"?a==="innerHTML"?e[a]=b5.sanitize(d):a==="role"&&d===""?e.removeAttribute(a):E5(e)&&a in e?e[a]=d:e.setAttribute(a,d):e[a]!==d&&(e[a]=d),i=!0)}}else{let g=e[a];g!==d&&(e["oninput-value"]?g===e["oninput-value"]:d!==h)&&(e[a]=d,e["oninput-value"]=void 0),d!==h&&(i=!0)}}return i},QZ=(e,t,r,n,i)=>{if(r===n)return!1;n=n||FL;let o,s=(r=r||FL).length,l=n.length,a=0,d=0,h=!1;for(;d<l;){let g=a<s?r[a]:void 0,b=n[d];if(g!==void 0&&T5(g,b))h=Lv(g,b,i)||h,a++;else{let S=HZ(r,b,a+1);if(S>=0){for(o=a;o<S;o++)UL(r[o]),_5(r,o,e,"removed");h=Lv(r[S],b,i)||h,a=S+1}else Wu(b,t,a<s?r[a].domNode:void 0,i),ZZ(b),_5(n,d,e,"added")}d++}if(s>a)for(o=a;o<s;o++)UL(r[o]),_5(r,o,e,"removed");return h};Lv=(e,t,r)=>{let n=e.domNode,i=!1;if(e===t)return!1;let o=!1;if(t.vnodeSelector===""){if(t.text!==e.text){let s=n.ownerDocument.createTextNode(t.text);return n.parentNode.replaceChild(s,n),t.domNode=s,i=!0,i}t.domNode=n}else t.vnodeSelector.lastIndexOf("svg",0)===0&&(r=Nv(r,{namespace:kv})),e.text!==t.text&&(o=!0,t.text===void 0?n.removeChild(n.firstChild):n.textContent=t.text),t.domNode=n,o=QZ(t,n,e.children,t.children,r)||o,o=XZ(n,e.properties,t.properties,r)||o,t.properties&&t.properties.afterUpdate&&t.properties.afterUpdate.apply(t.properties.bind||t.properties,[n,r,t.vnodeSelector,t.properties,t.children]);return o&&t.properties&&t.properties.updateAnimation&&t.properties.updateAnimation(n,t.properties,e.properties),i};cm=(e,t)=>({getLastRender:()=>e,update:r=>{if(e.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=e;e=r,Lv(n,r,t)},domNode:e.domNode})});var KZ,um,dm,M5=O(()=>{jL();KZ={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},um=e=>Nv(KZ,e),dm={create:(e,t)=>(t=um(t),Wu(e,document.createElement("div"),void 0,t),cm(e,t)),append:(e,t,r)=>(r=um(r),Wu(t,e,void 0,r),cm(t,r)),insertBefore:(e,t,r)=>(r=um(r),Wu(t,e.parentNode,e,r),cm(t,r)),merge:(e,t,r)=>(r=um(r),t.domNode=e,P5(e,t,r),cm(t,r)),replace:(e,t,r)=>(r=um(r),Wu(t,e.parentNode,e,r),e.parentNode.removeChild(e),cm(t,r))}});var eY,qL=O(()=>{M5();eY=Array.prototype.find?(e,t)=>e.find(t):(e,t)=>e.filter(t)[0]});var HL,ZL=O(()=>{HL={handleInterceptedEvent:(e,t,r,n)=>(e.scheduleRender(),t.properties[`on${n.type}`].apply(t.properties.bind||r,[n]))}});var tY,YL,JL=O(()=>{tY={namespace:void 0,performanceLogger:()=>{},eventHandlerInterceptor:void 0,styleApplyer:(e,t,r)=>{t.charAt(0)==="-"?e.style.setProperty(t,r):e.style[t]=r}},YL=e=>({...tY,...e})});var rY,nY,XL,QL,KL=O(()=>{M5();qL();ZL();JL();rY=(e,t)=>{let r=[];for(;e&&e!==t;)r.push(e),e=e.parentNode;return r},nY=(e,t)=>e.find(t),XL=(e,t,r=!1)=>{let n=e;return t.forEach((i,o)=>{let s=n?.children?nY(n.children,l=>l.domNode===i):void 0;r&&!s&&o!==t.length-1||(n=s)}),n},QL=e=>{let t,r={...HL,...e},n=YL(r),i=n.performanceLogger,o,s=!0,l=!1,a=[],d=[],h=(b,S,P)=>{let A;n.eventHandlerInterceptor=(W,z,q,G)=>function(Y){let ie;i("domEvent",Y);let U=rY(Y.currentTarget,A.domNode),me=U.some(Ee=>customElements.get(Ee?.tagName?.toLowerCase()));if(Y.eventPhase===Event.CAPTURING_PHASE||!me)U.reverse(),ie=XL(A.getLastRender(),U);else{let Ee=Y.composedPath(),Ne=Ee.slice(Ee.indexOf(Y.currentTarget),Ee.indexOf(A.domNode)).reverse();ie=XL(A.getLastRender(),Ne,!0)}let Ae;return ie&&(Ae=r.handleInterceptedEvent(t,ie,this,Y)),i("domEventProcessed",Y),Ae},r.postProcessProjectionOptions?.(n);let F=P();A=b(S,F,n),n.eventHandlerInterceptor=void 0,a.push(A),d.push(P),r.afterFirstVNodeRendered&&r.afterFirstVNodeRendered(A,F)},g=()=>{if(o=void 0,s){s=!1,i("renderStart",void 0);for(let b=0;b<a.length;b++){let S=d[b]();i("rendered",void 0);try{a[b].update(S)}catch(P){console.error(P)}i("patched",void 0)}i("renderDone",void 0),s=!0}};return r.modifyDoRenderImplementation&&(g=r.modifyDoRenderImplementation(g,a,d)),t={renderNow:g,scheduleRender:()=>{o||l||(o=requestAnimationFrame(g))},stop:()=>{o&&(cancelAnimationFrame(o),o=void 0),l=!0},resume:()=>{l=!1,s=!0,t.scheduleRender()},append:(b,S)=>{h(dm.append,b,S)},insertBefore:(b,S)=>{h(dm.insertBefore,b,S)},merge:(b,S)=>{h(dm.merge,b,S)},replace:(b,S)=>{h(dm.replace,b,S)},detach:b=>{for(let S=0;S<d.length;S++)if(d[S]===b)return d.splice(S,1),a.splice(S,1)[0];throw new Error("renderFunction was not found")}},t}});var ek,A5=O(()=>{"use strict";ek=":"});function I5(e){let t=e;for(;t=t.parentNode??t.host;)if(t?.constructor?.lumina){let r=t;return r.manager?.loadedCalled||r._offspring.push(e),r._postLoad.promise}return!1}function iY(e){let t=e.split(ek);return t.length===1?[t[0],$w(t[0])]:t}function sY([e,t]){this[e]=t}var Ov,oY,pm,X0e,L5,tk=O(()=>{"use strict";A5();To();Ov=Object.defineProperty;oY=globalThis.HTMLElement??iY,X0e=(pm=class extends oY{constructor(){super(),this._store={},this._pendingAttributes=[],this._postLoad=new Co,this._postLoaded=new Co,this._offspring=[],this._saveInstanceProperties();let t=this.constructor;t._LitConstructor?this._initializeComponent({a:t._LitConstructor}):t._loadPromise.then(this._initializeComponent.bind(this)).catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})})}static _initializePrototype(){this._properties?.forEach(this._bindProp,this),this._asyncMethods?.forEach(this._bindAsync,this),this._syncMethods?.forEach(this._bindSync,this)}static _bindProp(t){Ov(this.prototype,t,{configurable:!0,enumerable:!0,get(){return this._store[t]},set(r){this._store[t]=r}})}static _bindAsync(t){Ov(this.prototype,t,{async value(...r){return this._litElement||await this._postLoaded.promise,await this._litElement[t](...r)},configurable:!0})}static _bindSync(t){Ov(this.prototype,t,{value(...r){return this._litElement[t](...r)},configurable:!0})}get manager(){return this._litElement?.manager}_saveInstanceProperties(){let t=this.constructor,r=this;t._properties?.forEach(n=>{Object.hasOwn(this,n)&&(this._store[n]=r[n],delete r[n])})}attributeChangedCallback(t,r,n){this._litElement?.attributeChangedCallback(t,r,n),this._litElement||this._pendingAttributes.push(t)}connectedCallback(){this._litElement?this._litElement.connectedCallback?.():queueMicrotask(()=>{this._ancestorLoad=I5(this)})}disconnectedCallback(){this._litElement?.disconnectedCallback?.()}async componentOnReady(){return await this._postLoaded.promise,this}_initializeComponent(t){let r=this.constructor,n=r._name,i=this._store,o=Object.values(t).find(P=>P.tagName===n),s=`${n}--lazy`,l=o;for(;l&&!Object.hasOwn(l,"lumina");)l=Object.getPrototypeOf(l);let a=l.prototype,d=Element.prototype;Object.hasOwn(a,"isConnected")||(a.setAttribute=function(P,A){d.setAttribute.call(this.el,P,A)},a.removeAttribute=function(P){d.removeAttribute.call(this.el,P)},Ov(a,"isConnected",{get(){return Reflect.get(d,"isConnected",this.el)}})),!r._LitConstructor&&(r._LitConstructor=o,customElements.define(s,o)),o.lazy=this;let b=document.createElement(s);o.lazy=void 0,this._litElement=b,this._store=b,this._pendingAttributes.forEach(P=>{let A=this.getAttribute(P);b.attributeChangedCallback(P,null,A)}),Object.entries(i).forEach(sY,b);let S=this.isConnected;(S||this._ancestorLoad)&&(b.connectedCallback?.(),S||b.disconnectedCallback())}addController(){}requestUpdate(){this._litElement?.requestUpdate()}},pm.lumina=!0,pm);L5={}});function rk(e,t){if(t){let r=e.constructor.elementProperties;e.manager.internals.members=Object.fromEntries(Array.from(r,([n,i])=>i.noAccessor?void 0:[n,[(i.readOnly?2048:0)|(i.state?32:16)]]).filter(P8))}else{let r=e.constructor,n=r.__registerControllers?.(e)??void 0;if(r.__registerControllers=void 0,typeof n!="object")throw new Error("Failed to retrieve component meta");e.manager.internals.members=Object.fromEntries(Object.entries(n).filter(([i,[o]])=>(o&63)!==0))}}function nk(e,t=8){return e==null||typeof e=="object"||typeof e=="function"?e:t&4?e==="false"?!1:e===""||!!e:t&2?Number.parseFloat(e):t&1?String(e):e}var ik,k5=O(()=>{"use strict";To();ik=(e,t)=>e.manager.internals.members?.[t]?.[0]});function ju(e){o1!==e&&(o1=e,queueMicrotask(()=>{o1===e&&(o1=void 0)}))}function qu(e){return o1}function R5(e){if(e===void 0){Bu=[];return}let t=Bu.indexOf(e);Bu=t===-1?[...Bu,e]:Bu.slice(0,t+1),queueMicrotask(()=>{Bu=[]})}function D5(){return Bu}function aY(e){fm!==e&&(fm=e,queueMicrotask(()=>{fm===e&&(fm=void 0)}))}function lY(){let e=fm;return fm=void 0,e}function ok(e){Ot(e,void 0,this)}function sk(e){if(typeof e!="object"&&typeof e!="function"||e===null)return e;let t=new Proxy(e,{get(r,n,i){if(!(dY.has(n)&&n in r&&r[n]===t)&&(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 t}function uk(e,t,r){let n=Object.keys(e),i=n.length;Gu===void 0&&queueMicrotask(l1),Gu??(Gu=new Map);let o=Gu.get(e);return o===void 0&&(o={callbacks:[],keyCount:i},Gu.set(e,o)),o.keyCount!==i&&(o.callbacks.forEach(s=>s(n)),o.callbacks=[],o.keyCount=i),o.callbacks.push(s=>{let l=d=>Ot(t,null,d),a=s[i];a===void 0?l(void 0):e[a]===r?l(a):l(void 0)}),r}function l1(){Array.from(Gu?.entries()??[]).forEach(([e,{callbacks:t}])=>{let r=Object.keys(e);t.forEach(n=>n(r))}),Gu=void 0}function $v(e,t,r){var n;let i=t,o=e.manager.internals;(n=o.allWatchers)[i]??(n[i]=[]);let s=o.allWatchers[i],l=r,a=(d,h,g)=>Ot(l,null,d,h,g);return s.push(a),()=>{let d=s.indexOf(a);d!==-1&&s.splice(d,1)}}function pk(e,t,r){let n=e.manager.internals;return n.trackedValue!==O5&&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)=>Ot(t,void 0,r===o?i:void 0)),r}function Vv(e=[qu(),...D5()],t,r){let n=Array.isArray(e)?e:[e],i=n.length+1,o=l=>{i-=1,l!==void 0&&(i=Math.min(i,0)),i===0&&t(l)};n.forEach(l=>uk(l,a=>o(a===void 0?void 0:{key:a,host:l,isReactive:!1}),r));let s=n.find(l=>"manager"in l&&typeof l.manager=="object"&&l.manager.component===l);return s&&pk(s,l=>o(l===void 0?void 0:{key:l,host:s,isReactive:!0}),r),r}function fk(e){s1.readOnly=!0;try{return e()}finally{s1.readOnly=!1}}function pY(e,{host:t,key:r,isReactive:n},i){let o=t,s=o[r]!==e.exports,l=o[r]!==i,a=i!==e.exports;if(s&&!l&&a&&(o[r]=e.exports),t===e.component){if(n){let h=e.component.manager.internals;l&&h.markExports(e,o[r]),$v(e.component,r,g=>{g!==e.exports&&h.markExports(e,g)})}e.assignedProperty=n?void 0:r}e.watchExports(()=>{if(o[r]===e.exports)return;let h=e.component.manager;h.internals.setters[r]?.includes(h.internals.readonlySetter)?fk(()=>{o[r]=e.exports}):o[r]=e.exports})}var Dv,ak,o1,Bu,fm,cY,uY,F5,s1,a1,lk,Fv,ck,dY,Gu,dk,N5,Rv,O5,mk,hk=O(()=>{"use strict";k5();To();To();To();To();Dv=Symbol.for("controller"),ak=e=>typeof e=="object"&&e!==null&&(Dv in e||"hostConnected"in e||"hostDisconnected"in e||"hostUpdate"in e||"hostUpdated"in e);Bu=[];cY=async(e,t)=>{let r=F5(e);if(r===void 0)return e;if(await r.ready,typeof t=="function"){let n=r.watchExports(i=>t(i,n))}return r.exports},uY=async e=>{let t=F5(e);return await t.ready,t},F5=e=>{let r=qu().manager.internals.resolveExports(e);if(r!==void 0)return r;if(ak(e))return e;let n=lY();if(n!==void 0)return n},s1={setter:!1,getter:!1,readOnly:!1},a1=new WeakMap;lk=Dv;Fv=class{constructor(e){this._callbacks={hostConnected:[],hostDisconnected:[],hostLoad:[],hostLoaded:[],hostUpdate:[],hostUpdated:[],hostDestroy:[],hostLifecycle:[]},this._ready=new Co,this._lifecycleCleanups=[],this.connectedCalled=!1,this._loadCalled=!1,this.loadedCalled=!1,this[lk]=!0,this.ready=this._ready.promise,this._exports=sk(this),this._exportWatchers=new Set;let t=e??qu(new.target.name);this.component=t,this.component.addController(this),this.component.manager===void 0||(R5(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 t=this._exports;t!==e&&(this._exports=e,this._exportWatchers.forEach(Ot),this.connectedCalled&&this.assignedProperty!==!1&&this.component.requestUpdate(this.assignedProperty,t)),this._ready.resolve(e)}setProvisionalExports(e,t=!0){this._exports=t?sk(e):e,this._exportWatchers.forEach(Ot)}watchExports(e){let t=()=>e(this._exports);return this._exportWatchers.add(t),()=>void this._exportWatchers.delete(t)}get use(){return ju(this.component),cY}get useRef(){return ju(this.component),uY}get useRefSync(){return ju(this.component),F5}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&&Ot(e.hostConnected,e),this._callbacks.hostConnected.forEach(Ot),this.triggerLifecycle(),this.connectedCalled=!0}triggerDisconnected(){let e=this;e.hostDisconnected&&Ot(e.hostDisconnected,e),this._callbacks.hostDisconnected.forEach(Ot),this._lifecycleCleanups.forEach(Ot),this._lifecycleCleanups=[]}async triggerLoad(){if(this._loadCalled)return;this._loadCalled=!0;let e=this;e.hostLoad&&await Lh(e.hostLoad,e),this._callbacks.hostLoad.length>0&&await Promise.allSettled(this._callbacks.hostLoad.map(Lh)),this._ready.resolve(this._exports)}triggerLoaded(){if(this.loadedCalled)return;let e=this;e.hostLoaded&&Ot(e.hostLoaded,e),this._callbacks.hostLoaded.forEach(Ot),this.loadedCalled=!0}triggerUpdate(e){let t=this;t.hostUpdate&&Ot(t.hostUpdate,t,e),this._callbacks.hostUpdate.forEach(ok,e)}triggerUpdated(e){let t=this;t.hostUpdated&&Ot(t.hostUpdated,t,e),this._callbacks.hostUpdated.forEach(ok,e)}triggerDestroy(){let e=this;e.hostDestroy&&Ot(e.hostDestroy,e),this._callbacks.hostDestroy.forEach(Ot)}triggerLifecycle(){let e=this;e.hostLifecycle&&this._callLifecycle(()=>e.hostLifecycle()),this._callbacks.hostLifecycle.forEach(this._callLifecycle,this)}_callLifecycle(e){ju(this.component);let t=Ot(e);(Array.isArray(t)?t:[t]).forEach(n=>{typeof n=="function"?this._lifecycleCleanups.push(n):typeof n=="object"&&typeof n.remove=="function"&&this._lifecycleCleanups.push(n.remove)})}};ck=Fv;dY=new Set(["exports","_exports"]);Gu=void 0;dk=class{constructor(e){this.enabledWatchers={},this.allWatchers={},this.enableReadonly=()=>{if(this.enableReadonly=void 0,!this.component.manager.isLit)return;let t=this.component.manager.internals;Object.entries(t.members).forEach(([r,[n]])=>{var i;n&2048&&((i=t.setters)[r]??(i[r]=[]),t.setters[r].push(t.readonlySetter))})},this.trackedValue=O5,this.keyTrackers=[],this.getters={},this.setters={},this.accessorGetter={},this.accessorSetter={},this._exports=new WeakMap,this.readonlySetter=(t,r,n)=>{if(s1.readOnly)return t;throw new Error(`Cannot assign to read-only property "${n}" of ${this.component.el.tagName.toLowerCase()}. Trying to assign "${String(t)}"`)},this.component=e}firePropTrackers(e,t){let r=this.keyTrackers;this.trackedValue=O5,this.keyTrackers=[],r.forEach(n=>n(e,t))}getSetProxy(e){let t=this.component,r=t.constructor.prototype;if(this._getSetProxy(r,e,"class"),t.manager.isLit)return;let n=t.el.constructor.prototype;r!==n&&this._getSetProxy(n,e,"html")}_getSetProxy(e,t,r){let n=this.component,i=ik(n,t),o;do o=Object.getOwnPropertyDescriptor(e,t);while(!o&&(e=Object.getPrototypeOf(e)));if(!o)return;let s=o.get,l=o.set,a=Rv in s,d=Rv in l;if(a&&d)return;let h=!a,g=!d,b=h?function(){let A=s.call(this),F=a1.get(this);if(s1.getter||F===void 0)return A;let W=F.manager.internals;A=W.accessorGetter[t](A,t);let z=W.getters[t]??N5;for(let q=0;q<z.length;q++)A=z[q](A,t);return A}:s,S=g?function(A){let F=s.call(this),W=a1.get(this);if(W===void 0){l.call(this,A);return}let z=W.manager.isLit?A??void 0:nk(A,i),q=W.manager.internals;if(z===F)l.call(this,z);else{let G=s1.setter?N5:q.setters[t]??N5;for(let Y=0;Y<G.length&&(z=G[Y](z,F,t),z!==F);Y++);z=q.accessorSetter[t](z,F,t),l.call(this,z),z!==F&&q.enabledWatchers[t]?.forEach(Y=>Y(z,F,t))}q.keyTrackers.length>0&&q?.firePropTrackers(t,A)}:l;h&&(b[Rv]=!0),g&&(S[Rv]=!0),Object.defineProperty(e,t,{...o,get:b,set:S})}markExports(e,t){(typeof t=="object"&&t!==null||typeof t=="function")&&this._exports.set(t,e)}resolveExports(e){if(typeof e=="object"&&e!==null||typeof e=="function")return this._exports.get(e)}},N5=[],Rv=Symbol(),O5=Symbol();mk=e=>(...t)=>{let r=D5(),n=new e(...t),i=n.exports;R5(r.at(-1));let o=n.component.manager.internals;o.markExports(n,i),n.watchExports(l=>o.markExports(n,l)),aY(n);let s=[n.component,...r].reverse();return Vv(s,l=>l===void 0?void 0:pY(n,l,i),i)}});function hY(e){"triggerConnected"in e?e.triggerConnected():Ot(e.hostConnected,e)}function gY(e){"triggerDisconnected"in e?e.triggerDisconnected():Ot(e.hostDisconnected,e)}async function wY(e){"triggerLoad"in e?await e.triggerLoad():await Lh(e.hostLoad,e)}function yY(e){"triggerLoaded"in e?e.triggerLoaded():Ot(e.hostLoaded,e)}function vY(e){"triggerUpdate"in e?e.triggerUpdate(this):Ot(e.hostUpdate,e,this)}function bY(e){"triggerUpdated"in e?e.triggerUpdated(this):Ot(e.hostUpdated,e,this)}function _Y(e){"triggerDestroy"in e?e.triggerDestroy():Ot(e.hostDestroy,e)}function vk(e,t){if(!t)return e;let r={...e};return Object.entries(t).forEach(([n,i])=>{typeof i=="object"?r[n]=vk(e[n],i):r[n]=i??e[n]}),r}var wk,fY,$5,mY,gk,xY,SY,EY,Uv,CY,yk,Hu=O(()=>{"use strict";hk();k5();To();To();To();wk=(e,t)=>new fY(e,t),fY=class extends ck{constructor(e,t){let r="addController"in e,n=new Set;function i(a){n.add(a),!(Dv in a)&&e.renderRoot&&e.el.isConnected&&a.hostConnected?.()}function o(a){n.delete(a),a.controllerRemoved?.()}let s=e;if(s.addController=i,s.removeController=o,!r){let a=t??e.constructor.__forceUpdate;s.requestUpdate=()=>a(e)}super(e),this.internals=new dk(this.component),this.destroyed=!1,this._updatePromise=new Co,this._originalLifecycles={},this.isLit=r,this.component.manager=this,rk(e,r),this._controllers=n,this.exports=void 0,this.hasDestroy=$5 in this.component&&typeof this.component.destroy=="function",this._bindLifecycleMethods();let l=this.internals;Object.keys(l.members).forEach(a=>{l.accessorGetter[a]=gk,l.accessorSetter[a]=gk,l.getSetProxy(a)}),r?this.internals.enabledWatchers=this.internals.allWatchers:Object.defineProperty(e,"updateComplete",{get:async()=>await this._updatePromise.promise}),queueMicrotask(l.enableReadonly),ju(e),a1.set(e.el,e),a1.set(e,e)}_bindLifecycleMethods(){let e=this.component,t=this.isLit,r=e.el===e;this._originalLifecycles={_connectedCallback:t||r?void 0:e.connectedCallback,_disconnectedCallback:t||r?void 0:e.disconnectedCallback,_load:t?e.load:e.componentWillLoad,_loaded:t?e.loaded:e.componentDidLoad,_willUpdate:t?void 0:e.componentWillUpdate,_updated:t?void 0:e.componentDidUpdate,_destroy:e.destroy};let n=this._connectedCallback.bind(this),i=this._disconnectedCallback.bind(this),o=this._update.bind(this),s=this._updated.bind(this);t?e.constructor.prototype.addController.call(e,{hostConnected:n,hostDisconnected:i,hostUpdate:o,hostUpdated:s}):(e.connectedCallback=n,e.disconnectedCallback=i,e.componentWillLoad=this._load.bind(this),e.componentDidLoad=this._loaded.bind(this),e.componentWillUpdate=o,e.componentDidUpdate=s),this.hasDestroy&&(e.destroy=this.destroy.bind(this))}_connectedCallback(){if(this.destroyed){let t=this.component.el.tagName.toLowerCase();throw this.component.el.remove(),new Error(`The ${t} component has already been destroyed. It cannot be used again. If you meant to disconnect and reconnect a component without automatic destroy, set the ${$5} prop.`)}this._autoDestroyTimeout!==void 0&&clearTimeout(this._autoDestroyTimeout);let e=this.internals;e.enabledWatchers=e.allWatchers,l1(),e.enableReadonly?.(),this._controllers.forEach(hY),this._originalLifecycles._connectedCallback?.call(this.component)}_disconnectedCallback(){this.destroyed||(this._controllers.forEach(gY),this._originalLifecycles._disconnectedCallback?.call(this.component),this.hasDestroy&&this._setAutoDestroyTimeout())}async _load(){await Promise.allSettled(Array.from(this._controllers,wY)),await this._originalLifecycles._load?.call(this.component),this.hasDestroy&&$v(this.component,$5,()=>this._setAutoDestroyTimeout())}_loaded(){this._controllers.forEach(yY),this._originalLifecycles._loaded?.call(this.component)}_update(){let e=this.component;return this._controllers.forEach(vY,e.$changes),this._originalLifecycles._willUpdate?.call(this.component)}_updated(){let e=this.component;if(this._controllers.forEach(bY,e.$changes),this._originalLifecycles._updated?.call(this.component),this.isLit)e.$changes=new Map;else{let t=this._updatePromise;this._updatePromise=new Co,t.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(_Y),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=T8(e,mY)}}},$5="autoDestroyDisabled",mY=1e3,gk=e=>e;xY=e=>EY(void 0,e),SY=class extends Fv{constructor(e,t){super(e);let r=this.exports;try{ju(this.component);let n=t(this.component,this),i=this.exports!==r;if(n instanceof Promise){i||this.setProvisionalExports(n);let o=n.then(s=>{this.exports=s,super.catchUpLifecycle()}).catch(s=>{this._ready.reject(s),console.error(s)});this.onLoad(async()=>await o)}else(!i||n!==void 0)&&(this.exports=n),queueMicrotask(()=>super.catchUpLifecycle())}catch(n){this._ready.reject(n),console.error(n)}}catchUpLifecycle(){}},EY=mk(SY),Uv=(e,t)=>new CY(e,t),CY=class extends Fv{constructor(e,t){super(),this._attributes=e,this._callback=t,this._observer=new MutationObserver(r=>{r.forEach(n=>{e.includes(n.attributeName)&&t.call(this.component,this.component.el.getAttribute(n.attributeName),n.oldValue,n.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()}},yk=(e,t)=>(r={})=>xY((n,i)=>{let o=Zx(n.el),s={_lang:o.lang,_t9nLocale:o.t9nLocale,_loading:!0},l=n;queueMicrotask(()=>i.onLifecycle(()=>C8(n.el,e("./assets"),({t9nLocale:d,t9nStrings:h,lang:g})=>{let b={...h,_lang:g,_t9nLocale:d,_loading:!1};i.exports=b;let S=h.componentLabel;typeof S=="string"&&"label"in n&&n.label==null&&(n.label??(n.label=S)),a(l.messageOverrides)},r.name)));function a(d){let h=i.exports,g=h._original??h,b=vk(g,d);d&&(b._original=g),i.exports=b}return"messageOverrides"in l&&i.onLifecycle(()=>$v(l,"messageOverrides",a)),r.blocking?(i.setProvisionalExports(s,!1),i.ready):s})});var c1=O(()=>{});var bk=O(()=>{});var U5=O(()=>{c1();});var _k=O(()=>{});var z5=O(()=>{c1();_k();});var xk=O(()=>{c1();});var Ek=O(()=>{z5();});var Tk=O(()=>{U5();});var Pk=O(()=>{c1();bk();U5();z5();xk();Ek();Tk()});var zv,Wv,W5,Mk,u1,Ak,Dt,B5,Bv,En=O(()=>{zv=globalThis,Wv=zv.ShadowRoot&&(zv.ShadyCSS===void 0||zv.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W5=Symbol(),Mk=new WeakMap,u1=class{constructor(t,r,n){if(this._$cssResult$=!0,n!==W5)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=r}get styleSheet(){let t=this.o,r=this.t;if(Wv&&t===void 0){let n=r!==void 0&&r.length===1;n&&(t=Mk.get(r)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),n&&Mk.set(r,t))}return t}toString(){return this.cssText}},Ak=e=>new u1(typeof e=="string"?e:e+"",void 0,W5),Dt=(e,...t)=>{let r=e.length===1?e[0]:t.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)+e[o+1],e[0]);return new u1(r,e,W5)},B5=(e,t)=>{if(Wv)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let n=document.createElement("style"),i=zv.litNonce;i!==void 0&&n.setAttribute("nonce",i),n.textContent=r.cssText,e.appendChild(n)}},Bv=Wv?e=>e:e=>e instanceof CSSStyleSheet?(t=>{let r="";for(let n of t.cssRules)r+=n.cssText;return Ak(r)})(e):e});var TY,PY,MY,AY,IY,LY,Hl,Ik,kY,NY,d1,Gv,G5,Lk,ga,p1=O(()=>{En();En();({is:TY,defineProperty:PY,getOwnPropertyDescriptor:MY,getOwnPropertyNames:AY,getOwnPropertySymbols:IY,getPrototypeOf:LY}=Object),Hl=globalThis,Ik=Hl.trustedTypes,kY=Ik?Ik.emptyScript:"",NY=Hl.reactiveElementPolyfillSupport,d1=(e,t)=>e,Gv={toAttribute(e,t){switch(t){case Boolean:e=e?kY:null;break;case Object:case Array:e=e==null?e:JSON.stringify(e)}return e},fromAttribute(e,t){let r=e;switch(t){case Boolean:r=e!==null;break;case Number:r=e===null?null:Number(e);break;case Object:case Array:try{r=JSON.parse(e)}catch{r=null}}return r}},G5=(e,t)=>!TY(e,t),Lk={attribute:!0,type:String,converter:Gv,reflect:!1,hasChanged:G5};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),Hl.litPropertyMetadata??(Hl.litPropertyMetadata=new WeakMap);ga=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,r=Lk){if(r.state&&(r.attribute=!1),this._$Ei(),this.elementProperties.set(t,r),!r.noAccessor){let n=Symbol(),i=this.getPropertyDescriptor(t,n,r);i!==void 0&&PY(this.prototype,t,i)}}static getPropertyDescriptor(t,r,n){let{get:i,set:o}=MY(this.prototype,t)??{get(){return this[r]},set(s){this[r]=s}};return{get(){return i?.call(this)},set(s){let l=i?.call(this);o.call(this,s),this.requestUpdate(t,l,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Lk}static _$Ei(){if(this.hasOwnProperty(d1("elementProperties")))return;let t=LY(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(d1("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(d1("properties"))){let r=this.properties,n=[...AY(r),...IY(r)];for(let i of n)this.createProperty(i,r[i])}let t=this[Symbol.metadata];if(t!==null){let r=litPropertyMetadata.get(t);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(t){let r=[];if(Array.isArray(t)){let n=new Set(t.flat(1/0).reverse());for(let i of n)r.unshift(Bv(i))}else t!==void 0&&r.push(Bv(t));return r}static _$Eu(t,r){let n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,r=this.constructor.elementProperties;for(let n of r.keys())this.hasOwnProperty(n)&&(t.set(n,this[n]),delete this[n]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return B5(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,r,n){this._$AK(t,n)}_$EC(t,r){let n=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,n);if(i!==void 0&&n.reflect===!0){let o=(n.converter?.toAttribute!==void 0?n.converter:Gv).toAttribute(r,n.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,r){let n=this.constructor,i=n._$Eh.get(t);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:Gv;this._$Em=i,this[i]=s.fromAttribute(r,o.type),this._$Em=null}}requestUpdate(t,r,n){if(t!==void 0){if(n??(n=this.constructor.getPropertyOptions(t)),!(n.hasChanged??G5)(this[t],r))return;this.P(t,r,n)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,r,n){this._$AL.has(t)||this._$AL.set(t,r),n.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(r){Promise.reject(r)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.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 t=!1,r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),this._$EO?.forEach(n=>n.hostUpdate?.()),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(t){}_$AE(t){this._$EO?.forEach(r=>r.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(r=>this._$EC(r,this[r]))),this._$EU()}updated(t){}firstUpdated(t){}};ga.elementStyles=[],ga.shadowRootOptions={mode:"open"},ga[d1("elementProperties")]=new Map,ga[d1("finalized")]=new Map,NY?.({ReactiveElement:ga}),(Hl.reactiveElementVersions??(Hl.reactiveElementVersions=[])).push("2.0.4")});var j5=O(()=>{p1();});var kk=O(()=>{j5();});function Wk(e,t){if(!Y5(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Nk!==void 0?Nk.createHTML(t):t}function Xu(e,t,r=e,n){if(t===Cn)return t;let i=n!==void 0?r.o?.[n]:r.l,o=g1(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(e),i._$AT(e,r,n)),n!==void 0?(r.o??(r.o=[]))[n]=i:r.l=i),i!==void 0&&(t=Xu(e,i._$AS(e,t.values),i,n)),t}var m1,jv,Nk,H5,wa,Z5,RY,Ju,h1,g1,Y5,Vk,q5,f1,Ok,Rk,Zu,Dk,Fk,Uk,J5,xe,Ps,zk,Cn,Re,$k,Yu,Bk,w1,qv,mm,Qu,Hv,Zv,Yv,Jv,Gk,DY,jk,Dr=O(()=>{m1=globalThis,jv=m1.trustedTypes,Nk=jv?jv.createPolicy("lit-html",{createHTML:e=>e}):void 0,H5="$lit$",wa=`lit$${Math.random().toFixed(9).slice(2)}$`,Z5="?"+wa,RY=`<${Z5}>`,Ju=document,h1=()=>Ju.createComment(""),g1=e=>e===null||typeof e!="object"&&typeof e!="function",Y5=Array.isArray,Vk=e=>Y5(e)||typeof e?.[Symbol.iterator]=="function",q5=`[
8
8
  \f\r]`,f1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ok=/-->/g,Rk=/>/g,Zu=RegExp(`>|${q5}(?:([^\\s"'>=/]+)(${q5}*=${q5}*(?:[^
9
9
  \f\r"'\`<>=]|("|')|))|$)`,"g"),Dk=/'/g,Fk=/"/g,Uk=/^(?:script|style|textarea|title)$/i,J5=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),xe=J5(1),Ps=J5(2),zk=J5(3),Cn=Symbol.for("lit-noChange"),Re=Symbol.for("lit-nothing"),$k=new WeakMap,Yu=Ju.createTreeWalker(Ju,129);Bk=(e,t)=>{let r=e.length-1,n=[],i,o=t===2?"<svg>":t===3?"<math>":"",s=f1;for(let l=0;l<r;l++){let a=e[l],d,h,g=-1,b=0;for(;b<a.length&&(s.lastIndex=b,h=s.exec(a),h!==null);)b=s.lastIndex,s===f1?h[1]==="!--"?s=Ok:h[1]!==void 0?s=Rk:h[2]!==void 0?(Uk.test(h[2])&&(i=RegExp("</"+h[2],"g")),s=Zu):h[3]!==void 0&&(s=Zu):s===Zu?h[0]===">"?(s=i??f1,g=-1):h[1]===void 0?g=-2:(g=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Zu:h[3]==='"'?Fk:Dk):s===Fk||s===Dk?s=Zu:s===Ok||s===Rk?s=f1:(s=Zu,i=void 0);let S=s===Zu&&e[l+1].startsWith("/>")?" ":"";o+=s===f1?a+RY:g>=0?(n.push(d),a.slice(0,g)+H5+a.slice(g)+wa+S):a+wa+(g===-2?l:S)}return[Wk(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),n]},w1=class e{constructor({strings:t,_$litType$:r},n){let i;this.parts=[];let o=0,s=0,l=t.length-1,a=this.parts,[d,h]=Bk(t,r);if(this.el=e.createElement(d,n),Yu.currentNode=this.el.content,r===2||r===3){let g=this.el.content.firstChild;g.replaceWith(...g.childNodes)}for(;(i=Yu.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let g of i.getAttributeNames())if(g.endsWith(H5)){let b=h[s++],S=i.getAttribute(g).split(wa),P=/([.?@])?(.*)/.exec(b);a.push({type:1,index:o,name:P[2],strings:S,ctor:P[1]==="."?Hv:P[1]==="?"?Zv:P[1]==="@"?Yv:Qu}),i.removeAttribute(g)}else g.startsWith(wa)&&(a.push({type:6,index:o}),i.removeAttribute(g));if(Uk.test(i.tagName)){let g=i.textContent.split(wa),b=g.length-1;if(b>0){i.textContent=jv?jv.emptyScript:"";for(let S=0;S<b;S++)i.append(g[S],h1()),Yu.nextNode(),a.push({type:2,index:++o});i.append(g[b],h1())}}}else if(i.nodeType===8)if(i.data===Z5)a.push({type:2,index:o});else{let g=-1;for(;(g=i.data.indexOf(wa,g+1))!==-1;)a.push({type:7,index:o}),g+=wa.length-1}o++}}static createElement(t,r){let n=Ju.createElement("template");return n.innerHTML=t,n}};qv=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:n}=this._$AD,i=(t?.creationScope??Ju).importNode(r,!0);Yu.currentNode=i;let o=Yu.nextNode(),s=0,l=0,a=n[0];for(;a!==void 0;){if(s===a.index){let d;a.type===2?d=new mm(o,o.nextSibling,this,t):a.type===1?d=new a.ctor(o,a.name,a.strings,this,t):a.type===6&&(d=new Jv(o,this,t)),this._$AV.push(d),a=n[++l]}s!==a?.index&&(o=Yu.nextNode(),s++)}return Yu.currentNode=Ju,i}p(t){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(t,n,r),r+=n.strings.length-2):n._$AI(t[r])),r++}},mm=class e{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,r,n,i){this.type=2,this._$AH=Re,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=n,this.options=i,this.v=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=Xu(this,t,r),g1(t)?t===Re||t==null||t===""?(this._$AH!==Re&&this._$AR(),this._$AH=Re):t!==this._$AH&&t!==Cn&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Vk(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Re&&g1(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ju.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:n}=t,i=typeof n=="number"?this._$AC(t):(n.el===void 0&&(n.el=w1.createElement(Wk(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===i)this._$AH.p(r);else{let o=new qv(i,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=$k.get(t.strings);return r===void 0&&$k.set(t.strings,r=new w1(t)),r}k(t){Y5(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,i=0;for(let o of t)i===r.length?r.push(n=new e(this.O(h1()),this.O(h1()),this,this.options)):n=r[i],n._$AI(o),i++;i<r.length&&(this._$AR(n&&n._$AB.nextSibling,i),r.length=i)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t&&t!==this._$AB;){let n=t.nextSibling;t.remove(),t=n}}setConnected(t){this._$AM===void 0&&(this.v=t,this._$AP?.(t))}},Qu=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,n,i,o){this.type=1,this._$AH=Re,this._$AN=void 0,this.element=t,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=Re}_$AI(t,r=this,n,i){let o=this.strings,s=!1;if(o===void 0)t=Xu(this,t,r,0),s=!g1(t)||t!==this._$AH&&t!==Cn,s&&(this._$AH=t);else{let l=t,a,d;for(t=o[0],a=0;a<o.length-1;a++)d=Xu(this,l[n+a],r,a),d===Cn&&(d=this._$AH[a]),s||(s=!g1(d)||d!==this._$AH[a]),d===Re?t=Re:t!==Re&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}s&&!i&&this.j(t)}j(t){t===Re?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Hv=class extends Qu{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Re?void 0:t}},Zv=class extends Qu{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Re)}},Yv=class extends Qu{constructor(t,r,n,i,o){super(t,r,n,i,o),this.type=5}_$AI(t,r=this){if((t=Xu(this,t,r,0)??Re)===Cn)return;let n=this._$AH,i=t===Re&&n!==Re||t.capture!==n.capture||t.once!==n.once||t.passive!==n.passive,o=t!==Re&&(n===Re||i);i&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Jv=class{constructor(t,r,n){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(t){Xu(this,t)}},Gk={M:H5,P:wa,A:Z5,C:1,L:Bk,R:qv,D:Vk,V:Xu,I:mm,H:Qu,N:Zv,U:Yv,B:Hv,F:Jv},DY=m1.litHtmlPolyfillSupport;DY?.(w1,mm),(m1.litHtmlVersions??(m1.litHtmlVersions=[])).push("3.2.0");jk=(e,t,r)=>{let n=r?.renderBefore??t,i=n._$litPart$;if(i===void 0){let o=r?.renderBefore??null;n._$litPart$=i=new mm(t.insertBefore(h1(),o),o,void 0,r??{})}return i._$AI(e),i}});var ya,FY,qk=O(()=>{p1();p1();Dr();Dr();ya=class extends ga{constructor(){super(...arguments),this.renderOptions={host:this},this.o=void 0}createRenderRoot(){var r;let t=super.createRenderRoot();return(r=this.renderOptions).renderBefore??(r.renderBefore=t.firstChild),t}update(t){let r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this.o=jk(r,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return Cn}};ya._$litElement$=!0,ya.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:ya});FY=globalThis.litElementPolyfillSupport;FY?.({LitElement:ya});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.1.0")});var X5=O(()=>{});var ro=O(()=>{p1();Dr();qk();X5()});var Ii,io,no,va=O(()=>{Ii={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},io=e=>(...t)=>({_$litDirective$:e,values:t}),no=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,r,n){this.t=t,this._$AM=r,this.i=n}_$AS(t,r){return this.update(t,r)}update(t,r){return this.render(...r)}}});var Hk,Zk=O(()=>{Dr();va();Hk=io(class extends no{constructor(e){if(super(e),e.type!==Ii.ATTRIBUTE||e.name!=="class"||e.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(e){return" "+Object.keys(e).filter(t=>e[t]).join(" ")+" "}update(e,[t]){if(this.st===void 0){this.st=new Set,e.strings!==void 0&&(this.nt=new Set(e.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(let n in t)t[n]&&!this.nt?.has(n)&&this.st.add(n);return this.render(t)}let r=e.element.classList;for(let n of this.st)n in t||(r.remove(n),this.st.delete(n));for(let n in t){let i=!!t[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 Cn}})});var Yk,$Y,Jk,Xk=O(()=>{Dr();va();Yk="important",$Y=" !"+Yk,Jk=io(class extends no{constructor(e){if(super(e),e.type!==Ii.ATTRIBUTE||e.name!=="style"||e.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(e){return Object.keys(e).reduce((t,r)=>{let n=e[r];return n==null?t:t+`${r=r.includes("-")?r:r.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${n};`},"")}update(e,[t]){let{style:r}=e.element;if(this.ft===void 0)return this.ft=new Set(Object.keys(t)),this.render(t);for(let n of this.ft)t[n]==null&&(this.ft.delete(n),n.includes("-")?r.removeProperty(n):r[n]=null);for(let n in t){let i=t[n];if(i!=null){this.ft.add(n);let o=typeof i=="string"&&i.endsWith($Y);n.includes("-")||o?r.setProperty(n,o?i.slice(0,-11):i,o?Yk:""):r[n]=i}}return Cn}})});var Qk=O(()=>{Xk()});var Nye,Xv,VY,Qv,Kv=O(()=>{Dr();({I:Nye}=Gk),Xv=e=>e.strings===void 0,VY={},Qv=(e,t=VY)=>e._$AH=t});var eb,Q5=O(()=>{Dr();va();Kv();eb=io(class extends no{constructor(e){if(super(e),e.type!==Ii.PROPERTY&&e.type!==Ii.ATTRIBUTE&&e.type!==Ii.BOOLEAN_ATTRIBUTE)throw Error("The `live` directive is not allowed on child or event bindings");if(!Xv(e))throw Error("`live` bindings can only contain a single expression")}render(e){return e}update(e,[t]){if(t===Cn||t===Re)return t;let r=e.element,n=e.name;if(e.type===Ii.PROPERTY){if(t===r[n])return Cn}else if(e.type===Ii.BOOLEAN_ATTRIBUTE){if(!!t===r.hasAttribute(n))return Cn}else if(e.type===Ii.ATTRIBUTE&&r.getAttribute(n)===t+"")return Cn;return Qv(e),t}})});function eN(e){let t,r=i=>{t=new URL(i,globalThis.location?.href||void 0).href},n={...e,getAssetPath(i){let o=new URL(i,t);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(e.defaultAssetPath),n}function hm(e,t,r){r==null?e.removeAttribute(t):e.setAttribute(t,r)}var Kk,Ft,UY,Ku,$t,_e,tb,pi,ba,Fr=O(()=>{"use strict";tk();A5();Hu();Pk();Hu();kk();j5();To();ro();Hu();Zk();Qk();va();Q5();Dr();Kk=(e="",t={},r=qu())=>{let n={emit:i=>{e===""&&l1();let o=new CustomEvent(e,{detail:i,cancelable:!0,bubbles:!0,composed:!0,...t});return r.el.dispatchEvent(o),o}};return e===""&&Vv(void 0,i=>{e=i.key},n),n},Ft=Kk.bind(null,""),UY=()=>{},$t=(Ku=class extends ya{constructor(){super(),this.el=this.constructor.lazy??this,this.manager=wk(this),this._postLoad=this.constructor.lazy?._postLoad??new Co,this._offspring=this.constructor.lazy?._offspring??[],this._postLoaded=this.constructor.lazy?._postLoaded??new Co,this._enableUpdating=this.enableUpdating,this.enableUpdating=UY;let t=Ku.prototype.shouldUpdate;this.shouldUpdate!==t&&(this._originalShouldUpdate=this.shouldUpdate,this.shouldUpdate=t),!1}static finalizeStyles(t){let r=super.finalizeStyles(t),n=this.shadowRootOptions===L5;return this.runtime?.commonStyles===void 0||n?r:[this.runtime.commonStyles,...r]}static createProperty(t,r){let n=typeof r=="number"?r:Array.isArray(r)?r[0]:0,i=Array.isArray(r)?r[1]:void 0;super.createProperty(t,{attribute:n&1&&typeof t=="string"?$w(t):!1,reflect:!!(n&2),type:n&4?Boolean:n&8?Number:void 0,state:!!(n&16),readOnly:!!(n&32),noAccessor:!!(n&64),...i})}connectedCallback(){if(this.el.hasAttribute("defer-hydration"))return;let t=!this.manager.connectedCalled;super.connectedCallback(),t&&queueMicrotask(()=>this._load().catch(r=>{this._postLoaded.reject(r),setTimeout(()=>{throw r})}))}createRenderRoot(){let t=this.el.shadowRoot,r=this.constructor,n=r.shadowRootOptions,o=t??(n===L5?this.el:this.el.attachShadow(n));if(Object.defineProperty(this,"shadowRoot",{value:o}),t)return ya.prototype.createRenderRoot.call(this),t;if(this.isConnected){let s=o.getRootNode();s.adoptedStyleSheets=[...s.adoptedStyleSheets,...r.elementStyles.map(l=>"styleSheet"in l?l.styleSheet:l)]}return o}async _load(){let t=this.el._ancestorLoad??I5(this.el);t&&await t,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(t){return this.$changes=t,this._originalShouldUpdate?.(t)??!0}listen(t,r,n){let i=r?.bind(this)??r;this.manager.onLifecycle(()=>(this.el.addEventListener(t,i,n),()=>this.el.removeEventListener(t,i,n)))}listenOn(t,r,n,i){let o=n?.bind(this)??n;this.manager.onLifecycle(()=>(t.addEventListener(r,o,i),()=>t.removeEventListener(r,o,i)))}async componentOnReady(){return await this._postLoaded.promise,this}},Ku.lumina=!0,Ku);$t.$createEvent=Kk;_e=e=>typeof e=="object"&&e!=null?Hk(e):e,tb=e=>typeof e=="object"&&e!=null?Jk(e):e,pi=Re;ba={toAttribute:e=>e===!0?"":e===!1?null:e}});function tN(){let{classList:e}=document.body,t=window.matchMedia("(prefers-color-scheme: dark)").matches,r=()=>e.contains(iN)||e.contains(nN)&&t?"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 jY(){if(y1&&y1.version)return;console.info(`Using Calcite Components ${rN} [Date: ${BY}, Revision: ${GY}]`);let e=y1||globalThis.calciteConfig||{};Object.defineProperty(e,"version",{value:rN,writable:!1}),globalThis.calciteConfig=e}function qY(){oo()&&(document.readyState==="interactive"?tN():document.addEventListener("DOMContentLoaded",()=>tN(),{once:!0})),jY()}var nN,iN,zY,v1,eE,y1,oN,WY,rN,BY,GY,oo,HY,Gt,b1,sN,cr=O(()=>{Fr();X5();nN="calcite-mode-auto",iN="calcite-mode-dark",zY="calcite-mode-light",v1={autoMode:nN,darkMode:iN,lightMode:zY,rtl:"calcite--rtl",calciteAnimate:"calcite-animate",calciteAnimateIn:"calcite-animate__in",calciteAnimateInUp:"calcite-animate__in-up",calciteAnimateInDown:"calcite-animate__in-down",calciteAnimateInRight:"calcite-animate__in-right",calciteAnimateInLeft:"calcite-animate__in-left",calciteAnimateInScale:"calcite-animate__in-scale"},eE={filter:250,nextTick:0,resize:150,reposition:100};y1=globalThis.calciteConfig,oN=y1?.focusTrapStack||[],WY=y1?.logLevel||"info",rN="3.0.0-next.96",BY="2025-01-11",GY="f2217a187";oo=()=>!!1&&typeof navigator<"u"&&typeof window<"u"&&typeof location<"u"&&typeof document<"u"&&window.location===location&&window.document===document;qY();HY=eN({defaultAssetPath:"https://cdn.jsdelivr.net/npm/@esri/calcite-components@3.0.0-next.96/dist/calcite/",hydratedAttribute:"calcite-hydrated"}),{customElement:Gt,getAssetPath:b1,setAssetPath:sN}=HY});var tE,aN,lN=O(()=>{cr();cr();tE=!1,aN=e=>{tE=!0,sN(e)}});function uN(){tE||aN(eo(am(cN)))}function dN(e){let t=[];for(let r of Object.keys(e))customElements.get(`calcite-${r}`)||t.push(e[r]?.());return t.length>0?Promise.all(t):null}var cN,rE=O(()=>{lN();yv();tt();Es();cN="components/assets"});var rb,nb,nE=O(()=>{rb=Symbol("widget"),nb=Symbol("widget-test-data")});function iE(e,t){let r=t.children;if(r?.length)for(let i=0;i<r.length;++i)r[i]=iE(e,r[i]);else r=ZY;let n=t.vnodeSelector;if(gm(n)){let i=t.properties||YY,o=i.key||n,s={key:o,afterCreate:JY,afterUpdate:XY,afterRemoved:pN,parentWidget:e,widgetConstructor:n,widgetProperties:{...i,key:o,children:r}};return{vnodeSelector:n.vnodeSelector,properties:s,children:void 0,text:void 0,domNode:null}}return t}function JY(e,t,r,{parentWidget:n,widgetConstructor:i,widgetProperties:o}){let s=new i(o);s.container=e,ib.set(e,s),s.afterCreate?.(s,e),n.addHandles(Pt(()=>pN(e))),queueMicrotask(()=>{s[nb].projector.renderNow()})}function XY(e,t,r,{widgetProperties:n}){let i=ib.get(e);i&&(i.set(n),i.afterUpdate?.(i,e))}function pN(e){let t=ib.get(e);t&&(t.afterRemoved?.(t,e),t.destroy(),ib.delete(e))}function gm(e){return typeof e=="function"&&e[rb]}var ZY,YY,ib,oE=O(()=>{ci();nE();ZY=[],YY={},ib=new WeakMap});function mN(e){fN.add(e),e.finally(()=>fN.delete(e))}var fN,hN=O(()=>{fN=new Set});function wN(e,t){let r=Object.prototype.hasOwnProperty;for(let n in t)r.call(t,n)&&r.call(e,n)&&(e[n]!=null&&t[n]!=null&&typeof e[n]=="object"&&typeof t[n]=="object"?wN(e[n],t[n]):e[n]=t[n]);return e}var gN,QY,KY,eJ,sE,$r,yN,vN=O(()=>{gt();a5();QI();pv();Ng();tt();ar();it();da();tL();Qi();m5();pL();yt();n1();ft();_s();O4();KL();rE();oE();nE();hN();v5();Iv();Ml();e1();QY="esri.widgets.Widget",KY=0;eJ=QL({postProcessProjectionOptions(e){let t=e.eventHandlerInterceptor,r=/capture$/i;e.eventHandlerInterceptor=(n,i,o,s)=>{let l=t?.(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=S=>l?.call(o,S);o.addEventListener(d,h,a);let g=()=>o.removeEventListener(d,h,a),b=s.afterRemoved;s.afterRemoved=S=>{b?.(S),g()}}return l}},handleInterceptedEvent(e,t,r,n){let{eventPhase:i,type:o}=n,s=i===Event.CAPTURING_PHASE,l=`on${o}${s?"capture":""}`,a=t.properties;(a&&l in a||(l=`on${o[0].toUpperCase()}${o.slice(1)}${s?"Capture":""}`,a&&l in a))&&(Mv(),e.scheduleRender(),a[l].call(a.bind||r,n))}}),sE=!1,$r=class extends eL.EsriPromiseMixin(Vo.EventedAccessor){constructor(e,t){super(e,t),this._attached=!1,this._projector=eJ,this._readyForTrueRender=!1,this.key=this,this.autoRenderingEnabled=!0,this._loadLocale=PA(async()=>{if(this._messageBundleProps?.length){let l=await Promise.allSettled(this._messageBundleProps.map(async({bundlePath:a,propertyName:d})=>{if(this.destroyed)return;let h=await i5(a);this.uiStrings&&Object.keys(this.uiStrings)&&(h=wN(Je(h),this.uiStrings)),this[d]=h}));if(this.destroyed)return;for(let a of l)a.status==="rejected"&&ot.getLogger(this).error("widget-intl:locale-error",this.declaredClass,a.reason)}await this.loadLocale()}),uN();let r="esri-widget-uid-"+dL(),n=this.render.bind(this);this._trackingTarget=new Ru(()=>{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=()=>{var h;if(!this._readyForTrueRender||this.destroyed)return null;let l=n()??i(),a=l.properties??(l.properties={});if(a.key??(a.key=r),gm(l.vnodeSelector)){if(!this.visible)return i()}else this.visible?a.styles||(a.styles={}):(a.class="",a.styles={display:"none"}),(h=a.styles).display??(h.display="");let d=0;return l.children?.forEach(g=>{var b;gm(g.vnodeSelector)||(g.properties??(g.properties={}),(b=g.properties).key??(b.key=`${this.id}--${d++}`))}),iE(this,l)};this.render=()=>{if(sE)return o();let l=NL(this)??null;if(l)return l;this._trackingTarget.clear(),sE=!0;try{l=Do(this._trackingTarget,o)}catch(a){throw ot.getLogger(this).error(a),a}finally{sE=!1}return l&&OL(this,l),l};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),mN(this._resourcesFetch)}normalizeCtorArgs(e,t){let r={...e};return t&&(r.container=t),r}postInitialize(){}beforeFirstRender(){let e=this.loadDependencies();return this._messageBundleProps?.length||e?Promise.all([e,this._loadLocale()]).then(()=>{}).catch(P4):null}loadDependencies(){return null}loadLocale(){return null}destroy(){this.destroyed||(Pg(this._trackingTarget),Pg(this.viewModel),this._detach(this.container),this._set("container",null),this._emitter.clear(),this.render=()=>null,this._projector=null,Av(this))}set container(e){this._get("container")||this._set("container",e)}castContainer(e){return XI(e)}get domNode(){return this.container}set domNode(e){this.container=e}get icon(){return null}set icon(e){this._overrideIfSome("icon",e)}get id(){return this._get("id")||this.container?.id||Date.now().toString(16)+"-widget-"+KY++}set id(e){e&&this._set("id",e)}get label(){return this.declaredClass.split(".").pop()}set label(e){this._overrideIfSome("label",e)}get renderable(){return this._resourcesFetch}get visible(){return this._get("visible")}set visible(e){this._set("visible",e)}get[(gN=rb,nb)](){return{projector:this._projector}}render(){throw new Error("not implemented")}scheduleRender(){this.destroyed||(Av(this),this._projector.scheduleRender())}classes(...e){return RL.apply(this,e)}renderNow(){Av(this),this._projector.renderNow()}_postInitialize(){if(this.destroyed)return;this.scheduleRender(),this._delegatedEventNames?.length&&this.addHandles(r1(()=>this.viewModel,(t,r)=>{r&&this.removeHandles("delegated-events"),t&&kg(t)&&this.addHandles(this._delegatedEventNames.map(n=>Ol(t,n,i=>{this.emit(n,i)})),"delegated-events")},vv)),this.postInitialize();let e=async()=>{await this._loadLocale().catch(P4),this.scheduleRender()};this.addHandles([BS(e),r1(()=>this.uiStrings,e),cL(()=>this.container,t=>{this.destroyed||this._attach(t)},{initial:!0,once:!0})])}_attach(e){e&&(this._projector.merge(e,this.render),this._attached=!0)}_detach(e){this._attached&&(this._projector.detach(this.render),this._attached=!1),e?.parentNode?.removeChild(e)}};$r[gN]=!0,$r.vnodeSelector="div",R([V()],$r.prototype,"_readyForTrueRender",void 0),R([V({value:null})],$r.prototype,"container",null),R([ha("container")],$r.prototype,"castContainer",null),R([V()],$r.prototype,"icon",null),R([V()],$r.prototype,"id",null),R([V()],$r.prototype,"label",null),R([V()],$r.prototype,"renderable",null),R([V()],$r.prototype,"uiStrings",void 0),R([V()],$r.prototype,"viewModel",void 0),R([V({value:!0})],$r.prototype,"visible",null),R([V()],$r.prototype,"key",void 0),R([V()],$r.prototype,"children",void 0),R([V()],$r.prototype,"afterCreate",void 0),R([V()],$r.prototype,"afterUpdate",void 0),R([V()],$r.prototype,"afterRemoved",void 0),$r=R([Le(QY)],$r);yN=$r});function aE(e){return(t,r)=>{t.hasOwnProperty("_messageBundleProps")||(t._messageBundleProps=t._messageBundleProps?t._messageBundleProps.slice():[]),t._messageBundleProps.push({bundlePath:e,propertyName:r})}}var bN=O(()=>{});function Li(e,t,...r){return typeof e!="function"||gm(e)?rJ(e,t??null,...r):e(t,...r)}var tJ,_N,rJ,xN=O(()=>{oE();tJ=function(e){return{vnodeSelector:"",properties:void 0,children:void 0,text:e.toString(),domNode:null}},_N=function(e,t){for(var r=0,n=e.length;r<n;r++){var i=e[r];Array.isArray(i)?_N(i,t):i!=null&&i!==!1&&(i.hasOwnProperty("vnodeSelector")||(i=tJ(i)),t.push(i))}},rJ=function(e,t){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];if(r.length===1&&typeof r[0]=="string")return{vnodeSelector:e,properties:t||void 0,children:void 0,text:r[0],domNode:null};var i=[];return _N(r,i),{vnodeSelector:e,properties:t||void 0,children:i,text:void 0,domNode:null}}});function iJ(){return getComputedStyle(document.body).getPropertyValue("--esri-calcite-mode-name").replaceAll(/\s|'|"/g,"")}function oJ(){return iJ().startsWith("dark")}function SN(){return`${nJ}${oJ()?"dark":"light"}`}var nJ,EN=O(()=>{nJ="calcite-mode-"});function sJ(e){return e.map(t=>{let r="";for(let n=0;n<t;n++)r+=((1+Math.random())*65536|0).toString(16).substring(1);return r}).join("-")}var _a,wm=O(()=>{_a=()=>sJ([2,1,1,1,3])});var pn,Ms=O(()=>{Hu();cr();pn=yk(b1)});var ym,aJ,ob,lE,CN=O(()=>{cr();ro();Fr();wm();Ms();En();ym={container:"container",loader:"loader",percentage:"percentage",progressRing:"ring--progress",ring:"ring",rings:"rings",text:"text",trackRing:"ring--track"},aJ=Dt`: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}`,ob=class ob extends $t{constructor(){super(...arguments),this.messages=pn({name:null}),this.complete=!1,this.inline=!1,this.scale="m",this.text="",this.type="indeterminate",this.value=0}connectedCallback(){super.connectedCallback(),this.updateFormatter()}load(){requestAnimationFrame(()=>this.valueChangeHandler())}willUpdate(t){t.has("value")&&(this.hasUpdated||this.value!==0)&&this.valueChangeHandler(),(t.has("type")&&(this.hasUpdated||this.type!=="indeterminate")||t.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(t){return{s:32,m:64,l:96}[t]}getInlineSize(t){return{s:12,m:16,l:24}[t]}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:t,inline:r,label:n,text:i,type:o,value:s}=this,l=t.id||_a(),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,hm(this.el,"id",l),this.el.role="progressbar",xe`<div class=${_e(ym.rings)}>${this.renderRing("track")}${this.renderRing("progress")}${!r&&a&&xe`<div class=${_e(ym.percentage)}>${this.formatValue()}</div>`||""}</div>${!r&&i&&xe`<div class=${_e(ym.text)}>${i}</div>`||""}`}renderRing(t){let{inline:r,scale:n,value:i}=this,o=r?this.getInlineSize(n):this.getSize(n),s=o*.45,l;if(t==="progress"){let a=2*s*Math.PI,d=(this.type.startsWith("determinate")?i:24)/100*a,h=a-d;l={"stroke-dasharray":`${d} ${h}`}}return xe`<svg aria-hidden=true class=${_e({[ym.ring]:!0,[ym.trackRing]:t==="track",[ym.progressRing]:t==="progress"})} style=${tb(l)} viewBox=${`0 0 ${o} ${o}`}>${Ps`<circle cx=${o/2} cy=${o/2} r=${s??Re} />`}</svg>`}};ob.properties={complete:7,inline:7,label:1,scale:3,text:1,type:3,value:9},ob.styles=aJ;lE=ob;Gt("calcite-loader",lE)});var sb=O(()=>{CN()});function Zl(e){let t="dir",r=`[${t}]`,n=Yl(e,r);return n?n.getAttribute(t):"ltr"}function NN(e){return e.getRootNode()}function ON(e){return e.host||null}function ed(e,{selector:t,id:r}){if(!e)return null;e.assignedSlot&&(e=e.assignedSlot);let n=NN(e);return(r?"getElementById"in n?n.getElementById(r):null:t?n.querySelector(t):null)||ed(ON(n),{selector:t,id:r})}function Yl(e,t){return e?e.closest(t)||Yl(ON(NN(e)),t):null}function PJ(e){return typeof e?.setFocus=="function"}async function cb(e){if(e)return PJ(e)?e.setFocus():e.focus()}function MJ(e){if(e)return TJ(e,uE)[0]??e}function Jl(e){MJ(e)?.focus()}function AJ(e,t){return e.filter(r=>r.matches(t))}function xa(e,t,r){if(typeof t=="string"&&t!=="")return t;if(t===""||t===!0)return e[r]}function vm(e){return(!!e).toString()}function RN(e){return Qn(e)||LJ(e)}function IJ(e){return kJ(e).filter(t=>t.nodeType===Node.TEXT_NODE).map(t=>t.textContent).join("").trim()}function DN(e){for(let t of e.childNodes)if(t.nodeType===Node.TEXT_NODE&&t.textContent?.trim()!==""||t.nodeType===Node.ELEMENT_NODE)return!0;return!1}function LJ(e){return!!IJ(e)}function kJ(e){return e.currentTarget.assignedNodes({flatten:!0})}function Qn(e){return!!ub(e).length}function ub(e,t){return NJ(e.target,t)}function NJ(e,t){let r=e.assignedElements({flatten:!0});return t?AJ(r,t):r}function FN(e){return!!(e.isPrimary&&e.button===0)}function $N(e){return e.detail===0}function VN(e,t){if(e.parentNode!==t.parentNode)return!1;let r=Array.from(e.parentNode.children);return r.indexOf(e)<r.indexOf(t)}async function UN(e,t,r,n){return OJ(e,t,"transition",r,n)}async function OJ(e,t,r,n,i){let o=window.getComputedStyle(e),s=r==="transition"?o.transitionDuration:o.animationDuration,l=r==="transition"?o.transitionProperty:o.animationName,a=s.split(","),d=l.split(",").map(A=>A.trim()).indexOf(t),h=a[d]??a[0];function g(){requestAnimationFrame(()=>{n?.(),requestAnimationFrame(()=>i?.())})}if(h==="0s"){g();return}let b=r==="transition"?"transitionstart":"animationstart",S=r==="transition"?"transitionend":"animationend",P=r==="transition"?"transitioncancel":"animationcancel";return new Promise(A=>{let F=window.setTimeout(()=>{e.removeEventListener(b,W),e.removeEventListener(S,z),e.removeEventListener(P,z),g(),A()},parseFloat(h)*1e3);e.addEventListener(b,W),e.addEventListener(S,z),e.addEventListener(P,z);function W(q){q.target===e&&MN(q)===t&&(window.clearTimeout(F),e.removeEventListener(b,W),n?.())}function z(q){q.target===e&&MN(q)===t&&(e.removeEventListener(S,z),e.removeEventListener(P,z),i?.(),A())}})}function RJ(e){return"propertyName"in e}function MN(e){return RJ(e)?e.propertyName:e.animationName}function x1(e){return e.endsWith("px")}var lJ,cE,AN,_1,ab,lb,cJ,uJ,dJ,IN,LN,pJ,fJ,kN,mJ,hJ,gJ,wJ,yJ,vJ,bJ,TN,_J,xJ,SJ,PN,EJ,CJ,TJ,uE,Tn=O(()=>{wm();cr();lJ=["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])"],cE=lJ.join(","),AN=typeof Element>"u",_1=AN?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,ab=!AN&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},lb=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},cJ=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},uJ=function(e,t,r){if(lb(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(cE));return t&&_1.call(e,cE)&&n.unshift(e),n=n.filter(r),n},dJ=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!lb(s,!1))if(s.tagName==="SLOT"){var l=s.assignedElements(),a=l.length?l:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=_1.call(s,cE);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),b=!lb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&b){var S=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,S):i.push({scopeParent:s,candidates:S})}else o.unshift.apply(o,s.children)}}return i},IN=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},LN=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||cJ(e))&&!IN(e)?0:e.tabIndex},pJ=function(e,t){var r=LN(e);return r<0&&t&&!IN(e)?0:r},fJ=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},kN=function(e){return e.tagName==="INPUT"},mJ=function(e){return kN(e)&&e.type==="hidden"},hJ=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},gJ=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},wJ=function(e){if(!e.name)return!0;var t=e.form||ab(e),r=function(o){return t.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(e.name));else try{n=r(e.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=gJ(n,e.form);return!i||i===e},yJ=function(e){return kN(e)&&e.type==="radio"},vJ=function(e){return yJ(e)&&!wJ(e)},bJ=function(e){var t,r=e&&ab(e),n=(t=r)===null||t===void 0?void 0:t.host,i=!1;if(r&&r!==e){var o,s,l;for(i=!!((o=n)!==null&&o!==void 0&&(s=o.ownerDocument)!==null&&s!==void 0&&s.contains(n)||e!=null&&(l=e.ownerDocument)!==null&&l!==void 0&&l.contains(e));!i&&n;){var a,d,h;r=ab(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},TN=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return r===0&&n===0},_J=function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var i=_1.call(e,"details>summary:first-of-type"),o=i?e.parentElement:e;if(_1.call(o,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof n=="function"){for(var s=e;e;){var l=e.parentElement,a=ab(e);if(l&&!l.shadowRoot&&n(l)===!0)return TN(e);e.assignedSlot?e=e.assignedSlot:!l&&a!==e.ownerDocument?e=a.host:e=l}e=s}if(bJ(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return TN(e);return!1},xJ=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if(n.tagName==="LEGEND")return _1.call(t,"fieldset[disabled] *")?!0:!n.contains(e)}return!0}t=t.parentElement}return!1},SJ=function(e,t){return!(t.disabled||lb(t)||mJ(t)||_J(t,e)||hJ(t)||xJ(t))},PN=function(e,t){return!(vJ(t)||LN(t)<0||!SJ(e,t))},EJ=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},CJ=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,l=s?i.scopeParent:i,a=pJ(l,s),d=s?e(i.candidates):l;a===0?s?r.push.apply(r,d):r.push(l):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(fJ).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},TJ=function(e,t){t=t||{};var r;return t.getShadowRoot?r=dJ([e],t.includeContainer,{filter:PN.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:EJ}):r=uJ(e,t.includeContainer,PN.bind(null,t)),CJ(r)},uE={getShadowRoot:!0}});function Kn(e,t,r){if(!oo())return;let n=DJ(e);return new n(t,r)}function DJ(e){class t 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 e==="intersection"?window.IntersectionObserver:e==="mutation"?t:window.ResizeObserver}()}var Xl=O(()=>{cr();});function BN({icon:e,scale:t}){let r=WN[t],n=UJ(e),i=n.charAt(n.length-1)==="F";return`${i?n.substring(0,n.length-1):n}${r}${i?"F":""}`}async function $J(e){let t=BN(e),r=GN(t);if(r)return r;dE[t]||(dE[t]=fetch(b1(`./assets/icon/${t}.json`)).then(i=>i.json()).catch(()=>(console.error(`"${t}" is not a valid calcite-ui-icon name`),"")));let n=await dE[t];return zN[t]=n,n}function VJ(e){return GN(BN(e))}function GN(e){return zN[e]}function UJ(e){let t=!isNaN(Number(e.charAt(0))),r=e.split("-");if(r.length>0){let n=/[a-z]/i;e=r.map((i,o)=>i.replace(n,function(s,l){return o===0&&l===0?s:s.toUpperCase()})).join("")}return t?`i${e}`:e}var FJ,zN,dE,WN,zJ,db,pE,jN=O(()=>{cr();ro();Fr();Tn();Xl();En();FJ={icon:"icon",flipRtl:"flip-rtl"},zN={},dE={},WN={s:16,m:24,l:32};zJ=Dt`: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}`,db=class db extends $t{constructor(){super(...arguments),this.visible=!1,this.flipRtl=!1,this.icon=null,this.preload=!1,this.scale="m"}connectedCallback(){if(super.connectedCallback(),this.preload){this.visible=!0,this.loadIconPathData();return}this.visible||this.waitUntilVisible(()=>{this.visible=!0,this.loadIconPathData()})}willUpdate(t){(t.has("icon")&&(this.hasUpdated||this.icon!==null)||t.has("scale")&&(this.hasUpdated||this.scale!=="m"))&&this.loadIconPathData()}disconnectedCallback(){super.disconnectedCallback(),this.intersectionObserver?.disconnect(),this.intersectionObserver=null}async loadIconPathData(){let{icon:t,scale:r,visible:n}=this;if(!oo()||!t||!n)return;let i={icon:t,scale:r},o=VJ(i)||await $J(i);t===this.icon&&(this.pathData=o)}waitUntilVisible(t){if(this.intersectionObserver=Kn("intersection",r=>{r.forEach(n=>{n.isIntersecting&&(this.intersectionObserver.disconnect(),this.intersectionObserver=null,t())})},{rootMargin:"50px"}),!this.intersectionObserver){t();return}this.intersectionObserver.observe(this.el)}render(){let{el:t,flipRtl:r,pathData:n,scale:i,textLabel:o}=this,s=Zl(t),l=WN[i],a=!!o,d=[].concat(n||"");return this.el.ariaHidden=vm(!a),this.el.ariaLabel=a?o:null,this.el.role=a?"img":null,xe`<svg aria-hidden=true class=${_e({[FJ.flipRtl]:s==="rtl"&&r,svg:!0})} fill=currentColor height=100% viewBox=${`0 0 ${l} ${l}`} width=100% xmlns=http://www.w3.org/2000/svg>${d.map(h=>typeof h=="string"?Ps`<path d=${h??Re} />`:Ps`<path d=${h.d??Re} opacity=${("opacity"in h?h.opacity:1)??Re} />`)}</svg>`}};db.properties={pathData:16,visible:16,flipRtl:7,icon:3,preload:7,scale:3,textLabel:1},db.styles=zJ;pE=db;Gt("calcite-icon",pE)});var td=O(()=>{jN()});function WJ(e){this._$AN!==void 0?(pb(this),this._$AM=e,qN(this)):this._$AM=e}function BJ(e,t=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(t)if(Array.isArray(n))for(let o=r;o<n.length;o++)S1(n[o],!1),pb(n[o]);else n!=null&&(S1(n,!1),pb(n));else S1(this,e)}var S1,pb,qN,GJ,fb,HN=O(()=>{Kv();va();va();S1=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(t,!1),S1(n,t);return!0},pb=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},qN=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),GJ(t)}};GJ=e=>{e.type==Ii.CHILD&&(e._$AP??(e._$AP=BJ),e._$AQ??(e._$AQ=WJ))},fb=class extends no{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,n){super._$AT(t,r,n),qN(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(S1(this,t),pb(this))}setValue(t){if(Xv(this.t))this.t._$AI(t,this);else{let r=[...this.t._$AH];r[this.i]=t,this.t._$AI(r,this,0)}}disconnected(){}reconnected(){}}});var ki,mE,fE,At,Wo=O(()=>{Dr();HN();va();ki=()=>new mE,mE=class{},fE=new WeakMap,At=io(class extends fb{render(e){return Re}update(e,[t]){let r=t!==this.Y;return r&&this.Y!==void 0&&this.rt(void 0),(r||this.lt!==this.ct)&&(this.Y=t,this.ht=e.options?.host,this.rt(this.ct=e.element)),Re}rt(e){if(this.isConnected||(e=void 0),typeof this.Y=="function"){let t=this.ht??globalThis,r=fE.get(t);r===void 0&&(r=new WeakMap,fE.set(t,r)),r.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),r.set(this.Y,e),e!==void 0&&this.Y.call(this.ht,e)}else this.Y.value=e}get lt(){return typeof this.Y=="function"?fE.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 hE,jJ,YN,Ql,ZN,gE,bm,Fbe,$be,mb=O(()=>{Dr();hE=Symbol.for(""),jJ=e=>{if(e?.r===hE)return e?._$litStatic$},YN=e=>({_$litStatic$:e,r:hE}),Ql=(e,...t)=>({_$litStatic$:t.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
10
- take care to ensure page security.`)})(n)+e[i+1],e[0]),r:hE}),ZN=new Map,gE=e=>(t,...r)=>{let n=r.length,i,o,s=[],l=[],a,d=0,h=!1;for(;d<n;){for(a=t[d];d<n&&(o=r[d],(i=jJ(o))!==void 0);)a+=i+t[++d],h=!0;d!==n&&l.push(o),s.push(a),d++}if(d===n&&s.push(t[n]),h){let g=s.join("$$lit$$");(t=ZN.get(g))===void 0&&(s.raw=s,ZN.set(g,t=s)),r=l}return e(t,...r)},bm=gE(xe),Fbe=gE(Ps),$be=gE(zk)});function HJ(e){return`${e.split("-").map((t,r)=>r===0?t:`${t[0].toUpperCase()}${t.slice(1)}`).join("")}${qJ.includes(e)?"Input":"Change"}`}function vE(e){return"checked"in e}function ZJ(e,t){if(Yl(t.parentElement,"[form]"))return!0;let r="calciteInternalFormComponentRegister",n=!1;return e.addEventListener(r,i=>{n=i.composedPath().some(o=>bE.has(o)),i.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0})),n}function YJ(e,{status:t,message:r,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&typeof e.validationIcon!="string"&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=r)}function KN(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Yl(e,"calcite-radio-button-group"):e}function JN(e){let t=e?.target,r=t?.validationMessage,n=KN(t?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(JJ),YJ(n,{message:r,icon:!0,status:"invalid"});let s=HJ(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=t?.validity)},{once:!0})}function hb(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",JN,!0),t.requestSubmit(),t.removeEventListener("invalid",JN,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function eO(e){e.formEl?.reset()}function tO(e){let{el:t,value:r}=e,n=_E(e);if(!n||ZJ(n,t))return;e.formEl=n,e.defaultValue=r,vE(e)&&(e.defaultChecked=e.checked);let i=XJ.bind(e);n.addEventListener("reset",i),yE.set(e.el,i),bE.add(t)}function _E(e){let{el:t,form:r}=e;return r?ed(t,{id:r}):Yl(t,"form")}function XJ(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),vE(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue,this.onFormReset?.()}function rO(e){let{el:t,formEl:r}=e;if(!r)return;let n=yE.get(t);r.removeEventListener("reset",n),yE.delete(t),e.formEl=null,bE.delete(t)}function QJ(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${wE}"]`);if(!r||!n){s.forEach(g=>{XN(g),g.remove()});return}let l=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let b=l.find(S=>S==g.value);b!=null?(d.add(b),QN(e,g,b)):a.push(g)});let h;l.forEach(g=>{if(d.has(g))return;let b=a.pop();b||(b=o.createElement("input"),b.slot=wE),h||(h=o.createDocumentFragment()),h.append(b),b.addEventListener("input",nO),QN(e,b,g)}),h&&t.append(h),a.forEach(g=>{XN(g),g.remove()})}function QN(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:l}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=l,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),vE(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let a=KN(e.el);if(a&&"validity"in a)for(let d in{...t?.validity})a.validity[d]=t.validity[d]}var qJ,wE,yE,bE,JJ,gb,nO,XN,iO,xE=O(()=>{Dr();Tn();qJ=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];wE="hidden-form-input";yE=new WeakMap,bE=new WeakSet;JJ=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});gb="calciteInternalHiddenInputInput",nO=e=>{e.target.dispatchEvent(new CustomEvent(gb,{bubbles:!0}))},XN=e=>e.removeEventListener("input",nO);iO=({component:e})=>(QJ(e),xe`<slot name=${wE}></slot>`)});function KJ(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function oO(e){e.target.disabled&&e.preventDefault()}function aO(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Kl(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),eX(e);return}rX(e),e.el.removeAttribute("aria-disabled")}function eX(e){e.el.click=KJ,tX(e.el)}function tX(e){e.addEventListener("pointerdown",oO,wb),sO.forEach(t=>e.addEventListener(t,aO,wb))}function rX(e){delete e.el.click,nX(e.el)}function nX(e){e.removeEventListener("pointerdown",oO,wb),sO.forEach(t=>e.removeEventListener(t,aO,wb))}var sO,wb,iX,ec,E1=O(()=>{Dr();Fr();sO=["mousedown","mouseup","click"];wb={capture:!0};iX={container:"interaction-container"},ec=({children:e,disabled:t})=>xe`<div class=${_e(iX.container)} .inert=${t}>${e}</div>`});function sX(e,t){let r,n="custom-element-ancestor-check",i=o=>{o.stopImmediatePropagation();let s=o.composedPath();r=s.slice(s.indexOf(t),s.indexOf(e))};return e.addEventListener(n,i,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,i),r.filter(o=>o!==t&&o!==e).filter(o=>o.tagName?.includes("-")).length>0}function xm(e){if(!e)return;let t=oX(e.el);if(C1.has(t)&&t===e.labelEl||!t&&rd.has(e))return;let r=lX.bind(e);if(t){e.labelEl=t;let n=_m.get(t)||[];n.push(e),_m.set(t,n.sort(dO)),C1.has(e.labelEl)||(C1.set(e.labelEl,cO),e.labelEl.addEventListener(uO,cO)),rd.delete(e),document.removeEventListener(M1,P1.get(e)),yb.set(e,r),document.addEventListener(T1,r)}else rd.has(e)||(r(),document.removeEventListener(T1,yb.get(e)))}function vb(e){if(!e||(rd.delete(e),document.removeEventListener(M1,P1.get(e)),document.removeEventListener(T1,yb.get(e)),P1.delete(e),yb.delete(e),!e.labelEl))return;let t=_m.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(uO,C1.get(e.labelEl)),C1.delete(e.labelEl)),_m.set(e.labelEl,t.filter(r=>r!==e).sort(dO)),e.labelEl=null}function dO(e,t){return VN(e.el,t.el)?-1:1}function A1(e){return e.label||e.labelEl?.textContent?.trim()||""}function cO(e){let t=e.detail.sourceEvent.target,r=_m.get(this),n=r.find(o=>o.el===t);if(r.includes(n))return;let i=r[0];i.disabled||i.onLabelClick(e)}function aX(){rd.has(this)&&xm(this)}function lX(){rd.add(this);let e=P1.get(this)||aX.bind(this);P1.set(this,e),document.addEventListener(M1,e)}async function pO(e){if(await e.componentOnReady(),_m.has(e))return;let t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(let r of rd)if(r.el===t){xm(r);break}})}var uO,M1,T1,lO,_m,C1,P1,yb,rd,oX,bb=O(()=>{Tn();uO="calciteInternalLabelClick",M1="calciteInternalLabelConnected",T1="calciteInternalLabelDisconnected",lO="calcite-label",_m=new WeakMap,C1=new WeakMap,P1=new WeakMap,yb=new WeakMap,rd=new Set,oX=e=>{let{id:t}=e,r=t&&ed(e,{selector:`${lO}[for="${t}"]`});if(r)return r;let n=Yl(e,lO);return!n||sX(n,e)?null:n}});function Un(e){mO.set(e,new Promise(t=>fO.set(e,t)))}function zn(e){fO.get(e)()}function cX(e){return mO.get(e)}async function Wn(e){if(await cX(e),!!oo())return e.requestUpdate(),new Promise(t=>requestAnimationFrame(()=>t()))}var fO,mO,Sa=O(()=>{cr();fO=new WeakMap,mO=new WeakMap});var hO=O(()=>{cr();});function ei(e){return e==="l"?"m":"s"}var Sm=O(()=>{hO();});var Ni,uX,xb,_b,gO=O(()=>{cr();Dr();Wo();mb();Fr();Hu();xE();E1();bb();Sa();Xl();Sm();Ms();Tn();En();Ni={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"},uX=Dt`: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}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a: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 button,:host a{--calcite-button-content-margin-internal: .5rem;--calcite-button-padding-x-internal: 7px;--calcite-button-padding-y-internal: 3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);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-radius:0;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;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 button:hover,:host a:hover{text-decoration-line:none}:host button span,:host a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{margin-inline:var(--calcite-button-content-margin-internal)}.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-button-content-margin-internal: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin-internal: 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-button-content-margin-internal)}.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-button-content-margin-internal)}: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{border-width:1px;border-style:solid;border-color:transparent}:host([kind=brand]) button,:host([kind=brand]) a{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{background-color:var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{background-color:var(--calcite-color-brand-press)}:host([kind=brand]) button calcite-loader,:host([kind=brand]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=danger]) button,:host([kind=danger]) a{background-color:var(--calcite-color-status-danger);color:var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{background-color:var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{background-color:var(--calcite-color-status-danger-press)}:host([kind=danger]) button calcite-loader,:host([kind=danger]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=neutral]) button,:host([kind=neutral]) a{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{background-color:var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{background-color:var(--calcite-color-foreground-1)}:host([kind=neutral]) button calcite-loader,:host([kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{color:var(--calcite-color-text-inverse);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{background-color:var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{background-color:var(--calcite-color-inverse-press)}:host([kind=inverse]) button calcite-loader,:host([kind=inverse]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button calcite-loader,:host([appearance=outline-fill][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline-fill][kind=inverse]) button calcite-loader,:host([appearance=outline-fill][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:transparent;color:var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:transparent;color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button calcite-loader,:host([appearance=outline][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline][kind=inverse]) button calcite-loader,:host([appearance=outline][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}: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: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{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{color:var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{color:var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{color:var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{color:var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-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{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{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-button-padding-y-internal: 0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{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{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-button-padding-x-internal: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-button-padding-y-internal: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x-internal: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-padding-y-internal: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x-internal: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-button-padding-x-internal: 1rem;--calcite-button-padding-y-internal: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-button-padding-y-internal: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-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-button-padding-x-internal: .125rem;--calcite-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-button-padding-x-internal: .125rem;--calcite-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-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-button-padding-x-internal: 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-button-padding-x-internal: 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-button-padding-x-internal: 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-button-padding-x-internal: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 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-button-padding-x-internal: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,xb=class xb extends $t{constructor(){super(...arguments),this.attributeWatch=Uv(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=ki(),this.mutationObserver=Kn("mutation",()=>this.updateHasContent()),this.resizeObserver=Kn("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=pn(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}async setFocus(){await Wn(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),xm(this),this.formEl=_E(this)}async load(){Un(this),oo()&&this.updateHasContent()}updated(){Kl(this)}loaded(){zn(this),this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),vb(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=DN(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:t}=this;this.href||(t==="submit"?hb(this):t==="reset"&&eO(this))}setTooltipText(){let{contentEl:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)}setChildEl(t){this.childEl=t,t&&this.resizeObserver?.observe(t)}render(){let t=this.href?"a":"button",r=this.href?Ql`a`:Ql`button`,n=this.loading?xe`<div class=${_e(Ni.buttonLoader)}><calcite-loader class=${_e(this.loading?Ni.loadingIn:Ni.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,i=!this.iconStart&&!this.iconEnd,o=xe`<calcite-icon class=${_e({[Ni.icon]:!0,[Ni.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${ei(this.scale)}></calcite-icon>`,s=xe`<calcite-icon class=${_e({[Ni.icon]:!0,[Ni.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${ei(this.scale)}></calcite-icon>`,l=xe`<span class=${_e(Ni.content)} ${At(this.contentEl)}><slot></slot></span>`;return ec({disabled:this.disabled,children:bm`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:A1(this)} aria-live=polite class=${_e({[Ni.buttonPadding]:i,[Ni.buttonPaddingShrunk]:!i,[Ni.contentSlotted]:this.hasContent,[Ni.iconStartEmpty]:!this.iconStart,[Ni.iconEndEmpty]:!this.iconEnd})} .disabled=${t==="button"?this.disabled:null} download=${(t==="a"?this.download===!0||this.download===""?"":this.download||null:null)??pi} href=${(t==="a"&&this.href)??pi} name=${(t==="button"&&this.name)??pi} @click=${this.handleClick} rel=${(t==="a"&&this.rel)??pi} tabindex=${(this.disabled?-1:null)??pi} target=${(t==="a"&&this.target)??pi} title=${this.tooltipText??pi} type=${(t==="button"?this.type:null)??pi} ${At(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?l:null}${this.iconEnd?s:null}</${r}>`})}};xb.properties={hasContent:16,tooltipText:16,alignment:3,appearance:3,disabled:7,download:[3,{converter:ba}],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},xb.styles=uX;_b=xb;Gt("calcite-button",_b)});var wO={};Qs(wO,{Button:()=>_b});var yO=O(()=>{sb();td();gO()});var vO,bO,dX,Sb,SE,_O=O(()=>{cr();Wo();Dr();Fr();Xl();Tn();Ms();En();vO={scrim:"scrim",content:"content"},bO={s:72,l:480},dX=Dt`: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}`,Sb=class Sb extends $t{constructor(){super(...arguments),this.resizeObserver=Kn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=pn()}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(t){this.hasContent=RN(t)}storeLoaderEl(t){this.loaderEl=t,this.handleResize()}getScale(t){return t<bO.s?"s":t>=bO.l?"l":"m"}handleResize(){let{loaderEl:t,el:r}=this;t&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}render(){let{hasContent:t,loading:r,messages:n}=this;return xe`<div class=${_e(vO.scrim)}>${r?xe`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${At(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${_e(vO.content)} .hidden=${!t}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};Sb.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0},Sb.styles=dX;SE=Sb;Gt("calcite-scrim",SE)});var EE=O(()=>{sb();_O()});var ur,tc=O(()=>{Dr();va();Kv();ur=io(class extends no{constructor(){super(...arguments),this.key=Re}render(e,t){return this.key=e,t}update(e,[t,r]){return t!==this.key&&(Qv(e),this.key=t),r}})});var Bo,pX,fX,Eb,CE,xO=O(()=>{cr();Dr();tc();Wo();Fr();wm();E1();Sa();Xl();Sm();Ms();En();Bo={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"},pX={tooltip:"tooltip"},fX=Dt`: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}: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-color-text-3));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}`,Eb=class Eb extends $t{constructor(){super(...arguments),this.guid=`calcite-action-${_a()}`,this.buttonEl=ki(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Kn("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=pn({blocking:!0}),this.scale="m",this.textEnabled=!1}async setFocus(){await Wn(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){Un(this)}updated(){Kl(this)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"))[0];r&&(r.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:t,textEnabled:r}=this,n={[Bo.textContainer]:!0,[Bo.textContainerVisible]:r};return t?ur("text-container",xe`<div class=${_e(n)}>${t}</div>`):null}renderIndicatorText(){let{indicator:t,messages:r,indicatorId:n,buttonId:i}=this;return xe`<div aria-labelledby=${i??pi} aria-live=polite class=${_e(Bo.indicatorText)} id=${n??pi} role=region>${t?r.indicator:null}</div>`}renderIconContainer(){let{loading:t,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,l=n==="l"?"l":"m",a=t?xe`<calcite-loader inline .label=${this.messages.loading} .scale=${l}></calcite-loader>`:null,d=r?xe`<calcite-icon class=${_e({[Bo.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${ei(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,b=xe`<div class=${_e({[Bo.slotContainer]:!0,[Bo.slotContainerHidden]:t})}><slot></slot></div>`;return g?ur("icon-container",xe`<div aria-hidden=true class=${_e(Bo.iconContainer)}>${h}${b}</div>`):null}render(){let{active:t,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:l,text:a,indicator:d,indicatorId:h,buttonId:g,messages:b}=this,S=l||a||"",P=d?b.indicatorLabel.replace("{label}",S):S,A={[Bo.button]:!0,[Bo.buttonTextVisible]:s,[Bo.buttonCompact]:r};return ec({disabled:n,children:xe`<button aria-controls=${(d?h:null)??pi} .ariaBusy=${o} .ariaLabel=${P} .ariaPressed=${t} class=${_e(A)} .disabled=${n} id=${g??pi} ${At(this.buttonEl)}>${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&ur("indicator-no-icon",xe`<div class=${_e(Bo.indicatorWithoutIcon)}></div>`)||""}</button><slot name=${pX.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};Eb.properties={active:7,alignment:3,appearance:3,compact:7,disabled:7,icon:1,iconFlipRtl:7,indicator:7,label:1,loading:7,messageOverrides:0,scale:3,text:1,textEnabled:7},Eb.styles=fX;CE=Eb;Gt("calcite-action",CE)});var Cb=O(()=>{sb();td();xO()});function Tb(e,t,r){return Ea(e,rc(t,r))}function nc(e,t){return typeof e=="function"?e(t):e}function As(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function ME(e){return e==="x"?"y":"x"}function Pb(e){return e==="y"?"height":"width"}function nd(e){return["top","bottom"].includes(As(e))?"y":"x"}function Mb(e){return ME(nd(e))}function AE(e,t,r){r===void 0&&(r=!1);let n=jo(e),i=Mb(e),o=Pb(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=L1(s)),[s,L1(s)]}function EO(e){let t=L1(e);return[I1(e),t,I1(t)]}function I1(e){return e.replace(/start|end/g,t=>hX[t])}function gX(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function CO(e,t,r,n){let i=jo(e),o=gX(As(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(I1)))),o}function L1(e){return e.replace(/left|right|bottom|top/g,t=>mX[t])}function wX(e){return{top:0,right:0,bottom:0,left:0,...e}}function IE(e){return typeof e!="number"?wX(e):{top:e,right:e,bottom:e,left:e}}function id(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}var TE,SO,PE,rc,Ea,k1,N1,Go,mX,hX,Ab=O(()=>{TE=["top","right","bottom","left"],SO=["start","end"],PE=TE.reduce((e,t)=>e.concat(t,t+"-"+SO[0],t+"-"+SO[1]),[]),rc=Math.min,Ea=Math.max,k1=Math.round,N1=Math.floor,Go=e=>({x:e,y:e}),mX={left:"right",right:"left",bottom:"top",top:"bottom"},hX={start:"end",end:"start"}});function TO(e,t,r){let{reference:n,floating:i}=e,o=nd(t),s=Mb(t),l=Pb(s),a=As(t),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,b=n[l]/2-i[l]/2,S;switch(a){case"top":S={x:h,y:n.y-i.height};break;case"bottom":S={x:h,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:g};break;case"left":S={x:n.x-i.width,y:g};break;default:S={x:n.x,y:n.y}}switch(jo(t)){case"start":S[s]-=b*(r&&d?-1:1);break;case"end":S[s]+=b*(r&&d?-1:1);break}return S}async function Em(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:l,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=nc(t,e),P=IE(S),F=l[b?g==="floating"?"reference":"floating":g],W=id(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(F)))==null||r?F:F.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:h,strategy:a})),z=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(l.floating)),G=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},Y=id(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:z,offsetParent:q,strategy:a}):z);return{top:(W.top-Y.top+P.top)/G.y,bottom:(Y.bottom-W.bottom+P.bottom)/G.y,left:(W.left-Y.left+P.left)/G.x,right:(Y.right-W.right+P.right)/G.x}}function yX(e,t,r){return(e?[...r.filter(i=>jo(i)===e),...r.filter(i=>jo(i)!==e)]:r.filter(i=>As(i)===i)).filter(i=>e?jo(i)===e||(t?I1(i)!==i:!1):!0)}function PO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function MO(e){return TE.some(t=>e[t]>=0)}async function vX(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=As(r),l=jo(r),a=nd(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=nc(t,e),{mainAxis:b,crossAxis:S,alignmentAxis:P}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof P=="number"&&(S=l==="end"?P*-1:P),a?{x:S*h,y:b*d}:{x:b*d,y:S*h}}var AO,IO,LO,kO,NO,OO,RO,DO=O(()=>{Ab();Ab();AO=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=TO(d,n,a),b=n,S={},P=0;for(let A=0;A<l.length;A++){let{name:F,fn:W}=l[A],{x:z,y:q,data:G,reset:Y}=await W({x:h,y:g,initialPlacement:n,placement:b,strategy:i,middlewareData:S,rects:d,platform:s,elements:{reference:e,floating:t}});h=z??h,g=q??g,S={...S,[F]:{...S[F],...G}},Y&&P<=50&&(P++,typeof Y=="object"&&(Y.placement&&(b=Y.placement),Y.rects&&(d=Y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):Y.rects),{x:h,y:g}=TO(d,b,a)),A=-1)}return{x:h,y:g,placement:b,strategy:i,middlewareData:S}};IO=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=t,{element:d,padding:h=0}=nc(e,t)||{};if(d==null)return{};let g=IE(h),b={x:r,y:n},S=Mb(i),P=Pb(S),A=await s.getDimensions(d),F=S==="y",W=F?"top":"left",z=F?"bottom":"right",q=F?"clientHeight":"clientWidth",G=o.reference[P]+o.reference[S]-b[S]-o.floating[P],Y=b[S]-o.reference[S],ie=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),U=ie?ie[q]:0;(!U||!await(s.isElement==null?void 0:s.isElement(ie)))&&(U=l.floating[q]||o.floating[P]);let me=G/2-Y/2,Ae=U/2-A[P]/2-1,Ee=rc(g[W],Ae),Ne=rc(g[z],Ae),we=Ee,ce=U-A[P]-Ne,J=U/2-A[P]/2+me,ee=Tb(we,J,ce),pe=!a.arrow&&jo(i)!=null&&J!==ee&&o.reference[P]/2-(J<we?Ee:Ne)-A[P]/2<0,de=pe?J<we?J-we:J-ce:0;return{[S]:b[S]+de,data:{[S]:ee,centerOffset:J-ee-de,...pe&&{alignmentOffset:de}},reset:pe}}});LO=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:l,platform:a,elements:d}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:b=PE,autoAlignment:S=!0,...P}=nc(e,t),A=g!==void 0||b===PE?yX(g||null,S,b):b,F=await Em(t,P),W=((r=s.autoPlacement)==null?void 0:r.index)||0,z=A[W];if(z==null)return{};let q=AE(z,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(l!==z)return{reset:{placement:A[0]}};let G=[F[As(z)],F[q[0]],F[q[1]]],Y=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:z,overflows:G}],ie=A[W+1];if(ie)return{data:{index:W+1,overflows:Y},reset:{placement:ie}};let U=Y.map(Ee=>{let Ne=jo(Ee.placement);return[Ee.placement,Ne&&h?Ee.overflows.slice(0,2).reduce((we,ce)=>we+ce,0):Ee.overflows[0],Ee.overflows]}).sort((Ee,Ne)=>Ee[1]-Ne[1]),Ae=((i=U.filter(Ee=>Ee[2].slice(0,jo(Ee[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||U[0][0];return Ae!==l?{data:{index:W+1,overflows:Y},reset:{placement:Ae}}:{}}}},kO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:a,elements:d}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:A=!0,...F}=nc(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let W=As(i),z=nd(l),q=As(l)===l,G=await(a.isRTL==null?void 0:a.isRTL(d.floating)),Y=b||(q||!A?[L1(l)]:EO(l)),ie=P!=="none";!b&&ie&&Y.push(...CO(l,A,P,G));let U=[l,...Y],me=await Em(t,F),Ae=[],Ee=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&Ae.push(me[W]),g){let J=AE(i,s,G);Ae.push(me[J[0]],me[J[1]])}if(Ee=[...Ee,{placement:i,overflows:Ae}],!Ae.every(J=>J<=0)){var Ne,we;let J=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,ee=U[J];if(ee)return{data:{index:J,overflows:Ee},reset:{placement:ee}};let pe=(we=Ee.filter(de=>de.overflows[0]<=0).sort((de,Se)=>de.overflows[1]-Se.overflows[1])[0])==null?void 0:we.placement;if(!pe)switch(S){case"bestFit":{var ce;let de=(ce=Ee.filter(Se=>{if(ie){let ye=nd(Se.placement);return ye===z||ye==="y"}return!0}).map(Se=>[Se.placement,Se.overflows.filter(ye=>ye>0).reduce((ye,Fe)=>ye+Fe,0)]).sort((Se,ye)=>Se[1]-ye[1])[0])==null?void 0:ce[0];de&&(pe=de);break}case"initialPlacement":pe=l;break}if(i!==pe)return{reset:{placement:pe}}}return{}}}};NO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=nc(e,t);switch(n){case"referenceHidden":{let o=await Em(t,{...i,elementContext:"reference"}),s=PO(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:MO(s)}}}case"escaped":{let o=await Em(t,{...i,altBoundary:!0}),s=PO(o,r.floating);return{data:{escapedOffsets:s,escaped:MO(s)}}}default:return{}}}}};OO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:l}=t,a=await vX(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},RO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:F=>{let{x:W,y:z}=F;return{x:W,y:z}}},...a}=nc(e,t),d={x:r,y:n},h=await Em(t,a),g=nd(As(i)),b=ME(g),S=d[b],P=d[g];if(o){let F=b==="y"?"top":"left",W=b==="y"?"bottom":"right",z=S+h[F],q=S-h[W];S=Tb(z,S,q)}if(s){let F=g==="y"?"top":"left",W=g==="y"?"bottom":"right",z=P+h[F],q=P-h[W];P=Tb(z,P,q)}let A=l.fn({...t,[b]:S,[g]:P});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[b]:o,[g]:s}}}}}}});function Ib(){return typeof window<"u"}function od(e){return $O(e)?(e.nodeName||"").toLowerCase():"#document"}function fi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qo(e){var t;return(t=($O(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $O(e){return Ib()?e instanceof Node||e instanceof fi(e).Node:!1}function so(e){return Ib()?e instanceof Element||e instanceof fi(e).Element:!1}function Ho(e){return Ib()?e instanceof HTMLElement||e instanceof fi(e).HTMLElement:!1}function FO(e){return!Ib()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fi(e).ShadowRoot}function Tm(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=ao(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function VO(e){return["table","td","th"].includes(od(e))}function O1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Pm(e){let t=Lb(),r=so(e)?ao(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function UO(e){let t=Ca(e);for(;Ho(t)&&!sd(t);){if(Pm(t))return t;if(O1(t))return null;t=Ca(t)}return null}function Lb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function sd(e){return["html","body","#document"].includes(od(e))}function ao(e){return fi(e).getComputedStyle(e)}function R1(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ca(e){if(od(e)==="html")return e;let t=e.assignedSlot||e.parentNode||FO(e)&&e.host||qo(e);return FO(t)?t.host:t}function zO(e){let t=Ca(e);return sd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ho(t)&&Tm(t)?t:zO(t)}function Cm(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=zO(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=fi(i);if(o){let l=kb(s);return t.concat(s,s.visualViewport||[],Tm(i)?i:[],l&&r?Cm(l):[])}return t.concat(i,Cm(i,[],r))}function kb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var LE=O(()=>{});function GO(e){let t=ao(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ho(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=k1(r)!==o||k1(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function NE(e){return so(e)?e:e.contextElement}function Mm(e){let t=NE(e);if(!Ho(t))return Go(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=GO(t),s=(o?k1(r.width):r.width)/n,l=(o?k1(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function jO(e){let t=fi(e);return!Lb()||!t.visualViewport?bX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _X(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fi(e)?!1:t}function ad(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=NE(e),s=Go(1);t&&(n?so(n)&&(s=Mm(n)):s=Mm(e));let l=_X(o,r,n)?jO(o):Go(0),a=(i.left+l.x)/s.x,d=(i.top+l.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let b=fi(o),S=n&&so(n)?fi(n):n,P=b,A=kb(P);for(;A&&n&&S!==P;){let F=Mm(A),W=A.getBoundingClientRect(),z=ao(A),q=W.left+(A.clientLeft+parseFloat(z.paddingLeft))*F.x,G=W.top+(A.clientTop+parseFloat(z.paddingTop))*F.y;a*=F.x,d*=F.y,h*=F.x,g*=F.y,a+=q,d+=G,P=fi(A),A=kb(P)}}return id({width:h,height:g,x:a,y:d})}function OE(e,t){let r=R1(e).scrollLeft;return t?t.left+r:ad(qo(e)).left+r}function qO(e,t,r){r===void 0&&(r=!1);let n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:OE(e,n)),o=n.top+t.scrollTop;return{x:i,y:o}}function xX(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=qo(n),l=t?O1(t.floating):!1;if(n===s||l&&o)return r;let a={scrollLeft:0,scrollTop:0},d=Go(1),h=Go(0),g=Ho(n);if((g||!g&&!o)&&((od(n)!=="body"||Tm(s))&&(a=R1(n)),Ho(n))){let S=ad(n);d=Mm(n),h.x=S.x+n.clientLeft,h.y=S.y+n.clientTop}let b=s&&!g&&!o?qO(s,a,!0):Go(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x+b.x,y:r.y*d.y-a.scrollTop*d.y+h.y+b.y}}function SX(e){return Array.from(e.getClientRects())}function EX(e){let t=qo(e),r=R1(e),n=e.ownerDocument.body,i=Ea(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Ea(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+OE(e),l=-r.scrollTop;return ao(n).direction==="rtl"&&(s+=Ea(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}function CX(e,t){let r=fi(e),n=qo(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;let d=Lb();(!d||d&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function TX(e,t){let r=ad(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Ho(e)?Mm(e):Go(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:l,x:a,y:d}}function WO(e,t,r){let n;if(t==="viewport")n=CX(e,r);else if(t==="document")n=EX(qo(e));else if(so(t))n=TX(t,r);else{let i=jO(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return id(n)}function HO(e,t){let r=Ca(e);return r===t||!so(r)||sd(r)?!1:ao(r).position==="fixed"||HO(r,t)}function PX(e,t){let r=t.get(e);if(r)return r;let n=Cm(e,[],!1).filter(l=>so(l)&&od(l)!=="body"),i=null,o=ao(e).position==="fixed",s=o?Ca(e):e;for(;so(s)&&!sd(s);){let l=ao(s),a=Pm(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Tm(s)&&!a&&HO(e,s))?n=n.filter(h=>h!==s):i=l,s=Ca(s)}return t.set(e,n),n}function MX(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?O1(t)?[]:PX(t,this._c):[].concat(r),n],l=s[0],a=s.reduce((d,h)=>{let g=WO(t,h,i);return d.top=Ea(g.top,d.top),d.right=rc(g.right,d.right),d.bottom=rc(g.bottom,d.bottom),d.left=Ea(g.left,d.left),d},WO(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function AX(e){let{width:t,height:r}=GO(e);return{width:t,height:r}}function IX(e,t,r){let n=Ho(t),i=qo(t),o=r==="fixed",s=ad(e,!0,o,t),l={scrollLeft:0,scrollTop:0},a=Go(0);if(n||!n&&!o)if((od(t)!=="body"||Tm(i))&&(l=R1(t)),n){let b=ad(t,!0,o,t);a.x=b.x+t.clientLeft,a.y=b.y+t.clientTop}else i&&(a.x=OE(i));let d=i&&!n&&!o?qO(i,l):Go(0),h=s.left+l.scrollLeft-a.x-d.x,g=s.top+l.scrollTop-a.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function kE(e){return ao(e).position==="static"}function BO(e,t){if(!Ho(e)||ao(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return qo(e)===r&&(r=r.ownerDocument.body),r}function ZO(e,t){let r=fi(e);if(O1(e))return r;if(!Ho(e)){let i=Ca(e);for(;i&&!sd(i);){if(so(i)&&!kE(i))return i;i=Ca(i)}return r}let n=BO(e,t);for(;n&&VO(n)&&kE(n);)n=BO(n,t);return n&&sd(n)&&kE(n)&&!Pm(n)?r:n||UO(e)||r}function kX(e){return ao(e).direction==="rtl"}function NX(e,t){let r=null,n,i=qo(e);function o(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();let{left:d,top:h,width:g,height:b}=e.getBoundingClientRect();if(l||t(),!g||!b)return;let S=N1(h),P=N1(i.clientWidth-(d+g)),A=N1(i.clientHeight-(h+b)),F=N1(d),z={rootMargin:-S+"px "+-P+"px "+-A+"px "+-F+"px",threshold:Ea(0,rc(1,a))||1},q=!0;function G(Y){let ie=Y[0].intersectionRatio;if(ie!==a){if(!q)return s();ie?s(!1,ie):n=setTimeout(()=>{s(!1,1e-7)},1e3)}q=!1}try{r=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{r=new IntersectionObserver(G,z)}r.observe(e)}return s(!0),o}function YO(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=NE(e),h=i||o?[...d?Cm(d):[],...Cm(t)]:[];h.forEach(W=>{i&&W.addEventListener("scroll",r,{passive:!0}),o&&W.addEventListener("resize",r)});let g=d&&l?NX(d,r):null,b=-1,S=null;s&&(S=new ResizeObserver(W=>{let[z]=W;z&&z.target===d&&S&&(S.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var q;(q=S)==null||q.observe(t)})),r()}),d&&!a&&S.observe(d),S.observe(t));let P,A=a?ad(e):null;a&&F();function F(){let W=ad(e);A&&(W.x!==A.x||W.y!==A.y||W.width!==A.width||W.height!==A.height)&&r(),A=W,P=requestAnimationFrame(F)}return r(),()=>{var W;h.forEach(z=>{i&&z.removeEventListener("scroll",r),o&&z.removeEventListener("resize",r)}),g?.(),(W=S)==null||W.disconnect(),S=null,a&&cancelAnimationFrame(P)}}var bX,LX,Nb,JO,XO,QO,RE,KO,eR,tR,rR=O(()=>{DO();Ab();LE();bX=Go(0);LX=async function(e){let t=this.getOffsetParent||ZO,r=this.getDimensions,n=await r(e.floating);return{reference:IX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};Nb={convertOffsetParentRelativeRectToViewportRelativeRect:xX,getDocumentElement:qo,getClippingRect:MX,getOffsetParent:ZO,getElementRects:LX,getClientRects:SX,getDimensions:AX,getScale:Mm,isElement:so,isRTL:kX};JO=OO,XO=LO,QO=RO,RE=kO,KO=NO,eR=IO,tR=(e,t,r)=>{let n=new Map,i={platform:Nb,...r},o={...i.platform,_c:n};return AO(e,t,{...i,platform:o})}});var OX,nR,iR=O(()=>{OX=typeof global=="object"&&global&&global.Object===Object&&global,nR=OX});var RX,DX,Ob,DE=O(()=>{iR();RX=typeof self=="object"&&self&&self.Object===Object&&self,DX=nR||RX||Function("return this")(),Ob=DX});var FX,Am,FE=O(()=>{DE();FX=Ob.Symbol,Am=FX});function UX(e){var t=$X.call(e,D1),r=e[D1];try{e[D1]=void 0;var n=!0}catch{}var i=VX.call(e);return n&&(t?e[D1]=r:delete e[D1]),i}var oR,$X,VX,D1,sR,aR=O(()=>{FE();oR=Object.prototype,$X=oR.hasOwnProperty,VX=oR.toString,D1=Am?Am.toStringTag:void 0;sR=UX});function BX(e){return WX.call(e)}var zX,WX,lR,cR=O(()=>{zX=Object.prototype,WX=zX.toString;lR=BX});function qX(e){return e==null?e===void 0?jX:GX:uR&&uR in Object(e)?sR(e):lR(e)}var GX,jX,uR,dR,pR=O(()=>{FE();aR();cR();GX="[object Null]",jX="[object Undefined]",uR=Am?Am.toStringTag:void 0;dR=qX});function HX(e){return e!=null&&typeof e=="object"}var fR,mR=O(()=>{fR=HX});function YX(e){return typeof e=="symbol"||fR(e)&&dR(e)==ZX}var ZX,hR,gR=O(()=>{pR();mR();ZX="[object Symbol]";hR=YX});function XX(e){for(var t=e.length;t--&&JX.test(e.charAt(t)););return t}var JX,wR,yR=O(()=>{JX=/\s/;wR=XX});function KX(e){return e&&e.slice(0,wR(e)+1).replace(QX,"")}var QX,vR,bR=O(()=>{yR();QX=/^\s+/;vR=KX});function eQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var F1,$E=O(()=>{F1=eQ});function oQ(e){if(typeof e=="number")return e;if(hR(e))return _R;if(F1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=F1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vR(e);var r=rQ.test(e);return r||nQ.test(e)?iQ(e.slice(2),r?2:8):tQ.test(e)?_R:+e}var _R,tQ,rQ,nQ,iQ,VE,xR=O(()=>{bR();$E();gR();_R=NaN,tQ=/^[-+]0x[0-9a-f]+$/i,rQ=/^0b[01]+$/i,nQ=/^0o[0-7]+$/i,iQ=parseInt;VE=oQ});var sQ,Rb,SR=O(()=>{DE();sQ=function(){return Ob.Date.now()},Rb=sQ});function uQ(e,t,r){var n,i,o,s,l,a,d=0,h=!1,g=!1,b=!0;if(typeof e!="function")throw new TypeError(aQ);t=VE(t)||0,F1(r)&&(h=!!r.leading,g="maxWait"in r,o=g?lQ(VE(r.maxWait)||0,t):o,b="trailing"in r?!!r.trailing:b);function S(ie){var U=n,me=i;return n=i=void 0,d=ie,s=e.apply(me,U),s}function P(ie){return d=ie,l=setTimeout(W,t),h?S(ie):s}function A(ie){var U=ie-a,me=ie-d,Ae=t-U;return g?cQ(Ae,o-me):Ae}function F(ie){var U=ie-a,me=ie-d;return a===void 0||U>=t||U<0||g&&me>=o}function W(){var ie=Rb();if(F(ie))return z(ie);l=setTimeout(W,A(ie))}function z(ie){return l=void 0,b&&n?S(ie):(n=i=void 0,s)}function q(){l!==void 0&&clearTimeout(l),d=0,n=a=i=l=void 0}function G(){return l===void 0?s:z(Rb())}function Y(){var ie=Rb(),U=F(ie);if(n=arguments,i=this,a=ie,U){if(l===void 0)return P(a);if(g)return clearTimeout(l),l=setTimeout(W,t),S(a)}return l===void 0&&(l=setTimeout(W,t)),s}return Y.cancel=q,Y.flush=G,Y}var aQ,lQ,cQ,UE,ER=O(()=>{$E();SR();xR();aQ="Expected a function",lQ=Math.max,cQ=Math.min;UE=uQ});var CR=O(()=>{ER();});function TR(e){return dQ(e)}function zE(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function dQ(e){for(let t=e;t;t=zE(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=zE(e);t;t=zE(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Pm(r)||t.tagName==="BODY"))return t}return null}var PR=O(()=>{LE()});function MR(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}function fQ({placement:e,flipDisabled:t,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let l=[QO(),KO()];if(s==="menu")return[...l,RE({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...l,JO({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?a.push(XO({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||a.push(RE(r?{fallbackPlacements:r}:{})),o&&a.push(eR({element:o})),a}return[]}function OR(e,t){let r=e.filter(n=>AR.includes(n));return r.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${AR.map(n=>`"${n}"`).join(", ").trim()}`,{el:t}),r}function IR(e,t=!1){let r=["left","right"];return t&&r.reverse(),e.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function RR(e,t,r=!1){if(!(!e.open||!t.floatingEl||!t.referenceEl)){if(Object.assign(t.floatingEl.style,{display:"block",position:t.overlayPositioning??"absolute"}),!$1.get(e))return DR(e);await(r?mQ(e):kR)(e,t)}}function mQ(e){let t=Db.get(e);return t||(t=UE(kR,eE.reposition,{leading:!0,maxWait:eE.reposition}),Db.set(e,t),t)}async function DR(e){let{referenceEl:t,floatingEl:r}=e;if(!r.isConnected)return;let n=oo()?YO:(s,l,a)=>(a(),()=>{});$1.set(e,{state:"pending"});let i,o=n(t,r,()=>{let s=e.reposition();i||(i=s)});return $1.set(e,{state:"active",cleanUp:o}),i}function BE(e){let{floatingEl:t}=e;t&&Object.assign(t.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function FR(e){let{floatingEl:t,referenceEl:r}=e;if(BE(e),!(!t||!r)&&(GE(e),!!e.open))return DR(e)}function GE(e){let{floatingEl:t,referenceEl:r}=e;if(!t||!r)return;let n=$1.get(e);n?.state==="active"&&n.cleanUp(),$1.delete(e),Db.get(e)?.cancel(),Db.delete(e)}var kR,pQ,AR,NR,WE,hQ,$1,Db,LR,jE,qE=O(()=>{rR();CR();PR();cr();Tn();(function(){if(oo()){let e=Nb.getOffsetParent;Nb.getOffsetParent=t=>e(t,TR)}})();kR=async(e,{referenceEl:t,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:l,offsetSkidding:a,arrowEl:d,type:h})=>{if(!t||!r)return;let g=Zl(r)==="rtl",{x:b,y:S,placement:P,strategy:A,middlewareData:F}=await tR(t,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:IR(i,g),middleware:fQ({placement:i,flipDisabled:o,flipPlacements:s?.map(q=>IR(q,g)),offsetDistance:l,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:q,y:G}=F.arrow,Y=P.split("-")[0],ie=q!=null?"left":"top",U=hQ[Y],me={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout=Y==="left"||Y==="right"?"horizontal":"vertical"),Object.assign(d.style,{...me,[ie]:`${ie=="left"?q:G}px`,[Y]:"100%",transform:U})}let W=F.hide?.referenceHidden?"hidden":null,z=W?"none":null;r.setAttribute(pQ,P),Object.assign(r.style,{pointerEvents:z,position:A,transform:`translate(${MR(b)}px,${MR(S)}px)`,visibility:W})},pQ="data-placement",AR=["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"],NR="bottom-end",WE={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};hQ={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},$1=new WeakMap,Db=new WeakMap;LR=4,jE=Math.ceil(Math.hypot(LR,LR))});var VR,Fb,UR,ld,$b,Vb,gQ,zR,WR,BR,ic,wQ,yQ,GR,vQ,bQ,_Q,xQ,SQ,EQ,CQ,$R,TQ,PQ,Ub,HE,MQ,AQ,jR,qR,cd,IQ,zb,HR=O(()=>{VR=["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])"],Fb=VR.join(","),UR=typeof Element>"u",ld=UR?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$b=!UR&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Vb=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},gQ=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},zR=function(t,r,n){if(Vb(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Fb));return r&&ld.call(t,Fb)&&i.unshift(t),i=i.filter(n),i},WR=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Vb(s,!1))if(s.tagName==="SLOT"){var l=s.assignedElements(),a=l.length?l:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ld.call(s,Fb);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),b=!Vb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&b){var S=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,S):i.push({scopeParent:s,candidates:S})}else o.unshift.apply(o,s.children)}}return i},BR=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ic=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||gQ(t))&&!BR(t)?0:t.tabIndex},wQ=function(t,r){var n=ic(t);return n<0&&r&&!BR(t)?0:n},yQ=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},GR=function(t){return t.tagName==="INPUT"},vQ=function(t){return GR(t)&&t.type==="hidden"},bQ=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},_Q=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},xQ=function(t){if(!t.name)return!0;var r=t.form||$b(t),n=function(l){return r.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.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=_Q(i,t.form);return!o||o===t},SQ=function(t){return GR(t)&&t.type==="radio"},EQ=function(t){return SQ(t)&&!xQ(t)},CQ=function(t){var r,n=t&&$b(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,l,a;for(o=!!((s=i)!==null&&s!==void 0&&(l=s.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(a=t.ownerDocument)!==null&&a!==void 0&&a.contains(t));!o&&i;){var d,h,g;n=$b(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},$R=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},TQ=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=ld.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(ld.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var a=t.parentElement,d=$b(t);if(a&&!a.shadowRoot&&i(a)===!0)return $R(t);t.assignedSlot?t=t.assignedSlot:!a&&d!==t.ownerDocument?t=d.host:t=a}t=l}if(CQ(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return $R(t);return!1},PQ=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.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 ld.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Ub=function(t,r){return!(r.disabled||Vb(r)||vQ(r)||TQ(r,t)||bQ(r)||PQ(r))},HE=function(t,r){return!(EQ(r)||ic(r)<0||!Ub(t,r))},MQ=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},AQ=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,l=s?i.scopeParent:i,a=wQ(l,s),d=s?e(i.candidates):l;a===0?s?r.push.apply(r,d):r.push(l):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(yQ).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},jR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=WR([t],r.includeContainer,{filter:HE.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:MQ}):n=zR(t,r.includeContainer,HE.bind(null,r)),AQ(n)},qR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=WR([t],r.includeContainer,{filter:Ub.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=zR(t,r.includeContainer,Ub.bind(null,r)),n},cd=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ld.call(t,Fb)===!1?!1:HE(r,t)},IQ=VR.concat("iframe").join(","),zb=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ld.call(t,IQ)===!1?!1:Ub(r,t)}});function ZE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function LQ(e){if(Array.isArray(e))return ZE(e)}function kQ(e,t,r){return(t=FQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
11
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(r),!0).forEach(function(n){kQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RQ(e){return LQ(e)||NQ(e)||$Q(e)||OQ()}function DQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FQ(e){var t=DQ(e,"string");return typeof t=="symbol"?t:t+""}function $Q(e,t){if(e){if(typeof e=="string")return ZE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ZE(e,t):void 0}}var JR,VQ,UQ,U1,zQ,WQ,XR,V1,Wb,BQ,QR,KR=O(()=>{HR();JR={activateTrap:function(t,r){if(t.length>0){var n=t[t.length-1];n!==r&&n.pause()}var i=t.indexOf(r);i===-1||t.splice(i,1),t.push(r)},deactivateTrap:function(t,r){var n=t.indexOf(r);n!==-1&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}},VQ=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},UQ=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},U1=function(t){return t?.key==="Tab"||t?.keyCode===9},zQ=function(t){return U1(t)&&!t.shiftKey},WQ=function(t){return U1(t)&&t.shiftKey},XR=function(t){return setTimeout(t,0)},V1=function(t){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 t=="function"?t.apply(void 0,n):t},Wb=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},BQ=[],QR=function(t,r){var n=r?.document||document,i=r?.trapStack||BQ,o=YR({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:zQ,isKeyBackward:WQ},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,a=function(ce,J,ee){return ce&&ce[J]!==void 0?ce[J]:o[ee||J]},d=function(ce,J){var ee=typeof J?.composedPath=="function"?J.composedPath():void 0;return s.containerGroups.findIndex(function(pe){var de=pe.container,Se=pe.tabbableNodes;return de.contains(ce)||ee?.includes(de)||Se.find(function(ye){return ye===ce})})},h=function(ce){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=J.hasFallback,pe=ee===void 0?!1:ee,de=J.params,Se=de===void 0?[]:de,ye=o[ce];if(typeof ye=="function"&&(ye=ye.apply(void 0,RQ(Se))),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 Fe=ye;if(typeof ye=="string"){try{Fe=n.querySelector(ye)}catch(nt){throw new Error("`".concat(ce,'` appears to be an invalid selector; error="').concat(nt.message,'"'))}if(!Fe&&!pe)throw new Error("`".concat(ce,"` as selector refers to no known node"))}return Fe},g=function(){var ce=h("initialFocus",{hasFallback:!0});if(ce===!1)return!1;if(ce===void 0||ce&&!zb(ce,o.tabbableOptions))if(d(n.activeElement)>=0)ce=n.activeElement;else{var J=s.tabbableGroups[0],ee=J&&J.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},b=function(){if(s.containerGroups=s.containers.map(function(ce){var J=jR(ce,o.tabbableOptions),ee=qR(ce,o.tabbableOptions),pe=J.length>0?J[0]:void 0,de=J.length>0?J[J.length-1]:void 0,Se=ee.find(function(nt){return cd(nt)}),ye=ee.slice().reverse().find(function(nt){return cd(nt)}),Fe=!!J.find(function(nt){return ic(nt)>0});return{container:ce,tabbableNodes:J,focusableNodes:ee,posTabIndexesFound:Fe,firstTabbableNode:pe,lastTabbableNode:de,firstDomTabbableNode:Se,lastDomTabbableNode:ye,nextTabbableNode:function(Et){var Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fr=J.indexOf(Et);return fr<0?Tr?ee.slice(ee.indexOf(Et)+1).find(function(mr){return cd(mr)}):ee.slice(0,ee.indexOf(Et)).reverse().find(function(mr){return cd(mr)}):J[fr+(Tr?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.")},S=function(ce){var J=ce.activeElement;if(J)return J.shadowRoot&&J.shadowRoot.activeElement!==null?S(J.shadowRoot):J},P=function(ce){if(ce!==!1&&ce!==S(document)){if(!ce||!ce.focus){P(g());return}ce.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=ce,VQ(ce)&&ce.select()}},A=function(ce){var J=h("setReturnFocus",{params:[ce]});return J||(J===!1?!1:ce)},F=function(ce){var J=ce.target,ee=ce.event,pe=ce.isBackward,de=pe===void 0?!1:pe;J=J||Wb(ee),b();var Se=null;if(s.tabbableGroups.length>0){var ye=d(J,ee),Fe=ye>=0?s.containerGroups[ye]:void 0;if(ye<0)de?Se=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:Se=s.tabbableGroups[0].firstTabbableNode;else if(de){var nt=s.tabbableGroups.findIndex(function(Gn){var In=Gn.firstTabbableNode;return J===In});if(nt<0&&(Fe.container===J||zb(J,o.tabbableOptions)&&!cd(J,o.tabbableOptions)&&!Fe.nextTabbableNode(J,!1))&&(nt=ye),nt>=0){var Et=nt===0?s.tabbableGroups.length-1:nt-1,Tr=s.tabbableGroups[Et];Se=ic(J)>=0?Tr.lastTabbableNode:Tr.lastDomTabbableNode}else U1(ee)||(Se=Fe.nextTabbableNode(J,!1))}else{var fr=s.tabbableGroups.findIndex(function(Gn){var In=Gn.lastTabbableNode;return J===In});if(fr<0&&(Fe.container===J||zb(J,o.tabbableOptions)&&!cd(J,o.tabbableOptions)&&!Fe.nextTabbableNode(J))&&(fr=ye),fr>=0){var mr=fr===s.tabbableGroups.length-1?0:fr+1,yi=s.tabbableGroups[mr];Se=ic(J)>=0?yi.firstTabbableNode:yi.firstDomTabbableNode}else U1(ee)||(Se=Fe.nextTabbableNode(J))}}else Se=h("fallbackFocus");return Se},W=function(ce){var J=Wb(ce);if(!(d(J,ce)>=0)){if(V1(o.clickOutsideDeactivates,ce)){l.deactivate({returnFocus:o.returnFocusOnDeactivate});return}V1(o.allowOutsideClick,ce)||ce.preventDefault()}},z=function(ce){var J=Wb(ce),ee=d(J,ce)>=0;if(ee||J instanceof Document)ee&&(s.mostRecentlyFocusedNode=J);else{ce.stopImmediatePropagation();var pe,de=!0;if(s.mostRecentlyFocusedNode)if(ic(s.mostRecentlyFocusedNode)>0){var Se=d(s.mostRecentlyFocusedNode),ye=s.containerGroups[Se].tabbableNodes;if(ye.length>0){var Fe=ye.findIndex(function(nt){return nt===s.mostRecentlyFocusedNode});Fe>=0&&(o.isKeyForward(s.recentNavEvent)?Fe+1<ye.length&&(pe=ye[Fe+1],de=!1):Fe-1>=0&&(pe=ye[Fe-1],de=!1))}}else s.containerGroups.some(function(nt){return nt.tabbableNodes.some(function(Et){return ic(Et)>0})})||(de=!1);else de=!1;de&&(pe=F({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),P(pe||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},q=function(ce){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=ce;var ee=F({event:ce,isBackward:J});ee&&(U1(ce)&&ce.preventDefault(),P(ee))},G=function(ce){(o.isKeyForward(ce)||o.isKeyBackward(ce))&&q(ce,o.isKeyBackward(ce))},Y=function(ce){UQ(ce)&&V1(o.escapeDeactivates,ce)!==!1&&(ce.preventDefault(),l.deactivate())},ie=function(ce){var J=Wb(ce);d(J,ce)>=0||V1(o.clickOutsideDeactivates,ce)||V1(o.allowOutsideClick,ce)||(ce.preventDefault(),ce.stopImmediatePropagation())},U=function(){if(s.active)return JR.activateTrap(i,l),s.delayInitialFocusTimer=o.delayInitialFocus?XR(function(){P(g())}):P(g()),n.addEventListener("focusin",z,!0),n.addEventListener("mousedown",W,{capture:!0,passive:!1}),n.addEventListener("touchstart",W,{capture:!0,passive:!1}),n.addEventListener("click",ie,{capture:!0,passive:!1}),n.addEventListener("keydown",G,{capture:!0,passive:!1}),n.addEventListener("keydown",Y),l},me=function(){if(s.active)return n.removeEventListener("focusin",z,!0),n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchstart",W,!0),n.removeEventListener("click",ie,!0),n.removeEventListener("keydown",G,!0),n.removeEventListener("keydown",Y),l},Ae=function(ce){var J=ce.some(function(ee){var pe=Array.from(ee.removedNodes);return pe.some(function(de){return de===s.mostRecentlyFocusedNode})});J&&P(g())},Ee=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Ae):void 0,Ne=function(){Ee&&(Ee.disconnect(),s.active&&!s.paused&&s.containers.map(function(ce){Ee.observe(ce,{subtree:!0,childList:!0})}))};return l={get active(){return s.active},get paused(){return s.paused},activate:function(ce){if(s.active)return this;var J=a(ce,"onActivate"),ee=a(ce,"onPostActivate"),pe=a(ce,"checkCanFocusTrap");pe||b(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,J?.();var de=function(){pe&&b(),U(),Ne(),ee?.()};return pe?(pe(s.containers.concat()).then(de,de),this):(de(),this)},deactivate:function(ce){if(!s.active)return this;var J=YR({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(),JR.deactivateTrap(i,l);var ee=a(J,"onDeactivate"),pe=a(J,"onPostDeactivate"),de=a(J,"checkCanReturnFocus"),Se=a(J,"returnFocus","returnFocusOnDeactivate");ee?.();var ye=function(){XR(function(){Se&&P(A(s.nodeFocusedBeforeActivation)),pe?.()})};return Se&&de?(de(A(s.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(ce){if(s.paused||!s.active)return this;var J=a(ce,"onPause"),ee=a(ce,"onPostPause");return s.paused=!0,J?.(),me(),Ne(),ee?.(),this},unpause:function(ce){if(!s.paused||!s.active)return this;var J=a(ce,"onUnpause"),ee=a(ce,"onPostUnpause");return s.paused=!1,J?.(),b(),U(),Ne(),ee?.(),this},updateContainerElements:function(ce){var J=[].concat(ce).filter(Boolean);return s.containers=J.map(function(ee){return typeof ee=="string"?n.querySelector(ee):ee}),s.active&&b(),Ne(),this}},l.updateContainerElements(t),l}});function Bb(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,fallbackFocus:n,setReturnFocus:o=>(cb(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:uE,trapStack:oN};e.focusTrap=QR(n,i)}function z1(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function ud(e,t){e.focusTrap?.deactivate(t)}function Gb(e){e.focusTrap?.updateContainerElements(e.el)}var YE=O(()=>{KR();Tn();cr();});function eD(e){return"opened"in e?e.opened:e.open}function oc(e){requestAnimationFrame(()=>{e.transitionEl&&UN(e.transitionEl,e.openTransitionProp,()=>{eD(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{eD(e)?e.onOpen():e.onClose()})})}var jb=O(()=>{Tn();});var qb,JE=O(()=>{tc();mb();Fr();qb=({children:e,...t})=>{let r=t.level?YN(`h${t.level}`):Ql`div`;return ur(t.key,bm`<${r} class=${_e(t.class)}>${e}</${r}>`)}});var tD,GQ,rD,nD=O(()=>{Wo();tc();Dr();Fr();tD={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},GQ={width:12,height:6,strokeWidth:1},rD=({floatingLayout:e,key:t,ref:r})=>{let{width:n,height:i,strokeWidth:o}=GQ,s=n/2,l=e==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return ur(t,xe`<svg aria-hidden=true class=${_e(tD.arrow)} height=${n??Re} viewBox=${`0 0 ${n} ${n+(l?0:o)}`} width=${n+(l?o:0)} ${At(r)}>${Ps`${o>0&&Ps`<path class=${_e(tD.arrowStroke)} d=${a??Re} fill=none stroke-width=${o+1} />`||""}<path d=${a??Re} stroke=none />`}</svg>`)}});function Hb(e){return e==="Enter"||e===" "}var W1,B1=O(()=>{W1=["0","1","2","3","4","5","6","7","8","9"]});var XE,Zo,iD,oD,sD,jQ,aD,Zb,QE,lD=O(()=>{cr();tc();ro();Wo();Fr();qE();YE();Tn();wm();jb();JE();Sa();Xl();nD();Sm();Ms();B1();En();XE=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{let{registeredElements:r}=this,n=t.find(i=>r.has(i));return r.get(n)},this.togglePopovers=t=>{let r=t.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=t=>{t.defaultPrevented||(t.key==="Escape"?this.closeAllPopovers():Hb(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{$N(t)||this.togglePopovers(t)}}registerElement(t,r){this.registeredElementCount++,this.registeredElements.set(t,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(t=>t.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},Zo={positionContainer:"position-container",container:"container",imageContainer:"image-container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",headerContent:"header-content",heading:"heading"},iD="auto",oD="aria-controls",sD="aria-expanded",jQ=Dt`:host{position:relative;display:block;--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-inline:.75rem;padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;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-block-end-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;block-size: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;block-size:100%;inline-size: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){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}`,aD=new XE,Zb=class Zb extends $t{constructor(){super(...arguments),this.closeButtonEl=ki(),this.guid=`calcite-popover-${_a()}`,this.hasLoaded=!1,this.mutationObserver=Kn("mutation",()=>this.updateFocusTrapElements()),this.openTransitionProp="opacity",this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.messages=pn(),this.offsetDistance=jE,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=iD,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=Ft({cancelable:!1}),this.calcitePopoverBeforeOpen=Ft({cancelable:!1}),this.calcitePopoverClose=Ft({cancelable:!1}),this.calcitePopoverOpen=Ft({cancelable:!1})}async reposition(t=!1){let{referenceEl:r,placement:n,overlayPositioning:i,flipDisabled:o,filteredFlipPlacements:s,offsetDistance:l,offsetSkidding:a,arrowEl:d,floatingEl:h}=this;return RR(this,{floatingEl:h,referenceEl:r,overlayPositioning:i,placement:n,flipDisabled:o,flipPlacements:s,offsetDistance:l,offsetSkidding:a,arrowEl:d,type:"popover"},t)}async setFocus(){await Wn(this),this.requestUpdate(),Jl(this.el)}async updateFocusTrapElements(){Gb(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),Bb(this,{focusTrapEl:this.el,focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:t=>(t.defaultPrevented||(this.open=!1,t.preventDefault()),!1),initialFocus:this.initialFocusTrapFocus}}),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){Un(this)}willUpdate(t){t.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),t.has("flipPlacements")&&this.flipPlacementsHandler(),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(t.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==jE)||t.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||t.has("placement")&&(this.hasUpdated||this.placement!==iD))&&this.reposition(!0),t.has("referenceElement")&&this.referenceElementHandler()}loaded(){zn(this),this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.open&&oc(this),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),GE(this),ud(this)}handleFocusTrapDisabled(t){this.open&&(t?ud(this):z1(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){oc(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(t){this.floatingEl=t,t&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(t){this.transitionEl=t}setFilteredPlacements(){let{el:t,flipPlacements:r}=this;this.filteredFlipPlacements=r?OR(r,t):null}setUpReferenceElement(t=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),FR(this);let{el:r,referenceElement:n,referenceEl:i}=this;t&&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:t,open:r}=this;t&&"setAttribute"in t&&t.setAttribute(sD,vm(r))}addReferences(){let{referenceEl:t}=this;if(!t)return;let r=this.getId();"setAttribute"in t&&t.setAttribute(oD,r),aD.registerElement(t,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(oD),t.removeAttribute(sD)),aD.unregisterElement(t))}getReferenceElement(){let{referenceElement:t,el:r}=this;return(typeof t=="string"?ed(r,{id:t}):t)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),z1(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),BE(this),ud(this)}storeArrowEl(t){this.arrowEl=t,this.reposition(!0)}renderCloseButton(){let{messages:t,closable:r}=this;return r?ur(Zo.closeButtonContainer,xe`<div class=${_e(Zo.closeButtonContainer)}><calcite-action appearance=transparent class=${_e(Zo.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${t.close} ${At(this.closeButtonEl)}><calcite-icon icon=x .scale=${ei(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:t,headingLevel:r}=this,n=t?qb({class:Zo.heading,level:r,children:t}):null;return n?ur(Zo.header,xe`<div class=${_e(Zo.header)}>${n}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:t,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,l=t&&i,a=!l,d=o?null:ur("floating-arrow",rD({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",hm(this.el,"id",this.getId()),this.el.role="dialog",xe`<div class=${_e(Zo.positionContainer)} ${At(this.setFloatingEl)}><div class=${_e({[Zo.container]:!0,[WE.animation]:!0,[WE.animationActive]:l})} ${At(this.setTransitionEl)}>${d}<div class=${_e({[Zo.hasHeader]:!!r,[Zo.headerContainer]:!0})}>${this.renderHeader()}<div class=${_e(Zo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Zb.properties={floatingLayout:16,referenceEl:16,autoClose:7,closable:7,flipDisabled:7,flipPlacements:0,focusTrapDisabled:7,heading:1,headingLevel:11,initialFocusTrapFocus:5,label:1,messageOverrides:0,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,pointerDisabled:7,referenceElement:1,scale:3,triggerDisabled:7},Zb.styles=jQ;QE=Zb;Gt("calcite-popover",QE)});var cD=O(()=>{Cb();td();lD()});function KE(e,t){return(e+t)%t}var uD=O(()=>{});var e3,G1,dD,pD,t3=O(()=>{e3={menu:"menu",defaultTrigger:"default-trigger"},G1={tooltip:"tooltip",trigger:"trigger"},dD={menu:"ellipsis"},pD="data-active"});var qQ,HQ,Yb,r3,fD=O(()=>{cr();Wo();ro();Fr();uD();Tn();wm();B1();Sa();t3();En();qQ=Dt`: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}`,HQ=["ArrowUp","ArrowDown","End","Home"],Yb=class Yb extends $t{constructor(){super(...arguments),this.guid=`calcite-action-menu-${_a()}`,this.actionElements=[],this.menuButtonClick=()=>{this.toggleOpen()},this.menuButtonId=`${this.guid}-menu-button`,this.menuButtonKeyDown=t=>{let{key:r}=t,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(Hb(r)){if(t.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),t.preventDefault();return}this.handleActionNavigation(t,r,n)}},this.menuId=`${this.guid}-menu`,this._open=!1,this.updateAction=(t,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.toggleAttribute(pD,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=Ft({cancelable:!1})}get open(){return this._open}set open(t){let r=this._open;t!==r&&(this._open=t,this.openHandler(t))}async setFocus(){return await Wn(this),cb(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){Un(this)}willUpdate(t){t.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.expandedHandler(),t.has("activeMenuItemIndex")&&(this.hasUpdated||this.activeMenuItemIndex!==-1)&&this.updateActions(this.actionElements)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.menuButtonEl&&(this.menuButtonEl.active=t),this.popoverEl&&(this.popoverEl.open=t),this.activeMenuItemIndex=this.open?0:-1,this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}connectMenuButtonEl(){let{menuButtonId:t,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",vm(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))}disconnectMenuButtonEl(){let{menuButtonEl:t}=this;t&&(t.removeEventListener("click",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown),this.menuButtonEl=null)}setMenuButtonEl(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()}setDefaultMenuButtonEl(t){this.defaultMenuButtonEl=t,t&&this.connectMenuButtonEl()}setPopoverEl(t){t&&(this.popoverEl=t,t.open=this.open)}handleCalciteActionClick(){this.open=!1,this.setFocus()}updateTooltip(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()}setTooltipReferenceElement(){let{tooltipEl:t,expanded:r,menuButtonEl:n,open:i}=this;t&&(t.referenceElement=!r&&!i?n:null)}updateActions(t){t?.forEach(this.updateAction)}handleDefaultSlotChange(t){let r=t.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(t,r){return!!r.find(n=>n===t)}handleActionNavigation(t,r,n){if(!this.isValidKey(r,HQ))return;if(t.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=KE(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=KE(i+1,n.length))}toggleOpen(t=!this.open){this.open=t}handlePopoverOpen(){this.open=!0,this.setFocus()}handlePopoverClose(){this.open=!1}renderMenuButton(){let{appearance:t,label:r,scale:n,expanded:i}=this;return xe`<slot name=${G1.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${t} class=${_e(e3.defaultTrigger)} .icon=${dD.menu} .scale=${n} .text=${r} .textEnabled=${i} ${At(this.setDefaultMenuButtonEl)}></calcite-action></slot>`}renderMenuItems(){let{actionElements:t,activeMenuItemIndex:r,menuId:n,menuButtonEl:i,label:o,placement:s,overlayPositioning:l,flipPlacements:a}=this,d=t[r]?.id||null;return xe`<calcite-popover auto-close .flipPlacements=${a} focus-trap-disabled .label=${o} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${l} .placement=${s} pointer-disabled .referenceElement=${i} trigger-disabled ${At(this.setPopoverEl)}><div aria-activedescendant=${d??Re} aria-labelledby=${i?.id??Re} class=${_e(e3.menu)} id=${n??Re} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return xe`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${G1.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Yb.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3},Yb.styles=qQ;r3=Yb;Gt("calcite-action-menu",r3)});var mD=O(()=>{Cb();cD();fD()});var dr,n3,j1,Zt,i3=O(()=>{dr={actionBarContainer:"action-bar-container",backButton:"back-button",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",summary:"summary",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"},n3={close:"close",collapse:"collapse"},j1={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right",expand:"chevron-down",collapse:"chevron-up"},Zt={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 ZQ,Jb,o3,hD=O(()=>{cr();tc();Wo();ro();Fr();Tn();E1();Sa();Xl();t3();JE();qE();Ms();i3();En();ZQ=Dt`: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 .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}`,Jb=class Jb extends $t{constructor(){super(),this.resizeObserver=Kn("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=NR,this.messages=pn(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=Ft({cancelable:!1}),this.calcitePanelScroll=Ft({cancelable:!1}),this.calcitePanelToggle=Ft({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}async scrollContentTo(t){this.panelScrollEl?.scrollTo(t)}async setFocus(){await Wn(this),Jl(this.containerEl)}async load(){Un(this),this.isClosed=this.closed}willUpdate(t){t.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){Kl(this)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:t}=this;!t||typeof t.scrollHeight!="number"||typeof t.offsetHeight!="number"||(t.scrollHeight>t.offsetHeight?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}setContainerRef(t){this.containerEl=t}panelKeyDownHandler(t){this.closable&&t.key==="Escape"&&!t.defaultPrevented&&(this.handleUserClose(),t.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let t=this.beforeClose??(()=>Promise.resolve());try{await t()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(t){this.hasStartActions=Qn(t)}handleHeaderActionsEndSlotChange(t){this.hasEndActions=Qn(t)}handleHeaderMenuActionsSlotChange(t){this.hasMenuItems=Qn(t)}handleActionBarSlotChange(t){let r=ub(t).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(t){this.hasHeaderContent=Qn(t)}handleFabSlotChange(t){this.hasFab=Qn(t)}handleFooterActionsSlotChange(t){this.hasFooterActions=Qn(t)}handleFooterEndSlotChange(t){this.hasFooterEndContent=Qn(t)}handleFooterStartSlotChange(t){this.hasFooterStartContent=Qn(t)}handleFooterSlotChange(t){this.hasFooterContent=Qn(t)}contentBottomSlotChangeHandler(t){this.hasContentBottom=Qn(t)}contentTopSlotChangeHandler(t){this.hasContentTop=Qn(t)}setPanelScrollEl(t){this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())}handleAlertsSlotChange(t){ub(t)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:t,headingLevel:r,description:n,hasHeaderContent:i}=this,o=t?qb({class:dr.heading,level:r,children:t}):null,s=n?xe`<span class=${_e(dr.description)}>${n}</span>`:null;return!i&&(o||s)?ur("header-content",xe`<div class=${_e(dr.headerContent)}>${o}${s}</div>`):null}renderActionBar(){return xe`<div class=${_e(dr.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${Zt.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return ur("slotted-header-content",xe`<div class=${_e({[dr.headerContent]:!0,[dr.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${Zt.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:t}=this;return ur("header-actions-start",xe`<div class=${_e({[dr.headerActionsStart]:!0,[dr.headerActions]:!0})} .hidden=${!t}><slot name=${Zt.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:t,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:l}=this,{collapse:a,expand:d,close:h}=r,g=[j1.expand,j1.collapse];o==="up"&&g.reverse();let b=s?xe`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${n3.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Re}></calcite-action>`:null,S=n?xe`<calcite-action .ariaLabel=${h} .icon=${j1.close} id=${n3.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Re}></calcite-action>`:null,P=xe`<slot name=${Zt.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,A=t||b||S||l;return ur("header-actions-end",xe`<div class=${_e({[dr.headerActionsEnd]:!0,[dr.headerActions]:!0})} .hidden=${!A}>${P}${this.renderMenu()}${b}${S}</div>`)}renderMenu(){let{hasMenuItems:t,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return ur("menu",xe`<calcite-action-menu .flipPlacements=${i??["top","bottom"]} .hidden=${!t} .label=${r.options} .open=${n} .overlayPositioning=${this.overlayPositioning} .placement=${o}><calcite-action .icon=${j1.menu} .scale=${this.scale} slot=${G1.trigger} .text=${r.options}></calcite-action><slot name=${Zt.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:t,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:l}=this,a=this.renderHeaderContent(),d=t||!!a||r||n||o||i||s;return this.showHeaderContent=d,xe`<header class=${_e(dr.header)} .hidden=${!(d||l)}><div class=${_e({[dr.headerContainer]:!0,[dr.headerContainerBorderEnd]:l})} .hidden=${!d}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${a}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:t,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||t||n||i;return xe`<footer class=${_e(dr.footer)} .hidden=${!o}><div class=${_e(dr.footerContent)} .hidden=${!n}><slot name=${Zt.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${_e(dr.footerStart)} .hidden=${n||!r}><slot name=${Zt.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${_e(dr.footerEnd)} .hidden=${n||!t}><slot name=${Zt.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${_e(dr.footerActions)} .hidden=${n||!i}>${ur("footer-actions-slot",xe`<slot name=${Zt.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return xe`<div class=${_e(dr.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${At(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return xe`<div class=${_e(dr.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${Zt.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return xe`<div class=${_e(dr.contentTop)} .hidden=${!this.hasContentTop}><slot name=${Zt.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return xe`<div class=${_e(dr.fabContainer)} .hidden=${!this.hasFab}><slot name=${Zt.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:t,loading:r,isClosed:n}=this,i=xe`<article .ariaBusy=${r} class=${_e(dr.container)} .hidden=${n} ${At(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${ur("alerts",xe`<slot name=${Zt.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return ec({disabled:t,children:xe`${r?xe`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Jb.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},Jb.styles=ZQ;o3=Jb;Gt("calcite-panel",o3)});var gD=O(()=>{Cb();mD();EE();hD()});function yD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wD,vD=O(()=>{wD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}});var Xb,YQ,q1,bD=O(()=>{vD();Xb={exports:{}};Xb.exports;(function(e,t){(function(r,n){e.exports=n()})(wD,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,A(_.key),_)}}function l(f,p,w){return p&&s(f.prototype,p),Object.defineProperty(f,"prototype",{writable:!1}),f}function a(f,p,w){return(p=A(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 b(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function S(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,I){if(I&&(typeof I=="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b(T)}(this,w)}}function P(){return P=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,p,w){var _=function(T,I){for(;!Object.prototype.hasOwnProperty.call(T,I)&&(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}},P.apply(this,arguments)}function A(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 F=function(f){return!(!f||!f.Window)&&f instanceof f.Window},W=void 0,z=void 0;function q(f){W=f;var p=f.document.createTextNode("");p.ownerDocument!==f.document&&typeof f.wrap=="function"&&f.wrap(p)===p&&(f=f.wrap(f)),z=f}function G(f){return F(f)?f:(f.ownerDocument||f).defaultView||z.window}typeof window<"u"&&window&&q(window);var Y=function(f){return!!f&&i(f)==="object"},ie=function(f){return typeof f=="function"},U={window:function(f){return f===z||F(f)},docFrag:function(f){return Y(f)&&f.nodeType===11},object:Y,func:ie,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=G(f)||z;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 Y(f)&&!!f.constructor&&/function Object\b/.test(f.constructor.toString())},array:function(f){return Y(f)&&f.length!==void 0&&ie(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 Ae(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 Ee={id:"actions/drag",install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.draggable=Ee.draggable,p.map.drag=Ee,p.methodDict.drag="draggable",_.actions.drag=Ee.defaults},listeners:{"interactions:before-action-move":me,"interactions:action-resume":me,"interactions:action-move":Ae,"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 U.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):U.bool(f)?(this.options.drag.enabled=f,this):this.options.drag},beforeMove:me,move:Ae,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(f){return f.search("drag")===0}},Ne=Ee,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 J=we,ee={init:function(f){var p=J.Element,w=f.navigator||{};ee.supportsTouch="ontouchstart"in f||U.func(f.DocumentTouch)&&J.document instanceof f.DocumentTouch,ee.supportsPointerEvent=w.pointerEnabled!==!1&&!!J.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?J.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=J.document&&"onmousewheel"in J.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},pe=ee;function de(f,p){if(f.contains)return f.contains(p);for(;p;){if(p===f)return!0;p=p.parentNode}return!1}function Se(f,p){for(;U.element(f);){if(Fe(f,p))return f;f=ye(f)}return null}function ye(f){var p=f.parentNode;if(U.docFrag(p)){for(;(p=p.host)&&U.docFrag(p););return p}return p}function Fe(f,p){return z!==W&&(p=p.replace(/\/deep\//g," ")),f[pe.prefixedMatchesSelector](p)}var nt=function(f){return f.parentNode||f.host};function Et(f,p){for(var w,_=[],C=f;(w=nt(C))&&C!==p&&w!==C.ownerDocument;)_.unshift(C),C=w;return _}function Tr(f,p,w){for(;U.element(f);){if(Fe(f,p))return!0;if((f=ye(f))===w)return Fe(f,p)}return!1}function fr(f){return f.correspondingUseElement||f}function mr(f){var p=f instanceof J.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 yi(f){var p,w=mr(f);if(!pe.isIOS7&&w){var _={x:(p=(p=G(f))||z).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 Gn(f){for(var p=[];f;)p.push(f),f=ye(f);return p}function In(f){return!!U.string(f)&&(J.document.querySelector(f),!0)}function ze(f,p){for(var w in p)f[w]=p[w];return f}function Md(f,p,w){return f==="parent"?ye(w):f==="self"?p.getRect(w):Se(w,f)}function ts(f,p,w,_){var C=f;return U.string(C)?C=Md(C,p,w):U.func(C)&&(C=C.apply(void 0,_)),U.element(C)&&(C=yi(C)),C}function fo(f){return f&&{x:"x"in f?f.x:f.left,y:"y"in f?f.y:f.top}}function wc(f){return!f||"x"in f&&"y"in f||((f=ze({},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 La(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 Vs(f,p,w){var _=w&&f.options[w];return fo(ts(_&&_.origin||f.options.origin,f,p,[f&&p]))||{x:0,y:0}}function Vi(f,p){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(D){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},U.string(f)&&f.search(" ")!==-1&&(f=Ad(f)),U.array(f))return f.forEach(function(D){return Vi(D,p,w,_)}),_;if(U.object(f)&&(p=f,f=""),U.func(p)&&w(f))_[f]=_[f]||[],_[f].push(p);else if(U.array(p))for(var C=0,T=p;C<T.length;C++){var I=T[C];Vi(f,I,w,_)}else if(U.object(p))for(var N in p)Vi(Ad(N).map(function(D){return"".concat(f).concat(D)}),p[N],w,_);return _}function Ad(f){return f.trim().split(/ +/)}var Us=function(f,p){return Math.sqrt(f*f+p*p)},Gm=["webkit","moz"];function rs(f,p){f.__set||(f.__set={});var w=function(C){if(Gm.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 ka(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 yc(f){f.page.x=0,f.page.y=0,f.client.x=0,f.client.y=0}function vc(f){return f instanceof J.Event||f instanceof J.Touch}function Pr(f,p,w){return f=f||"page",(w=w||{}).x=p[f+"X"],w.y=p[f+"Y"],w}function Id(f,p){return p=p||{x:0,y:0},pe.isOperaMobile&&vc(f)?(Pr("screen",f,p),p.x+=window.scrollX,p.y+=window.scrollY):Pr("page",f,p),p}function ns(f){return U.number(f.pointerId)?f.pointerId:f.identifier}function Na(f,p,w){var _=p.length>1?Ld(p):p[0];Id(_,f.page),function(C,T){T=T||{},pe.isOperaMobile&&vc(C)?Pr("screen",C,T):Pr("client",C,T)}(_,f.client),f.timeStamp=w}function bc(f){var p=[];return U.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 Ld(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 _c(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 xc(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[0][w]-C[1][w],I=C[0][_]-C[1][_];return Us(T,I)}function Sc(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[1][w]-C[0][w],I=C[1][_]-C[0][_];return 180*Math.atan2(I,T)/Math.PI}function Ec(f){return U.string(f.pointerType)?f.pointerType:U.number(f.pointerType)?[void 0,void 0,"touch","pen","mouse"][f.pointerType]:/touch/.test(f.type||"")||f instanceof J.Touch?"touch":"mouse"}function kd(f){var p=U.func(f.composedPath)?f.composedPath():f.path;return[fr(p?p[0]:f.target),fr(f.currentTarget)]}var mo=function(){function f(p){o(this,f),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=p}return l(f,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}();Object.defineProperty(mo.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Nd=function(f,p){for(var w=0;w<p.length;w++){var _=p[w];f.push(_)}return f},Cc=function(f){return Nd([],f)},zs=function(f,p){for(var w=0;w<f.length;w++)if(p(f[w],w,f))return w;return-1},Ui=function(f,p){return f[zs(f,p)]},is=function(f){d(w,f);var p=S(w);function w(_,C,T){var I;o(this,w),(I=p.call(this,C._interaction)).dropzone=void 0,I.dragEvent=void 0,I.relatedTarget=void 0,I.draggable=void 0,I.propagationStopped=!1,I.immediatePropagationStopped=!1;var N=T==="dragleave"?_.prev:_.cur,D=N.element,B=N.dropzone;return I.type=T,I.target=D,I.currentTarget=D,I.dropzone=B,I.dragEvent=C,I.relatedTarget=C.target,I.draggable=C.interactable,I.timeStamp=C.timeStamp,I}return l(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,I=zs(T,function(D){var B=D.dropzone,$=D.element;return B===_.dropzone&&$===_.target});C.activeDrops.splice(I,1);var N=new w(C,this.dragEvent,"dropdeactivate");N.dropzone=this.dropzone,N.target=this.target,this.dropzone.fire(N)}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}(mo);function ho(f,p){for(var w=0,_=f.slice();w<_.length;w++){var C=_[w],T=C.dropzone,I=C.element;p.dropzone=T,p.target=I,T.fire(p),p.propagationStopped=p.immediatePropagationStopped=!1}}function Tc(f,p){for(var w=function(T,I){for(var N=[],D=0,B=T.interactables.list;D<B.length;D++){var $=B[D];if($.options.drop.enabled){var Q=$.options.drop.accept;if(!(U.element(Q)&&Q!==I||U.string(Q)&&!Fe(I,Q)||U.func(Q)&&!Q({dropzone:$,draggableElement:I})))for(var ae=0,ge=$.getAllElements();ae<ge.length;ae++){var he=ge[ae];he!==I&&N.push({dropzone:$,element:he,rect:$.getRect(he)})}}}return N}(f,p),_=0;_<w.length;_++){var C=w[_];C.rect=C.dropzone.getRect(C.element)}return w}function Od(f,p,w){for(var _=f.dropState,C=f.interactable,T=f.element,I=[],N=0,D=_.activeDrops;N<D.length;N++){var B=D[N],$=B.dropzone,Q=B.element,ae=B.rect,ge=$.dropCheck(p,w,C,T,Q,ae);I.push(ge?Q:null)}var he=function(ve){for(var Oe,Ie,Ue,et=[],st=0;st<ve.length;st++){var qe=ve[st],rt=ve[Oe];if(qe&&st!==Oe)if(rt){var Ar=nt(qe),Lt=nt(rt);if(Ar!==qe.ownerDocument)if(Lt!==qe.ownerDocument)if(Ar!==Lt){et=et.length?et:Et(rt);var Kr=void 0;if(rt instanceof J.HTMLElement&&qe instanceof J.SVGElement&&!(qe instanceof J.SVGSVGElement)){if(qe===Lt)continue;Kr=qe.ownerSVGElement}else Kr=qe;for(var Ln=Et(Kr,rt.ownerDocument),jn=0;Ln[jn]&&Ln[jn]===et[jn];)jn++;var Js=[Ln[jn-1],Ln[jn],et[jn]];if(Js[0])for(var mt=Js[0].lastChild;mt;){if(mt===Js[1]){Oe=st,et=Ln;break}if(mt===Js[2])break;mt=mt.previousSibling}}else Ue=rt,(parseInt(G(Ie=qe).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(G(Ue).getComputedStyle(Ue).zIndex,10)||0)&&(Oe=st);else Oe=st}else Oe=st}return Oe}(I);return _.activeDrops[he]||null}function Pc(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 is(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new is(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new is(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new is(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new is(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new is(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Oa(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&&ho(_,p.deactivate),w.prev.dropzone=C.dropzone,w.prev.element=C.element}function Rd(f,p){var w=f.interaction,_=f.iEvent,C=f.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;p.dynamicDrop&&(T.activeDrops=Tc(p,w.element));var I=_,N=Od(w,I,C);T.rejected=T.rejected&&!!N&&N.dropzone===T.cur.dropzone&&N.element===T.cur.element,T.cur.dropzone=N&&N.dropzone,T.cur.element=N&&N.element,T.events=Pc(w,0,I)}}var Dd={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(I,N){if(U.object(N)){if(I.options.drop.enabled=N.enabled!==!1,N.listeners){var D=Vi(N.listeners),B=Object.keys(D).reduce(function(Q,ae){return Q[/^(enter|leave)/.test(ae)?"drag".concat(ae):/^(activate|deactivate|move)/.test(ae)?"drop".concat(ae):ae]=D[ae],Q},{}),$=I.options.drop.listeners;$&&I.off($),I.on(B),I.options.drop.listeners=B}return U.func(N.ondrop)&&I.on("drop",N.ondrop),U.func(N.ondropactivate)&&I.on("dropactivate",N.ondropactivate),U.func(N.ondropdeactivate)&&I.on("dropdeactivate",N.ondropdeactivate),U.func(N.ondragenter)&&I.on("dragenter",N.ondragenter),U.func(N.ondragleave)&&I.on("dragleave",N.ondragleave),U.func(N.ondropmove)&&I.on("dropmove",N.ondropmove),/^(pointer|center)$/.test(N.overlap)?I.options.drop.overlap=N.overlap:U.number(N.overlap)&&(I.options.drop.overlap=Math.max(Math.min(1,N.overlap),0)),"accept"in N&&(I.options.drop.accept=N.accept),"checker"in N&&(I.options.drop.checker=N.checker),I}return U.bool(N)?(I.options.drop.enabled=N,I):I.options.drop}(this,T)},_.prototype.dropCheck=function(T,I,N,D,B,$){return function(Q,ae,ge,he,ve,Oe,Ie){var Ue=!1;if(!(Ie=Ie||Q.getRect(Oe)))return!!Q.options.drop.checker&&Q.options.drop.checker(ae,ge,Ue,Q,Oe,he,ve);var et=Q.options.drop.overlap;if(et==="pointer"){var st=Vs(he,ve,"drag"),qe=Id(ae);qe.x+=st.x,qe.y+=st.y;var rt=qe.x>Ie.left&&qe.x<Ie.right,Ar=qe.y>Ie.top&&qe.y<Ie.bottom;Ue=rt&&Ar}var Lt=he.getRect(ve);if(Lt&&et==="center"){var Kr=Lt.left+Lt.width/2,Ln=Lt.top+Lt.height/2;Ue=Kr>=Ie.left&&Kr<=Ie.right&&Ln>=Ie.top&&Ln<=Ie.bottom}return Lt&&U.number(et)&&(Ue=Math.max(0,Math.min(Ie.right,Lt.right)-Math.max(Ie.left,Lt.left))*Math.max(0,Math.min(Ie.bottom,Lt.bottom)-Math.max(Ie.top,Lt.top))/(Lt.width*Lt.height)>=et),Q.options.drop.checker&&(Ue=Q.options.drop.checker(ae,ge,Ue,Q,Oe,he,ve)),Ue}(this,T,I,N,D,B,$)},w.dynamicDrop=function(T){return U.bool(T)?(f.dynamicDrop=T,w):f.dynamicDrop},ze(p.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),p.methodDict.drop="dropzone",f.dynamicDrop=!1,C.actions.drop=Dd.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=Tc(p,w.element),C.events=Pc(w,0,_),C.events.activate&&(ho(C.activeDrops,C.events.activate),p.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":Rd,"interactions:after-action-move":function(f,p){var w=f.interaction,_=f.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Oa(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;Rd(f,p),Oa(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:Tc,getDrop:Od,getDropEvents:Pc,fireDropEvents:Oa,filterEventType:function(f){return f.search("drag")===0||f.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},jm=Dd;function H(f){var p=f.interaction,w=f.iEvent,_=f.phase;if(p.prepared.name==="gesture"){var C=p.pointers.map(function(B){return B.pointer}),T=_==="start",I=_==="end",N=p.interactable.options.deltaSource;if(w.touches=[C[0],C[1]],T)w.distance=xc(C,N),w.box=_c(C),w.scale=1,w.ds=0,w.angle=Sc(C,N),w.da=0,p.gesture.startDistance=w.distance,p.gesture.startAngle=w.angle;else if(I||p.pointers.length<2){var D=p.prevEvent;w.distance=D.distance,w.box=D.box,w.scale=D.scale,w.ds=0,w.angle=D.angle,w.da=0}else w.distance=xc(C,N),w.box=_c(C),w.scale=w.distance/p.gesture.startDistance,w.angle=Sc(C,N),w.ds=w.scale-p.gesture.scale,w.da=w.angle-p.gesture.angle;p.gesture.distance=w.distance,p.gesture.angle=w.angle,U.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(p.gesture.scale=w.scale)}}var os={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 U.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):U.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},p.map.gesture=os,p.methodDict.gesture="gesturable",_.actions.gesture=os.defaults},listeners:{"interactions:action-start":H,"interactions:action-move":H,"interactions:action-end":H,"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}},Fd=os;function $d(f,p,w,_,C,T,I){if(!p)return!1;if(p===!0){var N=U.number(T.width)?T.width:T.right-T.left,D=U.number(T.height)?T.height:T.bottom-T.top;if(I=Math.min(I,Math.abs((f==="left"||f==="right"?N:D)/2)),N<0&&(f==="left"?f="right":f==="right"&&(f="left")),D<0&&(f==="top"?f="bottom":f==="bottom"&&(f="top")),f==="left"){var B=N>=0?T.left:T.right;return w.x<B+I}if(f==="top"){var $=D>=0?T.top:T.bottom;return w.y<$+I}if(f==="right")return w.x>(N>=0?T.right:T.left)-I;if(f==="bottom")return w.y>(D>=0?T.bottom:T.top)-I}return!!U.element(_)&&(U.element(p)?p===_:Tr(_,p,C))}function Mc(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 mn,zi,ii={id:"actions/resize",before:["actions/drag"],install:function(f){var p=f.actions,w=f.browser,_=f.Interactable,C=f.defaults;ii.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),ii.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(T){return function(I,N,D){return U.object(N)?(I.options.resize.enabled=N.enabled!==!1,I.setPerAction("resize",N),I.setOnEvents("resize",N),U.string(N.axis)&&/^x$|^y$|^xy$/.test(N.axis)?I.options.resize.axis=N.axis:N.axis===null&&(I.options.resize.axis=D.defaults.actions.resize.axis),U.bool(N.preserveAspectRatio)?I.options.resize.preserveAspectRatio=N.preserveAspectRatio:U.bool(N.square)&&(I.options.resize.square=N.square),I):U.bool(N)?(I.options.resize.enabled=N,I):I.options.resize}(this,T,f)},p.map.resize=ii,p.methodDict.resize="resizable",C.actions.resize=ii.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:ze({},T),corrected:ze({},T),previous:ze({},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),Mc(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,I=T==="reposition"||T==="negate",N=_.rect,D=_._rects,B=D.start,$=D.corrected,Q=D.delta,ae=D.previous;if(ze(ae,$),I){if(ze($,N),T==="reposition"){if($.top>$.bottom){var ge=$.top;$.top=$.bottom,$.bottom=ge}if($.left>$.right){var he=$.left;$.left=$.right,$.right=he}}}else $.top=Math.min(N.top,B.bottom),$.bottom=Math.max(N.bottom,B.top),$.left=Math.min(N.left,B.right),$.right=Math.max(N.right,B.left);for(var ve in $.width=$.right-$.left,$.height=$.bottom-$.top,$)Q[ve]=$[ve]-ae[ve];C.edges=_.prepared.edges,C.rect=$,C.deltaRect=Q}})(f),Mc(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 I=ze({},p.coords.cur.page),N=w.options.resize;if(N&&N.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||T&N.mouseButtons)){if(U.object(N.edges)){var D={left:!1,right:!1,top:!1,bottom:!1};for(var B in D)D[B]=$d(B,N.edges[B],I,p._latestPointer.eventTarget,_,C,N.margin||ii.defaultMargin);D.left=D.left&&!D.right,D.top=D.top&&!D.bottom,(D.left||D.right||D.top||D.bottom)&&(f.action={name:"resize",edges:D})}else{var $=N.axis!=="y"&&I.x>C.right-ii.defaultMargin,Q=N.axis!=="x"&&I.y>C.bottom-ii.defaultMargin;($||Q)&&(f.action={name:"resize",axes:($?"x":"")+(Q?"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=ii.cursors,T=null;if(w)T=C[_+w];else if(p){for(var I="",N=0,D=["top","bottom","left","right"];N<D.length;N++){var B=D[N];p[B]&&(I+=B)}T=C[I]}return T},filterEventType:function(f){return f.search("resize")===0},defaultMargin:null},Vd=ii,Ud={id:"actions",install:function(f){f.usePlugin(Fd),f.usePlugin(Vd),f.usePlugin(Ne),f.usePlugin(jm)}},Ra=0,vi={request:function(f){return mn(f)},cancel:function(f){return zi(f)},init:function(f){if(mn=f.requestAnimationFrame,zi=f.cancelAnimationFrame,!mn)for(var p=["ms","moz","webkit","o"],w=0;w<p.length;w++){var _=p[w];mn=f["".concat(_,"RequestAnimationFrame")],zi=f["".concat(_,"CancelAnimationFrame")]||f["".concat(_,"CancelRequestAnimationFrame")]}mn=mn&&mn.bind(f),zi=zi&&zi.bind(f),mn||(mn=function(C){var T=Date.now(),I=Math.max(0,16-(T-Ra)),N=f.setTimeout(function(){C(T+I)},I);return Ra=T+I,N},zi=function(C){return clearTimeout(C)})}},Ze={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){Ze.isScrolling=!0,vi.cancel(Ze.i),f.autoScroll=Ze,Ze.interaction=f,Ze.prevTime=Ze.now(),Ze.i=vi.request(Ze.scroll)},stop:function(){Ze.isScrolling=!1,Ze.interaction&&(Ze.interaction.autoScroll=null),vi.cancel(Ze.i)},scroll:function(){var f=Ze.interaction,p=f.interactable,w=f.element,_=f.prepared.name,C=p.options[_].autoScroll,T=Da(C.container,p,w),I=Ze.now(),N=(I-Ze.prevTime)/1e3,D=C.speed*N;if(D>=1){var B={x:Ze.x*D,y:Ze.y*D};if(B.x||B.y){var $=Ac(T);U.window(T)?T.scrollBy(B.x,B.y):T&&(T.scrollLeft+=B.x,T.scrollTop+=B.y);var Q=Ac(T),ae={x:Q.x-$.x,y:Q.y-$.y};(ae.x||ae.y)&&p.fire({type:"autoscroll",target:w,interactable:p,delta:ae,interaction:f,container:T})}Ze.prevTime=I}Ze.isScrolling&&(vi.cancel(Ze.i),Ze.i=vi.request(Ze.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()&&Ze.check(p.interactable,p.prepared.name))if(p.simulation)Ze.x=Ze.y=0;else{var _,C,T,I,N=p.interactable,D=p.element,B=p.prepared.name,$=N.options[B].autoScroll,Q=Da($.container,N,D);if(U.window(Q))I=w.clientX<Ze.margin,_=w.clientY<Ze.margin,C=w.clientX>Q.innerWidth-Ze.margin,T=w.clientY>Q.innerHeight-Ze.margin;else{var ae=mr(Q);I=w.clientX<ae.left+Ze.margin,_=w.clientY<ae.top+Ze.margin,C=w.clientX>ae.right-Ze.margin,T=w.clientY>ae.bottom-Ze.margin}Ze.x=C?1:I?-1:0,Ze.y=T?1:_?-1:0,Ze.isScrolling||(Ze.margin=$.margin,Ze.speed=$.speed,Ze.start(p))}}};function Da(f,p,w){return(U.string(f)?Md(f,p,w):f)||G(w)}function Ac(f){return U.window(f)&&(f=window.document.body),{x:f.scrollLeft,y:f.scrollTop}}var Ic={id:"auto-scroll",install:function(f){var p=f.defaults,w=f.actions;f.autoScroll=Ze,Ze.now=function(){return f.now()},w.phaselessTypes.autoscroll=!0,p.perAction.autoScroll=Ze.defaults},listeners:{"interactions:new":function(f){f.interaction.autoScroll=null},"interactions:destroy":function(f){f.interaction.autoScroll=null,Ze.stop(),Ze.interaction&&(Ze.interaction=null)},"interactions:stop":Ze.stop,"interactions:action-move":function(f){return Ze.onInteractionMove(f)}}},Lc=Ic;function ss(f,p){var w=!1;return function(){return w||(z.console.warn(p),w=!0),f.apply(this,arguments)}}function Fa(f,p){return f.name=p.name,f.axis=p.axis,f.edges=p.edges,f}function zd(f){return U.bool(f)?(this.options.styleCursor=f,this):f===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Wd(f){return U.func(f)?(this.options.actionChecker=f,this):f===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Bd={id:"auto-start/interactableMethods",install:function(f){var p=f.Interactable;p.prototype.getAction=function(w,_,C,T){var I=function(N,D,B,$,Q){var ae=N.getRect($),ge=D.buttons||{0:1,1:4,3:8,4:16}[D.button],he={action:null,interactable:N,interaction:B,element:$,rect:ae,buttons:ge};return Q.fire("auto-start:check",he),he.action}(this,_,C,T,f);return this.options.actionChecker?this.options.actionChecker(w,_,I,this,T,C):I},p.prototype.ignoreFrom=ss(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),p.prototype.allowFrom=ss(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),p.prototype.actionChecker=Wd,p.prototype.styleCursor=zd}};function kc(f,p,w,_,C){return p.testIgnoreAllow(p.options[f.name],w,_)&&p.options[f.name].enabled&&Ws(p,w,f,C)?f:null}function Gd(f,p,w,_,C,T,I){for(var N=0,D=_.length;N<D;N++){var B=_[N],$=C[N],Q=B.getAction(p,w,f,$);if(Q){var ae=kc(Q,B,$,T,I);if(ae)return{action:ae,interactable:B,element:$}}}return{action:null,interactable:null,element:null}}function Nc(f,p,w,_,C){var T=[],I=[],N=_;function D($){T.push($),I.push(N)}for(;U.element(N);){T=[],I=[],C.interactables.forEachMatch(N,D);var B=Gd(f,p,w,T,I,_,C);if(B.action&&!B.interactable.options[B.action.name].manualStart)return B;N=ye(N)}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,Fa(f.prepared,_),f.rect=C&&_.name?C.getRect(T):null,Dc(f,w),w.fire("autoStart:prepared",{interaction:f})}function Ws(f,p,w,_){var C=f.options,T=C[w.name].max,I=C[w.name].maxPerElement,N=_.autoStart.maxInteractions,D=0,B=0,$=0;if(!(T&&I&&N))return!1;for(var Q=0,ae=_.interactions.list;Q<ae.length;Q++){var ge=ae[Q],he=ge.prepared.name;if(ge.interacting()&&(++D>=N||ge.interactable===f&&((B+=he===w.name?1:0)>=T||ge.element===p&&($++,he===w.name&&$>=I))))return!1}return N>0}function Rc(f,p){return U.number(f)?(p.autoStart.maxInteractions=f,this):p.autoStart.maxInteractions}function $a(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 Dc(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 I=w.options[C.name].cursorChecker;T=U.func(I)?I(C,w,_,f._interacting):p.actions.map[C.name].getCursor(C)}$a(f.element,T||"",p)}else p.autoStart.cursorElement&&$a(p.autoStart.cursorElement,"",p)}var jd={id:"auto-start/base",before:["actions"],install:function(f){var p=f.interactStatic,w=f.defaults;f.usePlugin(Bd),w.base.actionChecker=null,w.base.styleCursor=!0,ze(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),p.maxInteractions=function(_){return Rc(_,f)},f.autoStart={maxInteractions:1/0,withinInteractionLimit:Ws,cursorElement:null}},listeners:{"interactions:down":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;w.interacting()||Oc(w,Nc(w,_,C,T,p),p)},"interactions:move":function(f,p){(function(w,_){var C=w.interaction,T=w.pointer,I=w.event,N=w.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||Oc(C,Nc(C,T,I,N,_),_)})(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,I=C.prepared.name;I&&T&&(T.options[I].manualStart||!Ws(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Dc(C,_)))}}(f,p)},"interactions:stop":function(f,p){var w=f.interaction,_=w.interactable;_&&_.options.styleCursor&&$a(w.element,"",p)}},maxInteractions:Rc,withinInteractionLimit:Ws,validateAction:kc},Va=jd,qd={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 I=Math.abs(C),N=Math.abs(T),D=w.interactable.options.drag,B=D.startAxis,$=I>N?"x":I<N?"y":"xy";if(w.prepared.axis=D.lockAxis==="start"?$[0]:D.lockAxis,$!=="xy"&&B!=="xy"&&B!==$){w.prepared.name=null;for(var Q=_,ae=function(he){if(he!==w.interactable){var ve=w.interactable.options.drag;if(!ve.manualStart&&he.testIgnoreAllow(ve,Q,_)){var Oe=he.getAction(w.downPointer,w.downEvent,w,Q);if(Oe&&Oe.name==="drag"&&function(Ie,Ue){if(!Ue)return!1;var et=Ue.options.drag.startAxis;return Ie==="xy"||et==="xy"||et===Ie}($,he)&&Va.validateAction(Oe,he,Q,_,p))return he}}};U.element(Q);){var ge=p.interactables.forEachMatch(Q,ae);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Q;break}Q=ye(Q)}}}}}};function Ua(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 Hd={id:"auto-start/hold",install:function(f){var p=f.defaults;f.usePlugin(Va),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=Ua(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;Ua(p)>0&&(p.prepared.name=null)}},getHoldDuration:Ua},Zd=Hd,Yd={id:"auto-start",install:function(f){f.usePlugin(Va),f.usePlugin(Zd),f.usePlugin(qd)}},Jd=function(f){return/^(always|never|auto)$/.test(f)?(this.options.preventDefault=f,this):U.bool(f)?(this.options.preventDefault=f?"always":"never",this):this.options.preventDefault};function Xd(f){var p=f.interaction,w=f.event;p.interactable&&p.interactable.checkAndPreventDefault(w)}var Fc={id:"core/interactablePreventDefault",install:function(f){var p=f.Interactable;p.prototype.preventDefault=Jd,p.prototype.checkAndPreventDefault=function(w){return function(_,C,T){var I=_.options.preventDefault;if(I!=="never")if(I!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(T.type)){var N=G(T.target).document,D=C.getDocOptions(N);if(!D||!D.events||D.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(T.type)||U.element(T.target)&&Fe(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||de(T.element,w.target)))return void T.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(f,p){return f["interactions:".concat(p)]=Xd,f},{})};function Bs(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 go(f){var p={};for(var w in f){var _=f[w];U.plainObject(_)?p[w]=go(_):U.array(_)?p[w]=Cc(_):p[w]=_}return p}var za=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=Gs(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return l(f,[{key:"start",value:function(p,w){var _,C,T=p.phase,I=this.interaction,N=function(B){var $=B.interactable.options[B.prepared.name],Q=$.modifiers;return Q&&Q.length?Q:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(ae){var ge=$[ae];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(ae){return!!ae})}(I);this.prepareStates(N),this.startEdges=ze({},I.edges),this.edges=ze({},this.startEdges),this.startOffset=(_=I.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 D=this.fillArg({phase:T,pageCoords:w,preEnd:!1});return this.result=Gs(),this.startAll(D),this.result=this.setAll(D)}},{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,I=p.edges;p.coords=ze({},p.pageCoords),p.rect=ze({},T),p.edges=ze({},I);for(var N=C?this.states.slice(C):this.states,D=Gs(p.coords,p.rect),B=0;B<N.length;B++){var $,Q=N[B],ae=Q.options,ge=ze({},p.coords),he=null;($=Q.methods)!=null&&$.set&&this.shouldDo(ae,_,w)&&(p.state=Q,he=Q.methods.set(p),La(p.edges,p.rect,{x:p.coords.x-ge.x,y:p.coords.y-ge.y})),D.eventProps.push(he)}ze(this.edges,p.edges),D.delta.x=p.coords.x-p.pageCoords.x,D.delta.y=p.coords.y-p.pageCoords.y,D.rectDelta.left=p.rect.left-T.left,D.rectDelta.right=p.rect.right-T.right,D.rectDelta.top=p.rect.top-T.top,D.rectDelta.bottom=p.rect.bottom-T.bottom;var ve=this.result.coords,Oe=this.result.rect;if(ve&&Oe){var Ie=D.rect.left!==Oe.left||D.rect.right!==Oe.right||D.rect.top!==Oe.top||D.rect.bottom!==Oe.bottom;D.changed=Ie||ve.x!==D.coords.x||ve.y!==D.coords.y}return D}},{key:"applyToInteraction",value:function(p){var w=this.interaction,_=p.phase,C=w.coords.cur,T=w.coords.start,I=this.result,N=this.startDelta,D=I.delta;_==="start"&&ze(this.startDelta,I.delta);for(var B=0,$=[[T,N],[C,D]];B<$.length;B++){var Q=$[B],ae=Q[0],ge=Q[1];ae.page.x+=ge.x,ae.page.y+=ge.y,ae.client.x+=ge.x,ae.client.y+=ge.y}var he=this.result.rectDelta,ve=p.rect||w.rect;ve.left+=he.left,ve.right+=he.right,ve.top+=he.top,ve.bottom+=he.bottom,ve.width=ve.right-ve.left,ve.height=ve.bottom-ve.top}},{key:"setAndApply",value:function(p){var w=this.interaction,_=p.phase,C=p.preEnd,T=p.skipModifiers,I=this.setAll(this.fillArg({preEnd:C,phase:_,pageCoords:p.modifiedCoords||w.coords.cur.page}));if(this.result=I,!I.changed&&(!T||T<this.states.length)&&w.interacting())return!1;if(p.modifiedCoords){var N=w.coords.cur.page,D={x:p.modifiedCoords.x-N.x,y:p.modifiedCoords.y-N.y};I.coords.x+=D.x,I.coords.y+=D.y,I.delta.x+=D.x,I.delta.y+=D.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,I=0;I<C.length;I++){var N=C[I];p.state=N;var D=N.options,B=N.methods,$=B.beforeEnd&&B.beforeEnd(p);if($)return this.endResult=$,!1;T=T||!T&&this.shouldDo(D,!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 _=ze({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 I=T[C];_.state=I,I.methods.stop&&I.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,I=_.name;this.states.push({options:C,methods:T,index:w,name:I})}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 I=T.startDelta,N=T.result,D=N.delta,B=N.rectDelta,$=0,Q=[[_.start,I],[_.cur,D]];$<Q.length;$++){var ae=Q[$],ge=ae[0],he=ae[1];ge.page.x-=he.x,ge.page.y-=he.y,ge.client.x-=he.x,ge.client.y-=he.y}C.left-=B.left,C.right-=B.right,C.top-=B.top,C.bottom-=B.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 go(w)}),this.result=Gs(ze({},p.result.coords),ze({},p.result.rect))}},{key:"destroy",value:function(){for(var p in this)this[p]=null}}]),f}();function Gs(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 bi(f,p){var w=f.defaults,_={start:f.start,set:f.set,beforeEnd:f.beforeEnd,stop:f.stop},C=function(T){var I=T||{};for(var N in I.enabled=I.enabled!==!1,w)N in I||(I[N]=w[N]);var D={options:I,methods:_,name:p,enable:function(){return I.enabled=!0,D},disable:function(){return I.enabled=!1,D}};return D};return p&&typeof p=="string"&&(C._defaults=w,C._methods=_),C}function as(f){var p=f.iEvent,w=f.interaction.modification.result;w&&(p.modifiers=w.eventProps)}var Qd={id:"modifiers/base",before:["actions"],install:function(f){f.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(f){var p=f.interaction;p.modification=new za(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":as,"interactions:action-move":as,"interactions:action-end":as,"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=Qd,Vc={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Wa=function(f){d(w,f);var p=S(w);function w(_,C,T,I,N,D,B){var $;o(this,w),($=p.call(this,_)).relatedTarget=null,$.screenX=void 0,$.screenY=void 0,$.button=void 0,$.buttons=void 0,$.ctrlKey=void 0,$.shiftKey=void 0,$.altKey=void 0,$.metaKey=void 0,$.page=void 0,$.client=void 0,$.delta=void 0,$.rect=void 0,$.x0=void 0,$.y0=void 0,$.t0=void 0,$.dt=void 0,$.duration=void 0,$.clientX0=void 0,$.clientY0=void 0,$.velocity=void 0,$.speed=void 0,$.swipe=void 0,$.axes=void 0,$.preEnd=void 0,N=N||_.element;var Q=_.interactable,ae=(Q&&Q.options||Vc).deltaSource,ge=Vs(Q,N,T),he=I==="start",ve=I==="end",Oe=he?b($):_.prevEvent,Ie=he?_.coords.start:ve?{page:Oe.page,client:Oe.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return $.page=ze({},Ie.page),$.client=ze({},Ie.client),$.rect=ze({},_.rect),$.timeStamp=Ie.timeStamp,ve||($.page.x-=ge.x,$.page.y-=ge.y,$.client.x-=ge.x,$.client.y-=ge.y),$.ctrlKey=C.ctrlKey,$.altKey=C.altKey,$.shiftKey=C.shiftKey,$.metaKey=C.metaKey,$.button=C.button,$.buttons=C.buttons,$.target=N,$.currentTarget=N,$.preEnd=D,$.type=B||T+(I||""),$.interactable=Q,$.t0=he?_.pointers[_.pointers.length-1].downTime:Oe.t0,$.x0=_.coords.start.page.x-ge.x,$.y0=_.coords.start.page.y-ge.y,$.clientX0=_.coords.start.client.x-ge.x,$.clientY0=_.coords.start.client.y-ge.y,$.delta=he||ve?{x:0,y:0}:{x:$[ae].x-Oe[ae].x,y:$[ae].y-Oe[ae].y},$.dt=_.coords.delta.timeStamp,$.duration=$.timeStamp-$.t0,$.velocity=ze({},_.coords.velocity[ae]),$.speed=Us($.velocity.x,$.velocity.y),$.swipe=ve||I==="inertiastart"?$.getSwipe():null,$}return l(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,I=202.5<=C&&C<337.5;return{up:I,down:!I&&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}(mo);Object.defineProperties(Wa.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 Kd=l(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}),ep=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}({}),tp=0,rp=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=ss(function($){this.move($)},"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=tp++,this._scopeFire=C,this.pointerType=_;var T=this;this._proxy={};var I=function($){Object.defineProperty(w._proxy,$,{get:function(){return T[$]}})};for(var N in ep)I(N);var D=function($){Object.defineProperty(w._proxy,$,{value:function(){return T[$].apply(T,arguments)}})};for(var B in Uc)D(B);this._scopeFire("interactions:new",{interaction:this})}return l(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)&&(Fa(this.prepared,p),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?ze({},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,I=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=Us(C,T)>this.pointerMoveTolerance);var N,D,B,$=this.getPointerIndex(p),Q={pointer:p,pointerIndex:$,pointerInfo:this.pointers[$],event:w,type:"move",eventTarget:_,dx:C,dy:T,duplicate:I,interaction:this};I||(N=this.coords.velocity,D=this.coords.delta,B=Math.max(D.timeStamp/1e3,.001),N.page.x=D.page.x/B,N.page.y=D.page.y/B,N.client.x=D.client.x/B,N.client.y=D.client.y/B,N.timeStamp=B),this._scopeFire("interactions:move",Q),I||this.simulation||(this.interacting()&&(Q.type=null,this.move(Q)),this.pointerWasMoved&&ka(this.coords.prev,this.coords.cur))}},{key:"move",value:function(p){p&&p.event||yc(this.coords.delta),(p=ze({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 I=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(I),{pointer:p,pointerIndex:T,pointerInfo:this.pointers[T],event:w,eventTarget:_,type:I,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=ns(p);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:zs(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,I,N,D=ns(p),B=this.getPointerIndex(p),$=this.pointers[B];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),$?$.pointer=p:($=new Kd(D,p,w,null,null),B=this.pointers.length,this.pointers.push($)),Na(this.coords.cur,this.pointers.map(function(Q){return Q.pointer}),this._now()),T=this.coords.delta,I=this.coords.prev,N=this.coords.cur,T.page.x=N.page.x-I.page.x,T.page.y=N.page.y-I.page.y,T.client.x=N.client.x-I.client.x,T.client.y=N.client.y-I.client.y,T.timeStamp=N.timeStamp-I.timeStamp,C&&(this.pointerIsDown=!0,$.downTime=this.coords.cur.timeStamp,$.downTarget=_,rs(this.downPointer,p),this.interacting()||(ka(this.coords.start,this.coords.cur),ka(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:$,pointerIndex:B,interaction:this}),B}},{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 Wa(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,I=this.rect;if(I&&_==="move"&&(La(this.edges,I,this.coords.delta[this.interactable.options.deltaSource]),I.width=I.right-I.left,I.height=I.bottom-I.top),this._scopeFire("interactions:before-action-".concat(_),p)===!1)return!1;var N=p.iEvent=this._createPreparedEvent(w,_,C,T);return this._scopeFire("interactions:action-".concat(_),p),_==="start"&&(this.prevEvent=N),this._fireEvent(N),this._scopeFire("interactions:after-action-".concat(_),p),!0}},{key:"_now",value:function(){return Date.now()}}]),f}();function zc(f){Wc(f.interaction)}function Wc(f){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(f))return!1;var p=f.offset.pending;return Ba(f.coords.cur,p),Ba(f.coords.delta,p),La(f.edges,f.rect,p),p.x=0,p.y=0,!0}function np(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 Ba(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 ip={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(f){f.Interaction.prototype.offsetBy=np},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&&(Ba(p.coords.cur,p.offset.total),p.offset.pending.x=0,p.offset.pending.y=0)}(f.interaction)},"interactions:before-action-start":zc,"interactions:before-action-move":zc,"interactions:before-action-end":function(f){var p=f.interaction;if(Wc(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}}},Bc=ip,op=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 l(f,[{key:"start",value:function(p){var w=this.interaction,_=js(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Us(C.x,C.y),I=this.modification||(this.modification=new za(w));if(I.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=I.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&T>_.minSpeed&&T>_.endSpeed)this.startInertia();else{if(I.result=I.setAll(this.modifierArg),!I.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,_=js(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 I=this.modification,N=this.modifierArg;N.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},I.result=I.setAll(N),I.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+I.result.delta.x,y:this.targetOffset.y+I.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=vi.request(function(){w.active&&p()})}},{key:"inertiaTick",value:function(){var p,w,_,C,T,I,N,D=this,B=this.interaction,$=js(B).resistance,Q=(B._now()-this.t0)/1e3;if(Q<this.te){var ae,ge=1-(Math.exp(-$*Q)-this.lambda_v0)/this.one_ve_v0;this.isModified?(p=0,w=0,_=this.targetOffset.x,C=this.targetOffset.y,T=this.modifiedOffset.x,I=this.modifiedOffset.y,ae={x:Gc(N=ge,p,_,T),y:Gc(N,w,C,I)}):ae={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var he={x:ae.x-this.currentOffset.x,y:ae.y-this.currentOffset.y};this.currentOffset.x+=he.x,this.currentOffset.y+=he.y,B.offsetBy(he),B.move(),this.onNextFrame(function(){return D.inertiaTick()})}else B.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=js(w).smoothEndDuration;if(_<C){var T={x:jc(_,0,this.targetOffset.x,C),y:jc(_,0,this.targetOffset.y,C)},I={x:T.x-this.currentOffset.x,y:T.y-this.currentOffset.y};this.currentOffset.x+=I.x,this.currentOffset.y+=I.y,w.offsetBy(I),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"}),ka(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,vi.cancel(this.timeout)}}]),f}();function js(f){var p=f.interactable,w=f.prepared;return p&&p.options&&w.name&&p.options[w.name].inertia}var sp={id:"inertia",before:["modifiers","actions"],install:function(f){var p=f.defaults;f.usePlugin(Bc),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 op(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;U.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":as,"interactions:action-inertiastart":as,"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 Gc(f,p,w,_){var C=1-f;return C*C*p+2*C*f*w+f*f*_}function jc(f,p,w,_){return-w*(f/=_)*(f-2)+p}var ap=sp;function qc(f,p){for(var w=0;w<p.length;w++){var _=p[w];if(f.immediatePropagationStopped)break;_(f)}}var Hc=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=ze({},p||{})}return l(f,[{key:"fire",value:function(p){var w,_=this.global;(w=this.types[p.type])&&qc(p,w),!p.propagationStopped&&_&&(w=_[p.type])&&qc(p,w)}},{key:"on",value:function(p,w){var _=Vi(p,w);for(p in _)this.types[p]=Nd(this.types[p]||[],_[p])}},{key:"off",value:function(p,w){var _=Vi(p,w);for(p in _){var C=this.types[p];if(C&&C.length)for(var T=0,I=_[p];T<I.length;T++){var N=I[T],D=C.indexOf(N);D!==-1&&C.splice(D,1)}}}},{key:"getRect",value:function(p){return null}}]),f}(),lp=function(){function f(p){o(this,f),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=p,rs(this,p)}return l(f,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),f}();function wo(f){return U.object(f)?{capture:!!f.capture,passive:!!f.passive}:{capture:!!f,passive:!1}}function ls(f,p){return f===p||(typeof f=="boolean"?!!p.capture===f&&!p.passive:!!f.capture==!!p.capture&&!!f.passive==!!p.passive)}var cp={id:"events",install:function(f){var p,w=[],_={},C=[],T={add:I,remove:N,addDelegate:function($,Q,ae,ge,he){var ve=wo(he);if(!_[ae]){_[ae]=[];for(var Oe=0;Oe<C.length;Oe++){var Ie=C[Oe];I(Ie,ae,D),I(Ie,ae,B,!0)}}var Ue=_[ae],et=Ui(Ue,function(st){return st.selector===$&&st.context===Q});et||(et={selector:$,context:Q,listeners:[]},Ue.push(et)),et.listeners.push({func:ge,options:ve})},removeDelegate:function($,Q,ae,ge,he){var ve,Oe=wo(he),Ie=_[ae],Ue=!1;if(Ie)for(ve=Ie.length-1;ve>=0;ve--){var et=Ie[ve];if(et.selector===$&&et.context===Q){for(var st=et.listeners,qe=st.length-1;qe>=0;qe--){var rt=st[qe];if(rt.func===ge&&ls(rt.options,Oe)){st.splice(qe,1),st.length||(Ie.splice(ve,1),N(Q,ae,D),N(Q,ae,B,!0)),Ue=!0;break}}if(Ue)break}}},delegateListener:D,delegateUseCapture:B,delegatedEvents:_,documents:C,targets:w,supportsOptions:!1,supportsPassive:!1};function I($,Q,ae,ge){if($.addEventListener){var he=wo(ge),ve=Ui(w,function(Oe){return Oe.eventTarget===$});ve||(ve={eventTarget:$,events:{}},w.push(ve)),ve.events[Q]||(ve.events[Q]=[]),Ui(ve.events[Q],function(Oe){return Oe.func===ae&&ls(Oe.options,he)})||($.addEventListener(Q,ae,T.supportsOptions?he:he.capture),ve.events[Q].push({func:ae,options:he}))}}function N($,Q,ae,ge){if($.addEventListener&&$.removeEventListener){var he=zs(w,function(Ar){return Ar.eventTarget===$}),ve=w[he];if(ve&&ve.events)if(Q!=="all"){var Oe=!1,Ie=ve.events[Q];if(Ie){if(ae==="all"){for(var Ue=Ie.length-1;Ue>=0;Ue--){var et=Ie[Ue];N($,Q,et.func,et.options)}return}for(var st=wo(ge),qe=0;qe<Ie.length;qe++){var rt=Ie[qe];if(rt.func===ae&&ls(rt.options,st)){$.removeEventListener(Q,ae,T.supportsOptions?st:st.capture),Ie.splice(qe,1),Ie.length===0&&(delete ve.events[Q],Oe=!0);break}}}Oe&&!Object.keys(ve.events).length&&w.splice(he,1)}else for(Q in ve.events)ve.events.hasOwnProperty(Q)&&N($,Q,"all")}}function D($,Q){for(var ae=wo(Q),ge=new lp($),he=_[$.type],ve=kd($)[0],Oe=ve;U.element(Oe);){for(var Ie=0;Ie<he.length;Ie++){var Ue=he[Ie],et=Ue.selector,st=Ue.context;if(Fe(Oe,et)&&de(st,ve)&&de(st,Oe)){var qe=Ue.listeners;ge.currentTarget=Oe;for(var rt=0;rt<qe.length;rt++){var Ar=qe[rt];ls(Ar.options,ae)&&Ar.func(ge)}}}Oe=ye(Oe)}}function B($){return 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}},Ga={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(f){for(var p=0,w=Ga.methodOrder;p<w.length;p++){var _=w[p],C=Ga[_](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,I=C.interactions.list;T<I.length;T++){var N=I[T],D=_;if(N.simulation&&N.simulation.allowResume&&N.pointerType===p)for(;D;){if(D===N.element)return N;D=ye(D)}}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 I=0,N=T.interactions.list;I<N.length;I++){var D=N[I];if(D.pointerType===_){if(D.simulation&&!ja(D,w))continue;if(D.interacting())return D;p||(p=D)}}if(p)return p;for(var B=0,$=T.interactions.list;B<$.length;B++){var Q=$[B];if(!(Q.pointerType!==_||/down/i.test(C)&&Q.simulation))return Q}return null},hasPointer:function(f){for(var p=f.pointerId,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(ja(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 ja(f,p){return f.pointers.some(function(w){return w.id===p})}var up=Ga,qs=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Zc(f,p){return function(w){var _=p.interactions.list,C=Ec(w),T=kd(w),I=T[0],N=T[1],D=[];if(/^touch/.test(w.type)){p.prevTouchTime=p.now();for(var B=0,$=w.changedTouches;B<$.length;B++){var Q=$[B],ae={pointer:Q,pointerId:ns(Q),pointerType:C,eventType:w.type,eventTarget:I,curEventTarget:N,scope:p},ge=Yc(ae);D.push([ae.pointer,ae.eventTarget,ae.curEventTarget,ge])}}else{var he=!1;if(!pe.supportsPointerEvent&&/mouse/.test(w.type)){for(var ve=0;ve<_.length&&!he;ve++)he=_[ve].pointerType!=="mouse"&&_[ve].pointerIsDown;he=he||p.now()-p.prevTouchTime<500||w.timeStamp===0}if(!he){var Oe={pointer:w,pointerId:ns(w),pointerType:C,eventType:w.type,curEventTarget:N,eventTarget:I,scope:p},Ie=Yc(Oe);D.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Ie])}}for(var Ue=0;Ue<D.length;Ue++){var et=D[Ue],st=et[0],qe=et[1],rt=et[2];et[3][f](st,w,qe,rt)}}}function Yc(f){var p=f.pointerType,w=f.scope,_={interaction:up.search(f),searchDetails:f};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:p})}function qa(f,p){var w=f.doc,_=f.scope,C=f.options,T=_.interactions.docEvents,I=_.events,N=I[p];for(var D in _.browser.isIOS&&!C.events&&(C.events={passive:!1}),I.delegatedEvents)N(w,D,I.delegateListener),N(w,D,I.delegateUseCapture,!0);for(var B=C&&C.events,$=0;$<T.length;$++){var Q=T[$];N(w,Q.type,Q.listener,B)}}var Jc={id:"core/interactions",install:function(f){for(var p={},w=0;w<qs.length;w++){var _=qs[w];p[_]=Zc(_,f)}var C,T=pe.pEventTypes;function I(){for(var N=0,D=f.interactions.list;N<D.length;N++){var B=D[N];if(B.pointerIsDown&&B.pointerType==="touch"&&!B._interacting)for(var $=function(){var ge=ae[Q];f.documents.some(function(he){return de(he.doc,ge.downTarget)})||B.removePointer(ge.pointer,ge.event)},Q=0,ae=B.pointers;Q<ae.length;Q++)$()}}(C=J.PointerEvent?[{type:T.down,listener:I},{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:I},{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(N){for(var D=0,B=f.interactions.list;D<B.length;D++)B[D].documentBlur(N)}}),f.prevTouchTime=0,f.Interaction=function(N){d(B,N);var D=S(B);function B(){return o(this,B),D.apply(this,arguments)}return l(B,[{key:"pointerMoveTolerance",get:function(){return f.interactions.pointerMoveTolerance},set:function($){f.interactions.pointerMoveTolerance=$}},{key:"_now",value:function(){return f.now()}}]),B}(rp),f.interactions={list:[],new:function(N){N.scopeFire=function(B,$){return f.fire(B,$)};var D=new f.Interaction(N);return f.interactions.list.push(D),D},listeners:p,docEvents:C,pointerMoveTolerance:1},f.usePlugin(Fc)},listeners:{"scope:add-document":function(f){return qa(f,"add")},"scope:remove-document":function(f){return qa(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:qa,doOnInteractions:Zc,methodNames:qs},dp=Jc,_i=function(f){return f[f.On=0]="On",f[f.Off=1]="Off",f}(_i||{}),pp=function(){function f(p,w,_,C){o(this,f),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Hc,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=G(In(p)?this._context:p),this._doc=this._win.document,this._scopeEvents=C,this.set(w)}return l(f,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(p,w){return U.func(w.onstart)&&this.on("".concat(p,"start"),w.onstart),U.func(w.onmove)&&this.on("".concat(p,"move"),w.onmove),U.func(w.onend)&&this.on("".concat(p,"end"),w.onend),U.func(w.oninertiastart)&&this.on("".concat(p,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(p,w,_){var C,T=this,I=(C=this._actions.map[p])==null?void 0:C.filterEventType,N=function(D){return(I==null||I(D))&&Bs(D,T._actions)};(U.array(w)||U.object(w))&&this._onOff(_i.Off,p,w,void 0,N),(U.array(_)||U.object(_))&&this._onOff(_i.On,p,_,void 0,N)}},{key:"setPerAction",value:function(p,w){var _=this._defaults;for(var C in w){var T=C,I=this.options[p],N=w[T];T==="listeners"&&this.updatePerActionListeners(p,I.listeners,N),U.array(N)?I[T]=Cc(N):U.plainObject(N)?(I[T]=ze(I[T]||{},go(N)),U.object(_.perAction[T])&&"enabled"in _.perAction[T]&&(I[T].enabled=N.enabled!==!1)):U.bool(N)&&U.object(_.perAction[T])?I[T].enabled=N:I[T]=N}}},{key:"getRect",value:function(p){return p=p||(U.element(this.target)?this.target:null),U.string(this.target)&&(p=p||this._context.querySelector(this.target)),yi(p)}},{key:"rectChecker",value:function(p){var w=this;return U.func(p)?(this.getRect=function(_){var C=ze({},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(In(w)||U.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 U.string(p)?Array.from(this._context.querySelectorAll(p)):U.func(p)&&p.getAllElements?p.getAllElements():U.element(p)?[p]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(p){return this._context===p.ownerDocument||de(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||!!U.element(_)&&(U.string(p)?Tr(_,p,w):!!U.element(p)&&de(p,_))}},{key:"testIgnore",value:function(p,w,_){return!(!p||!U.element(_))&&(U.string(p)?Tr(_,p,w):!!U.element(p)&&de(p,_))}},{key:"fire",value:function(p){return this.events.fire(p),this}},{key:"_onOff",value:function(p,w,_,C,T){U.object(w)&&!U.array(w)&&(C=_,_=null);var I=Vi(w,_,T);for(var N in I){N==="wheel"&&(N=pe.wheelEvent);for(var D=0,B=I[N];D<B.length;D++){var $=B[D];Bs(N,this._actions)?this.events[p===_i.On?"on":"off"](N,$):U.string(this.target)?this._scopeEvents[p===_i.On?"addDelegate":"removeDelegate"](this.target,this._context,N,$,C):this._scopeEvents[p===_i.On?"add":"remove"](this.target,N,$,C)}}return this}},{key:"on",value:function(p,w,_){return this._onOff(_i.On,p,w,_)}},{key:"off",value:function(p,w,_){return this._onOff(_i.Off,p,w,_)}},{key:"set",value:function(p){var w=this._defaults;for(var _ in U.object(p)||(p={}),this.options=go(w.base),this._actions.methodDict){var C=_,T=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,ze(ze({},w.perAction),w.actions[C])),this[T](p[C])}for(var I in p)I!=="getRect"?U.func(this[I])&&this[I](p[I]):this.rectChecker(p.getRect);return this}},{key:"unset",value:function(){if(U.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,I=C.context,N=C.listeners;T===this.target&&I===this._context&&w.splice(_,1);for(var D=N.length-1;D>=0;D--)this._scopeEvents.removeDelegate(this.target,this._context,p,N[D][0],N[D][1])}else this._scopeEvents.remove(this.target,"all")}}]),f}(),fp=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,I=U.string(T)?w.selectorMap[T]:T[w.scope.id],N=zs(I,function(D){return D===C});I.splice(N,1)}})}return l(f,[{key:"new",value:function(p,w){w=ze(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(_),U.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=U.string(p),T=C?this.selectorMap[p]:p[this.scope.id];if(T)return Ui(T,function(I){return I._context===_&&(C||I.inContext(p))})}},{key:"forEachMatch",value:function(p,w){for(var _=0,C=this.list;_<C.length;_++){var T=C[_],I=void 0;if((U.string(T.target)?U.element(p)&&Fe(p,T.target):p===T.target)&&T.inContext(p)&&(I=w(T)),I!==void 0)return I}}}]),f}(),mp=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=pe,this.defaults=go(Vc),this.Eventable=Hc,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var C=function T(I,N){var D=_.interactables.getExisting(I,N);return D||((D=_.interactables.new(I,N)).events.global=T.globalEvents),D};return C.getPointerAverage=Ld,C.getTouchBBox=_c,C.getTouchDistance=xc,C.getTouchAngle=Sc,C.getElementRect=yi,C.getElementClientRect=mr,C.matchesSelector=Fe,C.closest=Se,C.globalEvents={},C.version="1.10.27",C.scope=_,C.use=function(T,I){return this.scope.usePlugin(T,I),this},C.isSet=function(T,I){return!!this.scope.interactables.get(T,I&&I.context)},C.on=ss(function(T,I,N){if(U.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),U.array(T)){for(var D=0,B=T;D<B.length;D++){var $=B[D];this.on($,I,N)}return this}if(U.object(T)){for(var Q in T)this.on(Q,T[Q],I);return this}return Bs(T,this.scope.actions)?this.globalEvents[T]?this.globalEvents[T].push(I):this.globalEvents[T]=[I]:this.scope.events.add(this.scope.document,T,I,{options:N}),this},"The interact.on() method is being deprecated"),C.off=ss(function(T,I,N){if(U.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),U.array(T)){for(var D=0,B=T;D<B.length;D++){var $=B[D];this.off($,I,N)}return this}if(U.object(T)){for(var Q in T)this.off(Q,T[Q],I);return this}var ae;return Bs(T,this.scope.actions)?T in this.globalEvents&&(ae=this.globalEvents[T].indexOf(I))!==-1&&this.globalEvents[T].splice(ae,1):this.scope.events.remove(this.scope.document,T,I,N),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return pe.supportsTouch},C.supportsPointerEvent=function(){return pe.supportsPointerEvent},C.stop=function(){for(var T=0,I=this.scope.interactions.list;T<I.length;T++)I[T].stop();return this},C.pointerMoveTolerance=function(T){return U.number(T)?(this.scope.interactions.pointerMoveTolerance=T,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(T,I){this.scope.addDocument(T,I)},C.removeDocument=function(T){this.scope.removeDocument(T)},C}(this),this.InteractEvent=Wa,this.Interactable=void 0,this.interactables=new fp(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=S(T);function T(){return o(this,T),C.apply(this,arguments)}return l(T,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(I){return P(h(T.prototype),"set",this).call(this,I),w.fire("interactable:set",{options:I,interactable:this}),this}},{key:"unset",value:function(){P(h(T.prototype),"unset",this).call(this);var I=w.interactables.list.indexOf(this);I<0||(w.interactables.list.splice(I,1),w.fire("interactable:unset",{interactable:this}))}}]),T}(pp)}return l(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,U.window(_)&&q(_),J.init(_),pe.init(_),vi.init(_),w.window=_,w.document=_.document,w.usePlugin(dp),w.usePlugin(cp),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(N,D){return N[D]=!0,N[Xc(D)]=!0,N},{});_<C;_++){var I=this.listenerMaps[_].id;if(I&&(T[I]||T[Xc(I)]))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 _=G(p);w=w?ze({},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),_=G(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 Qc=new mp,Mr=Qc.interactStatic,hp=typeof globalThis<"u"?globalThis:window;Qc.init(hp);var gp=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,I=f.limits,N=I===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:I,D=f.offset,B=D===void 0?{x:0,y:0}:D,$={range:T,grid:f,x:null,y:null},Q=0;Q<p.length;Q++){var ae=p[Q],ge=ae[0],he=ae[1],ve=Math.round((_-B.x)/f[ge]),Oe=Math.round((C-B.y)/f[he]);$[ge]=Math.max(N.left,Math.min(N.right,ve*f[ge]+B.x)),$[he]=Math.max(N.top,Math.min(N.bottom,Oe*f[he]+B.y))}return $};return w.grid=f,w.coordFields=p,w}}),wp={id:"snappers",install:function(f){var p=f.interactStatic;p.snappers=ze(p.snappers||{},gp),p.createSnapGrid=p.snappers.grid}},yp=wp,vp={start:function(f){var p=f.state,w=f.rect,_=f.edges,C=f.pageCoords,T=p.options,I=T.ratio,N=T.enabled,D=p.options,B=D.equalDelta,$=D.modifiers;I==="preserve"&&(I=w.width/w.height),p.startCoords=ze({},C),p.startRect=ze({},w),p.ratio=I,p.equalDelta=B;var Q=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 ae=(Q.left?1:-1)*(Q.top?1:-1);p.edgeSign={x:ae,y:ae}}else p.edgeSign={x:Q.left?-1:1,y:Q.top?-1:1};if(N!==!1&&ze(_,Q),$!=null&&$.length){var ge=new za(f.interaction);ge.copyFrom(f.interaction.modification),ge.prepareStates($),p.subModification=ge,ge.startAll(n({},f))}},set:function(f){var p=f.state,w=f.rect,_=f.coords,C=p.linkedEdges,T=ze({},_),I=p.equalDelta?Kc:bp;if(ze(f.edges,C),I(p,p.xIsPrimaryAxis,_,w),!p.subModification)return null;var N=ze({},w);La(C,N,{x:_.x-T.x,y:_.y-T.y});var D=p.subModification.setAll(n(n({},f),{},{rect:N,edges:C,pageCoords:_,prevCoords:_,prevRect:N})),B=D.delta;return D.changed&&(I(p,Math.abs(B.x)>Math.abs(B.y),D.coords,D.rect),ze(_,D.coords)),D.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Kc(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 bp(f,p,w,_){var C=f.startRect,T=f.startCoords,I=f.ratio,N=f.edgeSign;if(p){var D=_.width/I;w.y=T.y+(D-C.height)*N.y}else{var B=_.height*I;w.x=T.x+(B-C.width)*N.x}}var eu=bi(vp,"aspectRatio"),tu=function(){};tu._defaults={};var Hs=tu;function Wi(f,p,w){return U.func(f)?ts(f,p.interactable,p.element,[w.x,w.y,p]):ts(f,p.interactable,p.element)}var Zs={start:function(f){var p=f.rect,w=f.startOffset,_=f.state,C=f.interaction,T=f.pageCoords,I=_.options,N=I.elementRect,D=ze({left:0,top:0,right:0,bottom:0},I.offset||{});if(p&&N){var B=Wi(I.restriction,C,T);if(B){var $=B.right-B.left-p.width,Q=B.bottom-B.top-p.height;$<0&&(D.left+=$,D.right+=$),Q<0&&(D.top+=Q,D.bottom+=Q)}D.left+=w.left-p.width*N.left,D.top+=w.top-p.height*N.top,D.right+=w.right-p.width*(1-N.right),D.bottom+=w.bottom-p.height*(1-N.bottom)}_.offset=D},set:function(f){var p=f.coords,w=f.interaction,_=f.state,C=_.options,T=_.offset,I=Wi(C.restriction,w,p);if(I){var N=function(D){return!D||"left"in D&&"top"in D||((D=ze({},D)).left=D.x||0,D.top=D.y||0,D.right=D.right||D.left+D.width,D.bottom=D.bottom||D.top+D.height),D}(I);p.x=Math.max(Math.min(N.right-T.right,p.x),N.left+T.left),p.y=Math.max(Math.min(N.bottom-T.bottom,p.y),N.top+T.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},_p=bi(Zs,"restrict"),ru={top:1/0,left:1/0,bottom:-1/0,right:-1/0},nu={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function iu(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 cs={noInner:ru,noOuter:nu,start:function(f){var p,w=f.interaction,_=f.startOffset,C=f.state,T=C.options;T&&(p=fo(Wi(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,I=C.options;if(w){var N=ze({},p),D=Wi(I.inner,_,N)||{},B=Wi(I.outer,_,N)||{};iu(D,ru),iu(B,nu),w.top?p.y=Math.min(Math.max(B.top+T.top,N.y),D.top+T.top):w.bottom&&(p.y=Math.max(Math.min(B.bottom+T.bottom,N.y),D.bottom+T.bottom)),w.left?p.x=Math.min(Math.max(B.left+T.left,N.x),D.left+T.left):w.right&&(p.x=Math.max(Math.min(B.right+T.right,N.x),D.right+T.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},xp=bi(cs,"restrictEdges"),Sp=ze({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(f){}},Zs.defaults),Ep=bi({start:Zs.start,set:Zs.set,defaults:Sp},"restrictRect"),Cp={width:-1/0,height:-1/0},Tp={width:1/0,height:1/0},Pp=bi({start:function(f){return cs.start(f)},set:function(f){var p=f.interaction,w=f.state,_=f.rect,C=f.edges,T=w.options;if(C){var I=wc(Wi(T.min,p,f.coords))||Cp,N=wc(Wi(T.max,p,f.coords))||Tp;w.options={endOnly:T.endOnly,inner:ze({},cs.noInner),outer:ze({},cs.noOuter)},C.top?(w.options.inner.top=_.bottom-I.height,w.options.outer.top=_.bottom-N.height):C.bottom&&(w.options.inner.bottom=_.top+I.height,w.options.outer.bottom=_.top+N.height),C.left?(w.options.inner.left=_.right-I.width,w.options.outer.left=_.right-N.width):C.right&&(w.options.inner.right=_.left+I.width,w.options.outer.right=_.left+N.width),cs.set(f),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Ha={start:function(f){var p,w=f.interaction,_=f.interactable,C=f.element,T=f.rect,I=f.state,N=f.startOffset,D=I.options,B=D.offsetWithOrigin?function(ae){var ge=ae.interaction.element,he=fo(ts(ae.state.options.origin,null,null,[ge])),ve=he||Vs(ae.interactable,ge,ae.interaction.prepared.name);return ve}(f):{x:0,y:0};if(D.offset==="startCoords")p={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var $=ts(D.offset,_,C,[w]);(p=fo($)||{x:0,y:0}).x+=B.x,p.y+=B.y}var Q=D.relativePoints;I.offsets=T&&Q&&Q.length?Q.map(function(ae,ge){return{index:ge,relativePoint:ae,x:N.left-T.width*ae.x+p.x,y:N.top-T.height*ae.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,I=Vs(p.interactable,p.element,p.prepared.name),N=ze({},w),D=[];C.offsetWithOrigin||(N.x-=I.x,N.y-=I.y);for(var B=0,$=T;B<$.length;B++)for(var Q=$[B],ae=N.x-Q.x,ge=N.y-Q.y,he=0,ve=C.targets.length;he<ve;he++){var Oe=C.targets[he],Ie=void 0;(Ie=U.func(Oe)?Oe(ae,ge,p._proxy,Q,he):Oe)&&D.push({x:(U.number(Ie.x)?Ie.x:ae)+Q.x,y:(U.number(Ie.y)?Ie.y:ge)+Q.y,range:U.number(Ie.range)?Ie.range:C.range,source:Oe,index:he,offset:Q})}for(var Ue={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},et=0;et<D.length;et++){var st=D[et],qe=st.range,rt=st.x-N.x,Ar=st.y-N.y,Lt=Us(rt,Ar),Kr=Lt<=qe;qe===1/0&&Ue.inRange&&Ue.range!==1/0&&(Kr=!1),Ue.target&&!(Kr?Ue.inRange&&qe!==1/0?Lt/qe<Ue.distance/Ue.range:qe===1/0&&Ue.range!==1/0||Lt<Ue.distance:!Ue.inRange&&Lt<Ue.distance)||(Ue.target=st,Ue.distance=Lt,Ue.range=qe,Ue.inRange=Kr,Ue.delta.x=rt,Ue.delta.y=Ar)}return Ue.inRange&&(w.x=Ue.target.x,w.y=Ue.target.y),_.closest=Ue,Ue},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Mp=bi(Ha,"snap"),Ys={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"]],Ha.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,I={x:_.x-T[0].x,y:_.y-T[0].y};w.options=ze({},C),w.options.targets=[];for(var N=0,D=C.targets||[];N<D.length;N++){var B=D[N],$=void 0;if($=U.func(B)?B(I.x,I.y,p):B){for(var Q=0,ae=w.targetFields;Q<ae.length;Q++){var ge=ae[Q],he=ge[0],ve=ge[1];if(he in $||ve in $){$.x=$[he],$.y=$[ve];break}}w.options.targets.push($)}}var Oe=Ha.set(f);return w.options=C,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Ap=bi(Ys,"snapSize"),Za={aspectRatio:eu,restrictEdges:xp,restrict:_p,restrictRect:Ep,restrictSize:Pp,snapEdges:bi({start:function(f){var p=f.edges;return p?(f.state.targetFields=f.state.targetFields||[[p.left?"left":"right",p.top?"top":"bottom"]],Ys.start(f)):null},set:Ys.set,defaults:ze(go(Ys.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Mp,snapSize:Ap,spring:Hs,avoid:Hs,transform:Hs,rubberband:Hs},Ip={id:"modifiers",install:function(f){var p=f.interactStatic;for(var w in f.usePlugin($c),f.usePlugin(yp),p.modifiers=Za,Za){var _=Za[w],C=_._defaults,T=_._methods;C._methods=T,f.defaults.perAction[w]=C}}},Lp=Ip,ou=function(f){d(w,f);var p=S(w);function w(_,C,T,I,N,D){var B;if(o(this,w),rs(b(B=p.call(this,N)),T),T!==C&&rs(b(B),C),B.timeStamp=D,B.originalEvent=T,B.type=_,B.pointerId=ns(C),B.pointerType=Ec(C),B.target=I,B.currentTarget=null,_==="tap"){var $=N.getPointerIndex(C);B.dt=B.timeStamp-N.pointers[$].downTime;var Q=B.timeStamp-N.tapTime;B.double=!!N.prevTap&&N.prevTap.type!=="doubletap"&&N.prevTap.target===B.target&&Q<500}else _==="doubletap"&&(B.dt=C.timeStamp-N.tapTime,B.double=!0);return B}return l(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}(mo),us={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(f){f.pointerEvents=us,f.defaults.actions.pointerEvents=us.defaults,ze(f.actions.phaselessTypes,us.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&&Ya(f),xi({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,I=w.event,N=w.eventTarget,D=w.pointerIndex,B=C.pointers[D].hold,$=Gn(N),Q={interaction:C,pointer:T,event:I,eventTarget:N,type:"hold",targets:[],path:$,node:null},ae=0;ae<$.length;ae++){var ge=$[ae];Q.node=ge,_.fire("pointerEvents:collect-targets",Q)}if(Q.targets.length){for(var he=1/0,ve=0,Oe=Q.targets;ve<Oe.length;ve++){var Ie=Oe[ve].eventable.options.holdDuration;Ie<he&&(he=Ie)}B.duration=he,B.timeout=setTimeout(function(){xi({interaction:C,eventTarget:N,pointer:T,event:I,type:"hold"},_)},he)}})(f,p),xi(f,p)},"interactions:up":function(f,p){Ya(f),xi(f,p),function(w,_){var C=w.interaction,T=w.pointer,I=w.event,N=w.eventTarget;C.pointerWasMoved||xi({interaction:C,eventTarget:N,pointer:T,event:I,type:"tap"},_)}(f,p)},"interactions:cancel":function(f,p){Ya(f),xi(f,p)}},PointerEvent:ou,fire:xi,collectEventTargets:su,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 xi(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,I=f.type,N=f.targets,D=N===void 0?su(f,p):N,B=new ou(I,_,C,T,w,p.now());p.fire("pointerEvents:new",{pointerEvent:B});for(var $={interaction:w,pointer:_,event:C,eventTarget:T,targets:D,type:I,pointerEvent:B},Q=0;Q<D.length;Q++){var ae=D[Q];for(var ge in ae.props||{})B[ge]=ae.props[ge];var he=Vs(ae.eventable,ae.node);if(B._subtractOrigin(he),B.eventable=ae.eventable,B.currentTarget=ae.node,ae.eventable.fire(B),B._addOrigin(he),B.immediatePropagationStopped||B.propagationStopped&&Q+1<D.length&&D[Q+1].node!==B.currentTarget)break}if(p.fire("pointerEvents:fired",$),I==="tap"){var ve=B.double?xi({interaction:w,pointer:_,event:C,eventTarget:T,type:"doubletap"},p):B;w.prevTap=ve,w.tapTime=ve.timeStamp}return B}function su(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,I=f.type,N=w.getPointerIndex(_),D=w.pointers[N];if(I==="tap"&&(w.pointerWasMoved||!D||D.downTarget!==T))return[];for(var B=Gn(T),$={interaction:w,pointer:_,event:C,eventTarget:T,type:I,path:B,targets:[],node:null},Q=0;Q<B.length;Q++){var ae=B[Q];$.node=ae,p.fire("pointerEvents:collect-targets",$)}return I==="hold"&&($.targets=$.targets.filter(function(ge){var he,ve;return ge.eventable.options.holdDuration===((he=w.pointers[N])==null||(ve=he.hold)==null?void 0:ve.duration)})),$.targets}function Ya(f){var p=f.interaction,w=f.pointerIndex,_=p.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var kp=Object.freeze({__proto__:null,default:us});function Np(f){var p=f.interaction;p.holdIntervalHandle&&(clearInterval(p.holdIntervalHandle),p.holdIntervalHandle=null)}var Op={id:"pointer-events/holdRepeat",install:function(f){f.usePlugin(us);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)]=Np,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 I=T[0].eventable.options.holdRepeatInterval;I<=0||(w.holdIntervalHandle=setTimeout(function(){p.pointerEvents.fire({interaction:w,eventTarget:C,type:"hold",pointer:_,event:_},p)},I))}}})},Rp=Op,Dp={id:"pointer-events/interactableTargets",install:function(f){var p=f.Interactable;p.prototype.pointerEvents=function(_){return ze(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(I){var N=I.events,D=N.options;N.types[C]&&N.types[C].length&&I.testIgnoreAllow(D,_,T)&&w.push({node:_,eventable:N,props:{interactable:I}})})},"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;ze(w.events.options,p.pointerEvents.defaults),ze(w.events.options,_.pointerEvents||{})}}},Fp=Dp,$p={id:"pointer-events",install:function(f){f.usePlugin(kp),f.usePlugin(Rp),f.usePlugin(Fp)}},Vp=$p,Up={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 I=_.getAllElements(),N=T.window.Promise,D=N?[]:null,B=function(){var Q=I[$],ae=_.getRect(Q);if(!ae)return 1;var ge,he=Ui(T.interactions.list,function(Ie){return Ie.interacting()&&Ie.interactable===_&&Ie.element===Q&&Ie.prepared.name===C.name});if(he)he.move(),D&&(ge=he._reflowPromise||new N(function(Ie){he._reflowResolve=Ie}));else{var ve=wc(ae),Oe=function(Ie){return{coords:Ie,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:ve.x,y:ve.y},client:{x:ve.x,y:ve.y},timeStamp:T.now()});ge=function(Ie,Ue,et,st,qe){var rt=Ie.interactions.new({pointerType:"reflow"}),Ar={interaction:rt,event:qe,pointer:qe,eventTarget:et,phase:"reflow"};rt.interactable=Ue,rt.element=et,rt.prevEvent=qe,rt.updatePointer(qe,qe,et,!0),yc(rt.coords.delta),Fa(rt.prepared,st),rt._doPhase(Ar);var Lt=Ie.window,Kr=Lt.Promise,Ln=Kr?new Kr(function(jn){rt._reflowResolve=jn}):void 0;return rt._reflowPromise=Ln,rt.start(st,Ue,et),rt._interacting?(rt.move(Ar),rt.end(qe)):(rt.stop(),rt._reflowResolve()),rt.removePointer(qe,qe),Ln}(T,_,Q,C,Oe)}D&&D.push(ge)},$=0;$<I.length&&!B();$++);return D&&N.all(D).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))}}},zp=Up;if(Mr.use(Fc),Mr.use(Bc),Mr.use(Vp),Mr.use(ap),Mr.use(Lp),Mr.use(Yd),Mr.use(Ud),Mr.use(Lc),Mr.use(zp),Mr.default=Mr,i(e)==="object"&&e)try{e.exports=Mr}catch{}return Mr.default=Mr,Mr})})(Xb,Xb.exports);YQ=Xb.exports,q1=yD(YQ)});function _D(e,t,r){return t?`${e}-${t}`:r?`${e}-${r}`:`${e}-m`}var xD=O(()=>{});var sc,Oi,ac,Qb,SD,ED,JQ,s3,CD,e_,Kb,TD=O(()=>{cr();tc();bD();ro();Wo();Fr();Tn();YE();Sa();Xl();xD();jb();i3();Ms();En();sc={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},Oi={actionBar:"action-bar",alerts:"alerts",content:"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"},ac=25,Qb=25,SD={x:0,y:0},ED={top:0,right:0,bottom:0,left:0},JQ=Dt`: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}`,s3=0,CD="",e_=class e_ extends $t{constructor(){super(...arguments),this.dragPosition={...SD},this.ignoreOpenChange=!1,this.mutationObserver=Kn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openTransitionProp="opacity",this.panelEl=ki(),this.resizePosition={...ED},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=pn(),this.modal=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=Ft({cancelable:!1}),this.calciteDialogBeforeOpen=Ft({cancelable:!1}),this.calciteDialogClose=Ft({cancelable:!1}),this.calciteDialogOpen=Ft({cancelable:!1}),this.calciteDialogScroll=Ft({cancelable:!1})}get open(){return this._open}set open(t){let r=this._open;t!==r&&(this._open=t,this.toggleDialog(t))}async scrollContentTo(t){await this.panelEl.value?.scrollContentTo(t)}async setFocus(){return await Wn(this),this.panelEl.value?.setFocus()??Jl(this.el)}async updateFocusTrapElements(){Gb(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),Bb(this,{focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:t=>(!t.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,t.preventDefault()),!1)}}),this.setupInteractions()}async load(){Un(this),this.open&&this.openDialog()}willUpdate(t){t.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(t.has("open")&&(this.hasUpdated||this.open!==!1)||t.has("placement")&&(this.hasUpdated||this.placement!=="center")||t.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||t.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(t.has("messages")||t.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||t.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),t.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),ud(this),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:t}=this;this.assistiveText=t&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?t.dragEnabled:""} ${this.resizable?t.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),z1(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),ud(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){let{transitionEl:r}=this;r&&(r.classList.toggle(sc.openingActive,t),oc(this))}async triggerInteractModifiers(){let{interaction:t}=this;t&&(await t.reflow({name:"drag"}),await t.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(t){let{key:r,shiftKey:n,defaultPrevented:i}=t,{dragEnabled:o,resizable:s,resizePosition:l,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-ac,type:"blockSize"}),l.bottom-=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y-=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+ac,type:"blockSize"}),l.bottom+=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y+=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-ac,type:"inlineSize"}),l.right-=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x-=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+ac,type:"inlineSize"}),l.right+=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x+=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break}}updateTransform(){let{dragPosition:{x:t,y:r},resizePosition:n,transitionEl:i,dragEnabled:o,resizable:s}=this;if(!i)return;if(!o&&!s){i.style.transform=null;return}let{top:l,right:a,bottom:d,left:h}=this.getAdjustedResizePosition(n),g=Math.round(t+h+a),b=Math.round(r+l+d);i.style.transform=g||b?`translate(${g}px, ${b}px)`:null}updateSize({type:t,size:r}){let{transitionEl:n}=this;n&&(n.style[t]=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={...SD},this.resizePosition={...ED},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:t,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=q1(r,{context:t.ownerDocument})),n){let{minInlineSize:l,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[q1.modifiers.restrictSize({min:{width:x1(l)?parseInt(l):0,height:x1(a)?parseInt(a):0},max:{width:x1(d)?parseInt(d):window.innerWidth,height:x1(h)?parseInt(h):window.innerHeight}}),q1.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:b})=>{b&&(o.top+=b.top,o.right+=b.right,o.bottom+=b.bottom,o.left+=b.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[q1.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:l,dy:a})=>{s.x+=l,s.y+=a,this.updateTransform()}}})}}getAdjustedResizePosition({top:t,right:r,bottom:n,left:i}){let o=t/2,s=r/2,l=n/2,a=i/2;switch(this.placement){case"top":return{top:t,right:s,bottom:0,left:a};case"top-start":return{top:t,right:0,bottom:0,left:i};case"top-end":return{top:t,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:l,left:a}}}setTransitionEl(t){this.transitionEl=t,this.setupInteractions()}handleInternalPanelScroll(t){t.target===this.panelEl.value&&(t.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(t){t.target===this.panelEl.value&&(t.stopPropagation(),this.open=!1)}handlePanelKeyDown(t){this.escapeDisabled&&t.key==="Escape"&&t.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}s3--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){s3===0&&(CD=document.documentElement.style.overflow),s3++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",CD)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{assistiveText:t,description:r,heading:n,opened:i}=this;return xe`<div class=${_e({[sc.container]:!0,[sc.containerOpen]:i,[sc.containerEmbedded]:this.embedded})}>${this.modal?xe`<calcite-scrim class=${_e(sc.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${_e({[sc.dialog]:!0,[_D("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${At(this.setTransitionEl)}>${t?ur("assistive-text",xe`<div aria-live=polite class=${_e(sc.assistiveText)}>${t}</div>`):null}<slot name=${Oi.content}><calcite-panel .beforeClose=${this.beforeClose} class=${_e(sc.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} ${At(this.panelEl)}><slot name=${Oi.actionBar} slot=${Zt.actionBar}></slot><slot name=${Oi.alerts} slot=${Zt.alerts}></slot><slot name=${Oi.headerActionsStart} slot=${Zt.headerActionsStart}></slot><slot name=${Oi.headerActionsEnd} slot=${Zt.headerActionsEnd}></slot><slot name=${Oi.headerContent} slot=${Zt.headerContent}></slot><slot name=${Oi.headerMenuActions} slot=${Zt.headerMenuActions}></slot><slot name=${Oi.fab} slot=${Zt.fab}></slot><slot name=${Oi.contentTop} slot=${Zt.contentTop}></slot><slot name=${Oi.contentBottom} slot=${Zt.contentBottom}></slot><slot name=${Oi.footerStart} slot=${Zt.footerStart}></slot><slot name=${Oi.footer} slot=${Zt.footer}></slot><slot name=${Oi.footerEnd} slot=${Zt.footerEnd}></slot><slot></slot></calcite-panel></slot></div></div>`}};e_.properties={assistiveText:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,opened:16,beforeClose:0,closeDisabled:7,description:1,dragEnabled:7,embedded:5,escapeDisabled:7,heading:1,headingLevel:11,kind:3,loading:7,menuOpen:7,messageOverrides:0,modal:7,open:7,outsideCloseDisabled:7,overlayPositioning:3,placement:3,resizable:7,scale:3,widthScale:3,width:3},e_.styles=JQ;Kb=e_;Gt("calcite-dialog",Kb)});var PD={};Qs(PD,{Dialog:()=>Kb});var MD=O(()=>{EE();gD();TD()});var AD,XQ,t_,a3,ID=O(()=>{cr();ro();Fr();Tn();En();AD={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},XQ=Dt`: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}`,t_=class t_ extends $t{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}connectedCallback(){super.connectedCallback(),this.requestedIcon=xa(AD,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=xa(AD,this.icon,this.status))}render(){let t=this.el.hidden;return hm(this.el,"calcite-hydrated-hidden",t),xe`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(t){if(t)return xe`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${t} scale=s></calcite-icon>`}};t_.properties={icon:[3,{converter:ba}],iconFlipRtl:7,scale:3,status:3},t_.styles=XQ;a3=t_;Gt("calcite-input-message",a3)});var LD=O(()=>{td();ID()});var QQ,r_,l3,kD=O(()=>{cr();Dr();Fr();Tn();En();QQ=Dt`: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}`,r_=class r_ extends $t{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}render(){let t=this.type==="determinate",r=t?{width:`${this.value}%`}:{},n=Zl(this.el);return xe`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${t?"100":void 0} .ariaValueMin=${t?"0":void 0} .ariaValueNow=${t?this.value:void 0} role=progressbar><div class="track"><div class=${_e({bar:!0,indeterminate:this.type==="indeterminate",[v1.rtl]:n==="rtl",reversed:this.reversed})} style=${tb(r)}></div></div>${this.text?xe`<div class="text">${this.text}</div>`:null}</div>`}};r_.properties={label:1,reversed:7,text:1,type:3,value:9},r_.styles=QQ;l3=r_;Gt("calcite-progress",l3)});var ND=O(()=>{kD()});function Is(e){return!(!e||isNaN(Number(e)))}function OD(e){return!e||!aK(e)?"":n_(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:W1.includes(i)).join("");return Is(n)?new dd(n).toString():""})}function oK(e){let t=e.split(".")[1],r=new dd(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function n_(e,t){if(!e)return e;let r=e.toLowerCase().indexOf("e")+1;return r?e.replace(/[eE]*$/g,"").substring(0,r).concat(e.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>t(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):t(e)}function sK(e){let t=e.split(/[eE]/);if(t.length===1)return e;let r=+e;if(Number.isSafeInteger(r))return`${r}`;let n=e.charAt(0)==="-",i=+t[1],o=t[0].split("."),s=(n?o[0].substring(1):o[0])||"",l=o[1]||"",a=(g,b)=>{let S=Math.abs(b)-g.length,P=S>0?`${"0".repeat(S)}${g}`:g;return`${P.slice(0,b)}.${P.slice(b)}`},d=(g,b)=>{let S=b>g.length?`${g}${"0".repeat(b-g.length)}`:g;return`${S.slice(0,b)}.${S.slice(b)}`},h=i>0?`${s}${d(l,i)}`:`${a(s,i)}${l}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(KQ,"").replace(RD,"")}`}function aK(e){return W1.some(t=>e.includes(t))}function FD(e,t,r){let n=t.split(".")[1];if(n){let i=n.match(iK)[0];if(i&&r.delocalize(e).length!==t.length&&n.indexOf("e")===-1){let o=r.decimal;return e=e.includes(o)?e:`${e}${o}`,e.padEnd(e.length+i.length,r.localize("0"))}}return e}function uK(e,t="cldr"){let r=t==="cldr"?VD:$D;return e?r.includes(e)?e:(e=e.toLowerCase(),e==="nb"?"no":t==="t9n"&&e==="pt"?"pt-BR":(e.includes("-")&&(e=e.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(e)||(e=e.split("-")[0])),e==="zh"?"zh-CN":r.includes(e)?e:(console.warn(`Translations for the "${e}" locale are not available and will fall back to the default, English (en).`),H1))):H1}var KQ,eK,Vt,dd,RD,tK,rK,nK,iK,DD,H1,$D,VD,f4e,lK,UD,c3,zD,cK,u3,Yo,WD=O(()=>{B1();KQ=new RegExp("\\.(0+)?$"),eK=new RegExp("0+$"),Vt=class Vt{constructor(t){if(t instanceof Vt)return t;let[r,n]=sK(t).split(".").concat("");this.value=BigInt(r+n.padEnd(Vt.DECIMALS,"0").slice(0,Vt.DECIMALS))+BigInt(Vt.ROUNDED&&n[Vt.DECIMALS]>="5"),this.isNegative=t.charAt(0)==="-"}getIntegersAndDecimals(){let t=this.value.toString().replace("-","").padStart(Vt.DECIMALS+1,"0"),r=t.slice(0,-Vt.DECIMALS),n=t.slice(-Vt.DECIMALS).replace(eK,"");return{integers:r,decimals:n}}toString(){let{integers:t,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${t}${r.length?"."+r:""}`}formatToParts(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=t.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:t.minusSign}),n.length&&(i.push({type:"decimal",value:t.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?t.minusSign:""}${t.numberFormatter.format(BigInt(r))}`,o=n.length?`${t.decimal}${n.split("").map(s=>t.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(t){return Vt.fromBigInt(this.value+new Vt(t).value)}subtract(t){return Vt.fromBigInt(this.value-new Vt(t).value)}multiply(t){return Vt._divRound(this.value*new Vt(t).value,Vt.SHIFT)}divide(t){return Vt._divRound(this.value*Vt.SHIFT,new Vt(t).value)}};Vt.DECIMALS=100,Vt.ROUNDED=!0,Vt.SHIFT=BigInt("1"+"0".repeat(Vt.DECIMALS)),Vt._divRound=(t,r)=>Vt.fromBigInt(t/r+(Vt.ROUNDED?t*BigInt(2)/r%BigInt(2):BigInt(0))),Vt.fromBigInt=t=>Object.assign(Object.create(Vt.prototype),{value:t,isNegative:t<BigInt(0)});dd=Vt;RD=/^([-0])0+(?=\d)/,tK=/(?!^\.)\.$/,rK=/(?!^-)-/g,nK=/^-\b0\b\.?0*$/,iK=/0*$/,DD=e=>n_(e,t=>{let r=t.replace(rK,"").replace(tK,"").replace(RD,"$1");return Is(r)?nK.test(r)?r:oK(r):t});H1="en",$D=["ar","bg","bs","ca","cs","da","de","el",H1,"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"],VD=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",H1,"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"],f4e=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"}})),lK=["arab","arabext","latn"];[...new Set([...$D,...VD])];UD=e=>lK.includes(e),c3=new Intl.NumberFormat().resolvedOptions().numberingSystem,zD=c3==="arab"||!UD(c3)?"latn":c3,cK=e=>UD(e)?e:zD;u3=class{constructor(){this.delocalize=t=>this._numberFormatOptions?n_(t,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)):t,this.localize=t=>this._numberFormatOptions?n_(t,r=>Is(r.trim())?new dd(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):t}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(t){if(t.locale=uK(t?.locale),t.numberingSystem=cK(t?.numberingSystem),!this._numberFormatOptions&&t.locale===H1&&t.numberingSystem===zD&&Object.keys(t).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(t))return;this._numberFormatOptions=t,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=t.locale==="bs"||t.locale==="mk"?",":n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},Yo=new u3});var dK,BD,GD=O(()=>{Dr();Fr();dK={validationContainer:"validation-container"},BD=({scale:e,status:t,id:r,icon:n,message:i})=>xe`<div class=${_e(dK.validationContainer)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Re} .scale=${e} .status=${t}>${i}</calcite-input-message></div>`});function Im(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function jD(e,t,r){r.type=e==="textarea"?"text":e;let n=pK.includes(e),i=t;Im(i,r,"min",n),Im(i,r,"max",n),Im(i,r,"step",n);let o=mK.includes(e),s=t;Im(s,r,"minLength",o),Im(s,r,"maxLength",o);let l=fK.includes(e);Im(s,r,"pattern",l)}var pK,fK,mK,qD=O(()=>{pK=["date","datetime-local","month","number","range","time","week"],fK=["email","password","search","tel","text","url"],mK=["email","password","search","tel","text","textarea","url"]});var Pn,d3,HD,hK,gK,o_,i_,ZD=O(()=>{cr();Q5();tc();ro();Wo();mb();Fr();Hu();Tn();xE();E1();B1();bb();Sa();WD();Sm();GD();Ms();qD();En();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"},d3={validationMessage:"inputValidationMessage"},HD={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},hK={action:"action"},gK=Dt`: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}`,o_=class o_ extends $t{constructor(){super(),this.actionWrapperEl=ki(),this.attributeWatch=Uv(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=ki(),this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.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=pn(),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=Ft({cancelable:!1}),this.calciteInputInput=Ft(),this.calciteInternalInputBlur=Ft({cancelable:!1}),this.calciteInternalInputFocus=Ft({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}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(t){let r=this._value;t!==r&&(this._value=t,this.valueWatcher(t,r),t&&this._value===""&&this.setValue({origin:"reset",value:r}))}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}async setFocus(){await Wn(this),Jl(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),xm(this),tO(this),this.el.addEventListener(gb,this.onHiddenFormInputInput)}async load(){Un(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=xa(HD,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:Is(this.value)?this.value:""})))}willUpdate(t){t.has("max")&&(this.maxString=this.max?.toString()||null),t.has("min")&&(this.minString=this.min?.toString()||null),(t.has("icon")||t.has("type")&&(this.hasUpdated||this.type!=="text"))&&(this.requestedIcon=xa(HD,this.icon,this.type))}updated(){Kl(this)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),vb(this),rO(this),this.el.removeEventListener(gb,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(t,r){if(!this.userChangedValue){if(this.type==="number"&&(t==="Infinity"||t==="-Infinity")){this.displayedValue=t,this.previousEmittedValue=t;return}this.setValue({origin:"direct",previousValue:r,value:t==null||t==""?"":this.type==="number"?Is(t)?t:this.previousValue||"":t}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}keyDownHandler(t){this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&t.key==="Escape"&&(this.clearInputValue(t),t.preventDefault()),t.key==="Enter"&&hb(this)&&t.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=t==="up"?1:-1,l=this.step==="any"?1:Math.abs(this.step||1),a=new dd(o!==""?o:"0").add(`${l*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(t){this.setValue({committing:!0,nativeEvent:t,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(t){if(this.disabled)return;let r=t.composedPath();!r.includes(this.inputWrapperEl.value)||r.includes(this.actionWrapperEl.value)||this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputInputHandler(t){this.disabled||this.readOnly||(this.type==="file"&&(this.files=this.childEl.files),this.setValue({nativeEvent:t,origin:"user",value:t.target.value}))}inputKeyDownHandler(t){this.disabled||this.readOnly||t.key==="Enter"&&this.emitChangeIfUserModified()}inputNumberInputHandler(t){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=t.target.value;Yo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=Yo.delocalize(r);t.inputType==="insertFromPaste"?(Is(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:OD(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:t,origin:"user",value:n})}inputNumberKeyDownHandler(t){if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){t.preventDefault(),(t.key==="Backspace"||t.key==="Delete")&&this.clearInputValue(t);return}if(t.key==="ArrowUp"){t.preventDefault(),this.nudgeNumberValue("up",t);return}if(t.key==="ArrowDown"){this.nudgeNumberValue("down",t);return}let r=[...W1,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;let n=t.shiftKey&&t.key==="Tab";if(r.includes(t.key)||n){t.key==="Enter"&&this.emitChangeIfUserModified();return}Yo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===Yo.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(Yo.decimal)===-1))&&(/[eE]/.test(t.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||t.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||t.preventDefault())}nudgeNumberValue(t,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(t,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(t,n,i,r)},o)}numberButtonPointerUpAndOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}numberButtonPointerDownHandler(t){if(!FN(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)}syncHiddenFormInput(t){jD(this.type,this,t)}setChildElRef(t){this.childEl=t}setChildNumberElRef(t){this.childNumberEl=t}setInputValue(t){this.type==="number"&&this.childNumberEl?this.childNumberEl.value=t:this.childEl&&(this.childEl.value=t)}setPreviousEmittedValue(t){this.previousEmittedValue=this.normalizeValue(t)}normalizeValue(t){return this.type==="number"?Is(t)?t:"":t}setPreviousValue(t){this.previousValue=this.normalizeValue(t)}setValue({committing:t=!1,nativeEvent:r,origin:n,previousValue:i,value:o}){if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){Yo.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,l=o.charAt(o.length-1)===".",a=l&&s?o:DD(o),d=o&&!a?Is(this.previousValue)?this.previousValue:"":a,h=Yo.localize(d);n!=="connected"&&!l&&(h=FD(h,d,Yo)),this.displayedValue=l&&s?`${h}${Yo.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"?Yo.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Is(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Zl(this.el),r=xe`<div class=${_e(Pn.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=xe`<button .ariaLabel=${this.messages.clear} class=${_e(Pn.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${ei(this.scale)}></calcite-icon></button>`,i=xe`<calcite-icon class=${_e(Pn.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${ei(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=xe`<button aria-hidden=true class=${_e({[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=${ei(this.scale)}></calcite-icon></button>`,l=xe`<button aria-hidden=true class=${_e({[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=${ei(this.scale)}></calcite-icon></button>`,a=xe`<div class=${_e(Pn.numberButtonWrapper)}>${s}${l}</div>`,d=xe`<div class=${_e(Pn.prefix)}>${this.prefixText}</div>`,h=xe`<div class=${_e(Pn.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus,b=this.el.enterKeyHint,S=this.el.inputMode,P=this.type==="number"?ur("localized-input",xe`<input accept=${this.accept??Re} aria-errormessage=${d3.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${A1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} value=${this.defaultValue??Re} .disabled=${this.disabled?!0:null} enterkeyhint=${b??Re} inputmode=${S??Re} maxlength=${this.maxLength??Re} minlength=${this.minLength??Re} .multiple=${this.multiple} name=${Re} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Re} placeholder=${(this.placeholder||"")??Re} .readOnly=${this.readOnly} type=text .value=${eb(this.displayedValue??"")} ${At(this.setChildNumberElRef)}>`):null,A=this.childElType==="input"?Ql`input`:Ql`textarea`,F=this.type!=="number"?bm`<${A} accept=${this.accept??Re} aria-errormessage=${d3.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${A1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} class=${_e({[Pn.editingEnabled]:this.editingEnabled,[Pn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${b??Re} inputmode=${S??Re} max=${this.maxString??Re} maxlength=${this.maxLength??Re} min=${this.minString??Re} minlength=${this.minLength??Re} .multiple=${this.multiple} name=${this.name??Re} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Re} placeholder=${(this.placeholder||"")??Re} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Re} step=${this.step??Re} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Re} type=${this.type??Re} .value=${eb(this.value??"")} ${At(this.setChildElRef)}></${A}>`:null;return ec({disabled:this.disabled,children:xe`<div class=${_e({[Pn.inputWrapper]:!0,[v1.rtl]:t==="rtl",[Pn.hasSuffix]:this.suffixText,[Pn.hasPrefix]:this.prefixText})} ${At(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?l:null}${this.prefixText?d:null}<div class=${_e(Pn.wrapper)}>${P}${F}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${_e(Pn.actionWrapper)} ${At(this.actionWrapperEl)}><slot name=${hK.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}${iO({component:this})}</div>${this.validationMessage&&this.status==="invalid"?BD({icon:this.validationIcon,id:d3.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};o_.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:ba}],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:ba}],validationMessage:1,validity:0,value:1},o_.styles=gK;i_=o_;Gt("calcite-input",i_)});var YD={};Qs(YD,{Input:()=>i_});var JD=O(()=>{LD();ND();td();ZD()});var wK,yK,a_,s_,XD=O(()=>{cr();ro();Fr();bb();En();wK={container:"container"},yK=Dt`: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}`,a_=class a_ extends $t{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=Ft({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(M1))}willUpdate(t){t.has("for")&&pO(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(T1))}labelClickHandler(t){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:t})}render(){return xe`<div class=${_e(wK.container)}><slot></slot></div>`}};a_.properties={alignment:3,for:3,layout:3,scale:3},a_.styles=yK;s_=a_;Gt("calcite-label",s_)});var QD={};Qs(QD,{Label:()=>s_});var KD=O(()=>{XD()});var p3,eF=O(()=>{p3={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var l_,Z1,vK,u_,c_,tF=O(()=>{cr();ro();Wo();Fr();Tn();Sa();eF();jb();Sm();Ms();En();l_={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Z1={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},vK=Dt`: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}`,u_=class u_ extends $t{constructor(){super(...arguments),this.closeButton=ki(),this.openTransitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=pn(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=Ft({cancelable:!1}),this.calciteNoticeBeforeOpen=Ft({cancelable:!1}),this.calciteNoticeClose=Ft({cancelable:!1}),this.calciteNoticeOpen=Ft({cancelable:!1})}async setFocus(){await Wn(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!t)){if(t)return t.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){Un(this),this.requestedIcon=xa(p3,this.icon,this.kind),this.open&&oc(this)}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&oc(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=xa(p3,this.icon,this.kind))}loaded(){zn(this)}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(t){this.transitionEl=t}close(){this.open=!1}handleActionsEndSlotChange(t){this.hasActionEnd=Qn(t)}render(){let t=xe`<button .ariaLabel=${this.messages.close} class=${_e(Z1.close)} @click=${this.close} ${At(this.closeButton)}><calcite-icon icon=x .scale=${ei(this.scale)}></calcite-icon></button>`;return xe`<div class=${_e(Z1.container)} ${At(this.setTransitionEl)}>${this.requestedIcon?xe`<div class=${_e(Z1.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${ei(this.scale)}></calcite-icon></div>`:null}<div class=${_e(Z1.content)}><slot name=${l_.title}></slot><slot name=${l_.message}></slot><slot name=${l_.link}></slot></div><div class=${_e(Z1.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${l_.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}};u_.properties={hasActionEnd:16,closable:7,icon:[3,{converter:ba}],iconFlipRtl:7,kind:3,messageOverrides:0,open:7,scale:3,width:3},u_.styles=vK;c_=u_;Gt("calcite-notice",c_)});var rF={};Qs(rF,{Notice:()=>c_});var nF=O(()=>{td();tF()});var f3,m3,bK,Ri,h3,iF=O(()=>{gt();a5();yt();tt();it();Zr();ft();vN();rE();Iv();bN();xN();EN();n5();f3="esri-identity-modal",m3={base:f3,info:`${f3}__info`,notice:`${f3}__notice`},bK="ArcGIS Online",Ri=class extends yN{constructor(e,t){super(e,t),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 dN({button:()=>Promise.resolve().then(()=>(yO(),wO)),dialog:()=>Promise.resolve().then(()=>(MD(),PD)),input:()=>Promise.resolve().then(()=>(JD(),YD)),label:()=>Promise.resolve().then(()=>(KD(),QD)),notice:()=>Promise.resolve().then(()=>(nF(),rF))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:l}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:b,lblUser:S,lblPwd:P,lblCancel:A,lblSigning:F,lblOk:W}=r;return Li("div",{class:this.classes(m3.base,SN())},Li("form",{bind:this,onsubmit:this._submit},Li("calcite-dialog",{bind:this,heading:t,modal:!0,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},Li("div",{class:m3.info},t5(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?bK:o,resource:`(${s||h})`})),l?Li("calcite-notice",{class:m3.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},Li("div",{slot:"message"},l.details?.httpStatus?g:b)):null,i?null:[Li("calcite-label",null,S,Li("calcite-input",{afterCreate:z=>this._usernameInputNode=z,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),Li("calcite-label",null,P,Li("calcite-input",{afterCreate:z=>this._passwordInputNode=z,bind:this,name:"password",required:!0,type:"password",value:""}))],Li("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},A),Li("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?F:W))))}_focusUsernameInput(){return DL(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};R([V({readOnly:!0})],Ri.prototype,"container",void 0),R([V(),aE("esri/t9n/common")],Ri.prototype,"commonMessages",void 0),R([V()],Ri.prototype,"error",void 0),R([V(),aE("esri/identity/t9n/identity")],Ri.prototype,"messages",void 0),R([V()],Ri.prototype,"oAuthPrompt",void 0),R([V()],Ri.prototype,"open",void 0),R([V()],Ri.prototype,"signingIn",void 0),R([V()],Ri.prototype,"server",void 0),R([V({readOnly:!0})],Ri.prototype,"title",null),R([V()],Ri.prototype,"resource",void 0),Ri=R([Le("esri.identity.IdentityModal")],Ri);h3=Ri});var g3,Lm,oF=O(()=>{g3="esriJSAPIOAuth",Lm=class{constructor(t,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=t,this.storage=r,this._init()}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)t=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0)}}return t}save(){if(!this.storage)return!1;let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n||(n=t[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(g3,JSON.stringify(t))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let t=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=t[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(g3,JSON.stringify(t))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[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 t={};if(this.storage){let r=this.storage.getItem(g3);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};Lm.prototype.declaredClass="esri.identity.OAuthCredential"});var w3,Mn,y3,sF=O(()=>{gt();Or();yt();tt();it();Zr();ft();Mn=w3=class extends ut{constructor(e){super(e),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 w3.fromJSON(this.toJSON())}};R([V({json:{write:!0}})],Mn.prototype,"appId",void 0),R([V({json:{write:!0}})],Mn.prototype,"authNamespace",void 0),R([V({json:{write:!0}})],Mn.prototype,"expiration",void 0),R([V({json:{write:!0}})],Mn.prototype,"flowType",void 0),R([V({json:{write:!0}})],Mn.prototype,"forceLogin",void 0),R([V({json:{write:!0}})],Mn.prototype,"forceUserId",void 0),R([V({json:{write:!0}})],Mn.prototype,"locale",void 0),R([V({json:{write:!0}})],Mn.prototype,"minTimeUntilExpiration",void 0),R([V({json:{write:!0}})],Mn.prototype,"popup",void 0),R([V({json:{write:!0}})],Mn.prototype,"popupCallbackUrl",void 0),R([V({json:{write:!0}})],Mn.prototype,"popupWindowFeatures",void 0),R([V({json:{write:!0}})],Mn.prototype,"portalUrl",void 0),R([V({json:{write:!0}})],Mn.prototype,"preserveUrlHash",void 0),R([V({json:{write:!0}})],Mn.prototype,"userId",void 0),Mn=w3=R([Le("esri.identity.OAuthInfo")],Mn);y3=Mn});var Di,d_,aF=O(()=>{gt();Or();yt();tt();it();Zr();ft();Di=class extends ut{constructor(e){super(e),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}};R([V({json:{write:!0}})],Di.prototype,"adminTokenServiceUrl",void 0),R([V({json:{write:!0}})],Di.prototype,"currentVersion",void 0),R([V({json:{write:!0}})],Di.prototype,"hasPortal",void 0),R([V({json:{write:!0}})],Di.prototype,"hasServer",void 0),R([V({json:{write:!0}})],Di.prototype,"owningSystemUrl",void 0),R([V({json:{write:!0}})],Di.prototype,"owningTenant",void 0),R([V({json:{write:!0}})],Di.prototype,"server",void 0),R([V({json:{write:!0}})],Di.prototype,"shortLivedTokenValidity",void 0),R([V({json:{write:!0}})],Di.prototype,"tokenServiceUrl",void 0),R([V({json:{write:!0}})],Di.prototype,"webTierAuth",void 0),Di=R([Le("esri.identity.ServerInfo")],Di);d_=Di});var p_,lF,v3,f_,m_,Y1,sr,cF=O(()=>{gt();Il();Gg();wv();Fn();pv();Ng();ar();ws();Qi();Es();yt();tt();it();ft();iF();oF();sF();aF();Wg();p_={},lF=e=>{let t=new _n(e.owningSystemUrl).host,r=new _n(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},v3=(e,t)=>!!(lF(e)&&t&&t.some(r=>r.test(e.server))),f_=null,m_=null;try{f_=window.localStorage,m_=window.sessionStorage}catch{}Y1=class extends Vo{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=fa(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",t=>{this._pageShowHandler(t)})}registerServers(t){let r=this.serverInfos;r?(t=t.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(t)):this.serverInfos=t,t.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(t){let r=this.oAuthInfos;if(r){for(let n of t){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(t)}else this.oAuthInfos=t}registerToken(t){t={...t};let r=this._sanitizeUrl(t.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new d_,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 t.server,Object.assign(i,t),s=!1):(i=new sr({userId:t.userId,server:o.server??void 0,token:t.token,expires:t.expires,ssl:t.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return zw({serverInfos:this.serverInfos.map(t=>t.toJSON()),oAuthInfos:this.oAuthInfos.map(t=>t.toJSON()),credentials:this.credentials.map(t=>t.toJSON())})}initialize(t){if(!t)return;typeof t=="string"&&(t=JSON.parse(t));let r=t.serverInfos,n=t.oAuthInfos,i=t.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new d_(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new y3(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 sr(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,t)){r=n;break}return r}findOAuthInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,t)){r=n;break}return r}findCredential(t,r){if(!t)return;let n;t=this._sanitizeUrl(t);let i=this._isServerRsrc(t)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&this._getIdenticalSvcIdx(t,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(t,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},t=this._sanitizeUrl(t);let s=new AbortController,l=$n();if(r.signal&&Jn(r.signal,()=>{s.abort()}),Jn(s,()=>{l.reject(new je("identity-manager:user-aborted","ABORTED"))}),xs(s))return l.promise;r.signal=s.signal;let a=this._isAdminResource(t),d=n?this.findCredential(t):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new je("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+t,{error:i}),l.reject(h),l.promise;let g=this._findCredential(t,r);if(g)return l.resolve(g),l.promise;let b=this.findServerInfo(t);if(b)!b.hasPortal&&b.server&&b.owningSystemUrl&&this._hasSameServerInstance(b.server,b.owningSystemUrl)&&(b.hasPortal=!0),!b.hasServer&&this._isServerRsrc(t)&&(b._restInfoPms=this._getTokenSvcUrl(t),b.hasServer=!0);else{let S=this._getTokenSvcUrl(t);if(!S)return h=new je("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),l.reject(h),l.promise;b=new d_,b.server=this._getServerInstanceRoot(t),typeof S=="string"?(b.tokenServiceUrl=S,b.hasPortal=!0):(b._restInfoPms=S,b.hasServer=!0),this.registerServers([b])}return b.hasPortal&&b._selfReq===void 0&&(o||xn(b.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(S=>S.tokenServiceUrl===b.tokenServiceUrl))&&(b._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(b.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)}),this._enqueue(t,b,r,l,a)}getResourceName(t){return this._isRESTService(t)?t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(t)&&t.replace(this._gwUser,"$1")||this._gwItem.test(t)&&t.replace(this._gwItem,"$1")||this._gwGroup.test(t)&&t.replace(this._gwGroup,"$1")||""}generateToken(t,r,n){let i=this._rePortalTokenSvc.test(t.tokenServiceUrl),o=new _n(this._appOrigin),s=t.shortLivedTokenValidity,l,a,d,h,g,b,S,P;r&&(P=this.tokenValidity||s||this._defaultTokenValidity,P>s&&s>0&&(P=s)),n&&(l=n.isAdmin,a=n.serverUrl,d=n.token,b=n.signal,S=n.ssl,t.customParameters=n.customParameters),l?h=t.adminTokenServiceUrl:(h=t.tokenServiceUrl,g=new _n(h.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!S&&o.scheme==="http"&&(xn(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 A={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:P,referer:l||i?this._appOrigin:null,client:l?"referer":null,f:"json",...t.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(t,n),signal:b,...n?.ioArgs};return i||(A.withCredentials=!1),yr(h,A).then(F=>{let W=F.data;if(!W?.token)return new je("identity-manager:authentication-failed","Unable to generate token");let z=t.server;return p_[z]||(p_[z]={}),r&&(p_[z][r.username]=r.password),W.validity=P,W})}isBusy(){return!!this._busy}async checkSignInStatus(t){return(await this.checkAppAccess(t,"")).credential}checkAppAccess(t,r,n){let i=!1;return this.getCredential(t,{prompt:!1}).then(o=>{let s,l={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(t)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",l.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&&(l.token=o.token),yr(s,{query:l,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new je("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 je("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new je("identity-manager:invalid-request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(t){t&&(t.charAt(0)==="#"&&(t=t.slice(1)),this._processOAuthPopupParams(Fl(t)))}setOAuthRedirectionHandler(t){this._oAuthRedirectFunc=t}setProtocolErrorHandler(t){this._protocolFunc=t}signIn(t,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 je("identity-manager:user-aborted","ABORTED"))};n.signal&&Jn(n.signal,()=>{s()});let l=new h3({open:!0,resource:this.getResourceName(t),server:r.server});this.dialog=l,this.emit("dialog-create");let a=l.on("cancel",s),d=l.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let b=new sr({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(b)}).catch(g=>{l.error=g,l.signingIn=!1})});return i.promise}oAuthSignIn(t,r,n,i){this._oAuthDfd=$n();let o=this._oAuthDfd,s;i?.signal&&Jn(i.signal,()=>{let b=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;b&&!b.closed?b.close():this.dialog&&h()}),o.resUrl_=t,o.sinfo_=r,o.oinfo_=n;let l=n._oAuthCred;if(l.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let b=crypto.getRandomValues(new Uint8Array(32));s=sv(b),l.codeVerifier=s,b=crypto.getRandomValues(new Uint8Array(32)),l.stateUID=sv(b),l.save()||(l.codeVerifier=s=null)}else l.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(b=>{let S=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!S)return void this._doOAuthSignIn(t,r,n,b);let P=new h3({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=P,this.emit("dialog-create"),a=P.on("cancel",h),d=P.on("submit",()=>{g(),this._doOAuthSignIn(t,r,n,b)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new je("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(t=>{t.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(t="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Ol(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(t).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 t=window.location.hash;if(t){t.charAt(0)==="#"&&(t=t.slice(1));let n=Fl(t),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=Fl(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=Fu(o),l=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",l)}}}_getOAuthToken(t,r,n,i,o){return t=t.replace(/^http:/i,"https:"),yr(`${t}/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(t){if(t&&globalThis.isSecureContext){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return sv(new Uint8Array(n))}return null}_pageShowHandler(t){if(t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new je("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(t,r){let n,i,o,s,l=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(t)?"server":"portal",g=this.credentials.filter(b=>this._hasSameServerInstance(b.server,t)&&b.scope===h);if(t=d||t,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,l=this._getIdenticalSvcIdx(t,n),!a)return l===-1&&n.resources.push(t),this._addResource(t,s),n;l!==-1&&(n.resources.splice(l,1),this._removeResource(t,s))}else{let b,S;if(g.some(P=>(S=this._getIdenticalSvcIdx(t,P),S!==-1&&(b=P,o=this.findServerInfo(b.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,b.userId):void 0,l=S,!0))),a)b&&(b.resources.splice(l,1),this._removeResource(t,s));else if(b)return this._addResource(t,s),b}}_findOAuthInfo(t){let r=this.findOAuthInfo(t);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,t)){r=n;break}}return r}_addResource(t,r){r&&this._getIdenticalSvcIdx(t,r)===-1&&r.resources.push(t)}_removeResource(t,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(t,r),n>-1&&r.resources.splice(n,1))}_useProxy(t,r){return r?.isAdmin&&!xn(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!xn(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new _n(t);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(t){let r=t.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(t)&&(n=this._agsAdmin.test(t)?t.replace(this._agsAdmin,"$1").length:t.search(this._adminSvcs)),n!==-1||tv(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?t.slice(0,n):t}_hasSameServerInstance(t,r){return t.endsWith("/")&&(t=t.slice(0,-1)),t=t.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),t=Jf(t),r=Jf(r),(t=t.slice(Math.max(0,t.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(t){let r=(Mt.request.proxyUrl||"").toLowerCase(),n=r?t.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(t=t.slice(n+r.length+1)),t=pa(t),fa(t).path}_isRESTService(t){return t.includes(this._agsRest)}_isAdminResource(t){return this._agsAdmin.test(t)||this._adminSvcs.test(t)}_isServerRsrc(t){return this._isRESTService(t)||this._isAdminResource(t)}_isIdenticalService(t,r){let n=!1;if(this._isRESTService(t)&&this._isRESTService(r)){let i=this._getSuffix(t).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(t)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(t)||this._isServerRsrc(r)||!this._isPortalDomain(t)||(n=!0);return n}_isPortalDomain(t){let r=new _n(t.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||Mt.portalUrl&&(i=xn(r,Mt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(t,r){let n=-1,i=-1;this._gwDomains.forEach((s,l)=>{n===-1&&s.regex.test(t)&&(n=l),i===-1&&s.regex.test(r)&&(i=l)});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),l=s?.owningSystemUrl;l&&lF(s)&&this._isPortalDomain(l)&&this._isIdProvider(t,l)&&(o=!0)}return o}_getIdenticalSvcIdx(t,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(t,o)){n=i;break}}return n}_getSuffix(t){return t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(t){let r,n,i;if(this._isRESTService(t)||this._isAdminResource(t)){let o=this._getServerInstanceRoot(t);return r=o+"/admin/generateToken",n=yr(t=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(t)){let o="";if(this._gwDomains.some(s=>(s.regex.test(t)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,t)&&(o=s+this._gwTokenUrl),!!o)),o||(i=t.toLowerCase().indexOf("/sharing"),i!==-1&&(o=t.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(t)+this._gwTokenUrl),o){let s=new _n(t).port;/^http:\/\//i.test(t)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(t,r,n){let i=r._oAuthCred;if(t.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,t.code,r.appId,this._getRedirectURI(r,!0),s).then(l=>{let a=new sr({userId:l.username,server:n.server??void 0,token:l.access_token,expires:Date.now()+1e3*l.expires_in,ssl:l.ssl,oAuthState:t.state,_oAuthCred:i});return r.userId=a.userId,i.storage=l.persist?f_:m_,i.refreshToken=l.refresh_token,i.token=null,i.expires=l.refresh_token_expires_in?Date.now()+1e3*l.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new sr({userId:t.username,server:n.server??void 0,token:t.access_token,expires:Date.now()+1e3*Number(t.expires_in),ssl:t.ssl==="true",oAuthState:t.state,_oAuthCred:i});return r.userId=o.userId,i.storage=t.persist?f_:m_,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(t){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),t.error){let n=t.error==="access_denied",i=new je(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+t.error+" - "+t.error_description);r.reject(i)}else this._processOAuthResponseParams(t,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(t){t&&(t.charAt(0)==="?"&&(t=t.slice(1)),this._processOAuthPopupParams(Fl(t)))}async _exchangeToken(t,r,n){return(await yr(`${t}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(t,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];t=t.replace(/^http:/i,"https:");try{let n=await yr(`${t}/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(t,r){let n;return this._gwDomains.some(i=>(i.regex.test(t)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?t=t.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(t=t.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),yr(t,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(t){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(t);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(t))||!(this._isIdProvider(n,t)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t)||this._isIdProvider(r.restBaseUrl,t))||xn(n,t,!0)))}_checkProtocol(t,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&Kf(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:t,serverInfo:r}),!o)&&n(new je("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(t,r,n,i,o,s){return i||(i=$n()),i.resUrl_=t,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(t),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(t){this._busy=t,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=t.options_?.resource,g=t.resUrl_,b=t.refresh_,S=!1;this.credentials.includes(d)||(b&&this.credentials.includes(b)?(b.userId=d.userId,b.token=d.token,b.expires=d.expires,b.validity=d.validity,b.ssl=d.ssl,b.creationTime=d.creationTime,S=!0,d=b):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 P=this._soReqs,A={};this._soReqs=[],P.forEach(F=>{if(!this._isIdenticalService(g,F.resUrl_)){let W=this._getSuffix(F.resUrl_);A[W]||(A[W]=!0,d.resources.push(F.resUrl_))}}),t.resolve(d),P.forEach(F=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),F.resUrl_)?F.resolve(d):this._soReqs.push(F)}),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,S||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{t.reject(d),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,b)=>{let S=t.sinfo_,P=!t.options_||t.options_.prompt!==!1,A=S.hasPortal&&this._findOAuthInfo(t.resUrl_),F,W;if(d)r(new sr({userId:d,server:S.server??void 0,token:g??void 0,expires:b!=null?Number(b):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"]),t.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let z=Ol(window,"message",q=>{q.source===window.parent&&q.data&&(q.data.type==="arcgis:auth:credential"?(z.remove(),q.data.credential.expires<Date.now()?n(new je("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new sr(q.data.credential))):q.data.type==="arcgis:auth:error"&&(z.remove(),q.data.error.name==="tokenExpiredError"?n(new je("identity-manager:credential-request-failed","Parent application's token has expired.")):n(je.fromJSON(q.data.error))))});Jn(t.options_?.signal,()=>{z.remove()})}else if(A){let z=A._oAuthCred;if(!z){let q=new Lm(A,f_),G=new Lm(A,m_);q.isValid()&&G.isValid()?q.expires>G.expires?(z=q,G.destroy()):(z=G,q.destroy()):z=q.isValid()?q:G,A._oAuthCred=z}if(z.isValid()){F=new sr({userId:z.userId??void 0,server:S.server??void 0,token:z.token??void 0,expires:z.expires,ssl:z.ssl??void 0,_oAuthCred:z});let q=A.appId!==z.appId&&this._doPortalSignIn(t.resUrl_);q||z.refreshToken?(t._pendingDfd=z.refreshToken?this._getOAuthToken(S.server,z.refreshToken,z.appId).then(G=>(F.expires=Date.now()+1e3*G.expires_in,F.token=G.access_token,F)):Promise.resolve(F),t._pendingDfd.then(G=>q?this._exchangeToken(G.server,A.appId,G.token).then(Y=>(G.token=Y,G)).catch(()=>G):G).then(G=>{r(G)}).catch(G=>{let Y=G.details?.httpStatus;Y>0&&Y!==404?(z.destroy(),i()):n(G)})):r(F)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(A.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===z.stateUID&&z.codeVerifier)){let q=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(q,A,S).then(G=>{r(G)}).catch(n)}else{let q=()=>{P?t._pendingDfd=this.oAuthSignIn(t.resUrl_,S,A,t.options_).then(r,n):(W=new je("identity-manager:not-authenticated","User is not signed in."),n(W))};this._doPortalSignIn(t.resUrl_)?t._pendingDfd=this._getPlatformSelf(S.server,A.appId).then(G=>{xn(G.portalUrl,this._appOrigin,!0)?(F=new sr({userId:G.username,server:S.server??void 0,expires:Date.now()+1e3*G.expires_in,token:G.token}),r(F)):q()}).catch(q):q()}}else if(P){if(this._checkProtocol(t.resUrl_,S,n,t.admin_)){let z=t.options_;t.admin_&&(z=z||{},z.isAdmin=!0),t._pendingDfd=this.signIn(t.resUrl_,S,z).then(r,n)}}else W=new je("identity-manager:not-authenticated","User is not signed in."),n(W)},o=()=>{let d=t.sinfo_,h=d.owningSystemUrl,g=t.options_,b,S,P,A;if(g&&(b=g.token,S=g.error,P=g.prompt),A=this._findCredential(h,{token:b,resource:t.resUrl_}),!A){for(let F of this.credentials)if(this._isIdProvider(h,F.server)){A=F;break}}if(A){let F=this.findCredential(t.resUrl_,A.userId);if(F)r(F);else if(v3(d,this._legacyFed)){let W=A.toJSON();W.server=d.server,W.resources=null,r(new sr(W))}else(t._pendingDfd=this.generateToken(this.findServerInfo(A.server),null,{serverUrl:t.resUrl_,token:A.token,signal:t.options_.signal,ssl:A.ssl})).then(W=>{r(new sr({userId:A?.userId,server:d.server??void 0,token:W.token,expires:W.expires!=null?Number(W.expires):null,ssl:!!W.ssl,isAdmin:t.admin_,validity:W.validity}))},n)}else this._busy=null,b&&(t.options_.token=null),(t._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:d.owningTenant,signal:t.options_.signal,token:b,error:S,prompt:P})).then(()=>{this._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},F=>{t.resUrl_=t.sinfo_=t.refresh_=null,t.reject(F)})};this._errbackFunc=n;let s=t.sinfo_.owningSystemUrl,l=this._isServerRsrc(t.resUrl_),a=t.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=t.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(qi("authInfo.tokenServicesUrl",d)||qi("authInfo.tokenServiceUrl",d)||qi("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=qi("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}l&&h.owningSystemUrl?o():i()},()=>{t.sinfo_._restInfoPms=null;let d=new je("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):l&&s?o():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,b,S,P;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,b=d.supportsOAuth,P=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(S=d.customBaseUrl),t.sinfo_.currentVersion=P),t.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(t.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(A=>(h.portalToken=A?.token,h.tokenExpiration=A?.expires,h)):!g&&b&&P>=4.4&&!this._findOAuthInfo(t.resUrl_)?this._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:S,owningTenant:t.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{t.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(t){let r,n=null,i=t.portalUrl,o=t.customBaseUrl,s=t.owningTenant,l=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(l){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 l&&n?(this._hasTestedIfAppIsOnPortal=!0,r=yr(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new y3({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),yr(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:eo(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||!(xn(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(t,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 l={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&&(l.force_login=!0),n.forceUserId&&n.userId&&(l.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(t)&&(l.redirectToUserOrgUrl=!0),o.codeVerifier&&(l.code_challenge=i||o.codeVerifier,l.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+Fu(l);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 b=new je("identity-manager:user-aborted","ABORTED");g.reject(b)}}},500),this._oAuthOnPopupHandle=Ol(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 je("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:l,authorizeUrl:a,resourceUrl:t,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(t,r){let n=window.location.href.replace(/#.*$/,"");if(t.popup)return eo(t.popupCallbackUrl);if(r){let i=fa(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),tm(i.path,i.query)}return n}};Y1.prototype.declaredClass="esri.identity.IdentityManagerBase";sr=class extends Vo.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let e=lr,t=e.findServerInfo(this.server),r=t?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&v3(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,l=p_[this.server],a=l?.[this.userId],d,h=this.resources&&this.resources[0],g=n?e.findServerInfo(r):null,b={username:this.userId,password:a};if(o&&!s)return;n&&!g&&e.serverInfos.some(P=>(e._isIdProvider(r,P.server)&&(g=P),!!g));let S=g?e.findCredential(g.server,this.userId):null;if(!n||S){if(!i){if(n)d={serverUrl:h,token:S?.token,ssl:S?.ssl};else if(s)b=null,d={ssl:this.ssl};else{if(!a){let P;return h&&(h=e._sanitizeUrl(h),this._enqueued=1,P=e._enqueue(h,t,null,null,this.isAdmin,this),P.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),P}this.isAdmin&&(d={isAdmin:!0})}return e.generateToken(n?g:t,n?null:b,d).then(P=>{this.token=P.token,this.expires=P.expires!=null?Number(P.expires):null,this.creationTime=Date.now(),this.validity=P.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}S?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let e=lr;e.credentials.forEach(t=>{let r=e.findServerInfo(t.server),n=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&n&&t.scope==="server"&&(e._hasSameServerInstance(this.server,n)||e._isIdProvider(n,this.server))&&(v3(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken())})}}emitTokenChange(e){clearTimeout(this._refreshTimer);let t=lr,r=this.server?t.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?t.findServerInfo(n):null;e===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||t.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 e=lr,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=zw({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}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);let e=6e4*this.tokenRefreshBuffer,t=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};R([V()],sr.prototype,"creationTime",void 0),R([V()],sr.prototype,"expires",void 0),R([V()],sr.prototype,"isAdmin",void 0),R([V()],sr.prototype,"oAuthState",void 0),R([V()],sr.prototype,"resources",void 0),R([V()],sr.prototype,"scope",void 0),R([V()],sr.prototype,"server",void 0),R([V()],sr.prototype,"ssl",void 0),R([V()],sr.prototype,"token",void 0),R([V()],sr.prototype,"tokenRefreshBuffer",void 0),R([V()],sr.prototype,"userId",void 0),R([V()],sr.prototype,"validity",void 0),sr=R([Le("esri.identity.Credential")],sr)});var dF={};Qs(dF,{default:()=>uF});var h_,uF,pF=O(()=>{Gg();cF();h_=class extends Y1{};h_.prototype.declaredClass="esri.identity.IdentityManager";uF=new h_;uI(uF)});async function yr(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Fl(t.query.toString().replaceAll("+"," ")));let r=em(e),n=ov(e);n||r||(e=pa(e));let i={url:e,requestOptions:{...t}},o=S=>({data:S,getAllHeaders:km,getHeader:km,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=G4(e,lo.internalInterceptors);if(s){let S=await mF(s,i);if(S!=null)return o(S)}let l=G4(e);if(l){let S=await mF(l,i);if(S!=null)return o(S);l.after||l.error||(l=null)}if(e=i.url,(t=i.requestOptions).responseType==="image"&&(fe("host-webworker")||fe("host-node")))throw Ls("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(t.method==="head"){if(t.body)throw Ls("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw Ls("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await CK(),g_)return g_.execute(e,t);let a=new AbortController,d=Jn(t,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:l,params:i,redoRequest:!1,useIdentity:lo.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=t.useRequestQueueing?IK(h):_3(h),b=await g.finally(()=>d?.remove());return l?.after?.(b),b}function EK(e){let t=Sn(e);t&&!yr._corsServers.includes(t)&&yr._corsServers.push(t)}function fF(e){let t=Sn(e);return!t||t.endsWith(".arcgis.com")||yr._corsServers.includes(t)||nv(t)}function Ls(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:km,getHeader:km,ssl:!1};if(t instanceof je)return t.details?(t.details=Je(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){let s=n&&(()=>Array.from(n.headers)),l=n&&(h=>n.headers.get(h)),a=n?.status,d=t.message;d&&(i=d),s&&l&&(o.getAllHeaders=s,o.getHeader=l),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||a||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=w_ in t?t[w_]:t}return Rg(t)?Xn():new je(e,i,o)}async function CK(){fe("host-webworker")&&!g_&&(g_=await Promise.resolve().then(()=>(RI(),OI)))}async function b3(){lr||await Promise.resolve().then(()=>(pF(),dF))}async function TK(e){let t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body,o=null,s=null;if(wF&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:lo.priority,redirect:"follow",signal:n},(o||s)&&(e.fetchOptions.body=o||s),r.authMode==="anonymous"&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&bI(t)&&(r.query||(r.query={}),r.query.token=Mt.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!yF(t)&&!xs(n)){let l;r.authMode==="immediate"?(await b3(),l=await lr.getCredential(t,{signal:n}),e.credential=l):r.authMode==="no-prompt"?(await b3(),l=await lr.getCredential(t,{prompt:!1,signal:n}).catch(()=>{}),e.credential=l):lr&&(l=lr.findCredential(t)),l&&(e.credentialToken=l.token,e.useSSL=!!l.ssl)}}function yF(e){return SK.some(t=>t.test(e))}async function PK(e){let t=e.params.url,r=e.params.requestOptions,n=e.fetchOptions??{},i=ov(t)||em(t),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:lo.timeout,l=!1;if(!i){e.useSSL&&(t=av(t));let b={...r.query};e.credentialToken&&(b.token=e.credentialToken);let S=Fu(b);fe("esri-url-encodes-apostrophe")&&(S=S.replaceAll("'","%27"));let P=t.length+1+S.length,A;l=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||P>lo.maxUrlLength;let F=r.useProxy||!!Kf(t);if(F){let W=oI(t);A=W.path,!l&&A.length+1+P>lo.maxUrlLength&&(l=!0),W.query&&(b={...W.query,...b})}if(n.method==="HEAD"&&(l||F)){if(l)throw P>lo.maxUrlLength?Ls("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):Ls("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(F)throw Ls("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}l?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=tm(t,b):(n.body=Fu(b),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=tm(t,b),F&&(e.useProxy=!0,t=`${A}?${t}`),b.token&&wF&&n.body instanceof FormData&&!tv(t)&&n.body.set("token",b.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:xn(t,Qf())||(nv(t)||lr&&lr.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",TI(t)&&await PI(l?tm(t,b):t))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=t,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||l||MK(r.headers)||!i&&!e.useProxy&&lo.proxyUrl&&!fF(t)){if(yr._beforeFetch&&await yr._beforeFetch(t,n),a=await fetch(t,n),yr._afterFetch&&await yr._afterFetch(a),e.useProxy||EK(t),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=hF(d,"application/xml");break;case"document":d=hF(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let b=a.headers.get("Content-Type");if(b&&/application\/json|text\/plain/i.test(b)&&d[o==="blob"?"size":"byteLength"]<=750)try{let S=await new Response(d).json();S.error&&(d=S)}catch{}}o==="image"&&d instanceof Blob&&(d=await gF(URL.createObjectURL(d),e,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await gF(t,e)}catch(b){if(b.name==="AbortError")throw g?EI():Xn("Request canceled");if(!(!a&&b instanceof TypeError&&lo.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||fF(t))throw b;e.redoRequest=!0,lI({proxyUrl:lo.proxyUrl,urlPrefix:Sn(t)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function mF(e,t){if(e.responseData!=null)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(i){r=Ls("request:interceptor",i,t)}if((n instanceof Error||n instanceof je)&&(r=Ls("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}function MK(e){if(e){for(let t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function hF(e,t){let r;try{r=new DOMParser().parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}function IK(e){let t=kK(e.params.url);return t?Ff(AK,t.origin,()=>{let n=t.isHosted?fe("request-queue-hosted-concurrency"):fe("request-queue-non-hosted-concurrency");return new dv({concurrency:n,process:i=>(T4(i.params.requestOptions),_3(i))})}).push(e):_3(e)}async function _3(e){let t,r;await TK(e);try{do[t,r]=await PK(e);while(!await LK(e,t,r))}catch(o){let s=Ls("request:server",o,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}let n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!nv(n)){let o=Sn(n,!0);o&&lo.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&CI(r.authorizedCrossOriginNoCorsDomains)}let i=e.credential;if(i&&lr){let s=lr.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let l=lr.findCredential(s,i.userId);l&&lr._getIdenticalSvcIdx(s,l)===-1&&l.resources.unshift(s)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):km,getHeader:t?o=>t.headers.get(o):km,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function LK(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;let n=e.params.requestOptions;if(!t||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[w_]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[w_]=r,i;let s,l=null;i&&(o=Number(i.code),l=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(l===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&_K.has(o)&&!yF(e.params.url)&&(o!==403||(!s||!xK.has(s))&&(l==null||l===2&&e.credentialToken))){await b3();try{let d=await lr.getCredential(e.params.url,{error:Ls("request:server",i,e.params),prompt:a!=="no-prompt",signal:e.controller.signal,token:e.credentialToken});return e.credential=d,e.credentialToken=d.token,e.useSSL=e.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function gF(e,t,r=!1){let n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=lo.priority,i.src=e,SI(i,e,r,n)}function kK(e){let t,r;return typeof e=="string"?(t=Sn(e,!0),r=Y4(e)):(t=e.origin,r=Y4(e.toString())),t==null?null:{origin:t,isHosted:r}}var g_,lo,wF,_K,xK,SK,km,w_,AK,wv=O(()=>{Il();Gg();Fn();tt();ar();wy();Qi();Es();vI();Wg();_I();MI();NI();lo=Mt.request,wF="FormData"in globalThis,_K=new Set([499,498,403,401]),xK=new Set(["COM_0056","COM_0057","SB_0008"]),SK=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],km=()=>null,w_=Symbol();yr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],yr._beforeFetch=void 0,yr._afterFetch=void 0;AK=new Map});function am(e){if(!Mt.assetsPath)throw ot.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new je("assets:path-not-set","config.assetsPath is not set");return iv(Mt.assetsPath,e)}var yv=O(()=>{Il();wv();Fn();it();Es()});function vF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bF=O(()=>{});var _F=OT(()=>{});var xF=OT(()=>{});var CF={};Qs(CF,{p:()=>RK});function NK(){return SF||(SF=1,e=EF,t=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(t=t||__filename),r=function(n={}){var i,o,s,l,a=n,d=new Promise((m,k)=>{i=m,o=k}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",b=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",S=Object.assign({},a),P="./this.program",A="";function F(m){return a.locateFile?a.locateFile(m,A):A+m}if(b){var W=_F(),z=xF();A=__dirname+"/",l=m=>(m=fo(m)?new URL(m):z.normalize(m),W.readFileSync(m)),s=(m,k=!0)=>(m=fo(m)?new URL(m):z.normalize(m),new Promise((Z,se)=>{W.readFile(m,k?void 0:"utf8",(ue,Pe)=>{ue?se(ue):Z(k?Pe.buffer:Pe)})})),!a.thisProgram&&process.argv.length>1&&(P=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),t&&(A=t),A=A.startsWith("blob:")?"":A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(l=m=>{var k=new XMLHttpRequest;return k.open("GET",m,!1),k.responseType="arraybuffer",k.send(null),new Uint8Array(k.response)}),s=m=>fo(m)?new Promise((k,Z)=>{var se=new XMLHttpRequest;se.open("GET",m,!0),se.responseType="arraybuffer",se.onload=()=>{se.status==200||se.status==0&&se.response?k(se.response):Z(se.status)},se.onerror=Z,se.send(null)}):fetch(m,{credentials:"same-origin"}).then(k=>k.ok?k.arrayBuffer():Promise.reject(new Error(k.status+" : "+k.url))));var q,G,Y=console.log.bind(console),ie=console.error.bind(console);Object.assign(a,S),S=null;var U,me,Ae,Ee,Ne,we,ce,J=!1;function ee(m,k){m||In(k)}function pe(){var m=G.buffer;a.HEAP8=U=new Int8Array(m),a.HEAP16=Ae=new Int16Array(m),a.HEAPU8=me=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=Ee=new Int32Array(m),a.HEAPU32=Ne=new Uint32Array(m),a.HEAPF32=we=new Float32Array(m),a.HEAPF64=ce=new Float64Array(m)}var de=[],Se=[],ye=[];function Fe(){rs(de)}function nt(){rs(Se)}function Et(){rs(ye)}function Tr(m){Se.unshift(m)}var fr=0,mr=null;function yi(m){fr++}function Gn(m){if(--fr==0&&mr){var k=mr;mr=null,k()}}function In(m){ie(m="Aborted("+m+")"),J=!0,m+=". Build with -sASSERTIONS for more info.";var k=new WebAssembly.RuntimeError(m);throw o(k),k}var ze,Md="data:application/octet-stream;base64,",ts=m=>m.startsWith(Md),fo=m=>m.startsWith("file://");function wc(){var m="pe-wasm.wasm";return ts(m)?m:F(m)}function La(m){if(l)return l(m);throw"both async and sync fetching of the wasm failed"}function Vs(m){return s(m).then(k=>new Uint8Array(k),()=>La(m))}function Vi(m,k,Z){return Vs(m).then(se=>WebAssembly.instantiate(se,k)).then(Z,se=>{ie(`failed to asynchronously prepare wasm: ${se}`),In(se)})}function Ad(m,k,Z,se){return typeof WebAssembly.instantiateStreaming!="function"||ts(k)||fo(k)||b||typeof fetch!="function"?Vi(k,Z,se):fetch(k,{credentials:"same-origin"}).then(ue=>WebAssembly.instantiateStreaming(ue,Z).then(se,function(Pe){return ie(`wasm streaming compile failed: ${Pe}`),ie("falling back to ArrayBuffer instantiation"),Vi(k,Z,se)}))}function Us(){return{a:jm}}function Gm(){var m=Us();function k(se,ue){return H=se.exports,G=H.t,pe(),Tr(H.u),Gn(),H}function Z(se){k(se.instance)}return yi(),ze??(ze=wc()),Ad(q,ze,m,Z).catch(o),{}}var rs=m=>{for(;m.length>0;)m.shift()(a)};function ka(m,k="i8"){switch(k.endsWith("*")&&(k="*"),k){case"i1":case"i8":return U[m];case"i16":return Ae[m>>1];case"i32":return Ee[m>>2];case"i64":In("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:In(`invalid type for getValue: ${k}`)}}var yc=typeof TextDecoder<"u"?new TextDecoder:void 0,vc=(m,k=0,Z=NaN)=>{for(var se=k+Z,ue=k;m[ue]&&!(ue>=se);)++ue;if(ue-k>16&&m.buffer&&yc)return yc.decode(m.subarray(k,ue));for(var Pe="";k<ue;){var We=m[k++];if(128&We){var De=63&m[k++];if((224&We)!=192){var ct=63&m[k++];if((We=(240&We)==224?(15&We)<<12|De<<6|ct:(7&We)<<18|De<<12|ct<<6|63&m[k++])<65536)Pe+=String.fromCharCode(We);else{var Nn=We-65536;Pe+=String.fromCharCode(55296|Nn>>10,56320|1023&Nn)}}else Pe+=String.fromCharCode((31&We)<<6|De)}else Pe+=String.fromCharCode(We)}return Pe},Pr=(m,k)=>m?vc(me,m,k):"";function Id(m,k,Z){return 0}var ns=(m,k,Z,se)=>{if(!(se>0))return 0;for(var ue=Z,Pe=Z+se-1,We=0;We<m.length;++We){var De=m.charCodeAt(We);if(De>=55296&&De<=57343&&(De=65536+((1023&De)<<10)|1023&m.charCodeAt(++We)),De<=127){if(Z>=Pe)break;k[Z++]=De}else if(De<=2047){if(Z+1>=Pe)break;k[Z++]=192|De>>6,k[Z++]=128|63&De}else if(De<=65535){if(Z+2>=Pe)break;k[Z++]=224|De>>12,k[Z++]=128|De>>6&63,k[Z++]=128|63&De}else{if(Z+3>=Pe)break;k[Z++]=240|De>>18,k[Z++]=128|De>>12&63,k[Z++]=128|De>>6&63,k[Z++]=128|63&De}}return k[Z]=0,Z-ue},Na=(m,k,Z)=>ns(m,me,k,Z);function bc(m,k,Z){return 0}function Ld(m,k,Z,se){}var _c=m=>m%4==0&&(m%100!=0||m%400==0),xc=[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],Ec=m=>(_c(m.getFullYear())?xc:Sc)[m.getMonth()]+m.getDate()-1,kd=(m,k)=>k+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*k:NaN;function mo(m,k,Z){var se=kd(m,k),ue=new Date(1e3*se);Ee[Z>>2]=ue.getSeconds(),Ee[Z+4>>2]=ue.getMinutes(),Ee[Z+8>>2]=ue.getHours(),Ee[Z+12>>2]=ue.getDate(),Ee[Z+16>>2]=ue.getMonth(),Ee[Z+20>>2]=ue.getFullYear()-1900,Ee[Z+24>>2]=ue.getDay();var Pe=0|Ec(ue);Ee[Z+28>>2]=Pe,Ee[Z+36>>2]=-60*ue.getTimezoneOffset();var We=new Date(ue.getFullYear(),0,1),De=new Date(ue.getFullYear(),6,1).getTimezoneOffset(),ct=We.getTimezoneOffset(),Nn=0|(De!=ct&&ue.getTimezoneOffset()==Math.min(ct,De));Ee[Z+32>>2]=Nn}var Nd=()=>2147483648,Cc=(m,k)=>Math.ceil(m/k)*k,zs=m=>{var k=(m-G.buffer.byteLength+65535)/65536|0;try{return G.grow(k),pe(),1}catch{}},Ui={},is=()=>P||"./this.program",ho=()=>{if(!ho.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",_:is()};for(var k in Ui)Ui[k]===void 0?delete m[k]:m[k]=Ui[k];var Z=[];for(var k in m)Z.push(`${k}=${m[k]}`);ho.strings=Z}return ho.strings},Tc=(m,k)=>{for(var Z=0;Z<m.length;++Z)U[k++]=m.charCodeAt(Z);U[k]=0};function Od(m,k,Z,se,ue){return 70}var Pc=[null,[],[]],Oa=(m,k)=>{var Z=Pc[m];k===0||k===10?((m===1?Y:ie)(vc(Z)),Z.length=0):Z.push(k)},Rd=m=>{for(var k=0,Z=0;Z<m.length;++Z){var se=m.charCodeAt(Z);se<=127?k++:se<=2047?k+=2:se>=55296&&se<=57343?(k+=4,++Z):k+=3}return k};function Dd(m,k,Z){var se=Rd(m)+1,ue=new Array(se);return ns(m,ue,0,ue.length),ue}var jm={c:Id,q:(m,k,Z)=>{},h:bc,d:Ld,o:m=>{},n:(m,k)=>{},p:(m,k,Z)=>{},l:()=>{In("")},s:(m,k,Z)=>me.copyWithin(m,k,k+Z),j:mo,r:(m,k,Z,se)=>{var ue=new Date().getFullYear(),Pe=new Date(ue,0,1),We=new Date(ue,6,1),De=Pe.getTimezoneOffset(),ct=We.getTimezoneOffset(),Nn=Math.max(De,ct);Ne[m>>2]=60*Nn,Ee[k>>2]=+(De!=ct);var m0=w0=>{var i2=w0>=0?"-":"+",y0=Math.abs(w0);return`UTC${i2}${String(Math.floor(y0/60)).padStart(2,"0")}${String(y0%60).padStart(2,"0")}`},h0=m0(De),g0=m0(ct);ct<De?(Na(h0,Z,17),Na(g0,se,17)):(Na(h0,se,17),Na(g0,Z,17))},i:()=>Date.now(),m:m=>{var k=me.length;m>>>=0;var Z=Nd();if(m>Z)return!1;for(var se=1;se<=4;se*=2){var ue=k*(1+.2/se);ue=Math.min(ue,m+100663296);var Pe=Math.min(Z,Cc(Math.max(m,ue),65536));if(zs(Pe))return!0}return!1},e:(m,k)=>{var Z=0;return ho().forEach((se,ue)=>{var Pe=k+Z;Ne[m+4*ue>>2]=Pe,Tc(se,Pe),Z+=se.length+1}),0},f:(m,k)=>{var Z=ho();Ne[m>>2]=Z.length;var se=0;return Z.forEach(ue=>se+=ue.length+1),Ne[k>>2]=se,0},a:m=>52,g:(m,k,Z,se)=>52,k:Od,b:(m,k,Z,se)=>{for(var ue=0,Pe=0;Pe<Z;Pe++){var We=Ne[k>>2],De=Ne[k+4>>2];k+=8;for(var ct=0;ct<De;ct++)Oa(m,me[We+ct]);ue+=De}return Ne[se>>2]=ue,0}},H=Gm();a._webidl_free=m=>(a._webidl_free=H.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=H.w)(m);var os,Fd=a._emscripten_bind_PeObject_getCode_0=m=>(Fd=a._emscripten_bind_PeObject_getCode_0=H.x)(m),$d=a._emscripten_bind_PeObject_getName_1=(m,k)=>($d=a._emscripten_bind_PeObject_getName_1=H.y)(m,k),Mc=a._emscripten_bind_PeObject_getType_0=m=>(Mc=a._emscripten_bind_PeObject_getType_0=H.z)(m),mn=a._emscripten_bind_PeCoordsys_isEqual_1=(m,k)=>(mn=a._emscripten_bind_PeCoordsys_isEqual_1=H.A)(m,k),zi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(zi=a._emscripten_bind_PeCoordsys_getCode_0=H.B)(m),ii=a._emscripten_bind_PeCoordsys_getName_1=(m,k)=>(ii=a._emscripten_bind_PeCoordsys_getName_1=H.C)(m,k),Vd=a._emscripten_bind_PeCoordsys_getType_0=m=>(Vd=a._emscripten_bind_PeCoordsys_getType_0=H.D)(m),Ud=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Ud=a._emscripten_bind_PeUnit_getUnitFactor_0=H.E)(m),Ra=a._emscripten_bind_PeUnit_getCode_0=m=>(Ra=a._emscripten_bind_PeUnit_getCode_0=H.F)(m),vi=a._emscripten_bind_PeUnit_getName_1=(m,k)=>(vi=a._emscripten_bind_PeUnit_getName_1=H.G)(m,k),Ze=a._emscripten_bind_PeUnit_getType_0=m=>(Ze=a._emscripten_bind_PeUnit_getType_0=H.H)(m),Da=a._emscripten_bind_VoidPtr___destroy___0=m=>(Da=a._emscripten_bind_VoidPtr___destroy___0=H.I)(m),Ac=a._emscripten_bind_PeAngunit_getCode_0=m=>(Ac=a._emscripten_bind_PeAngunit_getCode_0=H.J)(m),Ic=a._emscripten_bind_PeAngunit_getName_1=(m,k)=>(Ic=a._emscripten_bind_PeAngunit_getName_1=H.K)(m,k),Lc=a._emscripten_bind_PeAngunit_getType_0=m=>(Lc=a._emscripten_bind_PeAngunit_getType_0=H.L)(m),ss=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(ss=a._emscripten_bind_PeAngunit_getUnitFactor_0=H.M)(m),Fa=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(Fa=a._emscripten_bind_PeDatum_getSpheroid_0=H.N)(m),zd=a._emscripten_bind_PeDatum_getCode_0=m=>(zd=a._emscripten_bind_PeDatum_getCode_0=H.O)(m),Wd=a._emscripten_bind_PeDatum_getName_1=(m,k)=>(Wd=a._emscripten_bind_PeDatum_getName_1=H.P)(m,k),Bd=a._emscripten_bind_PeDatum_getType_0=m=>(Bd=a._emscripten_bind_PeDatum_getType_0=H.Q)(m),kc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(kc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=H.R)(m),Gd=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(Gd=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=H.S)(m),Nc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(Nc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=H.T)(m),Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=H.U)(m),Ws=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(Ws=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=H.V)(m),Rc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Rc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=H.W)(m),$a=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>($a=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=H.X)(m),Dc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Dc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=H.Y)(m),jd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(jd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=H.Z)(m),Va=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(Va=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=H._)(m),qd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(qd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=H.$)(m),Ua=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Ua=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=H.aa)(m),Hd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Hd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=H.ba)(m),Zd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Zd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=H.ca)(m),Yd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(Yd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=H.da)(m),Jd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(Jd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=H.ea)(m),Xd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Xd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=H.fa)(m),Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=H.ga)(m),Bs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(Bs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=H.ha)(m),go=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(go=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=H.ia)(m),za=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(za=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=H.ja)(m),Gs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(Gs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=H.ka)(m),bi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(bi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=H.la)(m),as=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(as=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=H.ma)(m),Qd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Qd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=H.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=H.oa)(m),Vc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Vc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=H.pa)(m),Wa=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Wa=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=H.qa)(m),Kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(Kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=H.ra)(m),ep=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(ep=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=H.sa)(m),Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=H.ta)(m),tp=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(tp=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=H.ua)(m),rp=a._emscripten_bind_PeDouble_PeDouble_1=m=>(rp=a._emscripten_bind_PeDouble_PeDouble_1=H.va)(m),zc=a._emscripten_bind_PeDouble_get_val_0=m=>(zc=a._emscripten_bind_PeDouble_get_val_0=H.wa)(m),Wc=a._emscripten_bind_PeDouble_set_val_1=(m,k)=>(Wc=a._emscripten_bind_PeDouble_set_val_1=H.xa)(m,k),np=a._emscripten_bind_PeDouble___destroy___0=m=>(np=a._emscripten_bind_PeDouble___destroy___0=H.ya)(m),Ba=a._emscripten_bind_PeFactory_initialize_1=m=>(Ba=a._emscripten_bind_PeFactory_initialize_1=H.za)(m),ip=a._emscripten_bind_PeFactory_factoryByType_2=(m,k)=>(ip=a._emscripten_bind_PeFactory_factoryByType_2=H.Aa)(m,k),Bc=a._emscripten_bind_PeFactory_fromString_2=(m,k)=>(Bc=a._emscripten_bind_PeFactory_fromString_2=H.Ba)(m,k),op=a._emscripten_bind_PeFactory_getCode_1=m=>(op=a._emscripten_bind_PeFactory_getCode_1=H.Ca)(m),js=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,k,Z,se,ue,Pe)=>(js=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=H.Da)(m,k,Z,se,ue,Pe),sp=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(sp=a._emscripten_bind_PeGCSExtent_getLLon_0=H.Ea)(m),Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=H.Fa)(m),jc=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(jc=a._emscripten_bind_PeGCSExtent_getRLon_0=H.Ga)(m),ap=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(ap=a._emscripten_bind_PeGCSExtent_getNLat_0=H.Ha)(m),qc=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(qc=a._emscripten_bind_PeGCSExtent___destroy___0=H.Ia)(m),Hc=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Hc=a._emscripten_bind_PeGeogcs_Delete_0=H.Ja)(m),lp=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,k)=>(lp=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=H.Ka)(m,k),wo=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(wo=a._emscripten_bind_PeGeogcs_getDatum_0=H.La)(m),ls=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(ls=a._emscripten_bind_PeGeogcs_getPrimem_0=H.Ma)(m),cp=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(cp=a._emscripten_bind_PeGeogcs_getUnit_0=H.Na)(m),Ga=a._emscripten_bind_PeGeogcs_isEqual_1=(m,k)=>(Ga=a._emscripten_bind_PeGeogcs_isEqual_1=H.Oa)(m,k),ja=a._emscripten_bind_PeGeogcs_getCode_0=m=>(ja=a._emscripten_bind_PeGeogcs_getCode_0=H.Pa)(m),up=a._emscripten_bind_PeGeogcs_getName_1=(m,k)=>(up=a._emscripten_bind_PeGeogcs_getName_1=H.Qa)(m,k),qs=a._emscripten_bind_PeGeogcs_getType_0=m=>(qs=a._emscripten_bind_PeGeogcs_getType_0=H.Ra)(m),Zc=a._emscripten_bind_PeGeogtran_isEqual_1=(m,k)=>(Zc=a._emscripten_bind_PeGeogtran_isEqual_1=H.Sa)(m,k),Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=H.Ta)(m),qa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(qa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=H.Ua)(m),Jc=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Jc=a._emscripten_bind_PeGeogtran_getParameters_0=H.Va)(m),dp=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(dp=a._emscripten_bind_PeGeogtran_loadConstants_0=H.Wa)(m),_i=a._emscripten_bind_PeGeogtran_getCode_0=m=>(_i=a._emscripten_bind_PeGeogtran_getCode_0=H.Xa)(m),pp=a._emscripten_bind_PeGeogtran_getName_1=(m,k)=>(pp=a._emscripten_bind_PeGeogtran_getName_1=H.Ya)(m,k),fp=a._emscripten_bind_PeGeogtran_getType_0=m=>(fp=a._emscripten_bind_PeGeogtran_getType_0=H.Za)(m),mp=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,k,Z,se,ue,Pe)=>(mp=a._emscripten_bind_PeGTlistExtended_getGTlist_6=H._a)(m,k,Z,se,ue,Pe),Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=H.$a)(m),Qc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Qc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=H.ab)(m),Mr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(Mr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=H.bb)(m),hp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(hp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=H.cb)(m),gp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(gp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=H.db)(m),wp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(wp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=H.eb)(m),yp=a._emscripten_bind_PeHorizon_getNump_0=m=>(yp=a._emscripten_bind_PeHorizon_getNump_0=H.fb)(m),vp=a._emscripten_bind_PeHorizon_getKind_0=m=>(vp=a._emscripten_bind_PeHorizon_getKind_0=H.gb)(m),Kc=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Kc=a._emscripten_bind_PeHorizon_getInclusive_0=H.hb)(m),bp=a._emscripten_bind_PeHorizon_getSize_0=m=>(bp=a._emscripten_bind_PeHorizon_getSize_0=H.ib)(m),eu=a._emscripten_bind_PeHorizon_getCoord_0=m=>(eu=a._emscripten_bind_PeHorizon_getCoord_0=H.jb)(m),tu=a._emscripten_bind_PeInteger_PeInteger_1=m=>(tu=a._emscripten_bind_PeInteger_PeInteger_1=H.kb)(m),Hs=a._emscripten_bind_PeInteger_get_val_0=m=>(Hs=a._emscripten_bind_PeInteger_get_val_0=H.lb)(m),Wi=a._emscripten_bind_PeInteger_set_val_1=(m,k)=>(Wi=a._emscripten_bind_PeInteger_set_val_1=H.mb)(m,k),Zs=a._emscripten_bind_PeInteger___destroy___0=m=>(Zs=a._emscripten_bind_PeInteger___destroy___0=H.nb)(m),_p=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,k,Z,se,ue,Pe,We,De,ct,Nn)=>(_p=a._emscripten_bind_PeLineType_geodetic_distance_10=H.ob)(m,k,Z,se,ue,Pe,We,De,ct,Nn),ru=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,k,Z,se,ue,Pe,We,De,ct)=>(ru=a._emscripten_bind_PeLineType_geodetic_coordinate_9=H.pb)(m,k,Z,se,ue,Pe,We,De,ct),nu=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,k,Z,se,ue,Pe,We,De)=>(nu=a._emscripten_bind_PeLineType_geodesic_coordinate_8=H.qb)(m,k,Z,se,ue,Pe,We,De),iu=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,k,Z,se,ue,Pe,We,De,ct)=>(iu=a._emscripten_bind_PeLineType_great_elliptic_distance_9=H.rb)(m,k,Z,se,ue,Pe,We,De,ct),cs=a._emscripten_bind_PeMath_phi_to_eta_2=(m,k)=>(cs=a._emscripten_bind_PeMath_phi_to_eta_2=H.sb)(m,k),xp=a._emscripten_bind_PeMath_eta_to_phi_2=(m,k)=>(xp=a._emscripten_bind_PeMath_eta_to_phi_2=H.tb)(m,k),Sp=a._emscripten_bind_PeMath_phi_to_phig_2=(m,k)=>(Sp=a._emscripten_bind_PeMath_phi_to_phig_2=H.ub)(m,k),Ep=a._emscripten_bind_PeMath_q_3=(m,k,Z)=>(Ep=a._emscripten_bind_PeMath_q_3=H.vb)(m,k,Z),Cp=a._emscripten_bind_PeMath_q90_2=(m,k)=>(Cp=a._emscripten_bind_PeMath_q90_2=H.wb)(m,k),Tp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(Tp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=H.xb)(m),Pp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(Pp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=H.yb)(m),Ha=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(Ha=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=H.zb)(m),Mp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(Mp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=H.Ab)(m),Ys=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(Ys=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=H.Bb)(m),Ap=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(Ap=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=H.Cb)(m),Za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(Za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=H.Db)(m),Ip=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(Ip=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=H.Eb)(m),Lp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(Lp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=H.Fb)(m),ou=a._emscripten_bind_PeParameter_getValue_0=m=>(ou=a._emscripten_bind_PeParameter_getValue_0=H.Gb)(m),us=a._emscripten_bind_PeParameter_getCode_0=m=>(us=a._emscripten_bind_PeParameter_getCode_0=H.Hb)(m),xi=a._emscripten_bind_PeParameter_getName_1=(m,k)=>(xi=a._emscripten_bind_PeParameter_getName_1=H.Ib)(m,k),su=a._emscripten_bind_PeParameter_getType_0=m=>(su=a._emscripten_bind_PeParameter_getType_0=H.Jb)(m),Ya=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(Ya=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=H.Kb)(m),kp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(kp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=H.Lb)(m),Np=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(Np=a._emscripten_bind_PePCSInfo_getDomainMiny_0=H.Mb)(m),Op=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Op=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=H.Nb)(m),Rp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(Rp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=H.Ob)(m),Dp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(Dp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=H.Pb)(m),Fp=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Fp=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=H.Qb)(m),$p=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>($p=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=H.Rb)(m),Vp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Vp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=H.Sb)(m),Up=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Up=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=H.Tb)(m),zp=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(zp=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=H.Ub)(m),f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=H.Vb)(m),p=a._emscripten_bind_PePCSInfo_generate_2=(m,k)=>(p=a._emscripten_bind_PePCSInfo_generate_2=H.Wb)(m,k),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=H.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=H.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=H.Zb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=H._b)(m),I=a._emscripten_bind_PePrimem_getLongitude_0=m=>(I=a._emscripten_bind_PePrimem_getLongitude_0=H.$b)(m),N=a._emscripten_bind_PePrimem_getCode_0=m=>(N=a._emscripten_bind_PePrimem_getCode_0=H.ac)(m),D=a._emscripten_bind_PePrimem_getName_1=(m,k)=>(D=a._emscripten_bind_PePrimem_getName_1=H.bc)(m,k),B=a._emscripten_bind_PePrimem_getType_0=m=>(B=a._emscripten_bind_PePrimem_getType_0=H.cc)(m),$=a._emscripten_bind_PeProjcs_Delete_0=m=>($=a._emscripten_bind_PeProjcs_Delete_0=H.dc)(m),Q=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Q=a._emscripten_bind_PeProjcs_getGeogcs_0=H.ec)(m),ae=a._emscripten_bind_PeProjcs_getProjection_0=m=>(ae=a._emscripten_bind_PeProjcs_getProjection_0=H.fc)(m),ge=a._emscripten_bind_PeProjcs_getParameters_0=m=>(ge=a._emscripten_bind_PeProjcs_getParameters_0=H.gc)(m),he=a._emscripten_bind_PeProjcs_getUnit_0=m=>(he=a._emscripten_bind_PeProjcs_getUnit_0=H.hc)(m),ve=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(ve=a._emscripten_bind_PeProjcs_loadConstants_0=H.ic)(m),Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=H.jc)(m),Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=H.kc)(m),Ue=a._emscripten_bind_PeProjcs_isEqual_1=(m,k)=>(Ue=a._emscripten_bind_PeProjcs_isEqual_1=H.lc)(m,k),et=a._emscripten_bind_PeProjcs_getCode_0=m=>(et=a._emscripten_bind_PeProjcs_getCode_0=H.mc)(m),st=a._emscripten_bind_PeProjcs_getName_1=(m,k)=>(st=a._emscripten_bind_PeProjcs_getName_1=H.nc)(m,k),qe=a._emscripten_bind_PeProjcs_getType_0=m=>(qe=a._emscripten_bind_PeProjcs_getType_0=H.oc)(m),rt=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(rt=a._emscripten_bind_PeSpheroid_getAxis_0=H.pc)(m),Ar=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(Ar=a._emscripten_bind_PeSpheroid_getFlattening_0=H.qc)(m),Lt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(Lt=a._emscripten_bind_PeSpheroid_getCode_0=H.rc)(m),Kr=a._emscripten_bind_PeSpheroid_getName_1=(m,k)=>(Kr=a._emscripten_bind_PeSpheroid_getName_1=H.sc)(m,k),Ln=a._emscripten_bind_PeSpheroid_getType_0=m=>(Ln=a._emscripten_bind_PeSpheroid_getType_0=H.tc)(m),jn=a._emscripten_bind_PeVersion_version_string_0=m=>(jn=a._emscripten_bind_PeVersion_version_string_0=H.uc)(m);function Js(){function m(){os||(os=!0,a.calledRun=!0,J||(nt(),i(a),Et()))}fr>0||(Fe(),fr>0||m())}function mt(){}function Ja(m){return(m||mt).__cache__}function hr(m,k){var Z=Ja(k),se=Z[m];return se||((se=Object.create((k||mt).prototype)).ptr=m,Z[m]=se)}function Y_(m,k){return hr(m.ptr,k)}function J_(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete Ja(m.__class__)[m.ptr]}function X_(m,k){return m.ptr===k.ptr}function Q_(m){return m.ptr}function K_(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=H.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=H.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=H.xc)(),a._pe_geog_to_geog=(m,k,Z,se,ue)=>(a._pe_geog_to_geog=H.zc)(m,k,Z,se,ue),a._pe_geog_to_proj=(m,k,Z)=>(a._pe_geog_to_proj=H.Ac)(m,k,Z),a._pe_geog_to_dd=(m,k,Z,se,ue)=>(a._pe_geog_to_dd=H.Bc)(m,k,Z,se,ue),a._pe_dd_to_geog=(m,k,Z,se)=>(a._pe_dd_to_geog=H.Cc)(m,k,Z,se),a._pe_geog_to_ddm=(m,k,Z,se,ue)=>(a._pe_geog_to_ddm=H.Dc)(m,k,Z,se,ue),a._pe_ddm_to_geog=(m,k,Z,se)=>(a._pe_ddm_to_geog=H.Ec)(m,k,Z,se),a._pe_geog_to_dms=(m,k,Z,se,ue)=>(a._pe_geog_to_dms=H.Fc)(m,k,Z,se,ue),a._pe_dms_to_geog=(m,k,Z,se)=>(a._pe_dms_to_geog=H.Gc)(m,k,Z,se),a._pe_geog_to_mgrs_extended=(m,k,Z,se,ue,Pe,We)=>(a._pe_geog_to_mgrs_extended=H.Hc)(m,k,Z,se,ue,Pe,We),a._pe_mgrs_to_geog_extended=(m,k,Z,se,ue)=>(a._pe_mgrs_to_geog_extended=H.Ic)(m,k,Z,se,ue),a._pe_geog_to_usng=(m,k,Z,se,ue,Pe,We)=>(a._pe_geog_to_usng=H.Jc)(m,k,Z,se,ue,Pe,We),a._pe_usng_to_geog=(m,k,Z,se)=>(a._pe_usng_to_geog=H.Kc)(m,k,Z,se),a._pe_geog_to_utm=(m,k,Z,se,ue)=>(a._pe_geog_to_utm=H.Lc)(m,k,Z,se,ue),a._pe_utm_to_geog=(m,k,Z,se,ue)=>(a._pe_utm_to_geog=H.Mc)(m,k,Z,se,ue),a._pe_object_to_string_ext=(m,k,Z)=>(a._pe_object_to_string_ext=H.Nc)(m,k,Z),a._pe_proj_to_geog_center=(m,k,Z,se)=>(a._pe_proj_to_geog_center=H.Oc)(m,k,Z,se),a.getValue=ka,a.UTF8ToString=Pr,mr=function m(){os||Js(),os||(mr=m)},Js(),mt.prototype=Object.create(mt.prototype),mt.prototype.constructor=mt,mt.prototype.__class__=mt,mt.__cache__={},a.WrapperObject=mt,a.getCache=Ja,a.wrapPointer=hr,a.castObject=Y_,a.NULL=hr(0),a.destroy=J_,a.compare=X_,a.getPointer=Q_,a.getClass=K_;var Xe={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(Xe.needed){for(var m=0;m<Xe.temps.length;m++)a._webidl_free(Xe.temps[m]);Xe.temps.length=0,a._webidl_free(Xe.buffer),Xe.buffer=0,Xe.size+=Xe.needed,Xe.needed=0}Xe.buffer||(Xe.size+=128,Xe.buffer=a._webidl_malloc(Xe.size),ee(Xe.buffer)),Xe.pos=0},alloc(m,k){ee(Xe.buffer);var Z,se=k.BYTES_PER_ELEMENT,ue=m.length*se;return ue=Cc(ue,8),Xe.pos+ue>=Xe.size?(ee(ue>0),Xe.needed+=ue,Z=a._webidl_malloc(ue),Xe.temps.push(Z)):(Z=Xe.buffer+Xe.pos,Xe.pos+=ue),Z},copy(m,k,Z){Z/=k.BYTES_PER_ELEMENT;for(var se=0;se<m.length;se++)k[Z+se]=m[se]}};function qm(m){if(typeof m=="string"){var k=Dd(m),Z=Xe.alloc(k,U);return Xe.copy(k,U,Z),Z}return m}function oi(m){if(typeof m=="object"){var k=Xe.alloc(m,U);return Xe.copy(m,U,k),k}return m}function e2(m){if(typeof m=="object"){var k=Xe.alloc(m,Ae);return Xe.copy(m,Ae,k),k}return m}function t2(m){if(typeof m=="object"){var k=Xe.alloc(m,Ee);return Xe.copy(m,Ee,k),k}return m}function r2(m){if(typeof m=="object"){var k=Xe.alloc(m,we);return Xe.copy(m,we,k),k}return m}function n2(m){if(typeof m=="object"){var k=Xe.alloc(m,ce);return Xe.copy(m,ce,k),k}return m}function rr(){throw"cannot construct a PeObject, no constructor in IDL"}function Ur(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function zr(){throw"cannot construct a PeUnit, no constructor in IDL"}function yo(){throw"cannot construct a VoidPtr, no constructor in IDL"}function en(){throw"cannot construct a PeAngunit, no constructor in IDL"}function tn(){throw"cannot construct a PeDatum, no constructor in IDL"}function le(){throw"cannot construct a PeDefs, no constructor in IDL"}function Wr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=rp(m),Ja(Wr)[this.ptr]=this}function hn(){throw"cannot construct a PeFactory, no constructor in IDL"}function Ir(m,k,Z,se,ue,Pe){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),this.ptr=js(m,k,Z,se,ue,Pe),Ja(Ir)[this.ptr]=this}function Ct(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function Jt(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function qn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function kn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function si(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function Sr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Br(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=tu(m),Ja(Br)[this.ptr]=this}function gn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Gr(){throw"cannot construct a PeMath, no constructor in IDL"}function kt(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function nr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function wn(){throw"cannot construct a PeParameter, no constructor in IDL"}function Ye(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function rn(){throw"cannot construct a PePrimem, no constructor in IDL"}function bt(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Lr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function vo(){throw"cannot construct a PeVersion, no constructor in IDL"}return rr.prototype=Object.create(mt.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},a.PeObject=rr,rr.prototype.getCode=rr.prototype.getCode=function(){var m=this.ptr;return Fd(m)},rr.prototype.getName=rr.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr($d(k,m))},rr.prototype.getType=rr.prototype.getType=function(){var m=this.ptr;return Mc(m)},Ur.prototype=Object.create(rr.prototype),Ur.prototype.constructor=Ur,Ur.prototype.__class__=Ur,Ur.__cache__={},a.PeCoordsys=Ur,Ur.prototype.isEqual=Ur.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!mn(k,m)},Ur.prototype.getCode=Ur.prototype.getCode=function(){var m=this.ptr;return zi(m)},Ur.prototype.getName=Ur.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(ii(k,m))},Ur.prototype.getType=Ur.prototype.getType=function(){var m=this.ptr;return Vd(m)},zr.prototype=Object.create(rr.prototype),zr.prototype.constructor=zr,zr.prototype.__class__=zr,zr.__cache__={},a.PeUnit=zr,zr.prototype.getUnitFactor=zr.prototype.getUnitFactor=function(){var m=this.ptr;return Ud(m)},zr.prototype.getCode=zr.prototype.getCode=function(){var m=this.ptr;return Ra(m)},zr.prototype.getName=zr.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(vi(k,m))},zr.prototype.getType=zr.prototype.getType=function(){var m=this.ptr;return Ze(m)},yo.prototype=Object.create(mt.prototype),yo.prototype.constructor=yo,yo.prototype.__class__=yo,yo.__cache__={},a.VoidPtr=yo,yo.prototype.__destroy__=yo.prototype.__destroy__=function(){var m=this.ptr;Da(m)},en.prototype=Object.create(zr.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeAngunit=en,en.prototype.getCode=en.prototype.getCode=function(){var m=this.ptr;return Ac(m)},en.prototype.getName=en.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(Ic(k,m))},en.prototype.getType=en.prototype.getType=function(){var m=this.ptr;return Lc(m)},en.prototype.getUnitFactor=en.prototype.getUnitFactor=function(){var m=this.ptr;return ss(m)},tn.prototype=Object.create(rr.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeDatum=tn,tn.prototype.getSpheroid=tn.prototype.getSpheroid=function(){var m=this.ptr;return hr(Fa(m),Lr)},tn.prototype.getCode=tn.prototype.getCode=function(){var m=this.ptr;return zd(m)},tn.prototype.getName=tn.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(Wd(k,m))},tn.prototype.getType=tn.prototype.getType=function(){var m=this.ptr;return Bd(m)},le.prototype=Object.create(mt.prototype),le.prototype.constructor=le,le.prototype.__class__=le,le.__cache__={},a.PeDefs=le,le.prototype.get_PE_BUFFER_MAX=le.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return kc(m)},Object.defineProperty(le.prototype,"PE_BUFFER_MAX",{get:le.prototype.get_PE_BUFFER_MAX}),le.prototype.get_PE_NAME_MAX=le.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return Gd(m)},Object.defineProperty(le.prototype,"PE_NAME_MAX",{get:le.prototype.get_PE_NAME_MAX}),le.prototype.get_PE_MGRS_MAX=le.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return Nc(m)},Object.defineProperty(le.prototype,"PE_MGRS_MAX",{get:le.prototype.get_PE_MGRS_MAX}),le.prototype.get_PE_USNG_MAX=le.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return Oc(m)},Object.defineProperty(le.prototype,"PE_USNG_MAX",{get:le.prototype.get_PE_USNG_MAX}),le.prototype.get_PE_DD_MAX=le.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return Ws(m)},Object.defineProperty(le.prototype,"PE_DD_MAX",{get:le.prototype.get_PE_DD_MAX}),le.prototype.get_PE_DMS_MAX=le.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Rc(m)},Object.defineProperty(le.prototype,"PE_DMS_MAX",{get:le.prototype.get_PE_DMS_MAX}),le.prototype.get_PE_DDM_MAX=le.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return $a(m)},Object.defineProperty(le.prototype,"PE_DDM_MAX",{get:le.prototype.get_PE_DDM_MAX}),le.prototype.get_PE_UTM_MAX=le.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return Dc(m)},Object.defineProperty(le.prototype,"PE_UTM_MAX",{get:le.prototype.get_PE_UTM_MAX}),le.prototype.get_PE_PARM_MAX=le.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return jd(m)},Object.defineProperty(le.prototype,"PE_PARM_MAX",{get:le.prototype.get_PE_PARM_MAX}),le.prototype.get_PE_TYPE_NONE=le.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return Va(m)},Object.defineProperty(le.prototype,"PE_TYPE_NONE",{get:le.prototype.get_PE_TYPE_NONE}),le.prototype.get_PE_TYPE_GEOGCS=le.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return qd(m)},Object.defineProperty(le.prototype,"PE_TYPE_GEOGCS",{get:le.prototype.get_PE_TYPE_GEOGCS}),le.prototype.get_PE_TYPE_PROJCS=le.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return Ua(m)},Object.defineProperty(le.prototype,"PE_TYPE_PROJCS",{get:le.prototype.get_PE_TYPE_PROJCS}),le.prototype.get_PE_TYPE_GEOGTRAN=le.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Hd(m)},Object.defineProperty(le.prototype,"PE_TYPE_GEOGTRAN",{get:le.prototype.get_PE_TYPE_GEOGTRAN}),le.prototype.get_PE_TYPE_COORDSYS=le.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return Zd(m)},Object.defineProperty(le.prototype,"PE_TYPE_COORDSYS",{get:le.prototype.get_PE_TYPE_COORDSYS}),le.prototype.get_PE_TYPE_UNIT=le.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return Yd(m)},Object.defineProperty(le.prototype,"PE_TYPE_UNIT",{get:le.prototype.get_PE_TYPE_UNIT}),le.prototype.get_PE_TYPE_LINUNIT=le.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return Jd(m)},Object.defineProperty(le.prototype,"PE_TYPE_LINUNIT",{get:le.prototype.get_PE_TYPE_LINUNIT}),le.prototype.get_PE_STR_OPTS_NONE=le.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Xd(m)},Object.defineProperty(le.prototype,"PE_STR_OPTS_NONE",{get:le.prototype.get_PE_STR_OPTS_NONE}),le.prototype.get_PE_STR_AUTH_NONE=le.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Fc(m)},Object.defineProperty(le.prototype,"PE_STR_AUTH_NONE",{get:le.prototype.get_PE_STR_AUTH_NONE}),le.prototype.get_PE_STR_AUTH_TOP=le.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return Bs(m)},Object.defineProperty(le.prototype,"PE_STR_AUTH_TOP",{get:le.prototype.get_PE_STR_AUTH_TOP}),le.prototype.get_PE_STR_NAME_CANON=le.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return go(m)},Object.defineProperty(le.prototype,"PE_STR_NAME_CANON",{get:le.prototype.get_PE_STR_NAME_CANON}),le.prototype.get_PE_STR_FMT_WKT=le.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return za(m)},Object.defineProperty(le.prototype,"PE_STR_FMT_WKT",{get:le.prototype.get_PE_STR_FMT_WKT}),le.prototype.get_PE_STR_FMT_WKT2=le.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return Gs(m)},Object.defineProperty(le.prototype,"PE_STR_FMT_WKT2",{get:le.prototype.get_PE_STR_FMT_WKT2}),le.prototype.get_PE_PARM_X0=le.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return bi(m)},Object.defineProperty(le.prototype,"PE_PARM_X0",{get:le.prototype.get_PE_PARM_X0}),le.prototype.get_PE_PARM_ND=le.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return as(m)},Object.defineProperty(le.prototype,"PE_PARM_ND",{get:le.prototype.get_PE_PARM_ND}),le.prototype.get_PE_TRANSFORM_1_TO_2=le.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Qd(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_1_TO_2",{get:le.prototype.get_PE_TRANSFORM_1_TO_2}),le.prototype.get_PE_TRANSFORM_2_TO_1=le.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return $c(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_2_TO_1",{get:le.prototype.get_PE_TRANSFORM_2_TO_1}),le.prototype.get_PE_TRANSFORM_P_TO_G=le.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return Vc(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_P_TO_G",{get:le.prototype.get_PE_TRANSFORM_P_TO_G}),le.prototype.get_PE_TRANSFORM_G_TO_P=le.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Wa(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_G_TO_P",{get:le.prototype.get_PE_TRANSFORM_G_TO_P}),le.prototype.get_PE_HORIZON_RECT=le.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return Kd(m)},Object.defineProperty(le.prototype,"PE_HORIZON_RECT",{get:le.prototype.get_PE_HORIZON_RECT}),le.prototype.get_PE_HORIZON_POLY=le.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return ep(m)},Object.defineProperty(le.prototype,"PE_HORIZON_POLY",{get:le.prototype.get_PE_HORIZON_POLY}),le.prototype.get_PE_HORIZON_LINE=le.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Uc(m)},Object.defineProperty(le.prototype,"PE_HORIZON_LINE",{get:le.prototype.get_PE_HORIZON_LINE}),le.prototype.get_PE_HORIZON_DELTA=le.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return tp(m)},Object.defineProperty(le.prototype,"PE_HORIZON_DELTA",{get:le.prototype.get_PE_HORIZON_DELTA}),Wr.prototype=Object.create(mt.prototype),Wr.prototype.constructor=Wr,Wr.prototype.__class__=Wr,Wr.__cache__={},a.PeDouble=Wr,Wr.prototype.get_val=Wr.prototype.get_val=function(){var m=this.ptr;return zc(m)},Wr.prototype.set_val=Wr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Wc(k,m)},Object.defineProperty(Wr.prototype,"val",{get:Wr.prototype.get_val,set:Wr.prototype.set_val}),Wr.prototype.__destroy__=Wr.prototype.__destroy__=function(){var m=this.ptr;np(m)},hn.prototype=Object.create(mt.prototype),hn.prototype.constructor=hn,hn.prototype.__class__=hn,hn.__cache__={},a.PeFactory=hn,hn.prototype.initialize=hn.prototype.initialize=function(m){Xe.prepare(),m=m&&typeof m=="object"?m.ptr:qm(m),Ba(m)},hn.prototype.factoryByType=hn.prototype.factoryByType=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),hr(ip(m,k),rr)},hn.prototype.fromString=hn.prototype.fromString=function(m,k){return Xe.prepare(),m&&typeof m=="object"&&(m=m.ptr),k=k&&typeof k=="object"?k.ptr:qm(k),hr(Bc(m,k),rr)},hn.prototype.getCode=hn.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),op(m)},Ir.prototype=Object.create(mt.prototype),Ir.prototype.constructor=Ir,Ir.prototype.__class__=Ir,Ir.__cache__={},a.PeGCSExtent=Ir,Ir.prototype.getLLon=Ir.prototype.getLLon=function(){var m=this.ptr;return sp(m)},Ir.prototype.getSLat=Ir.prototype.getSLat=function(){var m=this.ptr;return Gc(m)},Ir.prototype.getRLon=Ir.prototype.getRLon=function(){var m=this.ptr;return jc(m)},Ir.prototype.getNLat=Ir.prototype.getNLat=function(){var m=this.ptr;return ap(m)},Ir.prototype.__destroy__=Ir.prototype.__destroy__=function(){var m=this.ptr;qc(m)},Ct.prototype=Object.create(Ur.prototype),Ct.prototype.constructor=Ct,Ct.prototype.__class__=Ct,Ct.__cache__={},a.PeGeogcs=Ct,Ct.prototype.Delete=Ct.prototype.Delete=function(){var m=this.ptr;Hc(m)},Ct.prototype.cloneAlterUnits=Ct.prototype.cloneAlterUnits=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),hr(lp(k,m),Ct)},Ct.prototype.getDatum=Ct.prototype.getDatum=function(){var m=this.ptr;return hr(wo(m),tn)},Ct.prototype.getPrimem=Ct.prototype.getPrimem=function(){var m=this.ptr;return hr(ls(m),rn)},Ct.prototype.getUnit=Ct.prototype.getUnit=function(){var m=this.ptr;return hr(cp(m),en)},Ct.prototype.isEqual=Ct.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Ga(k,m)},Ct.prototype.getCode=Ct.prototype.getCode=function(){var m=this.ptr;return ja(m)},Ct.prototype.getName=Ct.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(up(k,m))},Ct.prototype.getType=Ct.prototype.getType=function(){var m=this.ptr;return qs(m)},Jt.prototype=Object.create(rr.prototype),Jt.prototype.constructor=Jt,Jt.prototype.__class__=Jt,Jt.__cache__={},a.PeGeogtran=Jt,Jt.prototype.isEqual=Jt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Zc(k,m)},Jt.prototype.getGeogcs1=Jt.prototype.getGeogcs1=function(){var m=this.ptr;return hr(Yc(m),Ct)},Jt.prototype.getGeogcs2=Jt.prototype.getGeogcs2=function(){var m=this.ptr;return hr(qa(m),Ct)},Jt.prototype.getParameters=Jt.prototype.getParameters=function(){var m=this.ptr;return Jc(m)},Jt.prototype.loadConstants=Jt.prototype.loadConstants=function(){var m=this.ptr;return!!dp(m)},Jt.prototype.getCode=Jt.prototype.getCode=function(){var m=this.ptr;return _i(m)},Jt.prototype.getName=Jt.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(pp(k,m))},Jt.prototype.getType=Jt.prototype.getType=function(){var m=this.ptr;return fp(m)},qn.prototype=Object.create(mt.prototype),qn.prototype.constructor=qn,qn.prototype.__class__=qn,qn.__cache__={},a.PeGTlistExtended=qn,qn.prototype.getGTlist=qn.prototype.getGTlist=function(m,k,Z,se,ue,Pe){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),hr(mp(m,k,Z,se,ue,Pe),kn)},qn.prototype.get_PE_GTLIST_OPTS_COMMON=qn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Xc(m)},Object.defineProperty(qn.prototype,"PE_GTLIST_OPTS_COMMON",{get:qn.prototype.get_PE_GTLIST_OPTS_COMMON}),kn.prototype=Object.create(mt.prototype),kn.prototype.constructor=kn,kn.prototype.__class__=kn,kn.__cache__={},a.PeGTlistExtendedEntry=kn,kn.prototype.getEntries=kn.prototype.getEntries=function(){var m=this.ptr;return hr(Qc(m),si)},kn.prototype.getSteps=kn.prototype.getSteps=function(){var m=this.ptr;return Mr(m)},kn.prototype.Delete=kn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),hp(m)},si.prototype=Object.create(mt.prototype),si.prototype.constructor=si,si.prototype.__class__=si,si.__cache__={},a.PeGTlistExtendedGTs=si,si.prototype.getDirection=si.prototype.getDirection=function(){var m=this.ptr;return gp(m)},si.prototype.getGeogtran=si.prototype.getGeogtran=function(){var m=this.ptr;return hr(wp(m),Jt)},Sr.prototype=Object.create(mt.prototype),Sr.prototype.constructor=Sr,Sr.prototype.__class__=Sr,Sr.__cache__={},a.PeHorizon=Sr,Sr.prototype.getNump=Sr.prototype.getNump=function(){var m=this.ptr;return yp(m)},Sr.prototype.getKind=Sr.prototype.getKind=function(){var m=this.ptr;return vp(m)},Sr.prototype.getInclusive=Sr.prototype.getInclusive=function(){var m=this.ptr;return Kc(m)},Sr.prototype.getSize=Sr.prototype.getSize=function(){var m=this.ptr;return bp(m)},Sr.prototype.getCoord=Sr.prototype.getCoord=function(){var m=this.ptr;return eu(m)},Br.prototype=Object.create(mt.prototype),Br.prototype.constructor=Br,Br.prototype.__class__=Br,Br.__cache__={},a.PeInteger=Br,Br.prototype.get_val=Br.prototype.get_val=function(){var m=this.ptr;return Hs(m)},Br.prototype.set_val=Br.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Wi(k,m)},Object.defineProperty(Br.prototype,"val",{get:Br.prototype.get_val,set:Br.prototype.set_val}),Br.prototype.__destroy__=Br.prototype.__destroy__=function(){var m=this.ptr;Zs(m)},gn.prototype=Object.create(mt.prototype),gn.prototype.constructor=gn,gn.prototype.__class__=gn,gn.__cache__={},a.PeLineType=gn,gn.prototype.geodetic_distance=gn.prototype.geodetic_distance=function(m,k,Z,se,ue,Pe,We,De,ct,Nn){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),ct&&typeof ct=="object"&&(ct=ct.ptr),Nn&&typeof Nn=="object"&&(Nn=Nn.ptr),_p(m,k,Z,se,ue,Pe,We,De,ct,Nn)},gn.prototype.geodetic_coordinate=gn.prototype.geodetic_coordinate=function(m,k,Z,se,ue,Pe,We,De,ct){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),ct&&typeof ct=="object"&&(ct=ct.ptr),ru(m,k,Z,se,ue,Pe,We,De,ct)},gn.prototype.geodesic_coordinate=gn.prototype.geodesic_coordinate=function(m,k,Z,se,ue,Pe,We,De){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),nu(m,k,Z,se,ue,Pe,We,De)},gn.prototype.great_elliptic_distance=gn.prototype.great_elliptic_distance=function(m,k,Z,se,ue,Pe,We,De,ct){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),ct&&typeof ct=="object"&&(ct=ct.ptr),iu(m,k,Z,se,ue,Pe,We,De,ct)},Gr.prototype=Object.create(mt.prototype),Gr.prototype.constructor=Gr,Gr.prototype.__class__=Gr,Gr.__cache__={},a.PeMath=Gr,Gr.prototype.phi_to_eta=Gr.prototype.phi_to_eta=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),cs(m,k)},Gr.prototype.eta_to_phi=Gr.prototype.eta_to_phi=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),xp(m,k)},Gr.prototype.phi_to_phig=Gr.prototype.phi_to_phig=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Sp(m,k)},Gr.prototype.q=Gr.prototype.q=function(m,k,Z){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),Ep(m,k,Z)},Gr.prototype.q90=Gr.prototype.q90=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Cp(m,k)},kt.prototype=Object.create(mt.prototype),kt.prototype.constructor=kt,kt.prototype.__class__=kt,kt.__cache__={},a.PeNotationMgrs=kt,kt.prototype.get_PE_MGRS_STYLE_NEW=kt.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return Tp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_NEW",{get:kt.prototype.get_PE_MGRS_STYLE_NEW}),kt.prototype.get_PE_MGRS_STYLE_OLD=kt.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return Pp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_OLD",{get:kt.prototype.get_PE_MGRS_STYLE_OLD}),kt.prototype.get_PE_MGRS_STYLE_AUTO=kt.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return Ha(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_AUTO",{get:kt.prototype.get_PE_MGRS_STYLE_AUTO}),kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return Mp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),kt.prototype.get_PE_MGRS_ADD_SPACES=kt.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return Ys(m)},Object.defineProperty(kt.prototype,"PE_MGRS_ADD_SPACES",{get:kt.prototype.get_PE_MGRS_ADD_SPACES}),nr.prototype=Object.create(mt.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},a.PeNotationUtm=nr,nr.prototype.get_PE_UTM_OPTS_NONE=nr.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return Ap(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NONE",{get:nr.prototype.get_PE_UTM_OPTS_NONE}),nr.prototype.get_PE_UTM_OPTS_NS=nr.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return Za(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NS",{get:nr.prototype.get_PE_UTM_OPTS_NS}),nr.prototype.get_PE_UTM_OPTS_NS_STRICT=nr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return Ip(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:nr.prototype.get_PE_UTM_OPTS_NS_STRICT}),nr.prototype.get_PE_UTM_OPTS_ADD_SPACES=nr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return Lp(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:nr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),wn.prototype=Object.create(rr.prototype),wn.prototype.constructor=wn,wn.prototype.__class__=wn,wn.__cache__={},a.PeParameter=wn,wn.prototype.getValue=wn.prototype.getValue=function(){var m=this.ptr;return ou(m)},wn.prototype.getCode=wn.prototype.getCode=function(){var m=this.ptr;return us(m)},wn.prototype.getName=wn.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(xi(k,m))},wn.prototype.getType=wn.prototype.getType=function(){var m=this.ptr;return su(m)},Ye.prototype=Object.create(mt.prototype),Ye.prototype.constructor=Ye,Ye.prototype.__class__=Ye,Ye.__cache__={},a.PePCSInfo=Ye,Ye.prototype.getCentralMeridian=Ye.prototype.getCentralMeridian=function(){var m=this.ptr;return Ya(m)},Ye.prototype.getDomainMinx=Ye.prototype.getDomainMinx=function(){var m=this.ptr;return kp(m)},Ye.prototype.getDomainMiny=Ye.prototype.getDomainMiny=function(){var m=this.ptr;return Np(m)},Ye.prototype.getDomainMaxx=Ye.prototype.getDomainMaxx=function(){var m=this.ptr;return Op(m)},Ye.prototype.getDomainMaxy=Ye.prototype.getDomainMaxy=function(){var m=this.ptr;return Rp(m)},Ye.prototype.getNorthPoleLocation=Ye.prototype.getNorthPoleLocation=function(){var m=this.ptr;return Dp(m)},Ye.prototype.getNorthPoleGeometry=Ye.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Fp(m)},Ye.prototype.getSouthPoleLocation=Ye.prototype.getSouthPoleLocation=function(){var m=this.ptr;return $p(m)},Ye.prototype.getSouthPoleGeometry=Ye.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Vp(m)},Ye.prototype.isDensificationNeeded=Ye.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Up(m)},Ye.prototype.isGcsHorizonMultiOverlap=Ye.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!zp(m)},Ye.prototype.isPannableRectangle=Ye.prototype.isPannableRectangle=function(){var m=this.ptr;return!!f(m)},Ye.prototype.generate=Ye.prototype.generate=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),hr(p(m,k),Ye)},Ye.prototype.get_PE_PCSINFO_OPTION_NONE=Ye.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(Ye.prototype,"PE_PCSINFO_OPTION_NONE",{get:Ye.prototype.get_PE_PCSINFO_OPTION_NONE}),Ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN=Ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(Ye.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:Ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),Ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=Ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return C(m)},Object.defineProperty(Ye.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:Ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),Ye.prototype.get_PE_POLE_POINT=Ye.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return T(m)},Object.defineProperty(Ye.prototype,"PE_POLE_POINT",{get:Ye.prototype.get_PE_POLE_POINT}),rn.prototype=Object.create(rr.prototype),rn.prototype.constructor=rn,rn.prototype.__class__=rn,rn.__cache__={},a.PePrimem=rn,rn.prototype.getLongitude=rn.prototype.getLongitude=function(){var m=this.ptr;return I(m)},rn.prototype.getCode=rn.prototype.getCode=function(){var m=this.ptr;return N(m)},rn.prototype.getName=rn.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(D(k,m))},rn.prototype.getType=rn.prototype.getType=function(){var m=this.ptr;return B(m)},bt.prototype=Object.create(Ur.prototype),bt.prototype.constructor=bt,bt.prototype.__class__=bt,bt.__cache__={},a.PeProjcs=bt,bt.prototype.Delete=bt.prototype.Delete=function(){var m=this.ptr;$(m)},bt.prototype.getGeogcs=bt.prototype.getGeogcs=function(){var m=this.ptr;return hr(Q(m),Ct)},bt.prototype.getProjection=bt.prototype.getProjection=function(){var m=this.ptr;return hr(ae(m),rr)},bt.prototype.getParameters=bt.prototype.getParameters=function(){var m=this.ptr;return ge(m)},bt.prototype.getUnit=bt.prototype.getUnit=function(){var m=this.ptr;return hr(he(m),zr)},bt.prototype.loadConstants=bt.prototype.loadConstants=function(){var m=this.ptr;return!!ve(m)},bt.prototype.horizonGcsGenerate=bt.prototype.horizonGcsGenerate=function(){var m=this.ptr;return hr(Oe(m),Sr)},bt.prototype.horizonPcsGenerate=bt.prototype.horizonPcsGenerate=function(){var m=this.ptr;return hr(Ie(m),Sr)},bt.prototype.isEqual=bt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Ue(k,m)},bt.prototype.getCode=bt.prototype.getCode=function(){var m=this.ptr;return et(m)},bt.prototype.getName=bt.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(st(k,m))},bt.prototype.getType=bt.prototype.getType=function(){var m=this.ptr;return qe(m)},Lr.prototype=Object.create(rr.prototype),Lr.prototype.constructor=Lr,Lr.prototype.__class__=Lr,Lr.__cache__={},a.PeSpheroid=Lr,Lr.prototype.getAxis=Lr.prototype.getAxis=function(){var m=this.ptr;return rt(m)},Lr.prototype.getFlattening=Lr.prototype.getFlattening=function(){var m=this.ptr;return Ar(m)},Lr.prototype.getCode=Lr.prototype.getCode=function(){var m=this.ptr;return Lt(m)},Lr.prototype.getName=Lr.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(Kr(k,m))},Lr.prototype.getType=Lr.prototype.getType=function(){var m=this.ptr;return Ln(m)},vo.prototype=Object.create(mt.prototype),vo.prototype.constructor=vo,vo.prototype.__class__=vo,vo.__cache__={},a.PeVersion=vo,vo.prototype.version_string=vo.prototype.version_string=function(){var m=this.ptr;return Pr(jn(m))},a.ensureCache=Xe,a.ensureString=qm,a.ensureInt8=oi,a.ensureInt16=e2,a.ensureInt32=t2,a.ensureFloat32=r2,a.ensureFloat64=n2,d},e.exports=r),EF.exports;var e,t,r}var SF,EF,OK,RK,TF=O(()=>{bF();EF={exports:{}};OK=vF(NK()),RK=Object.freeze(Object.defineProperty({__proto__:null,default:OK},Symbol.toStringTag,{value:"Module"}))});function PF(){return!!j}function DK(){return!!fe("esri-wasm")}function MF(){return x3||(x3=Promise.resolve().then(()=>(TF(),CF)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>am(`esri/geometry/support/${t}`)})).then(e=>{LF(e)}),x3)}function LF(e){function t(o,s,l){o[s]=l(o[s])}j=e,Qt.init(),b_.init(),__.init(),x_.init(),S_.init(),AF=class extends j.PeDouble{constructor(o=NaN){super(o)}destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}},IF=class extends j.PeGCSExtent{destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[j.PeAngunit,j.PeDatum,j.PeGeogcs,j.PeGeogtran,j.PeObject,j.PeParameter,j.PePrimem,j.PeProjcs,j.PeSpheroid,j.PeUnit];for(let o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(Qt.PE_NAME_MAX))});for(let o of[j.PeGeogtran,j.PeProjcs])t(o.prototype,"getParameters",s=>function(){let l=new Array(Qt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<l.length;d++){let h=j.getValue(a,"*");l[d]=h?j.wrapPointer(h,j.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return l});t(j.PeHorizon.prototype,"getCoord",o=>function(s=!1){let l=this.getSize();if(!l)return null;let a=[];return lc(a,l,o.call(this),s),a}),t(j.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=j._pe_getPeGTlistExtendedGTsSize();return function(){let l=null,a=o.call(this);if(!j.compare(a,j.NULL)){l=[a];let d=this.getSteps();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)l.push(j.wrapPointer(h+s*g,j.PeGTlistExtendedGTs))}}return l}});let n=j._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 l=null,a=o.call(this);if(!j.compare(a,j.NULL)){l=[a];let d=a.getNump();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)l.push(j.wrapPointer(h+n*g,j.PeHorizon))}}return s.set(o,l),l};t(j.PeProjcs.prototype,"horizonGcsGenerate",i),t(j.PeProjcs.prototype,"horizonPcsGenerate",i),j.PeObject.prototype.toString=function(o=Qt.PE_STR_OPTS_NONE){j.ensureCache.prepare();let s=j.getPointer(this),l=j.ensureInt8(new Array(Qt.PE_BUFFER_MAX));return j.UTF8ToString(j._pe_object_to_string_ext(s,o,l))},j.PeGeogcs.prototype.destroy=function(){this.Delete(),Jo(this),this.ptr=0},j.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},j.PeProjcs.prototype.destroy=function(){this.Delete(),Jo(this),this.ptr=0},j.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function Jo(e){if(!e)return;let t=j.getClass(e);if(!t)return;let r=j.getCache(t);if(!r)return;let n=j.getPointer(e);n&&delete r[n]}function y_(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(j.ensureInt8(n));return r}function pd(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function lc(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=j.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=e.length===0;for(let o=0;o<t;o++)i&&(e[o]=new Array(2)),e[o][0]=j.getValue(r,"double"),e[o][1]=j.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var x3,j,S3,Qt,AF,v_,IF,b_,E3,C3,T3,P3,M3,__,A3,x_,S_,I3,jEe,kF=O(()=>{yv();tt();j=null;(function(e){function t(o,s,l){j.ensureCache.prepare();let a=pd(l),d=l===a,h=j.ensureFloat64(a),g=j._pe_geog_to_proj(j.getPointer(o),s,h);return g&&lc(l,s,h,d),g}function r(o,s,l,a){switch(a){case Qt.PE_TRANSFORM_P_TO_G:return n(o,s,l);case Qt.PE_TRANSFORM_G_TO_P:return t(o,s,l)}return 0}function n(o,s,l){return i(o,s,l,0)}function i(o,s,l,a){j.ensureCache.prepare();let d=pd(l),h=l===d,g=j.ensureFloat64(d),b=j._pe_proj_to_geog_center(j.getPointer(o),s,g,a);return b&&lc(l,s,g,h),b}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(S3||(S3={})),function(e){function t(){e.PE_BUFFER_MAX=j.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=j.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=j.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=j.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=j.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=j.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=j.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=j.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=j.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=j.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=j.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=j.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=j.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=j.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=j.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=j.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=j.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=j.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=j.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=j.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=j.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=j.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=j.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=j.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=j.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=j.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=j.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=j.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=j.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=j.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=j.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=j.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Qt||(Qt={}));AF=null;(function(e){let t={},r={},n=S=>{let P=S.getType();switch(P){case Qt.PE_TYPE_GEOGCS:S=j.castObject(S,j.PeGeogcs);break;case Qt.PE_TYPE_PROJCS:S=j.castObject(S,j.PeProjcs);break;case Qt.PE_TYPE_GEOGTRAN:S=j.castObject(S,j.PeGeogtran);break;default:P&Qt.PE_TYPE_UNIT&&(S=j.castObject(S,j.PeUnit))}return S};function i(){j.PeFactory.prototype.initialize(null)}function o(S){return s(Qt.PE_TYPE_COORDSYS,S)}function s(S,P){let A=null,F=t[S];if(F||(F={},t[S]=F),F.hasOwnProperty(String(P))&&(A=F[P],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.factoryByType(S,P);j.compare(W,j.NULL)||(A=n(W),F[P]=A)}return A}function l(S,P){let A=null,F=r[S];if(F||(F={},r[S]=F),F.hasOwnProperty(P)&&(A=F[P],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.fromString(S,P);j.compare(W,j.NULL)||(A=n(W),F[P]=A)}return A}function a(S){return s(Qt.PE_TYPE_GEOGCS,S)}function d(S){return s(Qt.PE_TYPE_GEOGTRAN,S)}function h(S){return j.PeFactory.prototype.getCode(S)}function g(S){return s(Qt.PE_TYPE_PROJCS,S)}function b(S){return s(Qt.PE_TYPE_UNIT,S)}e.initialize=i,e.coordsys=o,e.factoryByType=s,e.fromString=l,e.geogcs=a,e.geogtran=d,e.getCode=h,e.projcs=g,e.unit=b})(v_||(v_={}));IF=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=j.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=j._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,l,a,d){let h=null,g=new j.PeInteger(d);try{let b=j.PeGTlistExtended.prototype.getGTlist(i,o,s,l,a,g);if((d=g.val)&&(h=[b],d>1)){let S=j.getPointer(b);for(let P=1;P<d;P++)h.push(j.wrapPointer(S+t*P,j.PeGTlistExtendedEntry))}}finally{j.destroy(g)}return h}e.init=r,e.getGTlist=n})(b_||(b_={})),function(e){function t(r){if(r?.length){for(let n of r)Jo(n),n.getEntries().forEach(i=>{Jo(i);let o=i.getGeogtran();Jo(o),o.getParameters().forEach(Jo),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Jo(s);let l=s.getDatum();Jo(l),Jo(l.getSpheroid()),Jo(s.getPrimem()),Jo(s.getUnit())})});j.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(E3||(E3={})),function(e){function t(r,n,i,o,s){j.ensureCache.prepare();let l=pd(i),a=i===l,d=j.ensureFloat64(l),h=0;o&&(h=j.ensureFloat64(o));let g=j._pe_geog_to_geog(j.getPointer(r),n,d,h,s);return g&&lc(i,n,d,a),g}e.geogToGeog=t}(C3||(C3={})),function(e){function t(o,s,l,a,d,h,g,b){j.PeLineType.prototype.geodesic_coordinate(o,s,l,a,d,h,g,b)}function r(o,s,l,a,d,h,g,b,S){j.PeLineType.prototype.geodetic_coordinate(o,s,l,a,d,h,g,b,S)}function n(o,s,l,a,d,h,g,b,S,P){j.PeLineType.prototype.geodetic_distance(o,s,l,a,d,h,g,b,S,P)}function i(o,s,l,a,d,h,g,b,S){j.PeLineType.prototype.great_elliptic_distance(o,s,l,a,d,h,g,b,S)}e.geodesicCoordinate=t,e.geodeticCoordinate=r,e.geodeticDistance=n,e.greatEllipticDistance=i}(T3||(T3={})),function(e){function t(s,l){return j.PeMath.prototype.phi_to_eta(s,l)}function r(s,l){return j.PeMath.prototype.eta_to_phi(s,l)}function n(s,l){return j.PeMath.prototype.phi_to_phig(s,l)}function i(s,l,a){return j.PeMath.prototype.q(s,l,a)}function o(s,l){return j.PeMath.prototype.q90(s,l)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(P3||(P3={})),function(e){let t=(d,h,g,b,S,P)=>{let A,F;switch(j.ensureCache.prepare(),d){case"dd":A=j._pe_geog_to_dd,F=Qt.PE_DD_MAX;break;case"ddm":A=j._pe_geog_to_ddm,F=Qt.PE_DDM_MAX;break;case"dms":A=j._pe_geog_to_dms,F=Qt.PE_DMS_MAX}let W=0;h&&(W=j.getPointer(h));let z=pd(b),q=j.ensureFloat64(z),G=y_(g,F),Y=A(W,g,q,S,j.ensureInt32(G));if(Y)for(let ie=0;ie<g;ie++)P[ie]=j.UTF8ToString(G[ie]);return Y},r=(d,h,g,b,S)=>{let P;switch(j.ensureCache.prepare(),d){case"dd":P=j._pe_dd_to_geog;break;case"ddm":P=j._pe_ddm_to_geog;break;case"dms":P=j._pe_dms_to_geog}let A=0;h&&(A=j.getPointer(h));let F=b.map(G=>j.ensureString(G)),W=j.ensureInt32(F),z=j.ensureFloat64(new Array(2*g)),q=P(A,g,W,z);return q&&lc(S,g,z),q};function n(d,h,g,b,S){return t("dms",d,h,g,b,S)}function i(d,h,g,b){return r("dms",d,h,g,b)}function o(d,h,g,b,S){return t("ddm",d,h,g,b,S)}function s(d,h,g,b){return r("ddm",d,h,g,b)}function l(d,h,g,b,S){return t("dd",d,h,g,b,S)}function a(d,h,g,b){return r("dd",d,h,g,b)}e.geogToDms=n,e.dmsToGeog=i,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=l,e.ddToGeog=a}(M3||(M3={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=j.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=j.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,l,a,d,h){j.ensureCache.prepare();let g=0;i&&(g=j.getPointer(i));let b=pd(s),S=j.ensureFloat64(b),P=y_(o,Qt.PE_MGRS_MAX),A=j.ensureInt32(P),F=j._pe_geog_to_mgrs_extended(g,o,S,l,a,d,A);if(F)for(let W=0;W<o;W++)h[W]=j.UTF8ToString(P[W]);return F}function n(i,o,s,l,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),b=j.ensureFloat64(new Array(2*o)),S=j._pe_mgrs_to_geog_extended(d,o,g,l,b);return S&&lc(a,o,b),S}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(__||(__={})),function(e){function t(n,i,o,s,l,a,d){j.ensureCache.prepare();let h=0;n&&(h=j.getPointer(n));let g=pd(o),b=j.ensureFloat64(g),S=y_(i,Qt.PE_MGRS_MAX),P=j.ensureInt32(S),A=j._pe_geog_to_usng(h,i,b,s,l,a,P);if(A)for(let F=0;F<i;F++)d[F]=j.UTF8ToString(S[F]);return A}function r(n,i,o,s){j.ensureCache.prepare();let l=0;n&&(l=j.getPointer(n));let a=o.map(b=>j.ensureString(b)),d=j.ensureInt32(a),h=j.ensureFloat64(new Array(2*i)),g=j._pe_usng_to_geog(l,i,d,h);return g&&lc(s,i,h),g}e.geogToUsng=t,e.usngToGeog=r}(A3||(A3={})),function(e){function t(){e.PE_UTM_OPTS_NONE=j.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=j.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=j.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,l,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=pd(s),g=j.ensureFloat64(h),b=y_(o,Qt.PE_UTM_MAX),S=j.ensureInt32(b),P=j._pe_geog_to_utm(d,o,g,l,S);if(P)for(let A=0;A<o;A++)a[A]=j.UTF8ToString(b[A]);return P}function n(i,o,s,l,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),b=j.ensureFloat64(new Array(2*o)),S=j._pe_utm_to_geog(d,o,g,l,b);return S&&lc(a,o,b),S}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(x_||(x_={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=j.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=j.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,l=null;return t.has(i)&&(l=t.get(i),l[o]&&(s=l[o])),s||(s=j.PePCSInfo.prototype.generate(i,o),l||(l=[],t.set(i,l)),l[o]=s),s}e.init=r,e.generate=n}(S_||(S_={})),function(e){function t(){return j.PeVersion.prototype.version_string()}e.versionString=t}(I3||(I3={}));jEe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return S3},get PeDefs(){return Qt},get PeDouble(){return AF},get PeFactory(){return v_},get PeGCSExtent(){return IF},get PeGTTransformations(){return C3},get PeGTlistExtended(){return b_},get PeGTlistExtendedEntry(){return E3},get PeLineType(){return T3},get PeMath(){return P3},get PeNotationDms(){return M3},get PeNotationMgrs(){return __},get PeNotationUsng(){return A3},get PeNotationUtm(){return x_},get PePCSInfo(){return S_},get PeVersion(){return I3},_init:LF,get _pe(){return j},isLoaded:PF,isSupported:DK,load:MF},Symbol.toStringTag,{value:"Module"}))});var Nm,NF=O(()=>{(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(Nm||(Nm={}))});var c,M,L3=O(()=>{M={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(c=2e3;c<=2045;c++)M[c]=0;for(c=2056;c<=2065;c++)M[c]=0;for(c=2067;c<=2135;c++)M[c]=0;for(c=2137;c<=2154;c++)M[c]=0;for(c=2161;c<=2170;c++)M[c]=0;for(c=2172;c<=2193;c++)M[c]=0;for(c=2195;c<=2198;c++)M[c]=0;for(c=2200;c<=2203;c++)M[c]=0;for(c=2205;c<=2217;c++)M[c]=0;for(c=2222;c<=2224;c++)M[c]=1;for(c=2225;c<=2250;c++)M[c]=2;for(c=2251;c<=2253;c++)M[c]=1;for(c=2257;c<=2264;c++)M[c]=2;for(c=2274;c<=2279;c++)M[c]=2;for(c=2280;c<=2282;c++)M[c]=1;for(c=2283;c<=2289;c++)M[c]=2;for(c=2290;c<=2292;c++)M[c]=0;for(c=2308;c<=2313;c++)M[c]=0;for(c=2315;c<=2491;c++)M[c]=0;for(c=2494;c<=2866;c++)M[c]=0;for(c=2867;c<=2869;c++)M[c]=1;for(c=2870;c<=2888;c++)M[c]=2;for(c=2891;c<=2895;c++)M[c]=2;for(c=2896;c<=2898;c++)M[c]=1;for(c=2902;c<=2908;c++)M[c]=2;for(c=2915;c<=2920;c++)M[c]=2;for(c=2921;c<=2923;c++)M[c]=1;for(c=2924;c<=2930;c++)M[c]=2;for(c=2931;c<=2962;c++)M[c]=0;for(c=2964;c<=2968;c++)M[c]=2;for(c=2969;c<=2973;c++)M[c]=0;for(c=2975;c<=2991;c++)M[c]=0;for(c=2995;c<=3051;c++)M[c]=0;for(c=3054;c<=3079;c++)M[c]=0;for(c=3081;c<=3088;c++)M[c]=0;for(c=3092;c<=3101;c++)M[c]=0;for(c=3106;c<=3138;c++)M[c]=0;for(c=3146;c<=3151;c++)M[c]=0;for(c=3153;c<=3166;c++)M[c]=0;for(c=3168;c<=3172;c++)M[c]=0;for(c=3174;c<=3203;c++)M[c]=0;for(c=3294;c<=3358;c++)M[c]=0;for(c=3367;c<=3403;c++)M[c]=0;for(c=3408;c<=3416;c++)M[c]=0;for(c=3417;c<=3438;c++)M[c]=2;for(c=3441;c<=3446;c++)M[c]=2;for(c=3447;c<=3450;c++)M[c]=0;for(c=3451;c<=3459;c++)M[c]=2;for(c=3460;c<=3478;c++)M[c]=0;for(c=3554;c<=3559;c++)M[c]=0;for(c=3560;c<=3570;c++)M[c]=2;for(c=3571;c<=3581;c++)M[c]=0;for(c=3594;c<=3597;c++)M[c]=0;for(c=3601;c<=3604;c++)M[c]=0;for(c=3637;c<=3639;c++)M[c]=0;for(c=3665;c<=3667;c++)M[c]=0;for(c=3693;c<=3695;c++)M[c]=0;for(c=3701;c<=3727;c++)M[c]=0;for(c=3728;c<=3739;c++)M[c]=2;for(c=3740;c<=3751;c++)M[c]=0;for(c=3753;c<=3760;c++)M[c]=2;for(c=3761;c<=3773;c++)M[c]=0;for(c=3775;c<=3777;c++)M[c]=0;for(c=3779;c<=3781;c++)M[c]=0;for(c=3783;c<=3785;c++)M[c]=0;for(c=3788;c<=3791;c++)M[c]=0;for(c=3797;c<=3802;c++)M[c]=0;for(c=3814;c<=3816;c++)M[c]=0;for(c=3825;c<=3829;c++)M[c]=0;for(c=3832;c<=3841;c++)M[c]=0;for(c=3844;c<=3852;c++)M[c]=0;for(c=3873;c<=3885;c++)M[c]=0;for(c=3890;c<=3893;c++)M[c]=0;for(c=3907;c<=3912;c++)M[c]=0;for(c=3942;c<=3950;c++)M[c]=0;for(c=3968;c<=3970;c++)M[c]=0;for(c=3973;c<=3976;c++)M[c]=0;for(c=3986;c<=3989;c++)M[c]=0;for(c=3994;c<=3997;c++)M[c]=0;for(c=4048;c<=4051;c++)M[c]=0;for(c=4056;c<=4063;c++)M[c]=0;for(c=4093;c<=4096;c++)M[c]=0;for(c=4390;c<=4398;c++)M[c]=0;for(c=4399;c<=4413;c++)M[c]=2;for(c=4418;c<=4433;c++)M[c]=2;for(c=4455;c<=4457;c++)M[c]=2;for(c=4484;c<=4489;c++)M[c]=0;for(c=4491;c<=4554;c++)M[c]=0;for(c=4568;c<=4589;c++)M[c]=0;for(c=4652;c<=4656;c++)M[c]=0;for(c=4766;c<=4800;c++)M[c]=0;for(c=5014;c<=5016;c++)M[c]=0;for(c=5069;c<=5072;c++)M[c]=0;for(c=5105;c<=5130;c++)M[c]=0;for(c=5167;c<=5188;c++)M[c]=0;for(c=5253;c<=5259;c++)M[c]=0;for(c=5269;c<=5275;c++)M[c]=0;for(c=5292;c<=5311;c++)M[c]=0;for(c=5329;c<=5331;c++)M[c]=0;for(c=5343;c<=5349;c++)M[c]=0;for(c=5355;c<=5357;c++)M[c]=0;for(c=5387;c<=5389;c++)M[c]=0;for(c=5459;c<=5463;c++)M[c]=0;for(c=5479;c<=5482;c++)M[c]=0;for(c=5518;c<=5520;c++)M[c]=0;for(c=5530;c<=5539;c++)M[c]=0;for(c=5550;c<=5552;c++)M[c]=0;for(c=5562;c<=5583;c++)M[c]=0;for(c=5623;c<=5625;c++)M[c]=2;for(c=5631;c<=5639;c++)M[c]=0;for(c=5649;c<=5653;c++)M[c]=0;for(c=5663;c<=5680;c++)M[c]=0;for(c=5682;c<=5685;c++)M[c]=0;for(c=5875;c<=5877;c++)M[c]=0;for(c=5896;c<=5899;c++)M[c]=0;for(c=5921;c<=5940;c++)M[c]=0;for(c=6050;c<=6125;c++)M[c]=0;for(c=6244;c<=6275;c++)M[c]=0;for(c=6328;c<=6348;c++)M[c]=0;for(c=6350;c<=6356;c++)M[c]=0;for(c=6366;c<=6372;c++)M[c]=0;for(c=6381;c<=6387;c++)M[c]=0;for(c=6393;c<=6404;c++)M[c]=0;for(c=6480;c<=6483;c++)M[c]=0;for(c=6511;c<=6514;c++)M[c]=0;for(c=6579;c<=6581;c++)M[c]=0;for(c=6619;c<=6624;c++)M[c]=0;for(c=6625;c<=6627;c++)M[c]=2;for(c=6628;c<=6632;c++)M[c]=0;for(c=6634;c<=6637;c++)M[c]=0;for(c=6669;c<=6692;c++)M[c]=0;for(c=6707;c<=6709;c++)M[c]=0;for(c=6720;c<=6723;c++)M[c]=0;for(c=6732;c<=6738;c++)M[c]=0;for(c=6931;c<=6933;c++)M[c]=0;for(c=6956;c<=6959;c++)M[c]=0;for(c=7005;c<=7007;c++)M[c]=0;for(c=7057;c<=7070;c++)M[c]=2;for(c=7074;c<=7082;c++)M[c]=0;for(c=7109;c<=7118;c++)M[c]=0;for(c=7119;c<=7127;c++)M[c]=1;for(c=7374;c<=7376;c++)M[c]=0;for(c=7528;c<=7586;c++)M[c]=0;for(c=7587;c<=7645;c++)M[c]=2;for(c=7692;c<=7696;c++)M[c]=0;for(c=7755;c<=7787;c++)M[c]=0;for(c=7791;c<=7795;c++)M[c]=0;for(c=7799;c<=7801;c++)M[c]=0;for(c=7803;c<=7805;c++)M[c]=0;for(c=7825;c<=7831;c++)M[c]=0;for(c=7845;c<=7859;c++)M[c]=0;for(c=8013;c<=8032;c++)M[c]=0;for(c=8065;c<=8068;c++)M[c]=1;for(c=8518;c<=8529;c++)M[c]=2;for(c=8533;c<=8536;c++)M[c]=2;for(c=8538;c<=8540;c++)M[c]=2;for(c=8677;c<=8679;c++)M[c]=0;for(c=8836;c<=8840;c++)M[c]=0;for(c=8857;c<=8859;c++)M[c]=0;for(c=8908;c<=8910;c++)M[c]=0;for(c=9154;c<=9159;c++)M[c]=0;for(c=9205;c<=9218;c++)M[c]=0;for(c=9271;c<=9273;c++)M[c]=0;for(c=9295;c<=9297;c++)M[c]=0;for(c=9356;c<=9360;c++)M[c]=0;for(c=9404;c<=9407;c++)M[c]=0;for(c=9476;c<=9482;c++)M[c]=0;for(c=9487;c<=9494;c++)M[c]=0;for(c=9697;c<=9699;c++)M[c]=0;for(c=9821;c<=9865;c++)M[c]=0;for(c=10285;c<=10291;c++)M[c]=0;for(c=10314;c<=10317;c++)M[c]=0;for(c=10448;c<=10465;c++)M[c]=0;for(c=10731;c<=10733;c++)M[c]=0;for(c=11114;c<=11118;c++)M[c]=0;for(c=20004;c<=20032;c++)M[c]=0;for(c=20047;c<=20049;c++)M[c]=0;for(c=20062;c<=20092;c++)M[c]=0;for(c=20135;c<=20138;c++)M[c]=0;for(c=20248;c<=20258;c++)M[c]=0;for(c=20348;c<=20358;c++)M[c]=0;for(c=20436;c<=20440;c++)M[c]=0;for(c=20822;c<=20824;c++)M[c]=0;for(c=20904;c<=20932;c++)M[c]=0;for(c=20934;c<=20936;c++)M[c]=0;for(c=21004;c<=21032;c++)M[c]=0;for(c=21035;c<=21037;c++)M[c]=0;for(c=21095;c<=21097;c++)M[c]=0;for(c=21148;c<=21150;c++)M[c]=0;for(c=21207;c<=21264;c++)M[c]=0;for(c=21307;c<=21364;c++)M[c]=0;for(c=21413;c<=21423;c++)M[c]=0;for(c=21453;c<=21463;c++)M[c]=0;for(c=21473;c<=21483;c++)M[c]=0;for(c=21780;c<=21782;c++)M[c]=0;for(c=21891;c<=21894;c++)M[c]=0;for(c=21896;c<=21899;c++)M[c]=0;for(c=22171;c<=22177;c++)M[c]=0;for(c=22181;c<=22187;c++)M[c]=0;for(c=22191;c<=22197;c++)M[c]=0;for(c=22207;c<=22222;c++)M[c]=0;for(c=22229;c<=22232;c++)M[c]=0;for(c=22234;c<=22236;c++)M[c]=0;for(c=22243;c<=22250;c++)M[c]=0;for(c=22262;c<=22265;c++)M[c]=0;for(c=22307;c<=22322;c++)M[c]=0;for(c=22348;c<=22357;c++)M[c]=0;for(c=22407;c<=22422;c++)M[c]=0;for(c=22462;c<=22465;c++)M[c]=0;for(c=22521;c<=22525;c++)M[c]=0;for(c=22607;c<=22622;c++)M[c]=0;for(c=22641;c<=22646;c++)M[c]=0;for(c=22648;c<=22657;c++)M[c]=0;for(c=22707;c<=22722;c++)M[c]=0;for(c=22762;c<=22765;c++)M[c]=0;for(c=22807;c<=22822;c++)M[c]=0;for(c=22991;c<=22994;c++)M[c]=0;for(c=23028;c<=23038;c++)M[c]=0;for(c=23301;c<=23333;c++)M[c]=2;for(c=23830;c<=23853;c++)M[c]=0;for(c=23866;c<=23872;c++)M[c]=0;for(c=23877;c<=23884;c++)M[c]=0;for(c=23886;c<=23894;c++)M[c]=0;for(c=23946;c<=23948;c++)M[c]=0;for(c=24311;c<=24313;c++)M[c]=0;for(c=24342;c<=24347;c++)M[c]=0;for(c=24370;c<=24374;c++)M[c]=10;for(c=24375;c<=24381;c++)M[c]=0;for(c=24718;c<=24721;c++)M[c]=0;for(c=24817;c<=24821;c++)M[c]=0;for(c=24877;c<=24882;c++)M[c]=0;for(c=24891;c<=24893;c++)M[c]=0;for(c=25391;c<=25395;c++)M[c]=0;for(c=25828;c<=25838;c++)M[c]=0;for(c=26191;c<=26195;c++)M[c]=0;for(c=26391;c<=26393;c++)M[c]=0;for(c=26701;c<=26722;c++)M[c]=0;for(c=26729;c<=26799;c++)M[c]=2;for(c=26801;c<=26803;c++)M[c]=2;for(c=26811;c<=26813;c++)M[c]=2;for(c=26847;c<=26870;c++)M[c]=2;for(c=26891;c<=26899;c++)M[c]=0;for(c=26901;c<=26923;c++)M[c]=0;for(c=26929;c<=26946;c++)M[c]=0;for(c=26948;c<=26998;c++)M[c]=0;for(c=27037;c<=27040;c++)M[c]=0;for(c=27205;c<=27232;c++)M[c]=0;for(c=27258;c<=27260;c++)M[c]=0;for(c=27391;c<=27398;c++)M[c]=0;for(c=27561;c<=27564;c++)M[c]=0;for(c=27571;c<=27574;c++)M[c]=0;for(c=27581;c<=27584;c++)M[c]=0;for(c=27591;c<=27594;c++)M[c]=0;for(c=27700;c<=27707;c++)M[c]=0;for(c=28191;c<=28193;c++)M[c]=0;for(c=28348;c<=28358;c++)M[c]=0;for(c=28402;c<=28432;c++)M[c]=0;for(c=28462;c<=28492;c++)M[c]=0;for(c=29118;c<=29122;c++)M[c]=0;for(c=29168;c<=29172;c++)M[c]=0;for(c=29177;c<=29185;c++)M[c]=0;for(c=29187;c<=29195;c++)M[c]=0;for(c=29900;c<=29903;c++)M[c]=0;for(c=30161;c<=30179;c++)M[c]=0;for(c=30491;c<=30494;c++)M[c]=0;for(c=30729;c<=30732;c++)M[c]=0;for(c=31251;c<=31259;c++)M[c]=0;for(c=31265;c<=31268;c++)M[c]=0;for(c=31275;c<=31279;c++)M[c]=0;for(c=31281;c<=31297;c++)M[c]=0;for(c=31461;c<=31469;c++)M[c]=0;for(c=31491;c<=31495;c++)M[c]=0;for(c=31917;c<=31922;c++)M[c]=0;for(c=31965;c<=32e3;c++)M[c]=0;for(c=32001;c<=32003;c++)M[c]=2;for(c=32005;c<=32031;c++)M[c]=2;for(c=32033;c<=32060;c++)M[c]=2;for(c=32064;c<=32067;c++)M[c]=2;for(c=32074;c<=32077;c++)M[c]=2;for(c=32081;c<=32086;c++)M[c]=0;for(c=32107;c<=32130;c++)M[c]=0;for(c=32133;c<=32159;c++)M[c]=0;for(c=32164;c<=32167;c++)M[c]=2;for(c=32180;c<=32199;c++)M[c]=0;for(c=32201;c<=32260;c++)M[c]=0;for(c=32301;c<=32360;c++)M[c]=0;for(c=32401;c<=32460;c++)M[c]=0;for(c=32501;c<=32560;c++)M[c]=0;for(c=32601;c<=32662;c++)M[c]=0;for(c=32664;c<=32667;c++)M[c]=2;for(c=32701;c<=32761;c++)M[c]=0;for(c=53001;c<=53004;c++)M[c]=0;for(c=53008;c<=53019;c++)M[c]=0;for(c=53021;c<=53032;c++)M[c]=0;for(c=53034;c<=53037;c++)M[c]=0;for(c=53042;c<=53046;c++)M[c]=0;for(c=53074;c<=53080;c++)M[c]=0;for(c=54001;c<=54004;c++)M[c]=0;for(c=54008;c<=54019;c++)M[c]=0;for(c=54021;c<=54032;c++)M[c]=0;for(c=54034;c<=54037;c++)M[c]=0;for(c=54042;c<=54046;c++)M[c]=0;for(c=54048;c<=54053;c++)M[c]=0;for(c=54074;c<=54080;c++)M[c]=0;for(c=54098;c<=54101;c++)M[c]=0;for(c=102001;c<=102040;c++)M[c]=0;for(c=102042;c<=102063;c++)M[c]=0;for(c=102065;c<=102067;c++)M[c]=0;for(c=102070;c<=102117;c++)M[c]=0;for(c=102122;c<=102216;c++)M[c]=0;for(c=102221;c<=102377;c++)M[c]=0;for(c=102382;c<=102388;c++)M[c]=0;for(c=102389;c<=102398;c++)M[c]=2;for(c=102399;c<=102444;c++)M[c]=0;for(c=102445;c<=102447;c++)M[c]=2;for(c=102448;c<=102458;c++)M[c]=0;for(c=102459;c<=102468;c++)M[c]=2;for(c=102469;c<=102499;c++)M[c]=0;for(c=102500;c<=102519;c++)M[c]=1;for(c=102520;c<=102524;c++)M[c]=0;for(c=102525;c<=102529;c++)M[c]=2;for(c=102530;c<=102588;c++)M[c]=0;for(c=102590;c<=102598;c++)M[c]=0;for(c=102601;c<=102603;c++)M[c]=0;for(c=102605;c<=102628;c++)M[c]=0;for(c=102629;c<=102646;c++)M[c]=2;for(c=102648;c<=102700;c++)M[c]=2;for(c=102701;c<=102703;c++)M[c]=0;for(c=102707;c<=102730;c++)M[c]=2;for(c=102733;c<=102758;c++)M[c]=2;for(c=102767;c<=102900;c++)M[c]=0;for(c=102901;c<=102933;c++)M[c]=2;for(c=102934;c<=102950;c++)M[c]=13;for(c=102951;c<=102963;c++)M[c]=0;for(c=102965;c<=102969;c++)M[c]=0;for(c=102971;c<=102973;c++)M[c]=0;for(c=102975;c<=102989;c++)M[c]=0;for(c=102990;c<=102992;c++)M[c]=1;for(c=102997;c<=103002;c++)M[c]=0;for(c=103003;c<=103008;c++)M[c]=2;for(c=103009;c<=103011;c++)M[c]=0;for(c=103012;c<=103014;c++)M[c]=2;for(c=103019;c<=103021;c++)M[c]=0;for(c=103022;c<=103024;c++)M[c]=2;for(c=103029;c<=103031;c++)M[c]=0;for(c=103032;c<=103034;c++)M[c]=2;for(c=103065;c<=103068;c++)M[c]=0;for(c=103074;c<=103076;c++)M[c]=0;for(c=103077;c<=103079;c++)M[c]=1;for(c=103080;c<=103082;c++)M[c]=0;for(c=103083;c<=103085;c++)M[c]=2;for(c=103090;c<=103093;c++)M[c]=0;for(c=103097;c<=103099;c++)M[c]=0;for(c=103100;c<=103102;c++)M[c]=2;for(c=103107;c<=103109;c++)M[c]=0;for(c=103110;c<=103112;c++)M[c]=2;for(c=103113;c<=103116;c++)M[c]=0;for(c=103117;c<=103120;c++)M[c]=2;for(c=103153;c<=103157;c++)M[c]=0;for(c=103158;c<=103162;c++)M[c]=2;for(c=103163;c<=103165;c++)M[c]=0;for(c=103166;c<=103168;c++)M[c]=1;for(c=103169;c<=103171;c++)M[c]=2;for(c=103186;c<=103188;c++)M[c]=0;for(c=103189;c<=103191;c++)M[c]=2;for(c=103192;c<=103195;c++)M[c]=0;for(c=103196;c<=103199;c++)M[c]=2;for(c=103200;c<=103224;c++)M[c]=0;for(c=103225;c<=103227;c++)M[c]=1;for(c=103232;c<=103237;c++)M[c]=0;for(c=103238;c<=103243;c++)M[c]=2;for(c=103244;c<=103246;c++)M[c]=0;for(c=103247;c<=103249;c++)M[c]=2;for(c=103254;c<=103256;c++)M[c]=0;for(c=103257;c<=103259;c++)M[c]=2;for(c=103264;c<=103266;c++)M[c]=0;for(c=103267;c<=103269;c++)M[c]=2;for(c=103300;c<=103375;c++)M[c]=0;for(c=103381;c<=103383;c++)M[c]=0;for(c=103384;c<=103386;c++)M[c]=1;for(c=103387;c<=103389;c++)M[c]=0;for(c=103390;c<=103392;c++)M[c]=2;for(c=103397;c<=103399;c++)M[c]=0;for(c=103400;c<=103471;c++)M[c]=2;for(c=103476;c<=103478;c++)M[c]=0;for(c=103479;c<=103481;c++)M[c]=2;for(c=103486;c<=103488;c++)M[c]=0;for(c=103489;c<=103491;c++)M[c]=2;for(c=103492;c<=103495;c++)M[c]=0;for(c=103496;c<=103499;c++)M[c]=2;for(c=103528;c<=103543;c++)M[c]=0;for(c=103544;c<=103548;c++)M[c]=2;for(c=103549;c<=103551;c++)M[c]=0;for(c=103552;c<=103554;c++)M[c]=1;for(c=103555;c<=103557;c++)M[c]=2;for(c=103558;c<=103560;c++)M[c]=0;for(c=103571;c<=103573;c++)M[c]=0;for(c=103574;c<=103576;c++)M[c]=2;for(c=103577;c<=103580;c++)M[c]=0;for(c=103581;c<=103583;c++)M[c]=2;for(c=103595;c<=103694;c++)M[c]=0;for(c=103696;c<=103699;c++)M[c]=0;for(c=103700;c<=103793;c++)M[c]=2;for(c=103794;c<=103890;c++)M[c]=0;for(c=103891;c<=103896;c++)M[c]=2;for(c=103900;c<=103971;c++)M[c]=2;for(c=103972;c<=103977;c++)M[c]=0;for(c=112e3;c<=112101;c++)M[c]=0});function cc(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let r=e.wkid,n=t.wkid;if(r!=null||n!=null){if(r===n||ks(e)&&ks(t))return!0;let s=e.latestWkid;if(s!=null&&n===s)return!0;let l=t.latestWkid;return l!=null&&r===l}let i,o;return e.wkt2&&t.wkt2?(i=e.wkt2,o=t.wkt2):e.wkt&&t.wkt&&(i=e.wkt,o=t.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function fd(e){let t=e?.wkid;return t!=null&&t>=2e3&&RF[t]||null}function J1(e){if(!FF(e))return!1;let{wkid:t}=e;if(t)return M[t]==null;let r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function Rm(e){return e?.wkid===4326}function ks(e){let t=e?.wkid;return t!=null&&t>=2e3&&OF.includes(t)}function O3(e){return e===Nm.GCSMARS2000||e===Nm.GCSMARS2000_SPHERE}function R3(e){return e===Nm.GCSMOON2000}function DF(e){let t=e?.wkid;return t!=null&&t>=2e3&&$K.includes(t)}function FF(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var OF,FK,$K,Om,N3,k3,RF,D3,F3,$F,Ta=O(()=>{gl();kF();NF();L3();OF=[102100,102113,3857,3785,900913],FK=[104905,104971],$K=[4326,...OF,...FK],Om=[-20037508342788905e-9,20037508342788905e-9],N3=[-20037508342787e-6,20037508342787e-6],k3={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:Om,origin:N3,dx:1e-5},RF={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:Om,origin:N3,dx:1e-5},102100:k3,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:Om,origin:N3,dx:1e-5},3857:k3,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:k3};D3={wkid:4326,wkt:ys(RF[4326].wkTemplate,{Central_Meridian:"0.0"})},F3={wkid:102100,latestWkid:3857},$F={wkid:32662}});function $3(e){return{wkt:`GEOCCS["Spherical geocentric",
10
+ take care to ensure page security.`)})(n)+e[i+1],e[0]),r:hE}),ZN=new Map,gE=e=>(t,...r)=>{let n=r.length,i,o,s=[],l=[],a,d=0,h=!1;for(;d<n;){for(a=t[d];d<n&&(o=r[d],(i=jJ(o))!==void 0);)a+=i+t[++d],h=!0;d!==n&&l.push(o),s.push(a),d++}if(d===n&&s.push(t[n]),h){let g=s.join("$$lit$$");(t=ZN.get(g))===void 0&&(s.raw=s,ZN.set(g,t=s)),r=l}return e(t,...r)},bm=gE(xe),Fbe=gE(Ps),$be=gE(zk)});function HJ(e){return`${e.split("-").map((t,r)=>r===0?t:`${t[0].toUpperCase()}${t.slice(1)}`).join("")}${qJ.includes(e)?"Input":"Change"}`}function vE(e){return"checked"in e}function ZJ(e,t){if(Yl(t.parentElement,"[form]"))return!0;let r="calciteInternalFormComponentRegister",n=!1;return e.addEventListener(r,i=>{n=i.composedPath().some(o=>bE.has(o)),i.stopPropagation()},{once:!0}),t.dispatchEvent(new CustomEvent(r,{bubbles:!0,composed:!0})),n}function YJ(e,{status:t,message:r,icon:n}){"status"in e&&(e.status=t),"validationIcon"in e&&typeof e.validationIcon!="string"&&(e.validationIcon=n),"validationMessage"in e&&!e.validationMessage&&(e.validationMessage=r)}function KN(e){return e.nodeName==="CALCITE-RADIO-BUTTON"?Yl(e,"calcite-radio-button-group"):e}function JN(e){let t=e?.target,r=t?.validationMessage,n=KN(t?.parentElement);if(!n)return;let i=n?.nodeName?.toLowerCase(),o=i?.split("-");if(o.length<2||o[0]!=="calcite")return;e?.preventDefault(),"validity"in n&&(n.validity=t?.validity),n.dispatchEvent(JJ),YJ(n,{message:r,icon:!0,status:"invalid"});let s=HJ(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=t?.validity)},{once:!0})}function hb(e){let{formEl:t}=e;return t?(t.addEventListener("invalid",JN,!0),t.requestSubmit(),t.removeEventListener("invalid",JN,!0),requestAnimationFrame(()=>{let r=t.querySelectorAll("[status=invalid]");for(let n of r)if(n?.validationMessage){n?.setFocus();break}}),!0):!1}function eO(e){e.formEl?.reset()}function tO(e){let{el:t,value:r}=e,n=_E(e);if(!n||ZJ(n,t))return;e.formEl=n,e.defaultValue=r,vE(e)&&(e.defaultChecked=e.checked);let i=XJ.bind(e);n.addEventListener("reset",i),yE.set(e.el,i),bE.add(t)}function _E(e){let{el:t,form:r}=e;return r?ed(t,{id:r}):Yl(t,"form")}function XJ(){if("status"in this&&(this.status="idle"),"validationIcon"in this&&(this.validationIcon=!1),"validationMessage"in this&&(this.validationMessage=""),vE(this)){this.checked=this.defaultChecked;return}this.value=this.defaultValue,this.onFormReset?.()}function rO(e){let{el:t,formEl:r}=e;if(!r)return;let n=yE.get(t);r.removeEventListener("reset",n),yE.delete(t),e.formEl=null,bE.delete(t)}function QJ(e){let{el:t,formEl:r,name:n,value:i}=e,{ownerDocument:o}=t,s=t.querySelectorAll(`input[slot="${wE}"]`);if(!r||!n){s.forEach(g=>{XN(g),g.remove()});return}let l=Array.isArray(i)?i:[i],a=[],d=new Set;s.forEach(g=>{let b=l.find(S=>S==g.value);b!=null?(d.add(b),QN(e,g,b)):a.push(g)});let h;l.forEach(g=>{if(d.has(g))return;let b=a.pop();b||(b=o.createElement("input"),b.slot=wE),h||(h=o.createDocumentFragment()),h.append(b),b.addEventListener("input",nO),QN(e,b,g)}),h&&t.append(h),a.forEach(g=>{XN(g),g.remove()})}function QN(e,t,r){let{defaultValue:n,disabled:i,form:o,name:s,required:l}=e;t.defaultValue=n,t.disabled=i,t.name=s,t.required=l,t.tabIndex=-1,o?t.setAttribute("form",o):t.removeAttribute("form"),vE(e)?(t.checked=e.checked,t.defaultChecked=e.defaultChecked,t.value=e.checked?r||"on":""):t.value=r||"",e.syncHiddenFormInput?.(t);let a=KN(e.el);if(a&&"validity"in a)for(let d in{...t?.validity})a.validity[d]=t.validity[d]}var qJ,wE,yE,bE,JJ,gb,nO,XN,iO,xE=O(()=>{Dr();Tn();qJ=["calcite-input","calcite-input-number","calcite-input-text","calcite-text-area"];wE="hidden-form-input";yE=new WeakMap,bE=new WeakSet;JJ=new CustomEvent("calciteInvalid",{bubbles:!0,composed:!0});gb="calciteInternalHiddenInputInput",nO=e=>{e.target.dispatchEvent(new CustomEvent(gb,{bubbles:!0}))},XN=e=>e.removeEventListener("input",nO);iO=({component:e})=>(QJ(e),xe`<slot name=${wE}></slot>`)});function KJ(){let{disabled:e}=this;e||HTMLElement.prototype.click.call(this)}function oO(e){e.target.disabled&&e.preventDefault()}function aO(e){e.target.disabled&&(e.stopImmediatePropagation(),e.preventDefault())}function Kl(e){if(e.disabled){e.el.setAttribute("aria-disabled","true"),e.el.contains(document.activeElement)&&document.activeElement.blur(),eX(e);return}rX(e),e.el.removeAttribute("aria-disabled")}function eX(e){e.el.click=KJ,tX(e.el)}function tX(e){e.addEventListener("pointerdown",oO,wb),sO.forEach(t=>e.addEventListener(t,aO,wb))}function rX(e){delete e.el.click,nX(e.el)}function nX(e){e.removeEventListener("pointerdown",oO,wb),sO.forEach(t=>e.removeEventListener(t,aO,wb))}var sO,wb,iX,ec,E1=O(()=>{Dr();Fr();sO=["mousedown","mouseup","click"];wb={capture:!0};iX={container:"interaction-container"},ec=({children:e,disabled:t})=>xe`<div class=${_e(iX.container)} .inert=${t}>${e}</div>`});function sX(e,t){let r,n="custom-element-ancestor-check",i=o=>{o.stopImmediatePropagation();let s=o.composedPath();r=s.slice(s.indexOf(t),s.indexOf(e))};return e.addEventListener(n,i,{once:!0}),t.dispatchEvent(new CustomEvent(n,{composed:!0,bubbles:!0})),e.removeEventListener(n,i),r.filter(o=>o!==t&&o!==e).filter(o=>o.tagName?.includes("-")).length>0}function xm(e){if(!e)return;let t=oX(e.el);if(C1.has(t)&&t===e.labelEl||!t&&rd.has(e))return;let r=lX.bind(e);if(t){e.labelEl=t;let n=_m.get(t)||[];n.push(e),_m.set(t,n.sort(dO)),C1.has(e.labelEl)||(C1.set(e.labelEl,cO),e.labelEl.addEventListener(uO,cO)),rd.delete(e),document.removeEventListener(M1,P1.get(e)),yb.set(e,r),document.addEventListener(T1,r)}else rd.has(e)||(r(),document.removeEventListener(T1,yb.get(e)))}function vb(e){if(!e||(rd.delete(e),document.removeEventListener(M1,P1.get(e)),document.removeEventListener(T1,yb.get(e)),P1.delete(e),yb.delete(e),!e.labelEl))return;let t=_m.get(e.labelEl);t.length===1&&(e.labelEl.removeEventListener(uO,C1.get(e.labelEl)),C1.delete(e.labelEl)),_m.set(e.labelEl,t.filter(r=>r!==e).sort(dO)),e.labelEl=null}function dO(e,t){return VN(e.el,t.el)?-1:1}function A1(e){return e.label||e.labelEl?.textContent?.trim()||""}function cO(e){let t=e.detail.sourceEvent.target,r=_m.get(this),n=r.find(o=>o.el===t);if(r.includes(n))return;let i=r[0];i.disabled||i.onLabelClick(e)}function aX(){rd.has(this)&&xm(this)}function lX(){rd.add(this);let e=P1.get(this)||aX.bind(this);P1.set(this,e),document.addEventListener(M1,e)}async function pO(e){if(await e.componentOnReady(),_m.has(e))return;let t=e.ownerDocument?.getElementById(e.for);t&&requestAnimationFrame(()=>{for(let r of rd)if(r.el===t){xm(r);break}})}var uO,M1,T1,lO,_m,C1,P1,yb,rd,oX,bb=O(()=>{Tn();uO="calciteInternalLabelClick",M1="calciteInternalLabelConnected",T1="calciteInternalLabelDisconnected",lO="calcite-label",_m=new WeakMap,C1=new WeakMap,P1=new WeakMap,yb=new WeakMap,rd=new Set,oX=e=>{let{id:t}=e,r=t&&ed(e,{selector:`${lO}[for="${t}"]`});if(r)return r;let n=Yl(e,lO);return!n||sX(n,e)?null:n}});function Un(e){mO.set(e,new Promise(t=>fO.set(e,t)))}function zn(e){fO.get(e)()}function cX(e){return mO.get(e)}async function Wn(e){if(await cX(e),!!oo())return e.requestUpdate(),new Promise(t=>requestAnimationFrame(()=>t()))}var fO,mO,Sa=O(()=>{cr();fO=new WeakMap,mO=new WeakMap});var hO=O(()=>{cr();});function ei(e){return e==="l"?"m":"s"}var Sm=O(()=>{hO();});var Ni,uX,xb,_b,gO=O(()=>{cr();Dr();Wo();mb();Fr();Hu();xE();E1();bb();Sa();Xl();Sm();Ms();Tn();En();Ni={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"},uX=Dt`: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}:host([round]){border-radius:50px}:host([round]) a,:host([round]) button{border-radius:50px}:host button,:host a{outline-color:transparent}:host button:focus,:host a: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 button,:host a{--calcite-button-content-margin-internal: .5rem;--calcite-button-padding-x-internal: 7px;--calcite-button-padding-y-internal: 3px;padding-block:var(--calcite-button-padding-y-internal);padding-inline:var(--calcite-button-padding-x-internal);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-radius:0;border-style:none;text-align:center;font-family:inherit;font-weight:var(--calcite-font-weight-normal);text-decoration-line:none;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 button:hover,:host a:hover{text-decoration-line:none}:host button span,:host a span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.content{margin-inline:var(--calcite-button-content-margin-internal)}.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-button-content-margin-internal: .75rem}:host([scale=l]) button,:host([scale=l]) a{--calcite-button-content-margin-internal: 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-button-content-margin-internal)}.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-button-content-margin-internal)}: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{border-width:1px;border-style:solid;border-color:transparent}:host([kind=brand]) button,:host([kind=brand]) a{background-color:var(--calcite-color-brand);color:var(--calcite-color-text-inverse)}:host([kind=brand]) button:hover,:host([kind=brand]) button:focus,:host([kind=brand]) a:hover,:host([kind=brand]) a:focus{background-color:var(--calcite-color-brand-hover)}:host([kind=brand]) button:active,:host([kind=brand]) a:active{background-color:var(--calcite-color-brand-press)}:host([kind=brand]) button calcite-loader,:host([kind=brand]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=danger]) button,:host([kind=danger]) a{background-color:var(--calcite-color-status-danger);color:var(--calcite-color-text-inverse)}:host([kind=danger]) button:hover,:host([kind=danger]) button:focus,:host([kind=danger]) a:hover,:host([kind=danger]) a:focus{background-color:var(--calcite-color-status-danger-hover)}:host([kind=danger]) button:active,:host([kind=danger]) a:active{background-color:var(--calcite-color-status-danger-press)}:host([kind=danger]) button calcite-loader,:host([kind=danger]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([kind=neutral]) button,:host([kind=neutral]) a{background-color:var(--calcite-color-foreground-3);color:var(--calcite-color-text-1)}:host([kind=neutral]) button:hover,:host([kind=neutral]) button:focus,:host([kind=neutral]) a:hover,:host([kind=neutral]) a:focus{background-color:var(--calcite-color-foreground-2)}:host([kind=neutral]) button:active,:host([kind=neutral]) a:active{background-color:var(--calcite-color-foreground-1)}:host([kind=neutral]) button calcite-loader,:host([kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([kind=inverse]) button,:host([kind=inverse]) a{color:var(--calcite-color-text-inverse);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{background-color:var(--calcite-color-inverse-hover)}:host([kind=inverse]) button:active,:host([kind=inverse]) a:active{background-color:var(--calcite-color-inverse-press)}:host([kind=inverse]) button calcite-loader,:host([kind=inverse]) a calcite-loader{color:var(--calcite-color-text-inverse)}:host([appearance=outline-fill]) button,:host([appearance=outline-fill]) a{border-width:1px;border-style:solid;background-color:var(--calcite-color-foreground-1);box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline-fill][kind=brand]) button,:host([appearance=outline-fill][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:hover,:host([appearance=outline-fill][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline-fill][kind=brand]) button:focus,:host([appearance=outline-fill][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline-fill][kind=brand]) button:active,:host([appearance=outline-fill][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline-fill][kind=brand]) button calcite-loader,:host([appearance=outline-fill][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline-fill][kind=danger]) button,:host([appearance=outline-fill][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:hover,:host([appearance=outline-fill][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline-fill][kind=danger]) button:focus,:host([appearance=outline-fill][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=danger]) button:active,:host([appearance=outline-fill][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline-fill][kind=danger]) button calcite-loader,:host([appearance=outline-fill][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline-fill][kind=neutral]) button,:host([appearance=outline-fill][kind=neutral]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline-fill][kind=neutral]) button:hover,:host([appearance=outline-fill][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:focus,:host([appearance=outline-fill][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button:active,:host([appearance=outline-fill][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline-fill][kind=neutral]) button calcite-loader,:host([appearance=outline-fill][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline-fill][kind=inverse]) button,:host([appearance=outline-fill][kind=inverse]) a{background-color:var(--calcite-color-foreground-1);color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:hover,:host([appearance=outline-fill][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline-fill][kind=inverse]) button:focus,:host([appearance=outline-fill][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline-fill][kind=inverse]) button:active,:host([appearance=outline-fill][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline-fill][kind=inverse]) button calcite-loader,:host([appearance=outline-fill][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline]) button,:host([appearance=outline]) a{border-width:1px;border-style:solid;background-color:transparent;box-shadow:inset 0 0 0 1px transparent}:host([appearance=outline][kind=brand]) button,:host([appearance=outline][kind=brand]) a{border-color:var(--calcite-color-brand);background-color:transparent;color:var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:hover,:host([appearance=outline][kind=brand]) a:hover{border-color:var(--calcite-color-brand-hover);color:var(--calcite-color-brand-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-brand-hover)}:host([appearance=outline][kind=brand]) button:focus,:host([appearance=outline][kind=brand]) a:focus{border-color:var(--calcite-color-brand);color:var(--calcite-color-brand);box-shadow:inset 0 0 0 2px var(--calcite-color-brand)}:host([appearance=outline][kind=brand]) button:active,:host([appearance=outline][kind=brand]) a:active{border-color:var(--calcite-color-brand-press);color:var(--calcite-color-brand-press);box-shadow:inset 0 0 0 2px var(--calcite-color-brand-press)}:host([appearance=outline][kind=brand]) button calcite-loader,:host([appearance=outline][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=outline][kind=danger]) button,:host([appearance=outline][kind=danger]) a{border-color:var(--calcite-color-status-danger);background-color:transparent;color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:hover,:host([appearance=outline][kind=danger]) a:hover{border-color:var(--calcite-color-status-danger-hover);color:var(--calcite-color-status-danger-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-status-danger-hover)}:host([appearance=outline][kind=danger]) button:focus,:host([appearance=outline][kind=danger]) a:focus{border-color:var(--calcite-color-status-danger);color:var(--calcite-color-status-danger);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger)}:host([appearance=outline][kind=danger]) button:active,:host([appearance=outline][kind=danger]) a:active{border-color:var(--calcite-color-status-danger-press);color:var(--calcite-color-status-danger-press);box-shadow:inset 0 0 0 2px var(--calcite-color-status-danger-press)}:host([appearance=outline][kind=danger]) button calcite-loader,:host([appearance=outline][kind=danger]) a calcite-loader{color:var(--calcite-color-status-danger)}:host([appearance=outline][kind=neutral]) button,:host([appearance=outline][kind=neutral]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-border-1)}:host([appearance=outline][kind=neutral]) button:hover,:host([appearance=outline][kind=neutral]) a:hover{box-shadow:inset 0 0 0 1px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:focus,:host([appearance=outline][kind=neutral]) a:focus{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button:active,:host([appearance=outline][kind=neutral]) a:active{box-shadow:inset 0 0 0 2px var(--calcite-color-foreground-3)}:host([appearance=outline][kind=neutral]) button calcite-loader,:host([appearance=outline][kind=neutral]) a calcite-loader{color:var(--calcite-color-text-1)}:host([appearance=outline][kind=inverse]) button,:host([appearance=outline][kind=inverse]) a{background-color:transparent;color:var(--calcite-color-text-1);border-color:var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:hover,:host([appearance=outline][kind=inverse]) a:hover{border-color:var(--calcite-color-inverse-hover);box-shadow:inset 0 0 0 1px var(--calcite-color-inverse-hover)}:host([appearance=outline][kind=inverse]) button:focus,:host([appearance=outline][kind=inverse]) a:focus{border-color:var(--calcite-color-inverse);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse)}:host([appearance=outline][kind=inverse]) button:active,:host([appearance=outline][kind=inverse]) a:active{border-color:var(--calcite-color-inverse-press);box-shadow:inset 0 0 0 2px var(--calcite-color-inverse-press)}:host([appearance=outline][kind=inverse]) button calcite-loader,:host([appearance=outline][kind=inverse]) a calcite-loader{color:var(--calcite-color-text-1)}: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: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{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:hover,:host([appearance=transparent][kind=brand]) a:hover{color:var(--calcite-color-brand-hover)}:host([appearance=transparent][kind=brand]) button:focus,:host([appearance=transparent][kind=brand]) a:focus{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=brand]) button:active,:host([appearance=transparent][kind=brand]) a:active{color:var(--calcite-color-brand-press)}:host([appearance=transparent][kind=brand]) button calcite-loader,:host([appearance=transparent][kind=brand]) a calcite-loader{color:var(--calcite-color-brand)}:host([appearance=transparent][kind=danger]) button,:host([appearance=transparent][kind=danger]) a{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:hover,:host([appearance=transparent][kind=danger]) a:hover{color:var(--calcite-color-status-danger-hover)}:host([appearance=transparent][kind=danger]) button:focus,:host([appearance=transparent][kind=danger]) a:focus{color:var(--calcite-color-status-danger)}:host([appearance=transparent][kind=danger]) button:active,:host([appearance=transparent][kind=danger]) a:active{color:var(--calcite-color-status-danger-press)}:host([appearance=transparent][kind=danger]) button calcite-loader,:host([appearance=transparent][kind=danger]) a calcite-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{color:var(--calcite-color-text-1)}:host([appearance=transparent][kind=neutral].cancel-editing-button) button{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-button-padding-y-internal: 0}:host([appearance=transparent][kind=neutral].cancel-editing-button) button:hover{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{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-button-padding-x-internal: .5rem}:host([scale=s]) button,:host([scale=s]) a{--calcite-button-padding-y-internal: 3px}:host([scale=m]) button.content--slotted,:host([scale=m]) a.content--slotted{--calcite-button-padding-x-internal: 11px;font-size:var(--calcite-font-size--1);line-height:1rem}:host([scale=m]) button,:host([scale=m]) a{--calcite-button-padding-y-internal: 7px}:host([scale=m][appearance=transparent]) button.content--slotted,:host([scale=m][appearance=transparent]) a.content--slotted{--calcite-button-padding-x-internal: .75rem}:host([scale=l]) button.content--slotted,:host([scale=l]) a.content--slotted{--calcite-button-padding-x-internal: 15px;font-size:var(--calcite-font-size-0);line-height:1.25rem}:host([scale=l]) .button-padding{--calcite-button-padding-x-internal: 1rem;--calcite-button-padding-y-internal: 11px}:host([scale=l]) .button-padding--shrunk{--calcite-button-padding-y-internal: 9px}:host([scale=s]) button:not(.content--slotted),:host([scale=s]) a:not(.content--slotted){--calcite-button-padding-x-internal: .125rem;--calcite-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-button-padding-x-internal: .125rem;--calcite-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-button-padding-x-internal: .125rem;--calcite-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-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-button-padding-x-internal: 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-button-padding-x-internal: 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-button-padding-x-internal: 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-button-padding-x-internal: 33px}:host([scale=l][icon-start][icon-end]) button:not(.content--slotted),:host([scale=l][icon-start][icon-end]) a:not(.content--slotted){--calcite-button-padding-x-internal: 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-button-padding-x-internal: 2.75rem}:host([hidden]){display:none}[hidden]{display:none}`,xb=class xb extends $t{constructor(){super(...arguments),this.attributeWatch=Uv(["aria-expanded"],this.handleGlobalAttributesChanged),this.contentEl=ki(),this.mutationObserver=Kn("mutation",()=>this.updateHasContent()),this.resizeObserver=Kn("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=pn(),this.round=!1,this.scale="m",this.splitChild=!1,this.type="button",this.width="auto"}async setFocus(){await Wn(this),this.childEl?.focus()}connectedCallback(){super.connectedCallback(),this.setupTextContentObserver(),xm(this),this.formEl=_E(this)}async load(){Un(this),oo()&&this.updateHasContent()}updated(){Kl(this)}loaded(){zn(this),this.setTooltipText()}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),vb(this),this.resizeObserver?.disconnect(),this.formEl=null}handleGlobalAttributesChanged(){this.requestUpdate()}updateHasContent(){this.hasContent=DN(this.el)}setupTextContentObserver(){this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}onLabelClick(){this.handleClick(),this.setFocus()}handleClick(){let{type:t}=this;this.href||(t==="submit"?hb(this):t==="reset"&&eO(this))}setTooltipText(){let{contentEl:{value:t}}=this;t&&(this.tooltipText=t.offsetWidth<t.scrollWidth&&this.el.innerText||null)}setChildEl(t){this.childEl=t,t&&this.resizeObserver?.observe(t)}render(){let t=this.href?"a":"button",r=this.href?Ql`a`:Ql`button`,n=this.loading?xe`<div class=${_e(Ni.buttonLoader)}><calcite-loader class=${_e(this.loading?Ni.loadingIn:Ni.loadingOut)} inline .label=${this.messages.loading} .scale=${this.scale==="l"?"m":"s"}></calcite-loader></div>`:null,i=!this.iconStart&&!this.iconEnd,o=xe`<calcite-icon class=${_e({[Ni.icon]:!0,[Ni.iconStart]:!0})} .flipRtl=${this.iconFlipRtl==="start"||this.iconFlipRtl==="both"} .icon=${this.iconStart} .scale=${ei(this.scale)}></calcite-icon>`,s=xe`<calcite-icon class=${_e({[Ni.icon]:!0,[Ni.iconEnd]:!0})} .flipRtl=${this.iconFlipRtl==="end"||this.iconFlipRtl==="both"} .icon=${this.iconEnd} .scale=${ei(this.scale)}></calcite-icon>`,l=xe`<span class=${_e(Ni.content)} ${At(this.contentEl)}><slot></slot></span>`;return ec({disabled:this.disabled,children:bm`<${r} .ariaBusy=${this.loading} .ariaExpanded=${this.el.ariaExpanded?this.el.ariaExpanded:null} .ariaLabel=${this.loading?this.messages.loading:A1(this)} aria-live=polite class=${_e({[Ni.buttonPadding]:i,[Ni.buttonPaddingShrunk]:!i,[Ni.contentSlotted]:this.hasContent,[Ni.iconStartEmpty]:!this.iconStart,[Ni.iconEndEmpty]:!this.iconEnd})} .disabled=${t==="button"?this.disabled:null} download=${(t==="a"?this.download===!0||this.download===""?"":this.download||null:null)??pi} href=${(t==="a"&&this.href)??pi} name=${(t==="button"&&this.name)??pi} @click=${this.handleClick} rel=${(t==="a"&&this.rel)??pi} tabindex=${(this.disabled?-1:null)??pi} target=${(t==="a"&&this.target)??pi} title=${this.tooltipText??pi} type=${(t==="button"?this.type:null)??pi} ${At(this.setChildEl)}>${n}${this.iconStart?o:null}${this.hasContent?l:null}${this.iconEnd?s:null}</${r}>`})}};xb.properties={hasContent:16,tooltipText:16,alignment:3,appearance:3,disabled:7,download:[3,{converter:ba}],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},xb.styles=uX;_b=xb;Gt("calcite-button",_b)});var wO={};Qs(wO,{Button:()=>_b});var yO=O(()=>{sb();td();gO()});var vO,bO,dX,Sb,SE,_O=O(()=>{cr();Wo();Dr();Fr();Xl();Tn();Ms();En();vO={scrim:"scrim",content:"content"},bO={s:72,l:480},dX=Dt`: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}`,Sb=class Sb extends $t{constructor(){super(...arguments),this.resizeObserver=Kn("resize",()=>this.handleResize()),this.hasContent=!1,this.loading=!1,this.messages=pn()}connectedCallback(){super.connectedCallback(),this.resizeObserver?.observe(this.el)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}handleDefaultSlotChange(t){this.hasContent=RN(t)}storeLoaderEl(t){this.loaderEl=t,this.handleResize()}getScale(t){return t<bO.s?"s":t>=bO.l?"l":"m"}handleResize(){let{loaderEl:t,el:r}=this;t&&(this.loaderScale=this.getScale(Math.min(r.clientHeight,r.clientWidth)??0))}render(){let{hasContent:t,loading:r,messages:n}=this;return xe`<div class=${_e(vO.scrim)}>${r?xe`<calcite-loader .label=${n.loading} .scale=${this.loaderScale} ${At(this.storeLoaderEl)}></calcite-loader>`:null}<div class=${_e(vO.content)} .hidden=${!t}><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></div>`}};Sb.properties={hasContent:16,loaderScale:16,loading:7,messageOverrides:0},Sb.styles=dX;SE=Sb;Gt("calcite-scrim",SE)});var EE=O(()=>{sb();_O()});var ur,tc=O(()=>{Dr();va();Kv();ur=io(class extends no{constructor(){super(...arguments),this.key=Re}render(e,t){return this.key=e,t}update(e,[t,r]){return t!==this.key&&(Qv(e),this.key=t),r}})});var Bo,pX,fX,Eb,CE,xO=O(()=>{cr();Dr();tc();Wo();Fr();wm();E1();Sa();Xl();Sm();Ms();En();Bo={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"},pX={tooltip:"tooltip"},fX=Dt`: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}: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-color-text-3));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}`,Eb=class Eb extends $t{constructor(){super(...arguments),this.guid=`calcite-action-${_a()}`,this.buttonEl=ki(),this.buttonId=`${this.guid}-button`,this.indicatorId=`${this.guid}-indicator`,this.mutationObserver=Kn("mutation",()=>this.requestUpdate()),this.active=!1,this.appearance="solid",this.compact=!1,this.disabled=!1,this.iconFlipRtl=!1,this.indicator=!1,this.loading=!1,this.messages=pn({blocking:!0}),this.scale="m",this.textEnabled=!1}async setFocus(){await Wn(this),this.buttonEl.value?.focus()}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0})}async load(){Un(this)}updated(){Kl(this)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect()}handleTooltipSlotChange(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"))[0];r&&(r.referenceElement=this.buttonEl.value)}renderTextContainer(){let{text:t,textEnabled:r}=this,n={[Bo.textContainer]:!0,[Bo.textContainerVisible]:r};return t?ur("text-container",xe`<div class=${_e(n)}>${t}</div>`):null}renderIndicatorText(){let{indicator:t,messages:r,indicatorId:n,buttonId:i}=this;return xe`<div aria-labelledby=${i??pi} aria-live=polite class=${_e(Bo.indicatorText)} id=${n??pi} role=region>${t?r.indicator:null}</div>`}renderIconContainer(){let{loading:t,icon:r,scale:n,el:i,iconFlipRtl:o,indicator:s}=this,l=n==="l"?"l":"m",a=t?xe`<calcite-loader inline .label=${this.messages.loading} .scale=${l}></calcite-loader>`:null,d=r?xe`<calcite-icon class=${_e({[Bo.indicatorWithIcon]:s})} .flipRtl=${o} .icon=${r} .scale=${ei(this.scale)}></calcite-icon>`:null,h=a||d,g=h||i.children?.length,b=xe`<div class=${_e({[Bo.slotContainer]:!0,[Bo.slotContainerHidden]:t})}><slot></slot></div>`;return g?ur("icon-container",xe`<div aria-hidden=true class=${_e(Bo.iconContainer)}>${h}${b}</div>`):null}render(){let{active:t,compact:r,disabled:n,icon:i,loading:o,textEnabled:s,label:l,text:a,indicator:d,indicatorId:h,buttonId:g,messages:b}=this,S=l||a||"",P=d?b.indicatorLabel.replace("{label}",S):S,A={[Bo.button]:!0,[Bo.buttonTextVisible]:s,[Bo.buttonCompact]:r};return ec({disabled:n,children:xe`<button aria-controls=${(d?h:null)??pi} .ariaBusy=${o} .ariaLabel=${P} .ariaPressed=${t} class=${_e(A)} .disabled=${n} id=${g??pi} ${At(this.buttonEl)}>${this.renderIconContainer()}${this.renderTextContainer()}${!i&&d&&ur("indicator-no-icon",xe`<div class=${_e(Bo.indicatorWithoutIcon)}></div>`)||""}</button><slot name=${pX.tooltip} @slotchange=${this.handleTooltipSlotChange}></slot>${this.renderIndicatorText()}`})}};Eb.properties={active:7,alignment:3,appearance:3,compact:7,disabled:7,icon:1,iconFlipRtl:7,indicator:7,label:1,loading:7,messageOverrides:0,scale:3,text:1,textEnabled:7},Eb.styles=fX;CE=Eb;Gt("calcite-action",CE)});var Cb=O(()=>{sb();td();xO()});function Tb(e,t,r){return Ea(e,rc(t,r))}function nc(e,t){return typeof e=="function"?e(t):e}function As(e){return e.split("-")[0]}function jo(e){return e.split("-")[1]}function ME(e){return e==="x"?"y":"x"}function Pb(e){return e==="y"?"height":"width"}function nd(e){return["top","bottom"].includes(As(e))?"y":"x"}function Mb(e){return ME(nd(e))}function AE(e,t,r){r===void 0&&(r=!1);let n=jo(e),i=Mb(e),o=Pb(i),s=i==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=L1(s)),[s,L1(s)]}function EO(e){let t=L1(e);return[I1(e),t,I1(t)]}function I1(e){return e.replace(/start|end/g,t=>hX[t])}function gX(e,t,r){let n=["left","right"],i=["right","left"],o=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:n:t?n:i;case"left":case"right":return t?o:s;default:return[]}}function CO(e,t,r,n){let i=jo(e),o=gX(As(e),r==="start",n);return i&&(o=o.map(s=>s+"-"+i),t&&(o=o.concat(o.map(I1)))),o}function L1(e){return e.replace(/left|right|bottom|top/g,t=>mX[t])}function wX(e){return{top:0,right:0,bottom:0,left:0,...e}}function IE(e){return typeof e!="number"?wX(e):{top:e,right:e,bottom:e,left:e}}function id(e){let{x:t,y:r,width:n,height:i}=e;return{width:n,height:i,top:r,left:t,right:t+n,bottom:r+i,x:t,y:r}}var TE,SO,PE,rc,Ea,k1,N1,Go,mX,hX,Ab=O(()=>{TE=["top","right","bottom","left"],SO=["start","end"],PE=TE.reduce((e,t)=>e.concat(t,t+"-"+SO[0],t+"-"+SO[1]),[]),rc=Math.min,Ea=Math.max,k1=Math.round,N1=Math.floor,Go=e=>({x:e,y:e}),mX={left:"right",right:"left",bottom:"top",top:"bottom"},hX={start:"end",end:"start"}});function TO(e,t,r){let{reference:n,floating:i}=e,o=nd(t),s=Mb(t),l=Pb(s),a=As(t),d=o==="y",h=n.x+n.width/2-i.width/2,g=n.y+n.height/2-i.height/2,b=n[l]/2-i[l]/2,S;switch(a){case"top":S={x:h,y:n.y-i.height};break;case"bottom":S={x:h,y:n.y+n.height};break;case"right":S={x:n.x+n.width,y:g};break;case"left":S={x:n.x-i.width,y:g};break;default:S={x:n.x,y:n.y}}switch(jo(t)){case"start":S[s]-=b*(r&&d?-1:1);break;case"end":S[s]+=b*(r&&d?-1:1);break}return S}async function Em(e,t){var r;t===void 0&&(t={});let{x:n,y:i,platform:o,rects:s,elements:l,strategy:a}=e,{boundary:d="clippingAncestors",rootBoundary:h="viewport",elementContext:g="floating",altBoundary:b=!1,padding:S=0}=nc(t,e),P=IE(S),F=l[b?g==="floating"?"reference":"floating":g],W=id(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(F)))==null||r?F:F.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(l.floating)),boundary:d,rootBoundary:h,strategy:a})),z=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(l.floating)),G=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},Y=id(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:z,offsetParent:q,strategy:a}):z);return{top:(W.top-Y.top+P.top)/G.y,bottom:(Y.bottom-W.bottom+P.bottom)/G.y,left:(W.left-Y.left+P.left)/G.x,right:(Y.right-W.right+P.right)/G.x}}function yX(e,t,r){return(e?[...r.filter(i=>jo(i)===e),...r.filter(i=>jo(i)!==e)]:r.filter(i=>As(i)===i)).filter(i=>e?jo(i)===e||(t?I1(i)!==i:!1):!0)}function PO(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function MO(e){return TE.some(t=>e[t]>=0)}async function vX(e,t){let{placement:r,platform:n,elements:i}=e,o=await(n.isRTL==null?void 0:n.isRTL(i.floating)),s=As(r),l=jo(r),a=nd(r)==="y",d=["left","top"].includes(s)?-1:1,h=o&&a?-1:1,g=nc(t,e),{mainAxis:b,crossAxis:S,alignmentAxis:P}=typeof g=="number"?{mainAxis:g,crossAxis:0,alignmentAxis:null}:{mainAxis:g.mainAxis||0,crossAxis:g.crossAxis||0,alignmentAxis:g.alignmentAxis};return l&&typeof P=="number"&&(S=l==="end"?P*-1:P),a?{x:S*h,y:b*d}:{x:b*d,y:S*h}}var AO,IO,LO,kO,NO,OO,RO,DO=O(()=>{Ab();Ab();AO=async(e,t,r)=>{let{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r,l=o.filter(Boolean),a=await(s.isRTL==null?void 0:s.isRTL(t)),d=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:h,y:g}=TO(d,n,a),b=n,S={},P=0;for(let A=0;A<l.length;A++){let{name:F,fn:W}=l[A],{x:z,y:q,data:G,reset:Y}=await W({x:h,y:g,initialPlacement:n,placement:b,strategy:i,middlewareData:S,rects:d,platform:s,elements:{reference:e,floating:t}});h=z??h,g=q??g,S={...S,[F]:{...S[F],...G}},Y&&P<=50&&(P++,typeof Y=="object"&&(Y.placement&&(b=Y.placement),Y.rects&&(d=Y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):Y.rects),{x:h,y:g}=TO(d,b,a)),A=-1)}return{x:h,y:g,placement:b,strategy:i,middlewareData:S}};IO=e=>({name:"arrow",options:e,async fn(t){let{x:r,y:n,placement:i,rects:o,platform:s,elements:l,middlewareData:a}=t,{element:d,padding:h=0}=nc(e,t)||{};if(d==null)return{};let g=IE(h),b={x:r,y:n},S=Mb(i),P=Pb(S),A=await s.getDimensions(d),F=S==="y",W=F?"top":"left",z=F?"bottom":"right",q=F?"clientHeight":"clientWidth",G=o.reference[P]+o.reference[S]-b[S]-o.floating[P],Y=b[S]-o.reference[S],ie=await(s.getOffsetParent==null?void 0:s.getOffsetParent(d)),U=ie?ie[q]:0;(!U||!await(s.isElement==null?void 0:s.isElement(ie)))&&(U=l.floating[q]||o.floating[P]);let me=G/2-Y/2,Ae=U/2-A[P]/2-1,Ee=rc(g[W],Ae),Ne=rc(g[z],Ae),we=Ee,ce=U-A[P]-Ne,J=U/2-A[P]/2+me,ee=Tb(we,J,ce),fe=!a.arrow&&jo(i)!=null&&J!==ee&&o.reference[P]/2-(J<we?Ee:Ne)-A[P]/2<0,pe=fe?J<we?J-we:J-ce:0;return{[S]:b[S]+pe,data:{[S]:ee,centerOffset:J-ee-pe,...fe&&{alignmentOffset:pe}},reset:fe}}});LO=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i;let{rects:o,middlewareData:s,placement:l,platform:a,elements:d}=t,{crossAxis:h=!1,alignment:g,allowedPlacements:b=PE,autoAlignment:S=!0,...P}=nc(e,t),A=g!==void 0||b===PE?yX(g||null,S,b):b,F=await Em(t,P),W=((r=s.autoPlacement)==null?void 0:r.index)||0,z=A[W];if(z==null)return{};let q=AE(z,o,await(a.isRTL==null?void 0:a.isRTL(d.floating)));if(l!==z)return{reset:{placement:A[0]}};let G=[F[As(z)],F[q[0]],F[q[1]]],Y=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:z,overflows:G}],ie=A[W+1];if(ie)return{data:{index:W+1,overflows:Y},reset:{placement:ie}};let U=Y.map(Ee=>{let Ne=jo(Ee.placement);return[Ee.placement,Ne&&h?Ee.overflows.slice(0,2).reduce((we,ce)=>we+ce,0):Ee.overflows[0],Ee.overflows]}).sort((Ee,Ne)=>Ee[1]-Ne[1]),Ae=((i=U.filter(Ee=>Ee[2].slice(0,jo(Ee[0])?2:3).every(Ne=>Ne<=0))[0])==null?void 0:i[0])||U[0][0];return Ae!==l?{data:{index:W+1,overflows:Y},reset:{placement:Ae}}:{}}}},kO=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;let{placement:i,middlewareData:o,rects:s,initialPlacement:l,platform:a,elements:d}=t,{mainAxis:h=!0,crossAxis:g=!0,fallbackPlacements:b,fallbackStrategy:S="bestFit",fallbackAxisSideDirection:P="none",flipAlignment:A=!0,...F}=nc(e,t);if((r=o.arrow)!=null&&r.alignmentOffset)return{};let W=As(i),z=nd(l),q=As(l)===l,G=await(a.isRTL==null?void 0:a.isRTL(d.floating)),Y=b||(q||!A?[L1(l)]:EO(l)),ie=P!=="none";!b&&ie&&Y.push(...CO(l,A,P,G));let U=[l,...Y],me=await Em(t,F),Ae=[],Ee=((n=o.flip)==null?void 0:n.overflows)||[];if(h&&Ae.push(me[W]),g){let J=AE(i,s,G);Ae.push(me[J[0]],me[J[1]])}if(Ee=[...Ee,{placement:i,overflows:Ae}],!Ae.every(J=>J<=0)){var Ne,we;let J=(((Ne=o.flip)==null?void 0:Ne.index)||0)+1,ee=U[J];if(ee)return{data:{index:J,overflows:Ee},reset:{placement:ee}};let fe=(we=Ee.filter(pe=>pe.overflows[0]<=0).sort((pe,Se)=>pe.overflows[1]-Se.overflows[1])[0])==null?void 0:we.placement;if(!fe)switch(S){case"bestFit":{var ce;let pe=(ce=Ee.filter(Se=>{if(ie){let ye=nd(Se.placement);return ye===z||ye==="y"}return!0}).map(Se=>[Se.placement,Se.overflows.filter(ye=>ye>0).reduce((ye,Fe)=>ye+Fe,0)]).sort((Se,ye)=>Se[1]-ye[1])[0])==null?void 0:ce[0];pe&&(fe=pe);break}case"initialPlacement":fe=l;break}if(i!==fe)return{reset:{placement:fe}}}return{}}}};NO=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){let{rects:r}=t,{strategy:n="referenceHidden",...i}=nc(e,t);switch(n){case"referenceHidden":{let o=await Em(t,{...i,elementContext:"reference"}),s=PO(o,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:MO(s)}}}case"escaped":{let o=await Em(t,{...i,altBoundary:!0}),s=PO(o,r.floating);return{data:{escapedOffsets:s,escaped:MO(s)}}}default:return{}}}}};OO=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,n;let{x:i,y:o,placement:s,middlewareData:l}=t,a=await vX(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(n=l.arrow)!=null&&n.alignmentOffset?{}:{x:i+a.x,y:o+a.y,data:{...a,placement:s}}}}},RO=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:F=>{let{x:W,y:z}=F;return{x:W,y:z}}},...a}=nc(e,t),d={x:r,y:n},h=await Em(t,a),g=nd(As(i)),b=ME(g),S=d[b],P=d[g];if(o){let F=b==="y"?"top":"left",W=b==="y"?"bottom":"right",z=S+h[F],q=S-h[W];S=Tb(z,S,q)}if(s){let F=g==="y"?"top":"left",W=g==="y"?"bottom":"right",z=P+h[F],q=P-h[W];P=Tb(z,P,q)}let A=l.fn({...t,[b]:S,[g]:P});return{...A,data:{x:A.x-r,y:A.y-n,enabled:{[b]:o,[g]:s}}}}}}});function Ib(){return typeof window<"u"}function od(e){return $O(e)?(e.nodeName||"").toLowerCase():"#document"}function fi(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function qo(e){var t;return(t=($O(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function $O(e){return Ib()?e instanceof Node||e instanceof fi(e).Node:!1}function so(e){return Ib()?e instanceof Element||e instanceof fi(e).Element:!1}function Ho(e){return Ib()?e instanceof HTMLElement||e instanceof fi(e).HTMLElement:!1}function FO(e){return!Ib()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof fi(e).ShadowRoot}function Tm(e){let{overflow:t,overflowX:r,overflowY:n,display:i}=ao(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(i)}function VO(e){return["table","td","th"].includes(od(e))}function O1(e){return[":popover-open",":modal"].some(t=>{try{return e.matches(t)}catch{return!1}})}function Pm(e){let t=Lb(),r=so(e)?ao(e):e;return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(n=>(r.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(r.contain||"").includes(n))}function UO(e){let t=Ca(e);for(;Ho(t)&&!sd(t);){if(Pm(t))return t;if(O1(t))return null;t=Ca(t)}return null}function Lb(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function sd(e){return["html","body","#document"].includes(od(e))}function ao(e){return fi(e).getComputedStyle(e)}function R1(e){return so(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ca(e){if(od(e)==="html")return e;let t=e.assignedSlot||e.parentNode||FO(e)&&e.host||qo(e);return FO(t)?t.host:t}function zO(e){let t=Ca(e);return sd(t)?e.ownerDocument?e.ownerDocument.body:e.body:Ho(t)&&Tm(t)?t:zO(t)}function Cm(e,t,r){var n;t===void 0&&(t=[]),r===void 0&&(r=!0);let i=zO(e),o=i===((n=e.ownerDocument)==null?void 0:n.body),s=fi(i);if(o){let l=kb(s);return t.concat(s,s.visualViewport||[],Tm(i)?i:[],l&&r?Cm(l):[])}return t.concat(i,Cm(i,[],r))}function kb(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}var LE=O(()=>{});function GO(e){let t=ao(e),r=parseFloat(t.width)||0,n=parseFloat(t.height)||0,i=Ho(e),o=i?e.offsetWidth:r,s=i?e.offsetHeight:n,l=k1(r)!==o||k1(n)!==s;return l&&(r=o,n=s),{width:r,height:n,$:l}}function NE(e){return so(e)?e:e.contextElement}function Mm(e){let t=NE(e);if(!Ho(t))return Go(1);let r=t.getBoundingClientRect(),{width:n,height:i,$:o}=GO(t),s=(o?k1(r.width):r.width)/n,l=(o?k1(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}function jO(e){let t=fi(e);return!Lb()||!t.visualViewport?bX:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function _X(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==fi(e)?!1:t}function ad(e,t,r,n){t===void 0&&(t=!1),r===void 0&&(r=!1);let i=e.getBoundingClientRect(),o=NE(e),s=Go(1);t&&(n?so(n)&&(s=Mm(n)):s=Mm(e));let l=_X(o,r,n)?jO(o):Go(0),a=(i.left+l.x)/s.x,d=(i.top+l.y)/s.y,h=i.width/s.x,g=i.height/s.y;if(o){let b=fi(o),S=n&&so(n)?fi(n):n,P=b,A=kb(P);for(;A&&n&&S!==P;){let F=Mm(A),W=A.getBoundingClientRect(),z=ao(A),q=W.left+(A.clientLeft+parseFloat(z.paddingLeft))*F.x,G=W.top+(A.clientTop+parseFloat(z.paddingTop))*F.y;a*=F.x,d*=F.y,h*=F.x,g*=F.y,a+=q,d+=G,P=fi(A),A=kb(P)}}return id({width:h,height:g,x:a,y:d})}function OE(e,t){let r=R1(e).scrollLeft;return t?t.left+r:ad(qo(e)).left+r}function qO(e,t,r){r===void 0&&(r=!1);let n=e.getBoundingClientRect(),i=n.left+t.scrollLeft-(r?0:OE(e,n)),o=n.top+t.scrollTop;return{x:i,y:o}}function xX(e){let{elements:t,rect:r,offsetParent:n,strategy:i}=e,o=i==="fixed",s=qo(n),l=t?O1(t.floating):!1;if(n===s||l&&o)return r;let a={scrollLeft:0,scrollTop:0},d=Go(1),h=Go(0),g=Ho(n);if((g||!g&&!o)&&((od(n)!=="body"||Tm(s))&&(a=R1(n)),Ho(n))){let S=ad(n);d=Mm(n),h.x=S.x+n.clientLeft,h.y=S.y+n.clientTop}let b=s&&!g&&!o?qO(s,a,!0):Go(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-a.scrollLeft*d.x+h.x+b.x,y:r.y*d.y-a.scrollTop*d.y+h.y+b.y}}function SX(e){return Array.from(e.getClientRects())}function EX(e){let t=qo(e),r=R1(e),n=e.ownerDocument.body,i=Ea(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),o=Ea(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight),s=-r.scrollLeft+OE(e),l=-r.scrollTop;return ao(n).direction==="rtl"&&(s+=Ea(t.clientWidth,n.clientWidth)-i),{width:i,height:o,x:s,y:l}}function CX(e,t){let r=fi(e),n=qo(e),i=r.visualViewport,o=n.clientWidth,s=n.clientHeight,l=0,a=0;if(i){o=i.width,s=i.height;let d=Lb();(!d||d&&t==="fixed")&&(l=i.offsetLeft,a=i.offsetTop)}return{width:o,height:s,x:l,y:a}}function TX(e,t){let r=ad(e,!0,t==="fixed"),n=r.top+e.clientTop,i=r.left+e.clientLeft,o=Ho(e)?Mm(e):Go(1),s=e.clientWidth*o.x,l=e.clientHeight*o.y,a=i*o.x,d=n*o.y;return{width:s,height:l,x:a,y:d}}function WO(e,t,r){let n;if(t==="viewport")n=CX(e,r);else if(t==="document")n=EX(qo(e));else if(so(t))n=TX(t,r);else{let i=jO(e);n={x:t.x-i.x,y:t.y-i.y,width:t.width,height:t.height}}return id(n)}function HO(e,t){let r=Ca(e);return r===t||!so(r)||sd(r)?!1:ao(r).position==="fixed"||HO(r,t)}function PX(e,t){let r=t.get(e);if(r)return r;let n=Cm(e,[],!1).filter(l=>so(l)&&od(l)!=="body"),i=null,o=ao(e).position==="fixed",s=o?Ca(e):e;for(;so(s)&&!sd(s);){let l=ao(s),a=Pm(s);!a&&l.position==="fixed"&&(i=null),(o?!a&&!i:!a&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Tm(s)&&!a&&HO(e,s))?n=n.filter(h=>h!==s):i=l,s=Ca(s)}return t.set(e,n),n}function MX(e){let{element:t,boundary:r,rootBoundary:n,strategy:i}=e,s=[...r==="clippingAncestors"?O1(t)?[]:PX(t,this._c):[].concat(r),n],l=s[0],a=s.reduce((d,h)=>{let g=WO(t,h,i);return d.top=Ea(g.top,d.top),d.right=rc(g.right,d.right),d.bottom=rc(g.bottom,d.bottom),d.left=Ea(g.left,d.left),d},WO(t,l,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}}function AX(e){let{width:t,height:r}=GO(e);return{width:t,height:r}}function IX(e,t,r){let n=Ho(t),i=qo(t),o=r==="fixed",s=ad(e,!0,o,t),l={scrollLeft:0,scrollTop:0},a=Go(0);if(n||!n&&!o)if((od(t)!=="body"||Tm(i))&&(l=R1(t)),n){let b=ad(t,!0,o,t);a.x=b.x+t.clientLeft,a.y=b.y+t.clientTop}else i&&(a.x=OE(i));let d=i&&!n&&!o?qO(i,l):Go(0),h=s.left+l.scrollLeft-a.x-d.x,g=s.top+l.scrollTop-a.y-d.y;return{x:h,y:g,width:s.width,height:s.height}}function kE(e){return ao(e).position==="static"}function BO(e,t){if(!Ho(e)||ao(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return qo(e)===r&&(r=r.ownerDocument.body),r}function ZO(e,t){let r=fi(e);if(O1(e))return r;if(!Ho(e)){let i=Ca(e);for(;i&&!sd(i);){if(so(i)&&!kE(i))return i;i=Ca(i)}return r}let n=BO(e,t);for(;n&&VO(n)&&kE(n);)n=BO(n,t);return n&&sd(n)&&kE(n)&&!Pm(n)?r:n||UO(e)||r}function kX(e){return ao(e).direction==="rtl"}function NX(e,t){let r=null,n,i=qo(e);function o(){var l;clearTimeout(n),(l=r)==null||l.disconnect(),r=null}function s(l,a){l===void 0&&(l=!1),a===void 0&&(a=1),o();let{left:d,top:h,width:g,height:b}=e.getBoundingClientRect();if(l||t(),!g||!b)return;let S=N1(h),P=N1(i.clientWidth-(d+g)),A=N1(i.clientHeight-(h+b)),F=N1(d),z={rootMargin:-S+"px "+-P+"px "+-A+"px "+-F+"px",threshold:Ea(0,rc(1,a))||1},q=!0;function G(Y){let ie=Y[0].intersectionRatio;if(ie!==a){if(!q)return s();ie?s(!1,ie):n=setTimeout(()=>{s(!1,1e-7)},1e3)}q=!1}try{r=new IntersectionObserver(G,{...z,root:i.ownerDocument})}catch{r=new IntersectionObserver(G,z)}r.observe(e)}return s(!0),o}function YO(e,t,r,n){n===void 0&&(n={});let{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s=typeof ResizeObserver=="function",layoutShift:l=typeof IntersectionObserver=="function",animationFrame:a=!1}=n,d=NE(e),h=i||o?[...d?Cm(d):[],...Cm(t)]:[];h.forEach(W=>{i&&W.addEventListener("scroll",r,{passive:!0}),o&&W.addEventListener("resize",r)});let g=d&&l?NX(d,r):null,b=-1,S=null;s&&(S=new ResizeObserver(W=>{let[z]=W;z&&z.target===d&&S&&(S.unobserve(t),cancelAnimationFrame(b),b=requestAnimationFrame(()=>{var q;(q=S)==null||q.observe(t)})),r()}),d&&!a&&S.observe(d),S.observe(t));let P,A=a?ad(e):null;a&&F();function F(){let W=ad(e);A&&(W.x!==A.x||W.y!==A.y||W.width!==A.width||W.height!==A.height)&&r(),A=W,P=requestAnimationFrame(F)}return r(),()=>{var W;h.forEach(z=>{i&&z.removeEventListener("scroll",r),o&&z.removeEventListener("resize",r)}),g?.(),(W=S)==null||W.disconnect(),S=null,a&&cancelAnimationFrame(P)}}var bX,LX,Nb,JO,XO,QO,RE,KO,eR,tR,rR=O(()=>{DO();Ab();LE();bX=Go(0);LX=async function(e){let t=this.getOffsetParent||ZO,r=this.getDimensions,n=await r(e.floating);return{reference:IX(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};Nb={convertOffsetParentRelativeRectToViewportRelativeRect:xX,getDocumentElement:qo,getClippingRect:MX,getOffsetParent:ZO,getElementRects:LX,getClientRects:SX,getDimensions:AX,getScale:Mm,isElement:so,isRTL:kX};JO=OO,XO=LO,QO=RO,RE=kO,KO=NO,eR=IO,tR=(e,t,r)=>{let n=new Map,i={platform:Nb,...r},o={...i.platform,_c:n};return AO(e,t,{...i,platform:o})}});var OX,nR,iR=O(()=>{OX=typeof global=="object"&&global&&global.Object===Object&&global,nR=OX});var RX,DX,Ob,DE=O(()=>{iR();RX=typeof self=="object"&&self&&self.Object===Object&&self,DX=nR||RX||Function("return this")(),Ob=DX});var FX,Am,FE=O(()=>{DE();FX=Ob.Symbol,Am=FX});function UX(e){var t=$X.call(e,D1),r=e[D1];try{e[D1]=void 0;var n=!0}catch{}var i=VX.call(e);return n&&(t?e[D1]=r:delete e[D1]),i}var oR,$X,VX,D1,sR,aR=O(()=>{FE();oR=Object.prototype,$X=oR.hasOwnProperty,VX=oR.toString,D1=Am?Am.toStringTag:void 0;sR=UX});function BX(e){return WX.call(e)}var zX,WX,lR,cR=O(()=>{zX=Object.prototype,WX=zX.toString;lR=BX});function qX(e){return e==null?e===void 0?jX:GX:uR&&uR in Object(e)?sR(e):lR(e)}var GX,jX,uR,dR,pR=O(()=>{FE();aR();cR();GX="[object Null]",jX="[object Undefined]",uR=Am?Am.toStringTag:void 0;dR=qX});function HX(e){return e!=null&&typeof e=="object"}var fR,mR=O(()=>{fR=HX});function YX(e){return typeof e=="symbol"||fR(e)&&dR(e)==ZX}var ZX,hR,gR=O(()=>{pR();mR();ZX="[object Symbol]";hR=YX});function XX(e){for(var t=e.length;t--&&JX.test(e.charAt(t)););return t}var JX,wR,yR=O(()=>{JX=/\s/;wR=XX});function KX(e){return e&&e.slice(0,wR(e)+1).replace(QX,"")}var QX,vR,bR=O(()=>{yR();QX=/^\s+/;vR=KX});function eQ(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var F1,$E=O(()=>{F1=eQ});function oQ(e){if(typeof e=="number")return e;if(hR(e))return _R;if(F1(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=F1(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=vR(e);var r=rQ.test(e);return r||nQ.test(e)?iQ(e.slice(2),r?2:8):tQ.test(e)?_R:+e}var _R,tQ,rQ,nQ,iQ,VE,xR=O(()=>{bR();$E();gR();_R=NaN,tQ=/^[-+]0x[0-9a-f]+$/i,rQ=/^0b[01]+$/i,nQ=/^0o[0-7]+$/i,iQ=parseInt;VE=oQ});var sQ,Rb,SR=O(()=>{DE();sQ=function(){return Ob.Date.now()},Rb=sQ});function uQ(e,t,r){var n,i,o,s,l,a,d=0,h=!1,g=!1,b=!0;if(typeof e!="function")throw new TypeError(aQ);t=VE(t)||0,F1(r)&&(h=!!r.leading,g="maxWait"in r,o=g?lQ(VE(r.maxWait)||0,t):o,b="trailing"in r?!!r.trailing:b);function S(ie){var U=n,me=i;return n=i=void 0,d=ie,s=e.apply(me,U),s}function P(ie){return d=ie,l=setTimeout(W,t),h?S(ie):s}function A(ie){var U=ie-a,me=ie-d,Ae=t-U;return g?cQ(Ae,o-me):Ae}function F(ie){var U=ie-a,me=ie-d;return a===void 0||U>=t||U<0||g&&me>=o}function W(){var ie=Rb();if(F(ie))return z(ie);l=setTimeout(W,A(ie))}function z(ie){return l=void 0,b&&n?S(ie):(n=i=void 0,s)}function q(){l!==void 0&&clearTimeout(l),d=0,n=a=i=l=void 0}function G(){return l===void 0?s:z(Rb())}function Y(){var ie=Rb(),U=F(ie);if(n=arguments,i=this,a=ie,U){if(l===void 0)return P(a);if(g)return clearTimeout(l),l=setTimeout(W,t),S(a)}return l===void 0&&(l=setTimeout(W,t)),s}return Y.cancel=q,Y.flush=G,Y}var aQ,lQ,cQ,UE,ER=O(()=>{$E();SR();xR();aQ="Expected a function",lQ=Math.max,cQ=Math.min;UE=uQ});var CR=O(()=>{ER();});function TR(e){return dQ(e)}function zE(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function dQ(e){for(let t=e;t;t=zE(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=zE(e);t;t=zE(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Pm(r)||t.tagName==="BODY"))return t}return null}var PR=O(()=>{LE()});function MR(e){let t=window.devicePixelRatio||1;return Math.round(e*t)/t}function fQ({placement:e,flipDisabled:t,flipPlacements:r,offsetDistance:n,offsetSkidding:i,arrowEl:o,type:s}){let l=[QO(),KO()];if(s==="menu")return[...l,RE({fallbackPlacements:r||["top-start","top","top-end","bottom-start","bottom","bottom-end"]})];if(s==="popover"||s==="tooltip"){let a=[...l,JO({mainAxis:typeof n=="number"?n:0,crossAxis:typeof i=="number"?i:0})];return e==="auto"||e==="auto-start"||e==="auto-end"?a.push(XO({alignment:e==="auto-start"?"start":e==="auto-end"?"end":null})):t||a.push(RE(r?{fallbackPlacements:r}:{})),o&&a.push(eR({element:o})),a}return[]}function OR(e,t){let r=e.filter(n=>AR.includes(n));return r.length!==e.length&&console.warn(`${t.tagName}: Invalid value found in: flipPlacements. Try any of these: ${AR.map(n=>`"${n}"`).join(", ").trim()}`,{el:t}),r}function IR(e,t=!1){let r=["left","right"];return t&&r.reverse(),e.replace(/leading/gi,r[0]).replace(/trailing/gi,r[1])}async function RR(e,t,r=!1){if(!(!e.open||!t.floatingEl||!t.referenceEl)){if(Object.assign(t.floatingEl.style,{display:"block",position:t.overlayPositioning??"absolute"}),!$1.get(e))return DR(e);await(r?mQ(e):kR)(e,t)}}function mQ(e){let t=Db.get(e);return t||(t=UE(kR,eE.reposition,{leading:!0,maxWait:eE.reposition}),Db.set(e,t),t)}async function DR(e){let{referenceEl:t,floatingEl:r}=e;if(!r.isConnected)return;let n=oo()?YO:(s,l,a)=>(a(),()=>{});$1.set(e,{state:"pending"});let i,o=n(t,r,()=>{let s=e.reposition();i||(i=s)});return $1.set(e,{state:"active",cleanUp:o}),i}function BE(e){let{floatingEl:t}=e;t&&Object.assign(t.style,{display:"",pointerEvents:"",position:"",transform:"",visibility:""})}async function FR(e){let{floatingEl:t,referenceEl:r}=e;if(BE(e),!(!t||!r)&&(GE(e),!!e.open))return DR(e)}function GE(e){let{floatingEl:t,referenceEl:r}=e;if(!t||!r)return;let n=$1.get(e);n?.state==="active"&&n.cleanUp(),$1.delete(e),Db.get(e)?.cancel(),Db.delete(e)}var kR,pQ,AR,NR,WE,hQ,$1,Db,LR,jE,qE=O(()=>{rR();CR();PR();cr();Tn();(function(){if(oo()){let e=Nb.getOffsetParent;Nb.getOffsetParent=t=>e(t,TR)}})();kR=async(e,{referenceEl:t,floatingEl:r,overlayPositioning:n="absolute",placement:i,flipDisabled:o,flipPlacements:s,offsetDistance:l,offsetSkidding:a,arrowEl:d,type:h})=>{if(!t||!r)return;let g=Zl(r)==="rtl",{x:b,y:S,placement:P,strategy:A,middlewareData:F}=await tR(t,r,{strategy:n,placement:i==="auto"||i==="auto-start"||i==="auto-end"?void 0:IR(i,g),middleware:fQ({placement:i,flipDisabled:o,flipPlacements:s?.map(q=>IR(q,g)),offsetDistance:l,offsetSkidding:a,arrowEl:d,type:h})});if(d&&F.arrow){let{x:q,y:G}=F.arrow,Y=P.split("-")[0],ie=q!=null?"left":"top",U=hQ[Y],me={left:"",top:"",bottom:"",right:""};"floatingLayout"in e&&(e.floatingLayout=Y==="left"||Y==="right"?"horizontal":"vertical"),Object.assign(d.style,{...me,[ie]:`${ie=="left"?q:G}px`,[Y]:"100%",transform:U})}let W=F.hide?.referenceHidden?"hidden":null,z=W?"none":null;r.setAttribute(pQ,P),Object.assign(r.style,{pointerEvents:z,position:A,transform:`translate(${MR(b)}px,${MR(S)}px)`,visibility:W})},pQ="data-placement",AR=["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"],NR="bottom-end",WE={animation:"calcite-floating-ui-anim",animationActive:"calcite-floating-ui-anim--active",arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"};hQ={top:"",left:"rotate(-90deg)",bottom:"rotate(180deg)",right:"rotate(90deg)"},$1=new WeakMap,Db=new WeakMap;LR=4,jE=Math.ceil(Math.hypot(LR,LR))});var VR,Fb,UR,ld,$b,Vb,gQ,zR,WR,BR,ic,wQ,yQ,GR,vQ,bQ,_Q,xQ,SQ,EQ,CQ,$R,TQ,PQ,Ub,HE,MQ,AQ,jR,qR,cd,IQ,zb,HR=O(()=>{VR=["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])"],Fb=VR.join(","),UR=typeof Element>"u",ld=UR?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,$b=!UR&&Element.prototype.getRootNode?function(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}:function(e){return e?.ownerDocument},Vb=function e(t,r){var n;r===void 0&&(r=!0);var i=t==null||(n=t.getAttribute)===null||n===void 0?void 0:n.call(t,"inert"),o=i===""||i==="true",s=o||r&&t&&e(t.parentNode);return s},gQ=function(t){var r,n=t==null||(r=t.getAttribute)===null||r===void 0?void 0:r.call(t,"contenteditable");return n===""||n==="true"},zR=function(t,r,n){if(Vb(t))return[];var i=Array.prototype.slice.apply(t.querySelectorAll(Fb));return r&&ld.call(t,Fb)&&i.unshift(t),i=i.filter(n),i},WR=function e(t,r,n){for(var i=[],o=Array.from(t);o.length;){var s=o.shift();if(!Vb(s,!1))if(s.tagName==="SLOT"){var l=s.assignedElements(),a=l.length?l:s.children,d=e(a,!0,n);n.flatten?i.push.apply(i,d):i.push({scopeParent:s,candidates:d})}else{var h=ld.call(s,Fb);h&&n.filter(s)&&(r||!t.includes(s))&&i.push(s);var g=s.shadowRoot||typeof n.getShadowRoot=="function"&&n.getShadowRoot(s),b=!Vb(g,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(s));if(g&&b){var S=e(g===!0?s.children:g.children,!0,n);n.flatten?i.push.apply(i,S):i.push({scopeParent:s,candidates:S})}else o.unshift.apply(o,s.children)}}return i},BR=function(t){return!isNaN(parseInt(t.getAttribute("tabindex"),10))},ic=function(t){if(!t)throw new Error("No node provided");return t.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(t.tagName)||gQ(t))&&!BR(t)?0:t.tabIndex},wQ=function(t,r){var n=ic(t);return n<0&&r&&!BR(t)?0:n},yQ=function(t,r){return t.tabIndex===r.tabIndex?t.documentOrder-r.documentOrder:t.tabIndex-r.tabIndex},GR=function(t){return t.tagName==="INPUT"},vQ=function(t){return GR(t)&&t.type==="hidden"},bQ=function(t){var r=t.tagName==="DETAILS"&&Array.prototype.slice.apply(t.children).some(function(n){return n.tagName==="SUMMARY"});return r},_Q=function(t,r){for(var n=0;n<t.length;n++)if(t[n].checked&&t[n].form===r)return t[n]},xQ=function(t){if(!t.name)return!0;var r=t.form||$b(t),n=function(l){return r.querySelectorAll('input[type="radio"][name="'+l+'"]')},i;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")i=n(window.CSS.escape(t.name));else try{i=n(t.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=_Q(i,t.form);return!o||o===t},SQ=function(t){return GR(t)&&t.type==="radio"},EQ=function(t){return SQ(t)&&!xQ(t)},CQ=function(t){var r,n=t&&$b(t),i=(r=n)===null||r===void 0?void 0:r.host,o=!1;if(n&&n!==t){var s,l,a;for(o=!!((s=i)!==null&&s!==void 0&&(l=s.ownerDocument)!==null&&l!==void 0&&l.contains(i)||t!=null&&(a=t.ownerDocument)!==null&&a!==void 0&&a.contains(t));!o&&i;){var d,h,g;n=$b(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},$R=function(t){var r=t.getBoundingClientRect(),n=r.width,i=r.height;return n===0&&i===0},TQ=function(t,r){var n=r.displayCheck,i=r.getShadowRoot;if(getComputedStyle(t).visibility==="hidden")return!0;var o=ld.call(t,"details>summary:first-of-type"),s=o?t.parentElement:t;if(ld.call(s,"details:not([open]) *"))return!0;if(!n||n==="full"||n==="legacy-full"){if(typeof i=="function"){for(var l=t;t;){var a=t.parentElement,d=$b(t);if(a&&!a.shadowRoot&&i(a)===!0)return $R(t);t.assignedSlot?t=t.assignedSlot:!a&&d!==t.ownerDocument?t=d.host:t=a}t=l}if(CQ(t))return!t.getClientRects().length;if(n!=="legacy-full")return!0}else if(n==="non-zero-area")return $R(t);return!1},PQ=function(t){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(t.tagName))for(var r=t.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 ld.call(r,"fieldset[disabled] *")?!0:!i.contains(t)}return!0}r=r.parentElement}return!1},Ub=function(t,r){return!(r.disabled||Vb(r)||vQ(r)||TQ(r,t)||bQ(r)||PQ(r))},HE=function(t,r){return!(EQ(r)||ic(r)<0||!Ub(t,r))},MQ=function(t){var r=parseInt(t.getAttribute("tabindex"),10);return!!(isNaN(r)||r>=0)},AQ=function e(t){var r=[],n=[];return t.forEach(function(i,o){var s=!!i.scopeParent,l=s?i.scopeParent:i,a=wQ(l,s),d=s?e(i.candidates):l;a===0?s?r.push.apply(r,d):r.push(l):n.push({documentOrder:o,tabIndex:a,item:i,isScope:s,content:d})}),n.sort(yQ).reduce(function(i,o){return o.isScope?i.push.apply(i,o.content):i.push(o.content),i},[]).concat(r)},jR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=WR([t],r.includeContainer,{filter:HE.bind(null,r),flatten:!1,getShadowRoot:r.getShadowRoot,shadowRootFilter:MQ}):n=zR(t,r.includeContainer,HE.bind(null,r)),AQ(n)},qR=function(t,r){r=r||{};var n;return r.getShadowRoot?n=WR([t],r.includeContainer,{filter:Ub.bind(null,r),flatten:!0,getShadowRoot:r.getShadowRoot}):n=zR(t,r.includeContainer,Ub.bind(null,r)),n},cd=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ld.call(t,Fb)===!1?!1:HE(r,t)},IQ=VR.concat("iframe").join(","),zb=function(t,r){if(r=r||{},!t)throw new Error("No node provided");return ld.call(t,IQ)===!1?!1:Ub(r,t)}});function ZE(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function LQ(e){if(Array.isArray(e))return ZE(e)}function kQ(e,t,r){return(t=FQ(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function NQ(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function OQ(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
11
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ZR(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),r.push.apply(r,n)}return r}function YR(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?ZR(Object(r),!0).forEach(function(n){kQ(e,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ZR(Object(r)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(r,n))})}return e}function RQ(e){return LQ(e)||NQ(e)||$Q(e)||OQ()}function DQ(e,t){if(typeof e!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var n=r.call(e,t||"default");if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function FQ(e){var t=DQ(e,"string");return typeof t=="symbol"?t:t+""}function $Q(e,t){if(e){if(typeof e=="string")return ZE(e,t);var r={}.toString.call(e).slice(8,-1);return r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set"?Array.from(e):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ZE(e,t):void 0}}var JR,VQ,UQ,U1,zQ,WQ,XR,V1,Wb,BQ,QR,KR=O(()=>{HR();JR={activateTrap:function(t,r){if(t.length>0){var n=t[t.length-1];n!==r&&n.pause()}var i=t.indexOf(r);i===-1||t.splice(i,1),t.push(r)},deactivateTrap:function(t,r){var n=t.indexOf(r);n!==-1&&t.splice(n,1),t.length>0&&t[t.length-1].unpause()}},VQ=function(t){return t.tagName&&t.tagName.toLowerCase()==="input"&&typeof t.select=="function"},UQ=function(t){return t?.key==="Escape"||t?.key==="Esc"||t?.keyCode===27},U1=function(t){return t?.key==="Tab"||t?.keyCode===9},zQ=function(t){return U1(t)&&!t.shiftKey},WQ=function(t){return U1(t)&&t.shiftKey},XR=function(t){return setTimeout(t,0)},V1=function(t){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 t=="function"?t.apply(void 0,n):t},Wb=function(t){return t.target.shadowRoot&&typeof t.composedPath=="function"?t.composedPath()[0]:t.target},BQ=[],QR=function(t,r){var n=r?.document||document,i=r?.trapStack||BQ,o=YR({returnFocusOnDeactivate:!0,escapeDeactivates:!0,delayInitialFocus:!0,isKeyForward:zQ,isKeyBackward:WQ},r),s={containers:[],containerGroups:[],tabbableGroups:[],nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1,delayInitialFocusTimer:void 0,recentNavEvent:void 0},l,a=function(ce,J,ee){return ce&&ce[J]!==void 0?ce[J]:o[ee||J]},d=function(ce,J){var ee=typeof J?.composedPath=="function"?J.composedPath():void 0;return s.containerGroups.findIndex(function(fe){var pe=fe.container,Se=fe.tabbableNodes;return pe.contains(ce)||ee?.includes(pe)||Se.find(function(ye){return ye===ce})})},h=function(ce){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ee=J.hasFallback,fe=ee===void 0?!1:ee,pe=J.params,Se=pe===void 0?[]:pe,ye=o[ce];if(typeof ye=="function"&&(ye=ye.apply(void 0,RQ(Se))),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 Fe=ye;if(typeof ye=="string"){try{Fe=n.querySelector(ye)}catch(nt){throw new Error("`".concat(ce,'` appears to be an invalid selector; error="').concat(nt.message,'"'))}if(!Fe&&!fe)throw new Error("`".concat(ce,"` as selector refers to no known node"))}return Fe},g=function(){var ce=h("initialFocus",{hasFallback:!0});if(ce===!1)return!1;if(ce===void 0||ce&&!zb(ce,o.tabbableOptions))if(d(n.activeElement)>=0)ce=n.activeElement;else{var J=s.tabbableGroups[0],ee=J&&J.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},b=function(){if(s.containerGroups=s.containers.map(function(ce){var J=jR(ce,o.tabbableOptions),ee=qR(ce,o.tabbableOptions),fe=J.length>0?J[0]:void 0,pe=J.length>0?J[J.length-1]:void 0,Se=ee.find(function(nt){return cd(nt)}),ye=ee.slice().reverse().find(function(nt){return cd(nt)}),Fe=!!J.find(function(nt){return ic(nt)>0});return{container:ce,tabbableNodes:J,focusableNodes:ee,posTabIndexesFound:Fe,firstTabbableNode:fe,lastTabbableNode:pe,firstDomTabbableNode:Se,lastDomTabbableNode:ye,nextTabbableNode:function(Et){var Tr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,fr=J.indexOf(Et);return fr<0?Tr?ee.slice(ee.indexOf(Et)+1).find(function(mr){return cd(mr)}):ee.slice(0,ee.indexOf(Et)).reverse().find(function(mr){return cd(mr)}):J[fr+(Tr?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.")},S=function(ce){var J=ce.activeElement;if(J)return J.shadowRoot&&J.shadowRoot.activeElement!==null?S(J.shadowRoot):J},P=function(ce){if(ce!==!1&&ce!==S(document)){if(!ce||!ce.focus){P(g());return}ce.focus({preventScroll:!!o.preventScroll}),s.mostRecentlyFocusedNode=ce,VQ(ce)&&ce.select()}},A=function(ce){var J=h("setReturnFocus",{params:[ce]});return J||(J===!1?!1:ce)},F=function(ce){var J=ce.target,ee=ce.event,fe=ce.isBackward,pe=fe===void 0?!1:fe;J=J||Wb(ee),b();var Se=null;if(s.tabbableGroups.length>0){var ye=d(J,ee),Fe=ye>=0?s.containerGroups[ye]:void 0;if(ye<0)pe?Se=s.tabbableGroups[s.tabbableGroups.length-1].lastTabbableNode:Se=s.tabbableGroups[0].firstTabbableNode;else if(pe){var nt=s.tabbableGroups.findIndex(function(Gn){var In=Gn.firstTabbableNode;return J===In});if(nt<0&&(Fe.container===J||zb(J,o.tabbableOptions)&&!cd(J,o.tabbableOptions)&&!Fe.nextTabbableNode(J,!1))&&(nt=ye),nt>=0){var Et=nt===0?s.tabbableGroups.length-1:nt-1,Tr=s.tabbableGroups[Et];Se=ic(J)>=0?Tr.lastTabbableNode:Tr.lastDomTabbableNode}else U1(ee)||(Se=Fe.nextTabbableNode(J,!1))}else{var fr=s.tabbableGroups.findIndex(function(Gn){var In=Gn.lastTabbableNode;return J===In});if(fr<0&&(Fe.container===J||zb(J,o.tabbableOptions)&&!cd(J,o.tabbableOptions)&&!Fe.nextTabbableNode(J))&&(fr=ye),fr>=0){var mr=fr===s.tabbableGroups.length-1?0:fr+1,yi=s.tabbableGroups[mr];Se=ic(J)>=0?yi.firstTabbableNode:yi.firstDomTabbableNode}else U1(ee)||(Se=Fe.nextTabbableNode(J))}}else Se=h("fallbackFocus");return Se},W=function(ce){var J=Wb(ce);if(!(d(J,ce)>=0)){if(V1(o.clickOutsideDeactivates,ce)){l.deactivate({returnFocus:o.returnFocusOnDeactivate});return}V1(o.allowOutsideClick,ce)||ce.preventDefault()}},z=function(ce){var J=Wb(ce),ee=d(J,ce)>=0;if(ee||J instanceof Document)ee&&(s.mostRecentlyFocusedNode=J);else{ce.stopImmediatePropagation();var fe,pe=!0;if(s.mostRecentlyFocusedNode)if(ic(s.mostRecentlyFocusedNode)>0){var Se=d(s.mostRecentlyFocusedNode),ye=s.containerGroups[Se].tabbableNodes;if(ye.length>0){var Fe=ye.findIndex(function(nt){return nt===s.mostRecentlyFocusedNode});Fe>=0&&(o.isKeyForward(s.recentNavEvent)?Fe+1<ye.length&&(fe=ye[Fe+1],pe=!1):Fe-1>=0&&(fe=ye[Fe-1],pe=!1))}}else s.containerGroups.some(function(nt){return nt.tabbableNodes.some(function(Et){return ic(Et)>0})})||(pe=!1);else pe=!1;pe&&(fe=F({target:s.mostRecentlyFocusedNode,isBackward:o.isKeyBackward(s.recentNavEvent)})),P(fe||s.mostRecentlyFocusedNode||g())}s.recentNavEvent=void 0},q=function(ce){var J=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;s.recentNavEvent=ce;var ee=F({event:ce,isBackward:J});ee&&(U1(ce)&&ce.preventDefault(),P(ee))},G=function(ce){(o.isKeyForward(ce)||o.isKeyBackward(ce))&&q(ce,o.isKeyBackward(ce))},Y=function(ce){UQ(ce)&&V1(o.escapeDeactivates,ce)!==!1&&(ce.preventDefault(),l.deactivate())},ie=function(ce){var J=Wb(ce);d(J,ce)>=0||V1(o.clickOutsideDeactivates,ce)||V1(o.allowOutsideClick,ce)||(ce.preventDefault(),ce.stopImmediatePropagation())},U=function(){if(s.active)return JR.activateTrap(i,l),s.delayInitialFocusTimer=o.delayInitialFocus?XR(function(){P(g())}):P(g()),n.addEventListener("focusin",z,!0),n.addEventListener("mousedown",W,{capture:!0,passive:!1}),n.addEventListener("touchstart",W,{capture:!0,passive:!1}),n.addEventListener("click",ie,{capture:!0,passive:!1}),n.addEventListener("keydown",G,{capture:!0,passive:!1}),n.addEventListener("keydown",Y),l},me=function(){if(s.active)return n.removeEventListener("focusin",z,!0),n.removeEventListener("mousedown",W,!0),n.removeEventListener("touchstart",W,!0),n.removeEventListener("click",ie,!0),n.removeEventListener("keydown",G,!0),n.removeEventListener("keydown",Y),l},Ae=function(ce){var J=ce.some(function(ee){var fe=Array.from(ee.removedNodes);return fe.some(function(pe){return pe===s.mostRecentlyFocusedNode})});J&&P(g())},Ee=typeof window<"u"&&"MutationObserver"in window?new MutationObserver(Ae):void 0,Ne=function(){Ee&&(Ee.disconnect(),s.active&&!s.paused&&s.containers.map(function(ce){Ee.observe(ce,{subtree:!0,childList:!0})}))};return l={get active(){return s.active},get paused(){return s.paused},activate:function(ce){if(s.active)return this;var J=a(ce,"onActivate"),ee=a(ce,"onPostActivate"),fe=a(ce,"checkCanFocusTrap");fe||b(),s.active=!0,s.paused=!1,s.nodeFocusedBeforeActivation=n.activeElement,J?.();var pe=function(){fe&&b(),U(),Ne(),ee?.()};return fe?(fe(s.containers.concat()).then(pe,pe),this):(pe(),this)},deactivate:function(ce){if(!s.active)return this;var J=YR({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(),JR.deactivateTrap(i,l);var ee=a(J,"onDeactivate"),fe=a(J,"onPostDeactivate"),pe=a(J,"checkCanReturnFocus"),Se=a(J,"returnFocus","returnFocusOnDeactivate");ee?.();var ye=function(){XR(function(){Se&&P(A(s.nodeFocusedBeforeActivation)),fe?.()})};return Se&&pe?(pe(A(s.nodeFocusedBeforeActivation)).then(ye,ye),this):(ye(),this)},pause:function(ce){if(s.paused||!s.active)return this;var J=a(ce,"onPause"),ee=a(ce,"onPostPause");return s.paused=!0,J?.(),me(),Ne(),ee?.(),this},unpause:function(ce){if(!s.paused||!s.active)return this;var J=a(ce,"onUnpause"),ee=a(ce,"onPostUnpause");return s.paused=!1,J?.(),b(),U(),Ne(),ee?.(),this},updateContainerElements:function(ce){var J=[].concat(ce).filter(Boolean);return s.containers=J.map(function(ee){return typeof ee=="string"?n.querySelector(ee):ee}),s.active&&b(),Ne(),this}},l.updateContainerElements(t),l}});function Bb(e,t){let{el:r}=e,n=t?.focusTrapEl||r;if(!n)return;let i={clickOutsideDeactivates:!0,fallbackFocus:n,setReturnFocus:o=>(cb(o),!1),...t?.focusTrapOptions,document:r.ownerDocument,tabbableOptions:uE,trapStack:oN};e.focusTrap=QR(n,i)}function z1(e,t){e.focusTrapDisabled||e.focusTrap?.activate(t)}function ud(e,t){e.focusTrap?.deactivate(t)}function Gb(e){e.focusTrap?.updateContainerElements(e.el)}var YE=O(()=>{KR();Tn();cr();});function eD(e){return"opened"in e?e.opened:e.open}function oc(e){requestAnimationFrame(()=>{e.transitionEl&&UN(e.transitionEl,e.openTransitionProp,()=>{eD(e)?e.onBeforeOpen():e.onBeforeClose()},()=>{eD(e)?e.onOpen():e.onClose()})})}var jb=O(()=>{Tn();});var qb,JE=O(()=>{tc();mb();Fr();qb=({children:e,...t})=>{let r=t.level?YN(`h${t.level}`):Ql`div`;return ur(t.key,bm`<${r} class=${_e(t.class)}>${e}</${r}>`)}});var tD,GQ,rD,nD=O(()=>{Wo();tc();Dr();Fr();tD={arrow:"calcite-floating-ui-arrow",arrowStroke:"calcite-floating-ui-arrow__stroke"},GQ={width:12,height:6,strokeWidth:1},rD=({floatingLayout:e,key:t,ref:r})=>{let{width:n,height:i,strokeWidth:o}=GQ,s=n/2,l=e==="vertical",a=`M0,0 H${n} L${n-s},${i} Q${s},${i} ${s},${i} Z`;return ur(t,xe`<svg aria-hidden=true class=${_e(tD.arrow)} height=${n??Re} viewBox=${`0 0 ${n} ${n+(l?0:o)}`} width=${n+(l?o:0)} ${At(r)}>${Ps`${o>0&&Ps`<path class=${_e(tD.arrowStroke)} d=${a??Re} fill=none stroke-width=${o+1} />`||""}<path d=${a??Re} stroke=none />`}</svg>`)}});function Hb(e){return e==="Enter"||e===" "}var W1,B1=O(()=>{W1=["0","1","2","3","4","5","6","7","8","9"]});var XE,Zo,iD,oD,sD,jQ,aD,Zb,QE,lD=O(()=>{cr();tc();ro();Wo();Fr();qE();YE();Tn();wm();jb();JE();Sa();Xl();nD();Sm();Ms();B1();En();XE=class{constructor(){this.registeredElements=new Map,this.registeredElementCount=0,this.queryPopover=t=>{let{registeredElements:r}=this,n=t.find(i=>r.has(i));return r.get(n)},this.togglePopovers=t=>{let r=t.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=t=>{t.defaultPrevented||(t.key==="Escape"?this.closeAllPopovers():Hb(t.key)&&this.togglePopovers(t))},this.clickHandler=t=>{$N(t)||this.togglePopovers(t)}}registerElement(t,r){this.registeredElementCount++,this.registeredElements.set(t,r),this.registeredElementCount===1&&this.addListeners()}unregisterElement(t){this.registeredElements.delete(t)&&this.registeredElementCount--,this.registeredElementCount===0&&this.removeListeners()}closeAllPopovers(){Array.from(this.registeredElements.values()).forEach(t=>t.open=!1)}addListeners(){window.addEventListener("click",this.clickHandler),window.addEventListener("keydown",this.keyDownHandler)}removeListeners(){window.removeEventListener("click",this.clickHandler),window.removeEventListener("keydown",this.keyDownHandler)}},Zo={positionContainer:"position-container",container:"container",imageContainer:"image-container",closeButtonContainer:"close-button-container",closeButton:"close-button",content:"content",hasHeader:"has-header",header:"header",headerContainer:"headerContainer",headerContent:"header-content",heading:"heading"},iD="auto",oD="aria-controls",sD="aria-expanded",jQ=Dt`:host{position:relative;display:block;--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-inline:.75rem;padding-block:.5rem;font-size:var(--calcite-font-size--1);line-height:1.375}:host([scale=m]) .heading{padding-inline:1rem;padding-block:.75rem;font-size:var(--calcite-font-size-0);line-height:1.375}:host([scale=l]) .heading{padding-inline:1.25rem;padding-block:1rem;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-block-end-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;block-size: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;block-size:100%;inline-size: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){block-size:100%}:host([hidden]){display:none}[hidden]{display:none}`,aD=new XE,Zb=class Zb extends $t{constructor(){super(...arguments),this.closeButtonEl=ki(),this.guid=`calcite-popover-${_a()}`,this.hasLoaded=!1,this.mutationObserver=Kn("mutation",()=>this.updateFocusTrapElements()),this.openTransitionProp="opacity",this.floatingLayout="vertical",this.autoClose=!1,this.closable=!1,this.flipDisabled=!1,this.focusTrapDisabled=!1,this.messages=pn(),this.offsetDistance=jE,this.offsetSkidding=0,this.open=!1,this.overlayPositioning="absolute",this.placement=iD,this.pointerDisabled=!1,this.scale="m",this.triggerDisabled=!1,this.calcitePopoverBeforeClose=Ft({cancelable:!1}),this.calcitePopoverBeforeOpen=Ft({cancelable:!1}),this.calcitePopoverClose=Ft({cancelable:!1}),this.calcitePopoverOpen=Ft({cancelable:!1})}async reposition(t=!1){let{referenceEl:r,placement:n,overlayPositioning:i,flipDisabled:o,filteredFlipPlacements:s,offsetDistance:l,offsetSkidding:a,arrowEl:d,floatingEl:h}=this;return RR(this,{floatingEl:h,referenceEl:r,overlayPositioning:i,placement:n,flipDisabled:o,flipPlacements:s,offsetDistance:l,offsetSkidding:a,arrowEl:d,type:"popover"},t)}async setFocus(){await Wn(this),this.requestUpdate(),Jl(this.el)}async updateFocusTrapElements(){Gb(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),this.setFilteredPlacements(),Bb(this,{focusTrapEl:this.el,focusTrapOptions:{allowOutsideClick:!0,escapeDeactivates:t=>(t.defaultPrevented||(this.open=!1,t.preventDefault()),!1),initialFocus:this.initialFocusTrapFocus}}),requestAnimationFrame(()=>this.setUpReferenceElement(this.hasLoaded))}async load(){Un(this)}willUpdate(t){t.has("focusTrapDisabled")&&(this.hasUpdated||this.focusTrapDisabled!==!1)&&this.handleFocusTrapDisabled(this.focusTrapDisabled),t.has("flipPlacements")&&this.flipPlacementsHandler(),t.has("open")&&(this.hasUpdated||this.open!==!1)&&this.openHandler(),(t.has("offsetDistance")&&(this.hasUpdated||this.offsetDistance!==jE)||t.has("offsetSkidding")&&(this.hasUpdated||this.offsetSkidding!==0)||t.has("overlayPositioning")&&(this.hasUpdated||this.overlayPositioning!=="absolute")||t.has("placement")&&(this.hasUpdated||this.placement!==iD))&&this.reposition(!0),t.has("referenceElement")&&this.referenceElementHandler()}loaded(){zn(this),this.referenceElement&&!this.referenceEl&&this.setUpReferenceElement(),this.open&&oc(this),this.hasLoaded=!0}disconnectedCallback(){super.disconnectedCallback(),this.mutationObserver?.disconnect(),this.removeReferences(),GE(this),ud(this)}handleFocusTrapDisabled(t){this.open&&(t?ud(this):z1(this))}flipPlacementsHandler(){this.setFilteredPlacements(),this.reposition(!0)}openHandler(){oc(this),this.reposition(!0),this.setExpandedAttr()}referenceElementHandler(){this.setUpReferenceElement(),this.reposition(!0)}setFloatingEl(t){this.floatingEl=t,t&&requestAnimationFrame(()=>this.setUpReferenceElement())}setTransitionEl(t){this.transitionEl=t}setFilteredPlacements(){let{el:t,flipPlacements:r}=this;this.filteredFlipPlacements=r?OR(r,t):null}setUpReferenceElement(t=!0){this.removeReferences(),this.referenceEl=this.getReferenceElement(),FR(this);let{el:r,referenceElement:n,referenceEl:i}=this;t&&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:t,open:r}=this;t&&"setAttribute"in t&&t.setAttribute(sD,vm(r))}addReferences(){let{referenceEl:t}=this;if(!t)return;let r=this.getId();"setAttribute"in t&&t.setAttribute(oD,r),aD.registerElement(t,this.el),this.setExpandedAttr()}removeReferences(){let{referenceEl:t}=this;t&&("removeAttribute"in t&&(t.removeAttribute(oD),t.removeAttribute(sD)),aD.unregisterElement(t))}getReferenceElement(){let{referenceElement:t,el:r}=this;return(typeof t=="string"?ed(r,{id:t}):t)||null}hide(){this.open=!1}onBeforeOpen(){this.calcitePopoverBeforeOpen.emit()}onOpen(){this.calcitePopoverOpen.emit(),z1(this)}onBeforeClose(){this.calcitePopoverBeforeClose.emit()}onClose(){this.calcitePopoverClose.emit(),BE(this),ud(this)}storeArrowEl(t){this.arrowEl=t,this.reposition(!0)}renderCloseButton(){let{messages:t,closable:r}=this;return r?ur(Zo.closeButtonContainer,xe`<div class=${_e(Zo.closeButtonContainer)}><calcite-action appearance=transparent class=${_e(Zo.closeButton)} @click=${this.hide} .scale=${this.scale} .text=${t.close} ${At(this.closeButtonEl)}><calcite-icon icon=x .scale=${ei(this.scale)}></calcite-icon></calcite-action></div>`):null}renderHeader(){let{heading:t,headingLevel:r}=this,n=t?qb({class:Zo.heading,level:r,children:t}):null;return n?ur(Zo.header,xe`<div class=${_e(Zo.header)}>${n}${this.renderCloseButton()}</div>`):null}render(){let{referenceEl:t,heading:r,label:n,open:i,pointerDisabled:o,floatingLayout:s}=this,l=t&&i,a=!l,d=o?null:ur("floating-arrow",rD({floatingLayout:s,ref:this.storeArrowEl}));return this.el.inert=a,this.el.ariaLabel=n,this.el.ariaLive="polite",hm(this.el,"id",this.getId()),this.el.role="dialog",xe`<div class=${_e(Zo.positionContainer)} ${At(this.setFloatingEl)}><div class=${_e({[Zo.container]:!0,[WE.animation]:!0,[WE.animationActive]:l})} ${At(this.setTransitionEl)}>${d}<div class=${_e({[Zo.hasHeader]:!!r,[Zo.headerContainer]:!0})}>${this.renderHeader()}<div class=${_e(Zo.content)}><slot></slot></div>${r?null:this.renderCloseButton()}</div></div></div>`}};Zb.properties={floatingLayout:16,referenceEl:16,autoClose:7,closable:7,flipDisabled:7,flipPlacements:0,focusTrapDisabled:7,heading:1,headingLevel:11,initialFocusTrapFocus:5,label:1,messageOverrides:0,offsetDistance:11,offsetSkidding:11,open:7,overlayPositioning:3,placement:3,pointerDisabled:7,referenceElement:1,scale:3,triggerDisabled:7},Zb.styles=jQ;QE=Zb;Gt("calcite-popover",QE)});var cD=O(()=>{Cb();td();lD()});function KE(e,t){return(e+t)%t}var uD=O(()=>{});var e3,G1,dD,pD,t3=O(()=>{e3={menu:"menu",defaultTrigger:"default-trigger"},G1={tooltip:"tooltip",trigger:"trigger"},dD={menu:"ellipsis"},pD="data-active"});var qQ,HQ,Yb,r3,fD=O(()=>{cr();Wo();ro();Fr();uD();Tn();wm();B1();Sa();t3();En();qQ=Dt`: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}`,HQ=["ArrowUp","ArrowDown","End","Home"],Yb=class Yb extends $t{constructor(){super(...arguments),this.guid=`calcite-action-menu-${_a()}`,this.actionElements=[],this.menuButtonClick=()=>{this.toggleOpen()},this.menuButtonId=`${this.guid}-menu-button`,this.menuButtonKeyDown=t=>{let{key:r}=t,{actionElements:n,activeMenuItemIndex:i,open:o}=this;if(n.length){if(Hb(r)){if(t.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),t.preventDefault();return}this.handleActionNavigation(t,r,n)}},this.menuId=`${this.guid}-menu`,this._open=!1,this.updateAction=(t,r)=>{let{guid:n,activeMenuItemIndex:i}=this,o=`${n}-action-${r}`;t.tabIndex=-1,t.setAttribute("role","menuitem"),t.id||(t.id=o),t.toggleAttribute(pD,r===i)},this.activeMenuItemIndex=-1,this.appearance="solid",this.expanded=!1,this.overlayPositioning="absolute",this.placement="auto",this.scale="m",this.calciteActionMenuOpen=Ft({cancelable:!1})}get open(){return this._open}set open(t){let r=this._open;t!==r&&(this._open=t,this.openHandler(t))}async setFocus(){return await Wn(this),cb(this.menuButtonEl)}connectedCallback(){super.connectedCallback(),this.connectMenuButtonEl()}load(){Un(this)}willUpdate(t){t.has("expanded")&&(this.hasUpdated||this.expanded!==!1)&&this.expandedHandler(),t.has("activeMenuItemIndex")&&(this.hasUpdated||this.activeMenuItemIndex!==-1)&&this.updateActions(this.actionElements)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.disconnectMenuButtonEl()}expandedHandler(){this.open=!1,this.setTooltipReferenceElement()}openHandler(t){this.menuButtonEl&&(this.menuButtonEl.active=t),this.popoverEl&&(this.popoverEl.open=t),this.activeMenuItemIndex=this.open?0:-1,this.calciteActionMenuOpen.emit(),this.setTooltipReferenceElement()}connectMenuButtonEl(){let{menuButtonId:t,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",vm(n)),o.setAttribute("aria-haspopup","true"),o.id||(o.id=t),o.label||(o.label=i),o.text||(o.text=i),o.addEventListener("click",this.menuButtonClick),o.addEventListener("keydown",this.menuButtonKeyDown)))}disconnectMenuButtonEl(){let{menuButtonEl:t}=this;t&&(t.removeEventListener("click",this.menuButtonClick),t.removeEventListener("keydown",this.menuButtonKeyDown),this.menuButtonEl=null)}setMenuButtonEl(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-action"));this.slottedMenuButtonEl=r[0],this.connectMenuButtonEl()}setDefaultMenuButtonEl(t){this.defaultMenuButtonEl=t,t&&this.connectMenuButtonEl()}setPopoverEl(t){t&&(this.popoverEl=t,t.open=this.open)}handleCalciteActionClick(){this.open=!1,this.setFocus()}updateTooltip(t){let r=t.target.assignedElements({flatten:!0}).filter(n=>n?.matches("calcite-tooltip"));this.tooltipEl=r[0],this.setTooltipReferenceElement()}setTooltipReferenceElement(){let{tooltipEl:t,expanded:r,menuButtonEl:n,open:i}=this;t&&(t.referenceElement=!r&&!i?n:null)}updateActions(t){t?.forEach(this.updateAction)}handleDefaultSlotChange(t){let r=t.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(t,r){return!!r.find(n=>n===t)}handleActionNavigation(t,r,n){if(!this.isValidKey(r,HQ))return;if(t.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=KE(Math.max(i-1,-1),n.length)),r==="ArrowDown"&&(this.activeMenuItemIndex=KE(i+1,n.length))}toggleOpen(t=!this.open){this.open=t}handlePopoverOpen(){this.open=!0,this.setFocus()}handlePopoverClose(){this.open=!1}renderMenuButton(){let{appearance:t,label:r,scale:n,expanded:i}=this;return xe`<slot name=${G1.trigger} @slotchange=${this.setMenuButtonEl}><calcite-action .appearance=${t} class=${_e(e3.defaultTrigger)} .icon=${dD.menu} .scale=${n} .text=${r} .textEnabled=${i} ${At(this.setDefaultMenuButtonEl)}></calcite-action></slot>`}renderMenuItems(){let{actionElements:t,activeMenuItemIndex:r,menuId:n,menuButtonEl:i,label:o,placement:s,overlayPositioning:l,flipPlacements:a}=this,d=t[r]?.id||null;return xe`<calcite-popover auto-close .flipPlacements=${a} focus-trap-disabled .label=${o} offset-distance=0 @calcitePopoverClose=${this.handlePopoverClose} @calcitePopoverOpen=${this.handlePopoverOpen} .overlayPositioning=${l} .placement=${s} pointer-disabled .referenceElement=${i} trigger-disabled ${At(this.setPopoverEl)}><div aria-activedescendant=${d??Re} aria-labelledby=${i?.id??Re} class=${_e(e3.menu)} id=${n??Re} @click=${this.handleCalciteActionClick} role=menu tabindex=-1><slot @slotchange=${this.handleDefaultSlotChange}></slot></div></calcite-popover>`}render(){return xe`${this.renderMenuButton()}${this.renderMenuItems()}<slot name=${G1.tooltip} @slotchange=${this.updateTooltip}></slot>`}};Yb.properties={activeMenuItemIndex:16,menuButtonEl:16,appearance:3,expanded:7,flipPlacements:0,label:1,open:7,overlayPositioning:3,placement:3,scale:3},Yb.styles=qQ;r3=Yb;Gt("calcite-action-menu",r3)});var mD=O(()=>{Cb();cD();fD()});var dr,n3,j1,Zt,i3=O(()=>{dr={actionBarContainer:"action-bar-container",backButton:"back-button",container:"container",contentBottom:"content-bottom",contentTop:"content-top",header:"header",headerContainer:"header-container",headerContainerBorderEnd:"header-container--border-end",heading:"heading",summary:"summary",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"},n3={close:"close",collapse:"collapse"},j1={close:"x",menu:"ellipsis",backLeft:"chevron-left",backRight:"chevron-right",expand:"chevron-down",collapse:"chevron-up"},Zt={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 ZQ,Jb,o3,hD=O(()=>{cr();tc();Wo();ro();Fr();Tn();E1();Sa();Xl();t3();JE();qE();Ms();i3();En();ZQ=Dt`: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 .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}`,Jb=class Jb extends $t{constructor(){super(),this.resizeObserver=Kn("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=NR,this.messages=pn(),this.overlayPositioning="absolute",this.scale="m",this.calcitePanelClose=Ft({cancelable:!1}),this.calcitePanelScroll=Ft({cancelable:!1}),this.calcitePanelToggle=Ft({cancelable:!1}),this.listen("keydown",this.panelKeyDownHandler)}async scrollContentTo(t){this.panelScrollEl?.scrollTo(t)}async setFocus(){await Wn(this),Jl(this.containerEl)}async load(){Un(this),this.isClosed=this.closed}willUpdate(t){t.has("closed")&&this.hasUpdated&&(this.closed?this.close():this.open())}updated(){Kl(this)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver?.disconnect()}resizeHandler(){let{panelScrollEl:t}=this;!t||typeof t.scrollHeight!="number"||typeof t.offsetHeight!="number"||(t.scrollHeight>t.offsetHeight?t.setAttribute("tabindex","0"):t.removeAttribute("tabindex"))}setContainerRef(t){this.containerEl=t}panelKeyDownHandler(t){this.closable&&t.key==="Escape"&&!t.defaultPrevented&&(this.handleUserClose(),t.preventDefault())}handleUserClose(){this.closed=!0,this.calcitePanelClose.emit()}open(){this.isClosed=!1}async close(){let t=this.beforeClose??(()=>Promise.resolve());try{await t()}catch{requestAnimationFrame(()=>{this.closed=!1});return}this.isClosed=!0}collapse(){this.collapsed=!this.collapsed,this.calcitePanelToggle.emit()}panelScrollHandler(){this.calcitePanelScroll.emit()}handleHeaderActionsStartSlotChange(t){this.hasStartActions=Qn(t)}handleHeaderActionsEndSlotChange(t){this.hasEndActions=Qn(t)}handleHeaderMenuActionsSlotChange(t){this.hasMenuItems=Qn(t)}handleActionBarSlotChange(t){let r=ub(t).filter(n=>n?.matches("calcite-action-bar"));r.forEach(n=>n.layout="horizontal"),this.hasActionBar=!!r.length}handleHeaderContentSlotChange(t){this.hasHeaderContent=Qn(t)}handleFabSlotChange(t){this.hasFab=Qn(t)}handleFooterActionsSlotChange(t){this.hasFooterActions=Qn(t)}handleFooterEndSlotChange(t){this.hasFooterEndContent=Qn(t)}handleFooterStartSlotChange(t){this.hasFooterStartContent=Qn(t)}handleFooterSlotChange(t){this.hasFooterContent=Qn(t)}contentBottomSlotChangeHandler(t){this.hasContentBottom=Qn(t)}contentTopSlotChangeHandler(t){this.hasContentTop=Qn(t)}setPanelScrollEl(t){this.panelScrollEl=t,this.resizeObserver?.disconnect(),t&&(this.resizeObserver?.observe(t),this.resizeHandler())}handleAlertsSlotChange(t){ub(t)?.map(r=>{r.nodeName==="CALCITE-ALERT"&&(r.embedded=!0)})}renderHeaderContent(){let{heading:t,headingLevel:r,description:n,hasHeaderContent:i}=this,o=t?qb({class:dr.heading,level:r,children:t}):null,s=n?xe`<span class=${_e(dr.description)}>${n}</span>`:null;return!i&&(o||s)?ur("header-content",xe`<div class=${_e(dr.headerContent)}>${o}${s}</div>`):null}renderActionBar(){return xe`<div class=${_e(dr.actionBarContainer)} .hidden=${!this.hasActionBar}><slot name=${Zt.actionBar} @slotchange=${this.handleActionBarSlotChange}></slot></div>`}renderHeaderSlottedContent(){return ur("slotted-header-content",xe`<div class=${_e({[dr.headerContent]:!0,[dr.headerSlottedContent]:!0})} .hidden=${!this.hasHeaderContent}><slot name=${Zt.headerContent} @slotchange=${this.handleHeaderContentSlotChange}></slot></div>`)}renderHeaderStartActions(){let{hasStartActions:t}=this;return ur("header-actions-start",xe`<div class=${_e({[dr.headerActionsStart]:!0,[dr.headerActions]:!0})} .hidden=${!t}><slot name=${Zt.headerActionsStart} @slotchange=${this.handleHeaderActionsStartSlotChange}></slot></div>`)}renderHeaderActionsEnd(){let{hasEndActions:t,messages:r,closable:n,collapsed:i,collapseDirection:o,collapsible:s,hasMenuItems:l}=this,{collapse:a,expand:d,close:h}=r,g=[j1.expand,j1.collapse];o==="up"&&g.reverse();let b=s?xe`<calcite-action .ariaExpanded=${!i} .ariaLabel=${a} .icon=${i?g[0]:g[1]} id=${n3.collapse} @click=${this.collapse} .scale=${this.scale} .text=${a} title=${(i?d:a)??Re}></calcite-action>`:null,S=n?xe`<calcite-action .ariaLabel=${h} .icon=${j1.close} id=${n3.close} @click=${this.handleUserClose} .scale=${this.scale} .text=${h} title=${h??Re}></calcite-action>`:null,P=xe`<slot name=${Zt.headerActionsEnd} @slotchange=${this.handleHeaderActionsEndSlotChange}></slot>`,A=t||b||S||l;return ur("header-actions-end",xe`<div class=${_e({[dr.headerActionsEnd]:!0,[dr.headerActions]:!0})} .hidden=${!A}>${P}${this.renderMenu()}${b}${S}</div>`)}renderMenu(){let{hasMenuItems:t,messages:r,menuOpen:n,menuFlipPlacements:i,menuPlacement:o}=this;return ur("menu",xe`<calcite-action-menu .flipPlacements=${i??["top","bottom"]} .hidden=${!t} .label=${r.options} .open=${n} .overlayPositioning=${this.overlayPositioning} .placement=${o}><calcite-action .icon=${j1.menu} .scale=${this.scale} slot=${G1.trigger} .text=${r.options}></calcite-action><slot name=${Zt.headerMenuActions} @slotchange=${this.handleHeaderMenuActionsSlotChange}></slot></calcite-action-menu>`)}renderHeaderNode(){let{hasHeaderContent:t,hasStartActions:r,hasEndActions:n,closable:i,collapsible:o,hasMenuItems:s,hasActionBar:l}=this,a=this.renderHeaderContent(),d=t||!!a||r||n||o||i||s;return this.showHeaderContent=d,xe`<header class=${_e(dr.header)} .hidden=${!(d||l)}><div class=${_e({[dr.headerContainer]:!0,[dr.headerContainerBorderEnd]:l})} .hidden=${!d}>${this.renderHeaderStartActions()}${this.renderHeaderSlottedContent()}${a}${this.renderHeaderActionsEnd()}</div>${this.renderActionBar()}${this.renderContentTop()}</header>`}renderFooterNode(){let{hasFooterEndContent:t,hasFooterStartContent:r,hasFooterContent:n,hasFooterActions:i}=this,o=r||t||n||i;return xe`<footer class=${_e(dr.footer)} .hidden=${!o}><div class=${_e(dr.footerContent)} .hidden=${!n}><slot name=${Zt.footer} @slotchange=${this.handleFooterSlotChange}></slot></div><div class=${_e(dr.footerStart)} .hidden=${n||!r}><slot name=${Zt.footerStart} @slotchange=${this.handleFooterStartSlotChange}></slot></div><div class=${_e(dr.footerEnd)} .hidden=${n||!t}><slot name=${Zt.footerEnd} @slotchange=${this.handleFooterEndSlotChange}></slot></div><div class=${_e(dr.footerActions)} .hidden=${n||!i}>${ur("footer-actions-slot",xe`<slot name=${Zt.footerActions} @slotchange=${this.handleFooterActionsSlotChange}></slot>`)}</div></footer>`}renderContent(){return xe`<div class=${_e(dr.contentWrapper)} .hidden=${this.collapsible&&this.collapsed} @scroll=${this.panelScrollHandler} ${At(this.setPanelScrollEl)}><slot></slot>${this.renderFab()}</div>`}renderContentBottom(){return xe`<div class=${_e(dr.contentBottom)} .hidden=${!this.hasContentBottom}><slot name=${Zt.contentBottom} @slotchange=${this.contentBottomSlotChangeHandler}></slot></div>`}renderContentTop(){return xe`<div class=${_e(dr.contentTop)} .hidden=${!this.hasContentTop}><slot name=${Zt.contentTop} @slotchange=${this.contentTopSlotChangeHandler}></slot></div>`}renderFab(){return xe`<div class=${_e(dr.fabContainer)} .hidden=${!this.hasFab}><slot name=${Zt.fab} @slotchange=${this.handleFabSlotChange}></slot></div>`}render(){let{disabled:t,loading:r,isClosed:n}=this,i=xe`<article .ariaBusy=${r} class=${_e(dr.container)} .hidden=${n} ${At(this.setContainerRef)}>${this.renderHeaderNode()}${this.renderContent()}${this.renderContentBottom()}${this.renderFooterNode()}${ur("alerts",xe`<slot name=${Zt.alerts} @slotchange=${this.handleAlertsSlotChange}></slot>`)}</article>`;return ec({disabled:t,children:xe`${r?xe`<calcite-scrim .loading=${r}></calcite-scrim>`:null}${i}`})}};Jb.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},Jb.styles=ZQ;o3=Jb;Gt("calcite-panel",o3)});var gD=O(()=>{Cb();mD();EE();hD()});function yD(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var wD,vD=O(()=>{wD=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{}});var Xb,YQ,q1,bD=O(()=>{vD();Xb={exports:{}};Xb.exports;(function(e,t){(function(r,n){e.exports=n()})(wD,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,A(_.key),_)}}function l(f,p,w){return p&&s(f.prototype,p),Object.defineProperty(f,"prototype",{writable:!1}),f}function a(f,p,w){return(p=A(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 b(f){if(f===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return f}function S(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,I){if(I&&(typeof I=="object"||typeof I=="function"))return I;if(I!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return b(T)}(this,w)}}function P(){return P=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(f,p,w){var _=function(T,I){for(;!Object.prototype.hasOwnProperty.call(T,I)&&(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}},P.apply(this,arguments)}function A(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 F=function(f){return!(!f||!f.Window)&&f instanceof f.Window},W=void 0,z=void 0;function q(f){W=f;var p=f.document.createTextNode("");p.ownerDocument!==f.document&&typeof f.wrap=="function"&&f.wrap(p)===p&&(f=f.wrap(f)),z=f}function G(f){return F(f)?f:(f.ownerDocument||f).defaultView||z.window}typeof window<"u"&&window&&q(window);var Y=function(f){return!!f&&i(f)==="object"},ie=function(f){return typeof f=="function"},U={window:function(f){return f===z||F(f)},docFrag:function(f){return Y(f)&&f.nodeType===11},object:Y,func:ie,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=G(f)||z;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 Y(f)&&!!f.constructor&&/function Object\b/.test(f.constructor.toString())},array:function(f){return Y(f)&&f.length!==void 0&&ie(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 Ae(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 Ee={id:"actions/drag",install:function(f){var p=f.actions,w=f.Interactable,_=f.defaults;w.prototype.draggable=Ee.draggable,p.map.drag=Ee,p.methodDict.drag="draggable",_.actions.drag=Ee.defaults},listeners:{"interactions:before-action-move":me,"interactions:action-resume":me,"interactions:action-move":Ae,"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 U.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):U.bool(f)?(this.options.drag.enabled=f,this):this.options.drag},beforeMove:me,move:Ae,defaults:{startAxis:"xy",lockAxis:"xy"},getCursor:function(){return"move"},filterEventType:function(f){return f.search("drag")===0}},Ne=Ee,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 J=we,ee={init:function(f){var p=J.Element,w=f.navigator||{};ee.supportsTouch="ontouchstart"in f||U.func(f.DocumentTouch)&&J.document instanceof f.DocumentTouch,ee.supportsPointerEvent=w.pointerEnabled!==!1&&!!J.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?J.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=J.document&&"onmousewheel"in J.document?"mousewheel":"wheel"},supportsTouch:null,supportsPointerEvent:null,isIOS7:null,isIOS:null,isIe9:null,isOperaMobile:null,prefixedMatchesSelector:null,pEventTypes:null,wheelEvent:null},fe=ee;function pe(f,p){if(f.contains)return f.contains(p);for(;p;){if(p===f)return!0;p=p.parentNode}return!1}function Se(f,p){for(;U.element(f);){if(Fe(f,p))return f;f=ye(f)}return null}function ye(f){var p=f.parentNode;if(U.docFrag(p)){for(;(p=p.host)&&U.docFrag(p););return p}return p}function Fe(f,p){return z!==W&&(p=p.replace(/\/deep\//g," ")),f[fe.prefixedMatchesSelector](p)}var nt=function(f){return f.parentNode||f.host};function Et(f,p){for(var w,_=[],C=f;(w=nt(C))&&C!==p&&w!==C.ownerDocument;)_.unshift(C),C=w;return _}function Tr(f,p,w){for(;U.element(f);){if(Fe(f,p))return!0;if((f=ye(f))===w)return Fe(f,p)}return!1}function fr(f){return f.correspondingUseElement||f}function mr(f){var p=f instanceof J.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 yi(f){var p,w=mr(f);if(!fe.isIOS7&&w){var _={x:(p=(p=G(f))||z).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 Gn(f){for(var p=[];f;)p.push(f),f=ye(f);return p}function In(f){return!!U.string(f)&&(J.document.querySelector(f),!0)}function ze(f,p){for(var w in p)f[w]=p[w];return f}function Md(f,p,w){return f==="parent"?ye(w):f==="self"?p.getRect(w):Se(w,f)}function ts(f,p,w,_){var C=f;return U.string(C)?C=Md(C,p,w):U.func(C)&&(C=C.apply(void 0,_)),U.element(C)&&(C=yi(C)),C}function fo(f){return f&&{x:"x"in f?f.x:f.left,y:"y"in f?f.y:f.top}}function wc(f){return!f||"x"in f&&"y"in f||((f=ze({},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 La(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 Vs(f,p,w){var _=w&&f.options[w];return fo(ts(_&&_.origin||f.options.origin,f,p,[f&&p]))||{x:0,y:0}}function Vi(f,p){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(D){return!0},_=arguments.length>3?arguments[3]:void 0;if(_=_||{},U.string(f)&&f.search(" ")!==-1&&(f=Ad(f)),U.array(f))return f.forEach(function(D){return Vi(D,p,w,_)}),_;if(U.object(f)&&(p=f,f=""),U.func(p)&&w(f))_[f]=_[f]||[],_[f].push(p);else if(U.array(p))for(var C=0,T=p;C<T.length;C++){var I=T[C];Vi(f,I,w,_)}else if(U.object(p))for(var N in p)Vi(Ad(N).map(function(D){return"".concat(f).concat(D)}),p[N],w,_);return _}function Ad(f){return f.trim().split(/ +/)}var Us=function(f,p){return Math.sqrt(f*f+p*p)},Gm=["webkit","moz"];function rs(f,p){f.__set||(f.__set={});var w=function(C){if(Gm.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 ka(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 yc(f){f.page.x=0,f.page.y=0,f.client.x=0,f.client.y=0}function vc(f){return f instanceof J.Event||f instanceof J.Touch}function Pr(f,p,w){return f=f||"page",(w=w||{}).x=p[f+"X"],w.y=p[f+"Y"],w}function Id(f,p){return p=p||{x:0,y:0},fe.isOperaMobile&&vc(f)?(Pr("screen",f,p),p.x+=window.scrollX,p.y+=window.scrollY):Pr("page",f,p),p}function ns(f){return U.number(f.pointerId)?f.pointerId:f.identifier}function Na(f,p,w){var _=p.length>1?Ld(p):p[0];Id(_,f.page),function(C,T){T=T||{},fe.isOperaMobile&&vc(C)?Pr("screen",C,T):Pr("client",C,T)}(_,f.client),f.timeStamp=w}function bc(f){var p=[];return U.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 Ld(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 _c(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 xc(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[0][w]-C[1][w],I=C[0][_]-C[1][_];return Us(T,I)}function Sc(f,p){var w=p+"X",_=p+"Y",C=bc(f),T=C[1][w]-C[0][w],I=C[1][_]-C[0][_];return 180*Math.atan2(I,T)/Math.PI}function Ec(f){return U.string(f.pointerType)?f.pointerType:U.number(f.pointerType)?[void 0,void 0,"touch","pen","mouse"][f.pointerType]:/touch/.test(f.type||"")||f instanceof J.Touch?"touch":"mouse"}function kd(f){var p=U.func(f.composedPath)?f.composedPath():f.path;return[fr(p?p[0]:f.target),fr(f.currentTarget)]}var mo=function(){function f(p){o(this,f),this.immediatePropagationStopped=!1,this.propagationStopped=!1,this._interaction=p}return l(f,[{key:"preventDefault",value:function(){}},{key:"stopPropagation",value:function(){this.propagationStopped=!0}},{key:"stopImmediatePropagation",value:function(){this.immediatePropagationStopped=this.propagationStopped=!0}}]),f}();Object.defineProperty(mo.prototype,"interaction",{get:function(){return this._interaction._proxy},set:function(){}});var Nd=function(f,p){for(var w=0;w<p.length;w++){var _=p[w];f.push(_)}return f},Cc=function(f){return Nd([],f)},zs=function(f,p){for(var w=0;w<f.length;w++)if(p(f[w],w,f))return w;return-1},Ui=function(f,p){return f[zs(f,p)]},is=function(f){d(w,f);var p=S(w);function w(_,C,T){var I;o(this,w),(I=p.call(this,C._interaction)).dropzone=void 0,I.dragEvent=void 0,I.relatedTarget=void 0,I.draggable=void 0,I.propagationStopped=!1,I.immediatePropagationStopped=!1;var N=T==="dragleave"?_.prev:_.cur,D=N.element,B=N.dropzone;return I.type=T,I.target=D,I.currentTarget=D,I.dropzone=B,I.dragEvent=C,I.relatedTarget=C.target,I.draggable=C.interactable,I.timeStamp=C.timeStamp,I}return l(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,I=zs(T,function(D){var B=D.dropzone,$=D.element;return B===_.dropzone&&$===_.target});C.activeDrops.splice(I,1);var N=new w(C,this.dragEvent,"dropdeactivate");N.dropzone=this.dropzone,N.target=this.target,this.dropzone.fire(N)}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}(mo);function ho(f,p){for(var w=0,_=f.slice();w<_.length;w++){var C=_[w],T=C.dropzone,I=C.element;p.dropzone=T,p.target=I,T.fire(p),p.propagationStopped=p.immediatePropagationStopped=!1}}function Tc(f,p){for(var w=function(T,I){for(var N=[],D=0,B=T.interactables.list;D<B.length;D++){var $=B[D];if($.options.drop.enabled){var Q=$.options.drop.accept;if(!(U.element(Q)&&Q!==I||U.string(Q)&&!Fe(I,Q)||U.func(Q)&&!Q({dropzone:$,draggableElement:I})))for(var ae=0,ge=$.getAllElements();ae<ge.length;ae++){var he=ge[ae];he!==I&&N.push({dropzone:$,element:he,rect:$.getRect(he)})}}}return N}(f,p),_=0;_<w.length;_++){var C=w[_];C.rect=C.dropzone.getRect(C.element)}return w}function Od(f,p,w){for(var _=f.dropState,C=f.interactable,T=f.element,I=[],N=0,D=_.activeDrops;N<D.length;N++){var B=D[N],$=B.dropzone,Q=B.element,ae=B.rect,ge=$.dropCheck(p,w,C,T,Q,ae);I.push(ge?Q:null)}var he=function(ve){for(var Oe,Ie,Ue,et=[],st=0;st<ve.length;st++){var qe=ve[st],rt=ve[Oe];if(qe&&st!==Oe)if(rt){var Ar=nt(qe),Lt=nt(rt);if(Ar!==qe.ownerDocument)if(Lt!==qe.ownerDocument)if(Ar!==Lt){et=et.length?et:Et(rt);var Kr=void 0;if(rt instanceof J.HTMLElement&&qe instanceof J.SVGElement&&!(qe instanceof J.SVGSVGElement)){if(qe===Lt)continue;Kr=qe.ownerSVGElement}else Kr=qe;for(var Ln=Et(Kr,rt.ownerDocument),jn=0;Ln[jn]&&Ln[jn]===et[jn];)jn++;var Js=[Ln[jn-1],Ln[jn],et[jn]];if(Js[0])for(var mt=Js[0].lastChild;mt;){if(mt===Js[1]){Oe=st,et=Ln;break}if(mt===Js[2])break;mt=mt.previousSibling}}else Ue=rt,(parseInt(G(Ie=qe).getComputedStyle(Ie).zIndex,10)||0)>=(parseInt(G(Ue).getComputedStyle(Ue).zIndex,10)||0)&&(Oe=st);else Oe=st}else Oe=st}return Oe}(I);return _.activeDrops[he]||null}function Pc(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 is(_,w,"dropactivate"),C.activate.target=null,C.activate.dropzone=null),w.type==="dragend"&&(C.deactivate=new is(_,w,"dropdeactivate"),C.deactivate.target=null,C.deactivate.dropzone=null),_.rejected||(_.cur.element!==_.prev.element&&(_.prev.dropzone&&(C.leave=new is(_,w,"dragleave"),w.dragLeave=C.leave.target=_.prev.element,w.prevDropzone=C.leave.dropzone=_.prev.dropzone),_.cur.dropzone&&(C.enter=new is(_,w,"dragenter"),w.dragEnter=_.cur.element,w.dropzone=_.cur.dropzone)),w.type==="dragend"&&_.cur.dropzone&&(C.drop=new is(_,w,"drop"),w.dropzone=_.cur.dropzone,w.relatedTarget=_.cur.element),w.type==="dragmove"&&_.cur.dropzone&&(C.move=new is(_,w,"dropmove"),w.dropzone=_.cur.dropzone)),C}function Oa(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&&ho(_,p.deactivate),w.prev.dropzone=C.dropzone,w.prev.element=C.element}function Rd(f,p){var w=f.interaction,_=f.iEvent,C=f.event;if(_.type==="dragmove"||_.type==="dragend"){var T=w.dropState;p.dynamicDrop&&(T.activeDrops=Tc(p,w.element));var I=_,N=Od(w,I,C);T.rejected=T.rejected&&!!N&&N.dropzone===T.cur.dropzone&&N.element===T.cur.element,T.cur.dropzone=N&&N.dropzone,T.cur.element=N&&N.element,T.events=Pc(w,0,I)}}var Dd={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(I,N){if(U.object(N)){if(I.options.drop.enabled=N.enabled!==!1,N.listeners){var D=Vi(N.listeners),B=Object.keys(D).reduce(function(Q,ae){return Q[/^(enter|leave)/.test(ae)?"drag".concat(ae):/^(activate|deactivate|move)/.test(ae)?"drop".concat(ae):ae]=D[ae],Q},{}),$=I.options.drop.listeners;$&&I.off($),I.on(B),I.options.drop.listeners=B}return U.func(N.ondrop)&&I.on("drop",N.ondrop),U.func(N.ondropactivate)&&I.on("dropactivate",N.ondropactivate),U.func(N.ondropdeactivate)&&I.on("dropdeactivate",N.ondropdeactivate),U.func(N.ondragenter)&&I.on("dragenter",N.ondragenter),U.func(N.ondragleave)&&I.on("dragleave",N.ondragleave),U.func(N.ondropmove)&&I.on("dropmove",N.ondropmove),/^(pointer|center)$/.test(N.overlap)?I.options.drop.overlap=N.overlap:U.number(N.overlap)&&(I.options.drop.overlap=Math.max(Math.min(1,N.overlap),0)),"accept"in N&&(I.options.drop.accept=N.accept),"checker"in N&&(I.options.drop.checker=N.checker),I}return U.bool(N)?(I.options.drop.enabled=N,I):I.options.drop}(this,T)},_.prototype.dropCheck=function(T,I,N,D,B,$){return function(Q,ae,ge,he,ve,Oe,Ie){var Ue=!1;if(!(Ie=Ie||Q.getRect(Oe)))return!!Q.options.drop.checker&&Q.options.drop.checker(ae,ge,Ue,Q,Oe,he,ve);var et=Q.options.drop.overlap;if(et==="pointer"){var st=Vs(he,ve,"drag"),qe=Id(ae);qe.x+=st.x,qe.y+=st.y;var rt=qe.x>Ie.left&&qe.x<Ie.right,Ar=qe.y>Ie.top&&qe.y<Ie.bottom;Ue=rt&&Ar}var Lt=he.getRect(ve);if(Lt&&et==="center"){var Kr=Lt.left+Lt.width/2,Ln=Lt.top+Lt.height/2;Ue=Kr>=Ie.left&&Kr<=Ie.right&&Ln>=Ie.top&&Ln<=Ie.bottom}return Lt&&U.number(et)&&(Ue=Math.max(0,Math.min(Ie.right,Lt.right)-Math.max(Ie.left,Lt.left))*Math.max(0,Math.min(Ie.bottom,Lt.bottom)-Math.max(Ie.top,Lt.top))/(Lt.width*Lt.height)>=et),Q.options.drop.checker&&(Ue=Q.options.drop.checker(ae,ge,Ue,Q,Oe,he,ve)),Ue}(this,T,I,N,D,B,$)},w.dynamicDrop=function(T){return U.bool(T)?(f.dynamicDrop=T,w):f.dynamicDrop},ze(p.phaselessTypes,{dragenter:!0,dragleave:!0,dropactivate:!0,dropdeactivate:!0,dropmove:!0,drop:!0}),p.methodDict.drop="dropzone",f.dynamicDrop=!1,C.actions.drop=Dd.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=Tc(p,w.element),C.events=Pc(w,0,_),C.events.activate&&(ho(C.activeDrops,C.events.activate),p.fire("actions/drop:start",{interaction:w,dragEvent:_}))}},"interactions:action-move":Rd,"interactions:after-action-move":function(f,p){var w=f.interaction,_=f.iEvent;if(w.prepared.name==="drag"){var C=w.dropState;Oa(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;Rd(f,p),Oa(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:Tc,getDrop:Od,getDropEvents:Pc,fireDropEvents:Oa,filterEventType:function(f){return f.search("drag")===0||f.search("drop")===0},defaults:{enabled:!1,accept:null,overlap:"pointer"}},jm=Dd;function H(f){var p=f.interaction,w=f.iEvent,_=f.phase;if(p.prepared.name==="gesture"){var C=p.pointers.map(function(B){return B.pointer}),T=_==="start",I=_==="end",N=p.interactable.options.deltaSource;if(w.touches=[C[0],C[1]],T)w.distance=xc(C,N),w.box=_c(C),w.scale=1,w.ds=0,w.angle=Sc(C,N),w.da=0,p.gesture.startDistance=w.distance,p.gesture.startAngle=w.angle;else if(I||p.pointers.length<2){var D=p.prevEvent;w.distance=D.distance,w.box=D.box,w.scale=D.scale,w.ds=0,w.angle=D.angle,w.da=0}else w.distance=xc(C,N),w.box=_c(C),w.scale=w.distance/p.gesture.startDistance,w.angle=Sc(C,N),w.ds=w.scale-p.gesture.scale,w.da=w.angle-p.gesture.angle;p.gesture.distance=w.distance,p.gesture.angle=w.angle,U.number(w.scale)&&w.scale!==1/0&&!isNaN(w.scale)&&(p.gesture.scale=w.scale)}}var os={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 U.object(C)?(this.options.gesture.enabled=C.enabled!==!1,this.setPerAction("gesture",C),this.setOnEvents("gesture",C),this):U.bool(C)?(this.options.gesture.enabled=C,this):this.options.gesture},p.map.gesture=os,p.methodDict.gesture="gesturable",_.actions.gesture=os.defaults},listeners:{"interactions:action-start":H,"interactions:action-move":H,"interactions:action-end":H,"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}},Fd=os;function $d(f,p,w,_,C,T,I){if(!p)return!1;if(p===!0){var N=U.number(T.width)?T.width:T.right-T.left,D=U.number(T.height)?T.height:T.bottom-T.top;if(I=Math.min(I,Math.abs((f==="left"||f==="right"?N:D)/2)),N<0&&(f==="left"?f="right":f==="right"&&(f="left")),D<0&&(f==="top"?f="bottom":f==="bottom"&&(f="top")),f==="left"){var B=N>=0?T.left:T.right;return w.x<B+I}if(f==="top"){var $=D>=0?T.top:T.bottom;return w.y<$+I}if(f==="right")return w.x>(N>=0?T.right:T.left)-I;if(f==="bottom")return w.y>(D>=0?T.bottom:T.top)-I}return!!U.element(_)&&(U.element(p)?p===_:Tr(_,p,C))}function Mc(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 mn,zi,ii={id:"actions/resize",before:["actions/drag"],install:function(f){var p=f.actions,w=f.browser,_=f.Interactable,C=f.defaults;ii.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),ii.defaultMargin=w.supportsTouch||w.supportsPointerEvent?20:10,_.prototype.resizable=function(T){return function(I,N,D){return U.object(N)?(I.options.resize.enabled=N.enabled!==!1,I.setPerAction("resize",N),I.setOnEvents("resize",N),U.string(N.axis)&&/^x$|^y$|^xy$/.test(N.axis)?I.options.resize.axis=N.axis:N.axis===null&&(I.options.resize.axis=D.defaults.actions.resize.axis),U.bool(N.preserveAspectRatio)?I.options.resize.preserveAspectRatio=N.preserveAspectRatio:U.bool(N.square)&&(I.options.resize.square=N.square),I):U.bool(N)?(I.options.resize.enabled=N,I):I.options.resize}(this,T,f)},p.map.resize=ii,p.methodDict.resize="resizable",C.actions.resize=ii.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:ze({},T),corrected:ze({},T),previous:ze({},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),Mc(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,I=T==="reposition"||T==="negate",N=_.rect,D=_._rects,B=D.start,$=D.corrected,Q=D.delta,ae=D.previous;if(ze(ae,$),I){if(ze($,N),T==="reposition"){if($.top>$.bottom){var ge=$.top;$.top=$.bottom,$.bottom=ge}if($.left>$.right){var he=$.left;$.left=$.right,$.right=he}}}else $.top=Math.min(N.top,B.bottom),$.bottom=Math.max(N.bottom,B.top),$.left=Math.min(N.left,B.right),$.right=Math.max(N.right,B.left);for(var ve in $.width=$.right-$.left,$.height=$.bottom-$.top,$)Q[ve]=$[ve]-ae[ve];C.edges=_.prepared.edges,C.rect=$,C.deltaRect=Q}})(f),Mc(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 I=ze({},p.coords.cur.page),N=w.options.resize;if(N&&N.enabled&&(!p.pointerIsDown||!/mouse|pointer/.test(p.pointerType)||T&N.mouseButtons)){if(U.object(N.edges)){var D={left:!1,right:!1,top:!1,bottom:!1};for(var B in D)D[B]=$d(B,N.edges[B],I,p._latestPointer.eventTarget,_,C,N.margin||ii.defaultMargin);D.left=D.left&&!D.right,D.top=D.top&&!D.bottom,(D.left||D.right||D.top||D.bottom)&&(f.action={name:"resize",edges:D})}else{var $=N.axis!=="y"&&I.x>C.right-ii.defaultMargin,Q=N.axis!=="x"&&I.y>C.bottom-ii.defaultMargin;($||Q)&&(f.action={name:"resize",axes:($?"x":"")+(Q?"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=ii.cursors,T=null;if(w)T=C[_+w];else if(p){for(var I="",N=0,D=["top","bottom","left","right"];N<D.length;N++){var B=D[N];p[B]&&(I+=B)}T=C[I]}return T},filterEventType:function(f){return f.search("resize")===0},defaultMargin:null},Vd=ii,Ud={id:"actions",install:function(f){f.usePlugin(Fd),f.usePlugin(Vd),f.usePlugin(Ne),f.usePlugin(jm)}},Ra=0,vi={request:function(f){return mn(f)},cancel:function(f){return zi(f)},init:function(f){if(mn=f.requestAnimationFrame,zi=f.cancelAnimationFrame,!mn)for(var p=["ms","moz","webkit","o"],w=0;w<p.length;w++){var _=p[w];mn=f["".concat(_,"RequestAnimationFrame")],zi=f["".concat(_,"CancelAnimationFrame")]||f["".concat(_,"CancelRequestAnimationFrame")]}mn=mn&&mn.bind(f),zi=zi&&zi.bind(f),mn||(mn=function(C){var T=Date.now(),I=Math.max(0,16-(T-Ra)),N=f.setTimeout(function(){C(T+I)},I);return Ra=T+I,N},zi=function(C){return clearTimeout(C)})}},Ze={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){Ze.isScrolling=!0,vi.cancel(Ze.i),f.autoScroll=Ze,Ze.interaction=f,Ze.prevTime=Ze.now(),Ze.i=vi.request(Ze.scroll)},stop:function(){Ze.isScrolling=!1,Ze.interaction&&(Ze.interaction.autoScroll=null),vi.cancel(Ze.i)},scroll:function(){var f=Ze.interaction,p=f.interactable,w=f.element,_=f.prepared.name,C=p.options[_].autoScroll,T=Da(C.container,p,w),I=Ze.now(),N=(I-Ze.prevTime)/1e3,D=C.speed*N;if(D>=1){var B={x:Ze.x*D,y:Ze.y*D};if(B.x||B.y){var $=Ac(T);U.window(T)?T.scrollBy(B.x,B.y):T&&(T.scrollLeft+=B.x,T.scrollTop+=B.y);var Q=Ac(T),ae={x:Q.x-$.x,y:Q.y-$.y};(ae.x||ae.y)&&p.fire({type:"autoscroll",target:w,interactable:p,delta:ae,interaction:f,container:T})}Ze.prevTime=I}Ze.isScrolling&&(vi.cancel(Ze.i),Ze.i=vi.request(Ze.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()&&Ze.check(p.interactable,p.prepared.name))if(p.simulation)Ze.x=Ze.y=0;else{var _,C,T,I,N=p.interactable,D=p.element,B=p.prepared.name,$=N.options[B].autoScroll,Q=Da($.container,N,D);if(U.window(Q))I=w.clientX<Ze.margin,_=w.clientY<Ze.margin,C=w.clientX>Q.innerWidth-Ze.margin,T=w.clientY>Q.innerHeight-Ze.margin;else{var ae=mr(Q);I=w.clientX<ae.left+Ze.margin,_=w.clientY<ae.top+Ze.margin,C=w.clientX>ae.right-Ze.margin,T=w.clientY>ae.bottom-Ze.margin}Ze.x=C?1:I?-1:0,Ze.y=T?1:_?-1:0,Ze.isScrolling||(Ze.margin=$.margin,Ze.speed=$.speed,Ze.start(p))}}};function Da(f,p,w){return(U.string(f)?Md(f,p,w):f)||G(w)}function Ac(f){return U.window(f)&&(f=window.document.body),{x:f.scrollLeft,y:f.scrollTop}}var Ic={id:"auto-scroll",install:function(f){var p=f.defaults,w=f.actions;f.autoScroll=Ze,Ze.now=function(){return f.now()},w.phaselessTypes.autoscroll=!0,p.perAction.autoScroll=Ze.defaults},listeners:{"interactions:new":function(f){f.interaction.autoScroll=null},"interactions:destroy":function(f){f.interaction.autoScroll=null,Ze.stop(),Ze.interaction&&(Ze.interaction=null)},"interactions:stop":Ze.stop,"interactions:action-move":function(f){return Ze.onInteractionMove(f)}}},Lc=Ic;function ss(f,p){var w=!1;return function(){return w||(z.console.warn(p),w=!0),f.apply(this,arguments)}}function Fa(f,p){return f.name=p.name,f.axis=p.axis,f.edges=p.edges,f}function zd(f){return U.bool(f)?(this.options.styleCursor=f,this):f===null?(delete this.options.styleCursor,this):this.options.styleCursor}function Wd(f){return U.func(f)?(this.options.actionChecker=f,this):f===null?(delete this.options.actionChecker,this):this.options.actionChecker}var Bd={id:"auto-start/interactableMethods",install:function(f){var p=f.Interactable;p.prototype.getAction=function(w,_,C,T){var I=function(N,D,B,$,Q){var ae=N.getRect($),ge=D.buttons||{0:1,1:4,3:8,4:16}[D.button],he={action:null,interactable:N,interaction:B,element:$,rect:ae,buttons:ge};return Q.fire("auto-start:check",he),he.action}(this,_,C,T,f);return this.options.actionChecker?this.options.actionChecker(w,_,I,this,T,C):I},p.prototype.ignoreFrom=ss(function(w){return this._backCompatOption("ignoreFrom",w)},"Interactable.ignoreFrom() has been deprecated. Use Interactble.draggable({ignoreFrom: newValue})."),p.prototype.allowFrom=ss(function(w){return this._backCompatOption("allowFrom",w)},"Interactable.allowFrom() has been deprecated. Use Interactble.draggable({allowFrom: newValue})."),p.prototype.actionChecker=Wd,p.prototype.styleCursor=zd}};function kc(f,p,w,_,C){return p.testIgnoreAllow(p.options[f.name],w,_)&&p.options[f.name].enabled&&Ws(p,w,f,C)?f:null}function Gd(f,p,w,_,C,T,I){for(var N=0,D=_.length;N<D;N++){var B=_[N],$=C[N],Q=B.getAction(p,w,f,$);if(Q){var ae=kc(Q,B,$,T,I);if(ae)return{action:ae,interactable:B,element:$}}}return{action:null,interactable:null,element:null}}function Nc(f,p,w,_,C){var T=[],I=[],N=_;function D($){T.push($),I.push(N)}for(;U.element(N);){T=[],I=[],C.interactables.forEachMatch(N,D);var B=Gd(f,p,w,T,I,_,C);if(B.action&&!B.interactable.options[B.action.name].manualStart)return B;N=ye(N)}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,Fa(f.prepared,_),f.rect=C&&_.name?C.getRect(T):null,Dc(f,w),w.fire("autoStart:prepared",{interaction:f})}function Ws(f,p,w,_){var C=f.options,T=C[w.name].max,I=C[w.name].maxPerElement,N=_.autoStart.maxInteractions,D=0,B=0,$=0;if(!(T&&I&&N))return!1;for(var Q=0,ae=_.interactions.list;Q<ae.length;Q++){var ge=ae[Q],he=ge.prepared.name;if(ge.interacting()&&(++D>=N||ge.interactable===f&&((B+=he===w.name?1:0)>=T||ge.element===p&&($++,he===w.name&&$>=I))))return!1}return N>0}function Rc(f,p){return U.number(f)?(p.autoStart.maxInteractions=f,this):p.autoStart.maxInteractions}function $a(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 Dc(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 I=w.options[C.name].cursorChecker;T=U.func(I)?I(C,w,_,f._interacting):p.actions.map[C.name].getCursor(C)}$a(f.element,T||"",p)}else p.autoStart.cursorElement&&$a(p.autoStart.cursorElement,"",p)}var jd={id:"auto-start/base",before:["actions"],install:function(f){var p=f.interactStatic,w=f.defaults;f.usePlugin(Bd),w.base.actionChecker=null,w.base.styleCursor=!0,ze(w.perAction,{manualStart:!1,max:1/0,maxPerElement:1,allowFrom:null,ignoreFrom:null,mouseButtons:1}),p.maxInteractions=function(_){return Rc(_,f)},f.autoStart={maxInteractions:1/0,withinInteractionLimit:Ws,cursorElement:null}},listeners:{"interactions:down":function(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget;w.interacting()||Oc(w,Nc(w,_,C,T,p),p)},"interactions:move":function(f,p){(function(w,_){var C=w.interaction,T=w.pointer,I=w.event,N=w.eventTarget;C.pointerType!=="mouse"||C.pointerIsDown||C.interacting()||Oc(C,Nc(C,T,I,N,_),_)})(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,I=C.prepared.name;I&&T&&(T.options[I].manualStart||!Ws(T,C.element,C.prepared,_)?C.stop():(C.start(C.prepared,T,C.element),Dc(C,_)))}}(f,p)},"interactions:stop":function(f,p){var w=f.interaction,_=w.interactable;_&&_.options.styleCursor&&$a(w.element,"",p)}},maxInteractions:Rc,withinInteractionLimit:Ws,validateAction:kc},Va=jd,qd={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 I=Math.abs(C),N=Math.abs(T),D=w.interactable.options.drag,B=D.startAxis,$=I>N?"x":I<N?"y":"xy";if(w.prepared.axis=D.lockAxis==="start"?$[0]:D.lockAxis,$!=="xy"&&B!=="xy"&&B!==$){w.prepared.name=null;for(var Q=_,ae=function(he){if(he!==w.interactable){var ve=w.interactable.options.drag;if(!ve.manualStart&&he.testIgnoreAllow(ve,Q,_)){var Oe=he.getAction(w.downPointer,w.downEvent,w,Q);if(Oe&&Oe.name==="drag"&&function(Ie,Ue){if(!Ue)return!1;var et=Ue.options.drag.startAxis;return Ie==="xy"||et==="xy"||et===Ie}($,he)&&Va.validateAction(Oe,he,Q,_,p))return he}}};U.element(Q);){var ge=p.interactables.forEachMatch(Q,ae);if(ge){w.prepared.name="drag",w.interactable=ge,w.element=Q;break}Q=ye(Q)}}}}}};function Ua(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 Hd={id:"auto-start/hold",install:function(f){var p=f.defaults;f.usePlugin(Va),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=Ua(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;Ua(p)>0&&(p.prepared.name=null)}},getHoldDuration:Ua},Zd=Hd,Yd={id:"auto-start",install:function(f){f.usePlugin(Va),f.usePlugin(Zd),f.usePlugin(qd)}},Jd=function(f){return/^(always|never|auto)$/.test(f)?(this.options.preventDefault=f,this):U.bool(f)?(this.options.preventDefault=f?"always":"never",this):this.options.preventDefault};function Xd(f){var p=f.interaction,w=f.event;p.interactable&&p.interactable.checkAndPreventDefault(w)}var Fc={id:"core/interactablePreventDefault",install:function(f){var p=f.Interactable;p.prototype.preventDefault=Jd,p.prototype.checkAndPreventDefault=function(w){return function(_,C,T){var I=_.options.preventDefault;if(I!=="never")if(I!=="always"){if(C.events.supportsPassive&&/^touch(start|move)$/.test(T.type)){var N=G(T.target).document,D=C.getDocOptions(N);if(!D||!D.events||D.events.passive!==!1)return}/^(mouse|pointer|touch)*(down|start)/i.test(T.type)||U.element(T.target)&&Fe(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||pe(T.element,w.target)))return void T.interactable.checkAndPreventDefault(w)}}})},listeners:["down","move","up","cancel"].reduce(function(f,p){return f["interactions:".concat(p)]=Xd,f},{})};function Bs(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 go(f){var p={};for(var w in f){var _=f[w];U.plainObject(_)?p[w]=go(_):U.array(_)?p[w]=Cc(_):p[w]=_}return p}var za=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=Gs(),this.edges={left:!1,right:!1,top:!1,bottom:!1}}return l(f,[{key:"start",value:function(p,w){var _,C,T=p.phase,I=this.interaction,N=function(B){var $=B.interactable.options[B.prepared.name],Q=$.modifiers;return Q&&Q.length?Q:["snap","snapSize","snapEdges","restrict","restrictEdges","restrictSize"].map(function(ae){var ge=$[ae];return ge&&ge.enabled&&{options:ge,methods:ge._methods}}).filter(function(ae){return!!ae})}(I);this.prepareStates(N),this.startEdges=ze({},I.edges),this.edges=ze({},this.startEdges),this.startOffset=(_=I.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 D=this.fillArg({phase:T,pageCoords:w,preEnd:!1});return this.result=Gs(),this.startAll(D),this.result=this.setAll(D)}},{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,I=p.edges;p.coords=ze({},p.pageCoords),p.rect=ze({},T),p.edges=ze({},I);for(var N=C?this.states.slice(C):this.states,D=Gs(p.coords,p.rect),B=0;B<N.length;B++){var $,Q=N[B],ae=Q.options,ge=ze({},p.coords),he=null;($=Q.methods)!=null&&$.set&&this.shouldDo(ae,_,w)&&(p.state=Q,he=Q.methods.set(p),La(p.edges,p.rect,{x:p.coords.x-ge.x,y:p.coords.y-ge.y})),D.eventProps.push(he)}ze(this.edges,p.edges),D.delta.x=p.coords.x-p.pageCoords.x,D.delta.y=p.coords.y-p.pageCoords.y,D.rectDelta.left=p.rect.left-T.left,D.rectDelta.right=p.rect.right-T.right,D.rectDelta.top=p.rect.top-T.top,D.rectDelta.bottom=p.rect.bottom-T.bottom;var ve=this.result.coords,Oe=this.result.rect;if(ve&&Oe){var Ie=D.rect.left!==Oe.left||D.rect.right!==Oe.right||D.rect.top!==Oe.top||D.rect.bottom!==Oe.bottom;D.changed=Ie||ve.x!==D.coords.x||ve.y!==D.coords.y}return D}},{key:"applyToInteraction",value:function(p){var w=this.interaction,_=p.phase,C=w.coords.cur,T=w.coords.start,I=this.result,N=this.startDelta,D=I.delta;_==="start"&&ze(this.startDelta,I.delta);for(var B=0,$=[[T,N],[C,D]];B<$.length;B++){var Q=$[B],ae=Q[0],ge=Q[1];ae.page.x+=ge.x,ae.page.y+=ge.y,ae.client.x+=ge.x,ae.client.y+=ge.y}var he=this.result.rectDelta,ve=p.rect||w.rect;ve.left+=he.left,ve.right+=he.right,ve.top+=he.top,ve.bottom+=he.bottom,ve.width=ve.right-ve.left,ve.height=ve.bottom-ve.top}},{key:"setAndApply",value:function(p){var w=this.interaction,_=p.phase,C=p.preEnd,T=p.skipModifiers,I=this.setAll(this.fillArg({preEnd:C,phase:_,pageCoords:p.modifiedCoords||w.coords.cur.page}));if(this.result=I,!I.changed&&(!T||T<this.states.length)&&w.interacting())return!1;if(p.modifiedCoords){var N=w.coords.cur.page,D={x:p.modifiedCoords.x-N.x,y:p.modifiedCoords.y-N.y};I.coords.x+=D.x,I.coords.y+=D.y,I.delta.x+=D.x,I.delta.y+=D.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,I=0;I<C.length;I++){var N=C[I];p.state=N;var D=N.options,B=N.methods,$=B.beforeEnd&&B.beforeEnd(p);if($)return this.endResult=$,!1;T=T||!T&&this.shouldDo(D,!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 _=ze({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 I=T[C];_.state=I,I.methods.stop&&I.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,I=_.name;this.states.push({options:C,methods:T,index:w,name:I})}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 I=T.startDelta,N=T.result,D=N.delta,B=N.rectDelta,$=0,Q=[[_.start,I],[_.cur,D]];$<Q.length;$++){var ae=Q[$],ge=ae[0],he=ae[1];ge.page.x-=he.x,ge.page.y-=he.y,ge.client.x-=he.x,ge.client.y-=he.y}C.left-=B.left,C.right-=B.right,C.top-=B.top,C.bottom-=B.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 go(w)}),this.result=Gs(ze({},p.result.coords),ze({},p.result.rect))}},{key:"destroy",value:function(){for(var p in this)this[p]=null}}]),f}();function Gs(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 bi(f,p){var w=f.defaults,_={start:f.start,set:f.set,beforeEnd:f.beforeEnd,stop:f.stop},C=function(T){var I=T||{};for(var N in I.enabled=I.enabled!==!1,w)N in I||(I[N]=w[N]);var D={options:I,methods:_,name:p,enable:function(){return I.enabled=!0,D},disable:function(){return I.enabled=!1,D}};return D};return p&&typeof p=="string"&&(C._defaults=w,C._methods=_),C}function as(f){var p=f.iEvent,w=f.interaction.modification.result;w&&(p.modifiers=w.eventProps)}var Qd={id:"modifiers/base",before:["actions"],install:function(f){f.defaults.perAction.modifiers=[]},listeners:{"interactions:new":function(f){var p=f.interaction;p.modification=new za(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":as,"interactions:action-move":as,"interactions:action-end":as,"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=Qd,Vc={base:{preventDefault:"auto",deltaSource:"page"},perAction:{enabled:!1,origin:{x:0,y:0}},actions:{}},Wa=function(f){d(w,f);var p=S(w);function w(_,C,T,I,N,D,B){var $;o(this,w),($=p.call(this,_)).relatedTarget=null,$.screenX=void 0,$.screenY=void 0,$.button=void 0,$.buttons=void 0,$.ctrlKey=void 0,$.shiftKey=void 0,$.altKey=void 0,$.metaKey=void 0,$.page=void 0,$.client=void 0,$.delta=void 0,$.rect=void 0,$.x0=void 0,$.y0=void 0,$.t0=void 0,$.dt=void 0,$.duration=void 0,$.clientX0=void 0,$.clientY0=void 0,$.velocity=void 0,$.speed=void 0,$.swipe=void 0,$.axes=void 0,$.preEnd=void 0,N=N||_.element;var Q=_.interactable,ae=(Q&&Q.options||Vc).deltaSource,ge=Vs(Q,N,T),he=I==="start",ve=I==="end",Oe=he?b($):_.prevEvent,Ie=he?_.coords.start:ve?{page:Oe.page,client:Oe.client,timeStamp:_.coords.cur.timeStamp}:_.coords.cur;return $.page=ze({},Ie.page),$.client=ze({},Ie.client),$.rect=ze({},_.rect),$.timeStamp=Ie.timeStamp,ve||($.page.x-=ge.x,$.page.y-=ge.y,$.client.x-=ge.x,$.client.y-=ge.y),$.ctrlKey=C.ctrlKey,$.altKey=C.altKey,$.shiftKey=C.shiftKey,$.metaKey=C.metaKey,$.button=C.button,$.buttons=C.buttons,$.target=N,$.currentTarget=N,$.preEnd=D,$.type=B||T+(I||""),$.interactable=Q,$.t0=he?_.pointers[_.pointers.length-1].downTime:Oe.t0,$.x0=_.coords.start.page.x-ge.x,$.y0=_.coords.start.page.y-ge.y,$.clientX0=_.coords.start.client.x-ge.x,$.clientY0=_.coords.start.client.y-ge.y,$.delta=he||ve?{x:0,y:0}:{x:$[ae].x-Oe[ae].x,y:$[ae].y-Oe[ae].y},$.dt=_.coords.delta.timeStamp,$.duration=$.timeStamp-$.t0,$.velocity=ze({},_.coords.velocity[ae]),$.speed=Us($.velocity.x,$.velocity.y),$.swipe=ve||I==="inertiastart"?$.getSwipe():null,$}return l(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,I=202.5<=C&&C<337.5;return{up:I,down:!I&&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}(mo);Object.defineProperties(Wa.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 Kd=l(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}),ep=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}({}),tp=0,rp=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=ss(function($){this.move($)},"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=tp++,this._scopeFire=C,this.pointerType=_;var T=this;this._proxy={};var I=function($){Object.defineProperty(w._proxy,$,{get:function(){return T[$]}})};for(var N in ep)I(N);var D=function($){Object.defineProperty(w._proxy,$,{value:function(){return T[$].apply(T,arguments)}})};for(var B in Uc)D(B);this._scopeFire("interactions:new",{interaction:this})}return l(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)&&(Fa(this.prepared,p),this.interactable=w,this.element=_,this.rect=w.getRect(_),this.edges=this.prepared.edges?ze({},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,I=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=Us(C,T)>this.pointerMoveTolerance);var N,D,B,$=this.getPointerIndex(p),Q={pointer:p,pointerIndex:$,pointerInfo:this.pointers[$],event:w,type:"move",eventTarget:_,dx:C,dy:T,duplicate:I,interaction:this};I||(N=this.coords.velocity,D=this.coords.delta,B=Math.max(D.timeStamp/1e3,.001),N.page.x=D.page.x/B,N.page.y=D.page.y/B,N.client.x=D.client.x/B,N.client.y=D.client.y/B,N.timeStamp=B),this._scopeFire("interactions:move",Q),I||this.simulation||(this.interacting()&&(Q.type=null,this.move(Q)),this.pointerWasMoved&&ka(this.coords.prev,this.coords.cur))}},{key:"move",value:function(p){p&&p.event||yc(this.coords.delta),(p=ze({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 I=/cancel$/i.test(w.type)?"cancel":"up";this._scopeFire("interactions:".concat(I),{pointer:p,pointerIndex:T,pointerInfo:this.pointers[T],event:w,eventTarget:_,type:I,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=ns(p);return this.pointerType==="mouse"||this.pointerType==="pen"?this.pointers.length-1:zs(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,I,N,D=ns(p),B=this.getPointerIndex(p),$=this.pointers[B];return C=C!==!1&&(C||/(down|start)$/i.test(w.type)),$?$.pointer=p:($=new Kd(D,p,w,null,null),B=this.pointers.length,this.pointers.push($)),Na(this.coords.cur,this.pointers.map(function(Q){return Q.pointer}),this._now()),T=this.coords.delta,I=this.coords.prev,N=this.coords.cur,T.page.x=N.page.x-I.page.x,T.page.y=N.page.y-I.page.y,T.client.x=N.client.x-I.client.x,T.client.y=N.client.y-I.client.y,T.timeStamp=N.timeStamp-I.timeStamp,C&&(this.pointerIsDown=!0,$.downTime=this.coords.cur.timeStamp,$.downTarget=_,rs(this.downPointer,p),this.interacting()||(ka(this.coords.start,this.coords.cur),ka(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:$,pointerIndex:B,interaction:this}),B}},{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 Wa(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,I=this.rect;if(I&&_==="move"&&(La(this.edges,I,this.coords.delta[this.interactable.options.deltaSource]),I.width=I.right-I.left,I.height=I.bottom-I.top),this._scopeFire("interactions:before-action-".concat(_),p)===!1)return!1;var N=p.iEvent=this._createPreparedEvent(w,_,C,T);return this._scopeFire("interactions:action-".concat(_),p),_==="start"&&(this.prevEvent=N),this._fireEvent(N),this._scopeFire("interactions:after-action-".concat(_),p),!0}},{key:"_now",value:function(){return Date.now()}}]),f}();function zc(f){Wc(f.interaction)}function Wc(f){if(!function(w){return!(!w.offset.pending.x&&!w.offset.pending.y)}(f))return!1;var p=f.offset.pending;return Ba(f.coords.cur,p),Ba(f.coords.delta,p),La(f.edges,f.rect,p),p.x=0,p.y=0,!0}function np(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 Ba(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 ip={id:"offset",before:["modifiers","pointer-events","actions","inertia"],install:function(f){f.Interaction.prototype.offsetBy=np},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&&(Ba(p.coords.cur,p.offset.total),p.offset.pending.x=0,p.offset.pending.y=0)}(f.interaction)},"interactions:before-action-start":zc,"interactions:before-action-move":zc,"interactions:before-action-end":function(f){var p=f.interaction;if(Wc(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}}},Bc=ip,op=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 l(f,[{key:"start",value:function(p){var w=this.interaction,_=js(w);if(!_||!_.enabled)return!1;var C=w.coords.velocity.client,T=Us(C.x,C.y),I=this.modification||(this.modification=new za(w));if(I.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=I.fillArg({pageCoords:this.startCoords,preEnd:!0,phase:"inertiastart"}),this.t0-w.coords.cur.timeStamp<50&&T>_.minSpeed&&T>_.endSpeed)this.startInertia();else{if(I.result=I.setAll(this.modifierArg),!I.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,_=js(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 I=this.modification,N=this.modifierArg;N.pageCoords={x:this.startCoords.x+this.targetOffset.x,y:this.startCoords.y+this.targetOffset.y},I.result=I.setAll(N),I.result.changed&&(this.isModified=!0,this.modifiedOffset={x:this.targetOffset.x+I.result.delta.x,y:this.targetOffset.y+I.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=vi.request(function(){w.active&&p()})}},{key:"inertiaTick",value:function(){var p,w,_,C,T,I,N,D=this,B=this.interaction,$=js(B).resistance,Q=(B._now()-this.t0)/1e3;if(Q<this.te){var ae,ge=1-(Math.exp(-$*Q)-this.lambda_v0)/this.one_ve_v0;this.isModified?(p=0,w=0,_=this.targetOffset.x,C=this.targetOffset.y,T=this.modifiedOffset.x,I=this.modifiedOffset.y,ae={x:Gc(N=ge,p,_,T),y:Gc(N,w,C,I)}):ae={x:this.targetOffset.x*ge,y:this.targetOffset.y*ge};var he={x:ae.x-this.currentOffset.x,y:ae.y-this.currentOffset.y};this.currentOffset.x+=he.x,this.currentOffset.y+=he.y,B.offsetBy(he),B.move(),this.onNextFrame(function(){return D.inertiaTick()})}else B.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=js(w).smoothEndDuration;if(_<C){var T={x:jc(_,0,this.targetOffset.x,C),y:jc(_,0,this.targetOffset.y,C)},I={x:T.x-this.currentOffset.x,y:T.y-this.currentOffset.y};this.currentOffset.x+=I.x,this.currentOffset.y+=I.y,w.offsetBy(I),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"}),ka(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,vi.cancel(this.timeout)}}]),f}();function js(f){var p=f.interactable,w=f.prepared;return p&&p.options&&w.name&&p.options[w.name].inertia}var sp={id:"inertia",before:["modifiers","actions"],install:function(f){var p=f.defaults;f.usePlugin(Bc),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 op(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;U.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":as,"interactions:action-inertiastart":as,"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 Gc(f,p,w,_){var C=1-f;return C*C*p+2*C*f*w+f*f*_}function jc(f,p,w,_){return-w*(f/=_)*(f-2)+p}var ap=sp;function qc(f,p){for(var w=0;w<p.length;w++){var _=p[w];if(f.immediatePropagationStopped)break;_(f)}}var Hc=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=ze({},p||{})}return l(f,[{key:"fire",value:function(p){var w,_=this.global;(w=this.types[p.type])&&qc(p,w),!p.propagationStopped&&_&&(w=_[p.type])&&qc(p,w)}},{key:"on",value:function(p,w){var _=Vi(p,w);for(p in _)this.types[p]=Nd(this.types[p]||[],_[p])}},{key:"off",value:function(p,w){var _=Vi(p,w);for(p in _){var C=this.types[p];if(C&&C.length)for(var T=0,I=_[p];T<I.length;T++){var N=I[T],D=C.indexOf(N);D!==-1&&C.splice(D,1)}}}},{key:"getRect",value:function(p){return null}}]),f}(),lp=function(){function f(p){o(this,f),this.currentTarget=void 0,this.originalEvent=void 0,this.type=void 0,this.originalEvent=p,rs(this,p)}return l(f,[{key:"preventOriginalDefault",value:function(){this.originalEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.originalEvent.stopPropagation()}},{key:"stopImmediatePropagation",value:function(){this.originalEvent.stopImmediatePropagation()}}]),f}();function wo(f){return U.object(f)?{capture:!!f.capture,passive:!!f.passive}:{capture:!!f,passive:!1}}function ls(f,p){return f===p||(typeof f=="boolean"?!!p.capture===f&&!p.passive:!!f.capture==!!p.capture&&!!f.passive==!!p.passive)}var cp={id:"events",install:function(f){var p,w=[],_={},C=[],T={add:I,remove:N,addDelegate:function($,Q,ae,ge,he){var ve=wo(he);if(!_[ae]){_[ae]=[];for(var Oe=0;Oe<C.length;Oe++){var Ie=C[Oe];I(Ie,ae,D),I(Ie,ae,B,!0)}}var Ue=_[ae],et=Ui(Ue,function(st){return st.selector===$&&st.context===Q});et||(et={selector:$,context:Q,listeners:[]},Ue.push(et)),et.listeners.push({func:ge,options:ve})},removeDelegate:function($,Q,ae,ge,he){var ve,Oe=wo(he),Ie=_[ae],Ue=!1;if(Ie)for(ve=Ie.length-1;ve>=0;ve--){var et=Ie[ve];if(et.selector===$&&et.context===Q){for(var st=et.listeners,qe=st.length-1;qe>=0;qe--){var rt=st[qe];if(rt.func===ge&&ls(rt.options,Oe)){st.splice(qe,1),st.length||(Ie.splice(ve,1),N(Q,ae,D),N(Q,ae,B,!0)),Ue=!0;break}}if(Ue)break}}},delegateListener:D,delegateUseCapture:B,delegatedEvents:_,documents:C,targets:w,supportsOptions:!1,supportsPassive:!1};function I($,Q,ae,ge){if($.addEventListener){var he=wo(ge),ve=Ui(w,function(Oe){return Oe.eventTarget===$});ve||(ve={eventTarget:$,events:{}},w.push(ve)),ve.events[Q]||(ve.events[Q]=[]),Ui(ve.events[Q],function(Oe){return Oe.func===ae&&ls(Oe.options,he)})||($.addEventListener(Q,ae,T.supportsOptions?he:he.capture),ve.events[Q].push({func:ae,options:he}))}}function N($,Q,ae,ge){if($.addEventListener&&$.removeEventListener){var he=zs(w,function(Ar){return Ar.eventTarget===$}),ve=w[he];if(ve&&ve.events)if(Q!=="all"){var Oe=!1,Ie=ve.events[Q];if(Ie){if(ae==="all"){for(var Ue=Ie.length-1;Ue>=0;Ue--){var et=Ie[Ue];N($,Q,et.func,et.options)}return}for(var st=wo(ge),qe=0;qe<Ie.length;qe++){var rt=Ie[qe];if(rt.func===ae&&ls(rt.options,st)){$.removeEventListener(Q,ae,T.supportsOptions?st:st.capture),Ie.splice(qe,1),Ie.length===0&&(delete ve.events[Q],Oe=!0);break}}}Oe&&!Object.keys(ve.events).length&&w.splice(he,1)}else for(Q in ve.events)ve.events.hasOwnProperty(Q)&&N($,Q,"all")}}function D($,Q){for(var ae=wo(Q),ge=new lp($),he=_[$.type],ve=kd($)[0],Oe=ve;U.element(Oe);){for(var Ie=0;Ie<he.length;Ie++){var Ue=he[Ie],et=Ue.selector,st=Ue.context;if(Fe(Oe,et)&&pe(st,ve)&&pe(st,Oe)){var qe=Ue.listeners;ge.currentTarget=Oe;for(var rt=0;rt<qe.length;rt++){var Ar=qe[rt];ls(Ar.options,ae)&&Ar.func(ge)}}}Oe=ye(Oe)}}function B($){return 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}},Ga={methodOrder:["simulationResume","mouseOrPen","hasPointer","idle"],search:function(f){for(var p=0,w=Ga.methodOrder;p<w.length;p++){var _=w[p],C=Ga[_](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,I=C.interactions.list;T<I.length;T++){var N=I[T],D=_;if(N.simulation&&N.simulation.allowResume&&N.pointerType===p)for(;D;){if(D===N.element)return N;D=ye(D)}}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 I=0,N=T.interactions.list;I<N.length;I++){var D=N[I];if(D.pointerType===_){if(D.simulation&&!ja(D,w))continue;if(D.interacting())return D;p||(p=D)}}if(p)return p;for(var B=0,$=T.interactions.list;B<$.length;B++){var Q=$[B];if(!(Q.pointerType!==_||/down/i.test(C)&&Q.simulation))return Q}return null},hasPointer:function(f){for(var p=f.pointerId,w=0,_=f.scope.interactions.list;w<_.length;w++){var C=_[w];if(ja(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 ja(f,p){return f.pointers.some(function(w){return w.id===p})}var up=Ga,qs=["pointerDown","pointerMove","pointerUp","updatePointer","removePointer","windowBlur"];function Zc(f,p){return function(w){var _=p.interactions.list,C=Ec(w),T=kd(w),I=T[0],N=T[1],D=[];if(/^touch/.test(w.type)){p.prevTouchTime=p.now();for(var B=0,$=w.changedTouches;B<$.length;B++){var Q=$[B],ae={pointer:Q,pointerId:ns(Q),pointerType:C,eventType:w.type,eventTarget:I,curEventTarget:N,scope:p},ge=Yc(ae);D.push([ae.pointer,ae.eventTarget,ae.curEventTarget,ge])}}else{var he=!1;if(!fe.supportsPointerEvent&&/mouse/.test(w.type)){for(var ve=0;ve<_.length&&!he;ve++)he=_[ve].pointerType!=="mouse"&&_[ve].pointerIsDown;he=he||p.now()-p.prevTouchTime<500||w.timeStamp===0}if(!he){var Oe={pointer:w,pointerId:ns(w),pointerType:C,eventType:w.type,curEventTarget:N,eventTarget:I,scope:p},Ie=Yc(Oe);D.push([Oe.pointer,Oe.eventTarget,Oe.curEventTarget,Ie])}}for(var Ue=0;Ue<D.length;Ue++){var et=D[Ue],st=et[0],qe=et[1],rt=et[2];et[3][f](st,w,qe,rt)}}}function Yc(f){var p=f.pointerType,w=f.scope,_={interaction:up.search(f),searchDetails:f};return w.fire("interactions:find",_),_.interaction||w.interactions.new({pointerType:p})}function qa(f,p){var w=f.doc,_=f.scope,C=f.options,T=_.interactions.docEvents,I=_.events,N=I[p];for(var D in _.browser.isIOS&&!C.events&&(C.events={passive:!1}),I.delegatedEvents)N(w,D,I.delegateListener),N(w,D,I.delegateUseCapture,!0);for(var B=C&&C.events,$=0;$<T.length;$++){var Q=T[$];N(w,Q.type,Q.listener,B)}}var Jc={id:"core/interactions",install:function(f){for(var p={},w=0;w<qs.length;w++){var _=qs[w];p[_]=Zc(_,f)}var C,T=fe.pEventTypes;function I(){for(var N=0,D=f.interactions.list;N<D.length;N++){var B=D[N];if(B.pointerIsDown&&B.pointerType==="touch"&&!B._interacting)for(var $=function(){var ge=ae[Q];f.documents.some(function(he){return pe(he.doc,ge.downTarget)})||B.removePointer(ge.pointer,ge.event)},Q=0,ae=B.pointers;Q<ae.length;Q++)$()}}(C=J.PointerEvent?[{type:T.down,listener:I},{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:I},{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(N){for(var D=0,B=f.interactions.list;D<B.length;D++)B[D].documentBlur(N)}}),f.prevTouchTime=0,f.Interaction=function(N){d(B,N);var D=S(B);function B(){return o(this,B),D.apply(this,arguments)}return l(B,[{key:"pointerMoveTolerance",get:function(){return f.interactions.pointerMoveTolerance},set:function($){f.interactions.pointerMoveTolerance=$}},{key:"_now",value:function(){return f.now()}}]),B}(rp),f.interactions={list:[],new:function(N){N.scopeFire=function(B,$){return f.fire(B,$)};var D=new f.Interaction(N);return f.interactions.list.push(D),D},listeners:p,docEvents:C,pointerMoveTolerance:1},f.usePlugin(Fc)},listeners:{"scope:add-document":function(f){return qa(f,"add")},"scope:remove-document":function(f){return qa(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:qa,doOnInteractions:Zc,methodNames:qs},dp=Jc,_i=function(f){return f[f.On=0]="On",f[f.Off=1]="Off",f}(_i||{}),pp=function(){function f(p,w,_,C){o(this,f),this.target=void 0,this.options=void 0,this._actions=void 0,this.events=new Hc,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=G(In(p)?this._context:p),this._doc=this._win.document,this._scopeEvents=C,this.set(w)}return l(f,[{key:"_defaults",get:function(){return{base:{},perAction:{},actions:{}}}},{key:"setOnEvents",value:function(p,w){return U.func(w.onstart)&&this.on("".concat(p,"start"),w.onstart),U.func(w.onmove)&&this.on("".concat(p,"move"),w.onmove),U.func(w.onend)&&this.on("".concat(p,"end"),w.onend),U.func(w.oninertiastart)&&this.on("".concat(p,"inertiastart"),w.oninertiastart),this}},{key:"updatePerActionListeners",value:function(p,w,_){var C,T=this,I=(C=this._actions.map[p])==null?void 0:C.filterEventType,N=function(D){return(I==null||I(D))&&Bs(D,T._actions)};(U.array(w)||U.object(w))&&this._onOff(_i.Off,p,w,void 0,N),(U.array(_)||U.object(_))&&this._onOff(_i.On,p,_,void 0,N)}},{key:"setPerAction",value:function(p,w){var _=this._defaults;for(var C in w){var T=C,I=this.options[p],N=w[T];T==="listeners"&&this.updatePerActionListeners(p,I.listeners,N),U.array(N)?I[T]=Cc(N):U.plainObject(N)?(I[T]=ze(I[T]||{},go(N)),U.object(_.perAction[T])&&"enabled"in _.perAction[T]&&(I[T].enabled=N.enabled!==!1)):U.bool(N)&&U.object(_.perAction[T])?I[T].enabled=N:I[T]=N}}},{key:"getRect",value:function(p){return p=p||(U.element(this.target)?this.target:null),U.string(this.target)&&(p=p||this._context.querySelector(this.target)),yi(p)}},{key:"rectChecker",value:function(p){var w=this;return U.func(p)?(this.getRect=function(_){var C=ze({},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(In(w)||U.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 U.string(p)?Array.from(this._context.querySelectorAll(p)):U.func(p)&&p.getAllElements?p.getAllElements():U.element(p)?[p]:[]}},{key:"context",value:function(){return this._context}},{key:"inContext",value:function(p){return this._context===p.ownerDocument||pe(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||!!U.element(_)&&(U.string(p)?Tr(_,p,w):!!U.element(p)&&pe(p,_))}},{key:"testIgnore",value:function(p,w,_){return!(!p||!U.element(_))&&(U.string(p)?Tr(_,p,w):!!U.element(p)&&pe(p,_))}},{key:"fire",value:function(p){return this.events.fire(p),this}},{key:"_onOff",value:function(p,w,_,C,T){U.object(w)&&!U.array(w)&&(C=_,_=null);var I=Vi(w,_,T);for(var N in I){N==="wheel"&&(N=fe.wheelEvent);for(var D=0,B=I[N];D<B.length;D++){var $=B[D];Bs(N,this._actions)?this.events[p===_i.On?"on":"off"](N,$):U.string(this.target)?this._scopeEvents[p===_i.On?"addDelegate":"removeDelegate"](this.target,this._context,N,$,C):this._scopeEvents[p===_i.On?"add":"remove"](this.target,N,$,C)}}return this}},{key:"on",value:function(p,w,_){return this._onOff(_i.On,p,w,_)}},{key:"off",value:function(p,w,_){return this._onOff(_i.Off,p,w,_)}},{key:"set",value:function(p){var w=this._defaults;for(var _ in U.object(p)||(p={}),this.options=go(w.base),this._actions.methodDict){var C=_,T=this._actions.methodDict[C];this.options[C]={},this.setPerAction(C,ze(ze({},w.perAction),w.actions[C])),this[T](p[C])}for(var I in p)I!=="getRect"?U.func(this[I])&&this[I](p[I]):this.rectChecker(p.getRect);return this}},{key:"unset",value:function(){if(U.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,I=C.context,N=C.listeners;T===this.target&&I===this._context&&w.splice(_,1);for(var D=N.length-1;D>=0;D--)this._scopeEvents.removeDelegate(this.target,this._context,p,N[D][0],N[D][1])}else this._scopeEvents.remove(this.target,"all")}}]),f}(),fp=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,I=U.string(T)?w.selectorMap[T]:T[w.scope.id],N=zs(I,function(D){return D===C});I.splice(N,1)}})}return l(f,[{key:"new",value:function(p,w){w=ze(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(_),U.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=U.string(p),T=C?this.selectorMap[p]:p[this.scope.id];if(T)return Ui(T,function(I){return I._context===_&&(C||I.inContext(p))})}},{key:"forEachMatch",value:function(p,w){for(var _=0,C=this.list;_<C.length;_++){var T=C[_],I=void 0;if((U.string(T.target)?U.element(p)&&Fe(p,T.target):p===T.target)&&T.inContext(p)&&(I=w(T)),I!==void 0)return I}}}]),f}(),mp=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=fe,this.defaults=go(Vc),this.Eventable=Hc,this.actions={map:{},phases:{start:!0,move:!0,end:!0},methodDict:{},phaselessTypes:{}},this.interactStatic=function(_){var C=function T(I,N){var D=_.interactables.getExisting(I,N);return D||((D=_.interactables.new(I,N)).events.global=T.globalEvents),D};return C.getPointerAverage=Ld,C.getTouchBBox=_c,C.getTouchDistance=xc,C.getTouchAngle=Sc,C.getElementRect=yi,C.getElementClientRect=mr,C.matchesSelector=Fe,C.closest=Se,C.globalEvents={},C.version="1.10.27",C.scope=_,C.use=function(T,I){return this.scope.usePlugin(T,I),this},C.isSet=function(T,I){return!!this.scope.interactables.get(T,I&&I.context)},C.on=ss(function(T,I,N){if(U.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),U.array(T)){for(var D=0,B=T;D<B.length;D++){var $=B[D];this.on($,I,N)}return this}if(U.object(T)){for(var Q in T)this.on(Q,T[Q],I);return this}return Bs(T,this.scope.actions)?this.globalEvents[T]?this.globalEvents[T].push(I):this.globalEvents[T]=[I]:this.scope.events.add(this.scope.document,T,I,{options:N}),this},"The interact.on() method is being deprecated"),C.off=ss(function(T,I,N){if(U.string(T)&&T.search(" ")!==-1&&(T=T.trim().split(/ +/)),U.array(T)){for(var D=0,B=T;D<B.length;D++){var $=B[D];this.off($,I,N)}return this}if(U.object(T)){for(var Q in T)this.off(Q,T[Q],I);return this}var ae;return Bs(T,this.scope.actions)?T in this.globalEvents&&(ae=this.globalEvents[T].indexOf(I))!==-1&&this.globalEvents[T].splice(ae,1):this.scope.events.remove(this.scope.document,T,I,N),this},"The interact.off() method is being deprecated"),C.debug=function(){return this.scope},C.supportsTouch=function(){return fe.supportsTouch},C.supportsPointerEvent=function(){return fe.supportsPointerEvent},C.stop=function(){for(var T=0,I=this.scope.interactions.list;T<I.length;T++)I[T].stop();return this},C.pointerMoveTolerance=function(T){return U.number(T)?(this.scope.interactions.pointerMoveTolerance=T,this):this.scope.interactions.pointerMoveTolerance},C.addDocument=function(T,I){this.scope.addDocument(T,I)},C.removeDocument=function(T){this.scope.removeDocument(T)},C}(this),this.InteractEvent=Wa,this.Interactable=void 0,this.interactables=new fp(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=S(T);function T(){return o(this,T),C.apply(this,arguments)}return l(T,[{key:"_defaults",get:function(){return w.defaults}},{key:"set",value:function(I){return P(h(T.prototype),"set",this).call(this,I),w.fire("interactable:set",{options:I,interactable:this}),this}},{key:"unset",value:function(){P(h(T.prototype),"unset",this).call(this);var I=w.interactables.list.indexOf(this);I<0||(w.interactables.list.splice(I,1),w.fire("interactable:unset",{interactable:this}))}}]),T}(pp)}return l(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,U.window(_)&&q(_),J.init(_),fe.init(_),vi.init(_),w.window=_,w.document=_.document,w.usePlugin(dp),w.usePlugin(cp),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(N,D){return N[D]=!0,N[Xc(D)]=!0,N},{});_<C;_++){var I=this.listenerMaps[_].id;if(I&&(T[I]||T[Xc(I)]))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 _=G(p);w=w?ze({},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),_=G(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 Qc=new mp,Mr=Qc.interactStatic,hp=typeof globalThis<"u"?globalThis:window;Qc.init(hp);var gp=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,I=f.limits,N=I===void 0?{left:-1/0,right:1/0,top:-1/0,bottom:1/0}:I,D=f.offset,B=D===void 0?{x:0,y:0}:D,$={range:T,grid:f,x:null,y:null},Q=0;Q<p.length;Q++){var ae=p[Q],ge=ae[0],he=ae[1],ve=Math.round((_-B.x)/f[ge]),Oe=Math.round((C-B.y)/f[he]);$[ge]=Math.max(N.left,Math.min(N.right,ve*f[ge]+B.x)),$[he]=Math.max(N.top,Math.min(N.bottom,Oe*f[he]+B.y))}return $};return w.grid=f,w.coordFields=p,w}}),wp={id:"snappers",install:function(f){var p=f.interactStatic;p.snappers=ze(p.snappers||{},gp),p.createSnapGrid=p.snappers.grid}},yp=wp,vp={start:function(f){var p=f.state,w=f.rect,_=f.edges,C=f.pageCoords,T=p.options,I=T.ratio,N=T.enabled,D=p.options,B=D.equalDelta,$=D.modifiers;I==="preserve"&&(I=w.width/w.height),p.startCoords=ze({},C),p.startRect=ze({},w),p.ratio=I,p.equalDelta=B;var Q=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 ae=(Q.left?1:-1)*(Q.top?1:-1);p.edgeSign={x:ae,y:ae}}else p.edgeSign={x:Q.left?-1:1,y:Q.top?-1:1};if(N!==!1&&ze(_,Q),$!=null&&$.length){var ge=new za(f.interaction);ge.copyFrom(f.interaction.modification),ge.prepareStates($),p.subModification=ge,ge.startAll(n({},f))}},set:function(f){var p=f.state,w=f.rect,_=f.coords,C=p.linkedEdges,T=ze({},_),I=p.equalDelta?Kc:bp;if(ze(f.edges,C),I(p,p.xIsPrimaryAxis,_,w),!p.subModification)return null;var N=ze({},w);La(C,N,{x:_.x-T.x,y:_.y-T.y});var D=p.subModification.setAll(n(n({},f),{},{rect:N,edges:C,pageCoords:_,prevCoords:_,prevRect:N})),B=D.delta;return D.changed&&(I(p,Math.abs(B.x)>Math.abs(B.y),D.coords,D.rect),ze(_,D.coords)),D.eventProps},defaults:{ratio:"preserve",equalDelta:!1,modifiers:[],enabled:!1}};function Kc(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 bp(f,p,w,_){var C=f.startRect,T=f.startCoords,I=f.ratio,N=f.edgeSign;if(p){var D=_.width/I;w.y=T.y+(D-C.height)*N.y}else{var B=_.height*I;w.x=T.x+(B-C.width)*N.x}}var eu=bi(vp,"aspectRatio"),tu=function(){};tu._defaults={};var Hs=tu;function Wi(f,p,w){return U.func(f)?ts(f,p.interactable,p.element,[w.x,w.y,p]):ts(f,p.interactable,p.element)}var Zs={start:function(f){var p=f.rect,w=f.startOffset,_=f.state,C=f.interaction,T=f.pageCoords,I=_.options,N=I.elementRect,D=ze({left:0,top:0,right:0,bottom:0},I.offset||{});if(p&&N){var B=Wi(I.restriction,C,T);if(B){var $=B.right-B.left-p.width,Q=B.bottom-B.top-p.height;$<0&&(D.left+=$,D.right+=$),Q<0&&(D.top+=Q,D.bottom+=Q)}D.left+=w.left-p.width*N.left,D.top+=w.top-p.height*N.top,D.right+=w.right-p.width*(1-N.right),D.bottom+=w.bottom-p.height*(1-N.bottom)}_.offset=D},set:function(f){var p=f.coords,w=f.interaction,_=f.state,C=_.options,T=_.offset,I=Wi(C.restriction,w,p);if(I){var N=function(D){return!D||"left"in D&&"top"in D||((D=ze({},D)).left=D.x||0,D.top=D.y||0,D.right=D.right||D.left+D.width,D.bottom=D.bottom||D.top+D.height),D}(I);p.x=Math.max(Math.min(N.right-T.right,p.x),N.left+T.left),p.y=Math.max(Math.min(N.bottom-T.bottom,p.y),N.top+T.top)}},defaults:{restriction:null,elementRect:null,offset:null,endOnly:!1,enabled:!1}},_p=bi(Zs,"restrict"),ru={top:1/0,left:1/0,bottom:-1/0,right:-1/0},nu={top:-1/0,left:-1/0,bottom:1/0,right:1/0};function iu(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 cs={noInner:ru,noOuter:nu,start:function(f){var p,w=f.interaction,_=f.startOffset,C=f.state,T=C.options;T&&(p=fo(Wi(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,I=C.options;if(w){var N=ze({},p),D=Wi(I.inner,_,N)||{},B=Wi(I.outer,_,N)||{};iu(D,ru),iu(B,nu),w.top?p.y=Math.min(Math.max(B.top+T.top,N.y),D.top+T.top):w.bottom&&(p.y=Math.max(Math.min(B.bottom+T.bottom,N.y),D.bottom+T.bottom)),w.left?p.x=Math.min(Math.max(B.left+T.left,N.x),D.left+T.left):w.right&&(p.x=Math.max(Math.min(B.right+T.right,N.x),D.right+T.right))}},defaults:{inner:null,outer:null,offset:null,endOnly:!1,enabled:!1}},xp=bi(cs,"restrictEdges"),Sp=ze({get elementRect(){return{top:0,left:0,bottom:1,right:1}},set elementRect(f){}},Zs.defaults),Ep=bi({start:Zs.start,set:Zs.set,defaults:Sp},"restrictRect"),Cp={width:-1/0,height:-1/0},Tp={width:1/0,height:1/0},Pp=bi({start:function(f){return cs.start(f)},set:function(f){var p=f.interaction,w=f.state,_=f.rect,C=f.edges,T=w.options;if(C){var I=wc(Wi(T.min,p,f.coords))||Cp,N=wc(Wi(T.max,p,f.coords))||Tp;w.options={endOnly:T.endOnly,inner:ze({},cs.noInner),outer:ze({},cs.noOuter)},C.top?(w.options.inner.top=_.bottom-I.height,w.options.outer.top=_.bottom-N.height):C.bottom&&(w.options.inner.bottom=_.top+I.height,w.options.outer.bottom=_.top+N.height),C.left?(w.options.inner.left=_.right-I.width,w.options.outer.left=_.right-N.width):C.right&&(w.options.inner.right=_.left+I.width,w.options.outer.right=_.left+N.width),cs.set(f),w.options=T}},defaults:{min:null,max:null,endOnly:!1,enabled:!1}},"restrictSize"),Ha={start:function(f){var p,w=f.interaction,_=f.interactable,C=f.element,T=f.rect,I=f.state,N=f.startOffset,D=I.options,B=D.offsetWithOrigin?function(ae){var ge=ae.interaction.element,he=fo(ts(ae.state.options.origin,null,null,[ge])),ve=he||Vs(ae.interactable,ge,ae.interaction.prepared.name);return ve}(f):{x:0,y:0};if(D.offset==="startCoords")p={x:w.coords.start.page.x,y:w.coords.start.page.y};else{var $=ts(D.offset,_,C,[w]);(p=fo($)||{x:0,y:0}).x+=B.x,p.y+=B.y}var Q=D.relativePoints;I.offsets=T&&Q&&Q.length?Q.map(function(ae,ge){return{index:ge,relativePoint:ae,x:N.left-T.width*ae.x+p.x,y:N.top-T.height*ae.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,I=Vs(p.interactable,p.element,p.prepared.name),N=ze({},w),D=[];C.offsetWithOrigin||(N.x-=I.x,N.y-=I.y);for(var B=0,$=T;B<$.length;B++)for(var Q=$[B],ae=N.x-Q.x,ge=N.y-Q.y,he=0,ve=C.targets.length;he<ve;he++){var Oe=C.targets[he],Ie=void 0;(Ie=U.func(Oe)?Oe(ae,ge,p._proxy,Q,he):Oe)&&D.push({x:(U.number(Ie.x)?Ie.x:ae)+Q.x,y:(U.number(Ie.y)?Ie.y:ge)+Q.y,range:U.number(Ie.range)?Ie.range:C.range,source:Oe,index:he,offset:Q})}for(var Ue={target:null,inRange:!1,distance:0,range:0,delta:{x:0,y:0}},et=0;et<D.length;et++){var st=D[et],qe=st.range,rt=st.x-N.x,Ar=st.y-N.y,Lt=Us(rt,Ar),Kr=Lt<=qe;qe===1/0&&Ue.inRange&&Ue.range!==1/0&&(Kr=!1),Ue.target&&!(Kr?Ue.inRange&&qe!==1/0?Lt/qe<Ue.distance/Ue.range:qe===1/0&&Ue.range!==1/0||Lt<Ue.distance:!Ue.inRange&&Lt<Ue.distance)||(Ue.target=st,Ue.distance=Lt,Ue.range=qe,Ue.inRange=Kr,Ue.delta.x=rt,Ue.delta.y=Ar)}return Ue.inRange&&(w.x=Ue.target.x,w.y=Ue.target.y),_.closest=Ue,Ue},defaults:{range:1/0,targets:null,offset:null,offsetWithOrigin:!0,origin:null,relativePoints:null,endOnly:!1,enabled:!1}},Mp=bi(Ha,"snap"),Ys={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"]],Ha.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,I={x:_.x-T[0].x,y:_.y-T[0].y};w.options=ze({},C),w.options.targets=[];for(var N=0,D=C.targets||[];N<D.length;N++){var B=D[N],$=void 0;if($=U.func(B)?B(I.x,I.y,p):B){for(var Q=0,ae=w.targetFields;Q<ae.length;Q++){var ge=ae[Q],he=ge[0],ve=ge[1];if(he in $||ve in $){$.x=$[he],$.y=$[ve];break}}w.options.targets.push($)}}var Oe=Ha.set(f);return w.options=C,Oe},defaults:{range:1/0,targets:null,offset:null,endOnly:!1,enabled:!1}},Ap=bi(Ys,"snapSize"),Za={aspectRatio:eu,restrictEdges:xp,restrict:_p,restrictRect:Ep,restrictSize:Pp,snapEdges:bi({start:function(f){var p=f.edges;return p?(f.state.targetFields=f.state.targetFields||[[p.left?"left":"right",p.top?"top":"bottom"]],Ys.start(f)):null},set:Ys.set,defaults:ze(go(Ys.defaults),{targets:void 0,range:void 0,offset:{x:0,y:0}})},"snapEdges"),snap:Mp,snapSize:Ap,spring:Hs,avoid:Hs,transform:Hs,rubberband:Hs},Ip={id:"modifiers",install:function(f){var p=f.interactStatic;for(var w in f.usePlugin($c),f.usePlugin(yp),p.modifiers=Za,Za){var _=Za[w],C=_._defaults,T=_._methods;C._methods=T,f.defaults.perAction[w]=C}}},Lp=Ip,ou=function(f){d(w,f);var p=S(w);function w(_,C,T,I,N,D){var B;if(o(this,w),rs(b(B=p.call(this,N)),T),T!==C&&rs(b(B),C),B.timeStamp=D,B.originalEvent=T,B.type=_,B.pointerId=ns(C),B.pointerType=Ec(C),B.target=I,B.currentTarget=null,_==="tap"){var $=N.getPointerIndex(C);B.dt=B.timeStamp-N.pointers[$].downTime;var Q=B.timeStamp-N.tapTime;B.double=!!N.prevTap&&N.prevTap.type!=="doubletap"&&N.prevTap.target===B.target&&Q<500}else _==="doubletap"&&(B.dt=C.timeStamp-N.tapTime,B.double=!0);return B}return l(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}(mo),us={id:"pointer-events/base",before:["inertia","modifiers","auto-start","actions"],install:function(f){f.pointerEvents=us,f.defaults.actions.pointerEvents=us.defaults,ze(f.actions.phaselessTypes,us.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&&Ya(f),xi({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,I=w.event,N=w.eventTarget,D=w.pointerIndex,B=C.pointers[D].hold,$=Gn(N),Q={interaction:C,pointer:T,event:I,eventTarget:N,type:"hold",targets:[],path:$,node:null},ae=0;ae<$.length;ae++){var ge=$[ae];Q.node=ge,_.fire("pointerEvents:collect-targets",Q)}if(Q.targets.length){for(var he=1/0,ve=0,Oe=Q.targets;ve<Oe.length;ve++){var Ie=Oe[ve].eventable.options.holdDuration;Ie<he&&(he=Ie)}B.duration=he,B.timeout=setTimeout(function(){xi({interaction:C,eventTarget:N,pointer:T,event:I,type:"hold"},_)},he)}})(f,p),xi(f,p)},"interactions:up":function(f,p){Ya(f),xi(f,p),function(w,_){var C=w.interaction,T=w.pointer,I=w.event,N=w.eventTarget;C.pointerWasMoved||xi({interaction:C,eventTarget:N,pointer:T,event:I,type:"tap"},_)}(f,p)},"interactions:cancel":function(f,p){Ya(f),xi(f,p)}},PointerEvent:ou,fire:xi,collectEventTargets:su,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 xi(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,I=f.type,N=f.targets,D=N===void 0?su(f,p):N,B=new ou(I,_,C,T,w,p.now());p.fire("pointerEvents:new",{pointerEvent:B});for(var $={interaction:w,pointer:_,event:C,eventTarget:T,targets:D,type:I,pointerEvent:B},Q=0;Q<D.length;Q++){var ae=D[Q];for(var ge in ae.props||{})B[ge]=ae.props[ge];var he=Vs(ae.eventable,ae.node);if(B._subtractOrigin(he),B.eventable=ae.eventable,B.currentTarget=ae.node,ae.eventable.fire(B),B._addOrigin(he),B.immediatePropagationStopped||B.propagationStopped&&Q+1<D.length&&D[Q+1].node!==B.currentTarget)break}if(p.fire("pointerEvents:fired",$),I==="tap"){var ve=B.double?xi({interaction:w,pointer:_,event:C,eventTarget:T,type:"doubletap"},p):B;w.prevTap=ve,w.tapTime=ve.timeStamp}return B}function su(f,p){var w=f.interaction,_=f.pointer,C=f.event,T=f.eventTarget,I=f.type,N=w.getPointerIndex(_),D=w.pointers[N];if(I==="tap"&&(w.pointerWasMoved||!D||D.downTarget!==T))return[];for(var B=Gn(T),$={interaction:w,pointer:_,event:C,eventTarget:T,type:I,path:B,targets:[],node:null},Q=0;Q<B.length;Q++){var ae=B[Q];$.node=ae,p.fire("pointerEvents:collect-targets",$)}return I==="hold"&&($.targets=$.targets.filter(function(ge){var he,ve;return ge.eventable.options.holdDuration===((he=w.pointers[N])==null||(ve=he.hold)==null?void 0:ve.duration)})),$.targets}function Ya(f){var p=f.interaction,w=f.pointerIndex,_=p.pointers[w].hold;_&&_.timeout&&(clearTimeout(_.timeout),_.timeout=null)}var kp=Object.freeze({__proto__:null,default:us});function Np(f){var p=f.interaction;p.holdIntervalHandle&&(clearInterval(p.holdIntervalHandle),p.holdIntervalHandle=null)}var Op={id:"pointer-events/holdRepeat",install:function(f){f.usePlugin(us);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)]=Np,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 I=T[0].eventable.options.holdRepeatInterval;I<=0||(w.holdIntervalHandle=setTimeout(function(){p.pointerEvents.fire({interaction:w,eventTarget:C,type:"hold",pointer:_,event:_},p)},I))}}})},Rp=Op,Dp={id:"pointer-events/interactableTargets",install:function(f){var p=f.Interactable;p.prototype.pointerEvents=function(_){return ze(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(I){var N=I.events,D=N.options;N.types[C]&&N.types[C].length&&I.testIgnoreAllow(D,_,T)&&w.push({node:_,eventable:N,props:{interactable:I}})})},"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;ze(w.events.options,p.pointerEvents.defaults),ze(w.events.options,_.pointerEvents||{})}}},Fp=Dp,$p={id:"pointer-events",install:function(f){f.usePlugin(kp),f.usePlugin(Rp),f.usePlugin(Fp)}},Vp=$p,Up={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 I=_.getAllElements(),N=T.window.Promise,D=N?[]:null,B=function(){var Q=I[$],ae=_.getRect(Q);if(!ae)return 1;var ge,he=Ui(T.interactions.list,function(Ie){return Ie.interacting()&&Ie.interactable===_&&Ie.element===Q&&Ie.prepared.name===C.name});if(he)he.move(),D&&(ge=he._reflowPromise||new N(function(Ie){he._reflowResolve=Ie}));else{var ve=wc(ae),Oe=function(Ie){return{coords:Ie,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:ve.x,y:ve.y},client:{x:ve.x,y:ve.y},timeStamp:T.now()});ge=function(Ie,Ue,et,st,qe){var rt=Ie.interactions.new({pointerType:"reflow"}),Ar={interaction:rt,event:qe,pointer:qe,eventTarget:et,phase:"reflow"};rt.interactable=Ue,rt.element=et,rt.prevEvent=qe,rt.updatePointer(qe,qe,et,!0),yc(rt.coords.delta),Fa(rt.prepared,st),rt._doPhase(Ar);var Lt=Ie.window,Kr=Lt.Promise,Ln=Kr?new Kr(function(jn){rt._reflowResolve=jn}):void 0;return rt._reflowPromise=Ln,rt.start(st,Ue,et),rt._interacting?(rt.move(Ar),rt.end(qe)):(rt.stop(),rt._reflowResolve()),rt.removePointer(qe,qe),Ln}(T,_,Q,C,Oe)}D&&D.push(ge)},$=0;$<I.length&&!B();$++);return D&&N.all(D).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))}}},zp=Up;if(Mr.use(Fc),Mr.use(Bc),Mr.use(Vp),Mr.use(ap),Mr.use(Lp),Mr.use(Yd),Mr.use(Ud),Mr.use(Lc),Mr.use(zp),Mr.default=Mr,i(e)==="object"&&e)try{e.exports=Mr}catch{}return Mr.default=Mr,Mr})})(Xb,Xb.exports);YQ=Xb.exports,q1=yD(YQ)});function _D(e,t,r){return t?`${e}-${t}`:r?`${e}-${r}`:`${e}-m`}var xD=O(()=>{});var sc,Oi,ac,Qb,SD,ED,JQ,s3,CD,e_,Kb,TD=O(()=>{cr();tc();bD();ro();Wo();Fr();Tn();YE();Sa();Xl();xD();jb();i3();Ms();En();sc={dialog:"dialog",panel:"panel",scrim:"scrim",container:"container",containerOpen:"container--open",containerEmbedded:"container--embedded",assistiveText:"assistive-text",openingActive:"dialog--opening-active"},Oi={actionBar:"action-bar",alerts:"alerts",content:"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"},ac=25,Qb=25,SD={x:0,y:0},ED={top:0,right:0,bottom:0,left:0},JQ=Dt`: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}`,s3=0,CD="",e_=class e_ extends $t{constructor(){super(...arguments),this.dragPosition={...SD},this.ignoreOpenChange=!1,this.mutationObserver=Kn("mutation",()=>this.handleMutationObserver()),this._open=!1,this.openEnd=()=>{this.setFocus(),this.el.removeEventListener("calciteDialogOpen",this.openEnd)},this.openTransitionProp="opacity",this.panelEl=ki(),this.resizePosition={...ED},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=pn(),this.modal=!1,this.outsideCloseDisabled=!1,this.overlayPositioning="absolute",this.placement="center",this.resizable=!1,this.scale="m",this.widthScale="m",this.calciteDialogBeforeClose=Ft({cancelable:!1}),this.calciteDialogBeforeOpen=Ft({cancelable:!1}),this.calciteDialogClose=Ft({cancelable:!1}),this.calciteDialogOpen=Ft({cancelable:!1}),this.calciteDialogScroll=Ft({cancelable:!1})}get open(){return this._open}set open(t){let r=this._open;t!==r&&(this._open=t,this.toggleDialog(t))}async scrollContentTo(t){await this.panelEl.value?.scrollContentTo(t)}async setFocus(){return await Wn(this),this.panelEl.value?.setFocus()??Jl(this.el)}async updateFocusTrapElements(){Gb(this)}connectedCallback(){super.connectedCallback(),this.mutationObserver?.observe(this.el,{childList:!0,subtree:!0}),Bb(this,{focusTrapOptions:{clickOutsideDeactivates:()=>!this.modal,escapeDeactivates:t=>(!t.defaultPrevented&&!this.escapeDisabled&&(this.open=!1,t.preventDefault()),!1)}}),this.setupInteractions()}async load(){Un(this),this.open&&this.openDialog()}willUpdate(t){t.has("modal")&&(this.hasUpdated||this.modal!==!1)&&this.updateOverflowHiddenClass(),(t.has("open")&&(this.hasUpdated||this.open!==!1)||t.has("placement")&&(this.hasUpdated||this.placement!=="center")||t.has("resizable")&&(this.hasUpdated||this.resizable!==!1)||t.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1))&&this.setupInteractions(),(t.has("messages")||t.has("dragEnabled")&&(this.hasUpdated||this.dragEnabled!==!1)||t.has("resizable")&&(this.hasUpdated||this.resizable!==!1))&&this.updateAssistiveText(),t.has("opened")&&(this.hasUpdated||this.opened!==!1)&&this.handleOpenedChange(this.opened)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),this.removeOverflowHiddenClass(),this.mutationObserver?.disconnect(),ud(this),this.embedded=!1,this.cleanupInteractions()}updateAssistiveText(){let{messages:t}=this;this.assistiveText=t&&(this.dragEnabled||this.resizable)?`${this.dragEnabled?t.dragEnabled:""} ${this.resizable?t.resizeEnabled:""}`:null}onBeforeOpen(){this.calciteDialogBeforeOpen.emit()}onOpen(){this.calciteDialogOpen.emit(),z1(this)}onBeforeClose(){this.calciteDialogBeforeClose.emit()}onClose(){this.calciteDialogClose.emit(),ud(this)}toggleDialog(t){this.ignoreOpenChange||(t?this.openDialog():this.closeDialog())}handleOpenedChange(t){let{transitionEl:r}=this;r&&(r.classList.toggle(sc.openingActive,t),oc(this))}async triggerInteractModifiers(){let{interaction:t}=this;t&&(await t.reflow({name:"drag"}),await t.reflow({name:"resize"}))}getTransitionElDOMRect(){return this.transitionEl.getBoundingClientRect()}handleKeyDown(t){let{key:r,shiftKey:n,defaultPrevented:i}=t,{dragEnabled:o,resizable:s,resizePosition:l,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-ac,type:"blockSize"}),l.bottom-=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y-=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowDown":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().height+ac,type:"blockSize"}),l.bottom+=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.y+=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowLeft":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width-ac,type:"inlineSize"}),l.right-=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x-=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break;case"ArrowRight":n&&s&&d?(this.updateSize({size:this.getTransitionElDOMRect().width+ac,type:"inlineSize"}),l.right+=ac,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault()):o&&(a.x+=Qb,this.updateTransform(),this.triggerInteractModifiers(),t.preventDefault());break}}updateTransform(){let{dragPosition:{x:t,y:r},resizePosition:n,transitionEl:i,dragEnabled:o,resizable:s}=this;if(!i)return;if(!o&&!s){i.style.transform=null;return}let{top:l,right:a,bottom:d,left:h}=this.getAdjustedResizePosition(n),g=Math.round(t+h+a),b=Math.round(r+l+d);i.style.transform=g||b?`translate(${g}px, ${b}px)`:null}updateSize({type:t,size:r}){let{transitionEl:n}=this;n&&(n.style[t]=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={...SD},this.resizePosition={...ED},this.updateTransform()}setupInteractions(){this.cleanupInteractions();let{el:t,transitionEl:r,resizable:n,dragEnabled:i,resizePosition:o,dragPosition:s}=this;if(!(!r||!this.open)){if((n||i)&&(this.interaction=q1(r,{context:t.ownerDocument})),n){let{minInlineSize:l,minBlockSize:a,maxInlineSize:d,maxBlockSize:h}=window.getComputedStyle(r);this.interaction.resizable({edges:{top:!0,right:!0,bottom:!0,left:!0},modifiers:[q1.modifiers.restrictSize({min:{width:x1(l)?parseInt(l):0,height:x1(a)?parseInt(a):0},max:{width:x1(d)?parseInt(d):window.innerWidth,height:x1(h)?parseInt(h):window.innerHeight}}),q1.modifiers.restrict({restriction:"parent"})],listeners:{move:({rect:g,deltaRect:b})=>{b&&(o.top+=b.top,o.right+=b.right,o.bottom+=b.bottom,o.left+=b.left),this.updateSize({size:g.width,type:"inlineSize"}),this.updateSize({size:g.height,type:"blockSize"}),this.updateTransform()}}})}i&&this.interaction.draggable({modifiers:[q1.modifiers.restrictRect({restriction:"parent"})],listeners:{move:({dx:l,dy:a})=>{s.x+=l,s.y+=a,this.updateTransform()}}})}}getAdjustedResizePosition({top:t,right:r,bottom:n,left:i}){let o=t/2,s=r/2,l=n/2,a=i/2;switch(this.placement){case"top":return{top:t,right:s,bottom:0,left:a};case"top-start":return{top:t,right:0,bottom:0,left:i};case"top-end":return{top:t,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:l,left:a}}}setTransitionEl(t){this.transitionEl=t,this.setupInteractions()}handleInternalPanelScroll(t){t.target===this.panelEl.value&&(t.stopPropagation(),this.calciteDialogScroll.emit())}handleInternalPanelCloseClick(t){t.target===this.panelEl.value&&(t.stopPropagation(),this.open=!1)}handlePanelKeyDown(t){this.escapeDisabled&&t.key==="Escape"&&t.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}s3--,this.opened=!1,this.updateOverflowHiddenClass()}updateOverflowHiddenClass(){this.opened&&!this.embedded&&this.modal?this.addOverflowHiddenClass():this.removeOverflowHiddenClass()}addOverflowHiddenClass(){s3===0&&(CD=document.documentElement.style.overflow),s3++,document.documentElement.style.setProperty("overflow","hidden")}removeOverflowHiddenClass(){document.documentElement.style.setProperty("overflow",CD)}handleMutationObserver(){this.updateFocusTrapElements()}render(){let{assistiveText:t,description:r,heading:n,opened:i}=this;return xe`<div class=${_e({[sc.container]:!0,[sc.containerOpen]:i,[sc.containerEmbedded]:this.embedded})}>${this.modal?xe`<calcite-scrim class=${_e(sc.scrim)} @click=${this.handleOutsideClose}></calcite-scrim>`:null}<div .ariaDescription=${r} .ariaLabel=${n} .ariaModal=${this.modal} class=${_e({[sc.dialog]:!0,[_D("width",this.width,this.widthScale)]:!!(this.width||this.widthScale)})} @keydown=${this.handleKeyDown} role=dialog ${At(this.setTransitionEl)}>${t?ur("assistive-text",xe`<div aria-live=polite class=${_e(sc.assistiveText)}>${t}</div>`):null}<slot name=${Oi.content}><calcite-panel .beforeClose=${this.beforeClose} class=${_e(sc.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} ${At(this.panelEl)}><slot name=${Oi.actionBar} slot=${Zt.actionBar}></slot><slot name=${Oi.alerts} slot=${Zt.alerts}></slot><slot name=${Oi.headerActionsStart} slot=${Zt.headerActionsStart}></slot><slot name=${Oi.headerActionsEnd} slot=${Zt.headerActionsEnd}></slot><slot name=${Oi.headerContent} slot=${Zt.headerContent}></slot><slot name=${Oi.headerMenuActions} slot=${Zt.headerMenuActions}></slot><slot name=${Oi.fab} slot=${Zt.fab}></slot><slot name=${Oi.contentTop} slot=${Zt.contentTop}></slot><slot name=${Oi.contentBottom} slot=${Zt.contentBottom}></slot><slot name=${Oi.footerStart} slot=${Zt.footerStart}></slot><slot name=${Oi.footer} slot=${Zt.footer}></slot><slot name=${Oi.footerEnd} slot=${Zt.footerEnd}></slot><slot></slot></calcite-panel></slot></div></div>`}};e_.properties={assistiveText:16,hasContentBottom:16,hasContentTop:16,hasFooter:16,opened:16,beforeClose:0,closeDisabled:7,description:1,dragEnabled:7,embedded:5,escapeDisabled:7,heading:1,headingLevel:11,kind:3,loading:7,menuOpen:7,messageOverrides:0,modal:7,open:7,outsideCloseDisabled:7,overlayPositioning:3,placement:3,resizable:7,scale:3,widthScale:3,width:3},e_.styles=JQ;Kb=e_;Gt("calcite-dialog",Kb)});var PD={};Qs(PD,{Dialog:()=>Kb});var MD=O(()=>{EE();gD();TD()});var AD,XQ,t_,a3,ID=O(()=>{cr();ro();Fr();Tn();En();AD={valid:"check-circle",invalid:"exclamation-mark-triangle",idle:"information"},XQ=Dt`: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}`,t_=class t_ extends $t{constructor(){super(...arguments),this.iconFlipRtl=!1,this.scale="m",this.status="idle"}connectedCallback(){super.connectedCallback(),this.requestedIcon=xa(AD,this.icon,this.status)}willUpdate(t){(t.has("status")&&(this.hasUpdated||this.status!=="idle")||t.has("icon"))&&(this.requestedIcon=xa(AD,this.icon,this.status))}render(){let t=this.el.hidden;return hm(this.el,"calcite-hydrated-hidden",t),xe`${this.renderIcon(this.requestedIcon)}<slot></slot>`}renderIcon(t){if(t)return xe`<calcite-icon class="calcite-input-message-icon" .flipRtl=${this.iconFlipRtl} .icon=${t} scale=s></calcite-icon>`}};t_.properties={icon:[3,{converter:ba}],iconFlipRtl:7,scale:3,status:3},t_.styles=XQ;a3=t_;Gt("calcite-input-message",a3)});var LD=O(()=>{td();ID()});var QQ,r_,l3,kD=O(()=>{cr();Dr();Fr();Tn();En();QQ=Dt`: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}`,r_=class r_ extends $t{constructor(){super(...arguments),this.reversed=!1,this.type="determinate",this.value=0}render(){let t=this.type==="determinate",r=t?{width:`${this.value}%`}:{},n=Zl(this.el);return xe`<div .ariaLabel=${this.label||this.text} .ariaValueMax=${t?"100":void 0} .ariaValueMin=${t?"0":void 0} .ariaValueNow=${t?this.value:void 0} role=progressbar><div class="track"><div class=${_e({bar:!0,indeterminate:this.type==="indeterminate",[v1.rtl]:n==="rtl",reversed:this.reversed})} style=${tb(r)}></div></div>${this.text?xe`<div class="text">${this.text}</div>`:null}</div>`}};r_.properties={label:1,reversed:7,text:1,type:3,value:9},r_.styles=QQ;l3=r_;Gt("calcite-progress",l3)});var ND=O(()=>{kD()});function Is(e){return!(!e||isNaN(Number(e)))}function OD(e){return!e||!aK(e)?"":n_(e,t=>{let r=!1,n=t.split("").filter((i,o)=>i.match(/\./g)&&!r?(r=!0,!0):i.match(/-/g)&&o===0?!0:W1.includes(i)).join("");return Is(n)?new dd(n).toString():""})}function oK(e){let t=e.split(".")[1],r=new dd(e).toString(),[n,i]=r.split(".");return t&&i!==t?`${n}.${t}`:r}function n_(e,t){if(!e)return e;let r=e.toLowerCase().indexOf("e")+1;return r?e.replace(/[eE]*$/g,"").substring(0,r).concat(e.slice(r).replace(/[eE]/g,"")).split(/[eE]/).map((n,i)=>t(i===1?n.replace(/\./g,""):n)).join("e").replace(/^e/,"1e"):t(e)}function sK(e){let t=e.split(/[eE]/);if(t.length===1)return e;let r=+e;if(Number.isSafeInteger(r))return`${r}`;let n=e.charAt(0)==="-",i=+t[1],o=t[0].split("."),s=(n?o[0].substring(1):o[0])||"",l=o[1]||"",a=(g,b)=>{let S=Math.abs(b)-g.length,P=S>0?`${"0".repeat(S)}${g}`:g;return`${P.slice(0,b)}.${P.slice(b)}`},d=(g,b)=>{let S=b>g.length?`${g}${"0".repeat(b-g.length)}`:g;return`${S.slice(0,b)}.${S.slice(b)}`},h=i>0?`${s}${d(l,i)}`:`${a(s,i)}${l}`;return`${n?"-":""}${h.charAt(0)==="."?"0":""}${h.replace(KQ,"").replace(RD,"")}`}function aK(e){return W1.some(t=>e.includes(t))}function FD(e,t,r){let n=t.split(".")[1];if(n){let i=n.match(iK)[0];if(i&&r.delocalize(e).length!==t.length&&n.indexOf("e")===-1){let o=r.decimal;return e=e.includes(o)?e:`${e}${o}`,e.padEnd(e.length+i.length,r.localize("0"))}}return e}function uK(e,t="cldr"){let r=t==="cldr"?VD:$D;return e?r.includes(e)?e:(e=e.toLowerCase(),e==="nb"?"no":t==="t9n"&&e==="pt"?"pt-BR":(e.includes("-")&&(e=e.replace(/(\w+)-(\w+)/,(n,i,o)=>`${i}-${o.toUpperCase()}`),r.includes(e)||(e=e.split("-")[0])),e==="zh"?"zh-CN":r.includes(e)?e:(console.warn(`Translations for the "${e}" locale are not available and will fall back to the default, English (en).`),H1))):H1}var KQ,eK,Vt,dd,RD,tK,rK,nK,iK,DD,H1,$D,VD,f4e,lK,UD,c3,zD,cK,u3,Yo,WD=O(()=>{B1();KQ=new RegExp("\\.(0+)?$"),eK=new RegExp("0+$"),Vt=class Vt{constructor(t){if(t instanceof Vt)return t;let[r,n]=sK(t).split(".").concat("");this.value=BigInt(r+n.padEnd(Vt.DECIMALS,"0").slice(0,Vt.DECIMALS))+BigInt(Vt.ROUNDED&&n[Vt.DECIMALS]>="5"),this.isNegative=t.charAt(0)==="-"}getIntegersAndDecimals(){let t=this.value.toString().replace("-","").padStart(Vt.DECIMALS+1,"0"),r=t.slice(0,-Vt.DECIMALS),n=t.slice(-Vt.DECIMALS).replace(eK,"");return{integers:r,decimals:n}}toString(){let{integers:t,decimals:r}=this.getIntegersAndDecimals();return`${this.isNegative?"-":""}${t}${r.length?"."+r:""}`}formatToParts(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=t.numberFormatter.formatToParts(BigInt(r));return this.isNegative&&i.unshift({type:"minusSign",value:t.minusSign}),n.length&&(i.push({type:"decimal",value:t.decimal}),n.split("").forEach(o=>i.push({type:"fraction",value:o}))),i}format(t){let{integers:r,decimals:n}=this.getIntegersAndDecimals(),i=`${this.isNegative?t.minusSign:""}${t.numberFormatter.format(BigInt(r))}`,o=n.length?`${t.decimal}${n.split("").map(s=>t.numberFormatter.format(Number(s))).join("")}`:"";return`${i}${o}`}add(t){return Vt.fromBigInt(this.value+new Vt(t).value)}subtract(t){return Vt.fromBigInt(this.value-new Vt(t).value)}multiply(t){return Vt._divRound(this.value*new Vt(t).value,Vt.SHIFT)}divide(t){return Vt._divRound(this.value*Vt.SHIFT,new Vt(t).value)}};Vt.DECIMALS=100,Vt.ROUNDED=!0,Vt.SHIFT=BigInt("1"+"0".repeat(Vt.DECIMALS)),Vt._divRound=(t,r)=>Vt.fromBigInt(t/r+(Vt.ROUNDED?t*BigInt(2)/r%BigInt(2):BigInt(0))),Vt.fromBigInt=t=>Object.assign(Object.create(Vt.prototype),{value:t,isNegative:t<BigInt(0)});dd=Vt;RD=/^([-0])0+(?=\d)/,tK=/(?!^\.)\.$/,rK=/(?!^-)-/g,nK=/^-\b0\b\.?0*$/,iK=/0*$/,DD=e=>n_(e,t=>{let r=t.replace(rK,"").replace(tK,"").replace(RD,"$1");return Is(r)?nK.test(r)?r:oK(r):t});H1="en",$D=["ar","bg","bs","ca","cs","da","de","el",H1,"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"],VD=["ar","bg","bs","ca","cs","da","de","de-AT","de-CH","el",H1,"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"],f4e=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"}})),lK=["arab","arabext","latn"];[...new Set([...$D,...VD])];UD=e=>lK.includes(e),c3=new Intl.NumberFormat().resolvedOptions().numberingSystem,zD=c3==="arab"||!UD(c3)?"latn":c3,cK=e=>UD(e)?e:zD;u3=class{constructor(){this.delocalize=t=>this._numberFormatOptions?n_(t,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)):t,this.localize=t=>this._numberFormatOptions?n_(t,r=>Is(r.trim())?new dd(r.trim()).format(this).replace(new RegExp(`[${this._actualGroup}]`,"g"),this._group):r):t}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(t){if(t.locale=uK(t?.locale),t.numberingSystem=cK(t?.numberingSystem),!this._numberFormatOptions&&t.locale===H1&&t.numberingSystem===zD&&Object.keys(t).length===2||JSON.stringify(this._numberFormatOptions)===JSON.stringify(t))return;this._numberFormatOptions=t,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=t.locale==="bs"||t.locale==="mk"?",":n.find(i=>i.type==="decimal").value,this._minusSign=n.find(i=>i.type==="minusSign").value,this._getDigitIndex=i=>r.get(i)}},Yo=new u3});var dK,BD,GD=O(()=>{Dr();Fr();dK={validationContainer:"validation-container"},BD=({scale:e,status:t,id:r,icon:n,message:i})=>xe`<div class=${_e(dK.validationContainer)}><calcite-input-message aria-live=polite .icon=${n} id=${r??Re} .scale=${e} .status=${t}>${i}</calcite-input-message></div>`});function Im(e,t,r,n){let i=r.toLowerCase(),o=e[r];n&&o!=null?t.setAttribute(i,`${o}`):t.removeAttribute(i)}function jD(e,t,r){r.type=e==="textarea"?"text":e;let n=pK.includes(e),i=t;Im(i,r,"min",n),Im(i,r,"max",n),Im(i,r,"step",n);let o=mK.includes(e),s=t;Im(s,r,"minLength",o),Im(s,r,"maxLength",o);let l=fK.includes(e);Im(s,r,"pattern",l)}var pK,fK,mK,qD=O(()=>{pK=["date","datetime-local","month","number","range","time","week"],fK=["email","password","search","tel","text","url"],mK=["email","password","search","tel","text","textarea","url"]});var Pn,d3,HD,hK,gK,o_,i_,ZD=O(()=>{cr();Q5();tc();ro();Wo();mb();Fr();Hu();Tn();xE();E1();B1();bb();Sa();WD();Sm();GD();Ms();qD();En();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"},d3={validationMessage:"inputValidationMessage"},HD={tel:"phone",password:"lock",email:"email-address",date:"calendar",time:"clock",search:"search"},hK={action:"action"},gK=Dt`: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}`,o_=class o_ extends $t{constructor(){super(),this.actionWrapperEl=ki(),this.attributeWatch=Uv(["autofocus","enterkeyhint","inputmode","spellcheck"],this.handleGlobalAttributesChanged),this.childElType="input",this.inputWrapperEl=ki(),this.onHiddenFormInputInput=t=>{t.target.name===this.name&&this.setValue({value:t.target.value,origin:"direct"}),this.setFocus(),t.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=pn(),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=Ft({cancelable:!1}),this.calciteInputInput=Ft(),this.calciteInternalInputBlur=Ft({cancelable:!1}),this.calciteInternalInputFocus=Ft({cancelable:!1}),this.listen("click",this.clickHandler),this.listen("keydown",this.keyDownHandler)}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(t){let r=this._value;t!==r&&(this._value=t,this.valueWatcher(t,r),t&&this._value===""&&this.setValue({origin:"reset",value:r}))}async selectText(){this.type==="number"?this.childNumberEl?.select():this.childEl?.select()}async setFocus(){await Wn(this),Jl(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),xm(this),tO(this),this.el.addEventListener(gb,this.onHiddenFormInputInput)}async load(){Un(this),this.childElType=this.type==="textarea"?"textarea":"input",this.maxString=this.max?.toString(),this.minString=this.min?.toString(),this.requestedIcon=xa(HD,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:Is(this.value)?this.value:""})))}willUpdate(t){t.has("max")&&(this.maxString=this.max?.toString()||null),t.has("min")&&(this.minString=this.min?.toString()||null),(t.has("icon")||t.has("type")&&(this.hasUpdated||this.type!=="text"))&&(this.requestedIcon=xa(HD,this.icon,this.type))}updated(){Kl(this)}loaded(){zn(this)}disconnectedCallback(){super.disconnectedCallback(),vb(this),rO(this),this.el.removeEventListener(gb,this.onHiddenFormInputInput)}handleGlobalAttributesChanged(){this.requestUpdate()}valueWatcher(t,r){if(!this.userChangedValue){if(this.type==="number"&&(t==="Infinity"||t==="-Infinity")){this.displayedValue=t,this.previousEmittedValue=t;return}this.setValue({origin:"direct",previousValue:r,value:t==null||t==""?"":this.type==="number"?Is(t)?t:this.previousValue||"":t}),this.warnAboutInvalidNumberValue(t)}this.userChangedValue=!1}keyDownHandler(t){this.readOnly||this.disabled||t.defaultPrevented||(this.isClearable&&t.key==="Escape"&&(this.clearInputValue(t),t.preventDefault()),t.key==="Enter"&&hb(this)&&t.preventDefault())}onLabelClick(){this.setFocus()}incrementOrDecrementNumberValue(t,r,n,i){let{value:o}=this;if(o==="Infinity"||o==="-Infinity")return;let s=t==="up"?1:-1,l=this.step==="any"?1:Math.abs(this.step||1),a=new dd(o!==""?o:"0").add(`${l*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(t){this.setValue({committing:!0,nativeEvent:t,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(t){if(this.disabled)return;let r=t.composedPath();!r.includes(this.inputWrapperEl.value)||r.includes(this.actionWrapperEl.value)||this.setFocus()}inputFocusHandler(){this.calciteInternalInputFocus.emit()}inputInputHandler(t){this.disabled||this.readOnly||(this.type==="file"&&(this.files=this.childEl.files),this.setValue({nativeEvent:t,origin:"user",value:t.target.value}))}inputKeyDownHandler(t){this.disabled||this.readOnly||t.key==="Enter"&&this.emitChangeIfUserModified()}inputNumberInputHandler(t){if(this.disabled||this.readOnly||this.value==="Infinity"||this.value==="-Infinity")return;let r=t.target.value;Yo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator};let n=Yo.delocalize(r);t.inputType==="insertFromPaste"?(Is(n)||t.preventDefault(),this.setValue({nativeEvent:t,origin:"user",value:OD(n)}),this.childNumberEl.value=this.displayedValue):this.setValue({nativeEvent:t,origin:"user",value:n})}inputNumberKeyDownHandler(t){if(this.type!=="number"||this.disabled||this.readOnly)return;if(this.value==="Infinity"||this.value==="-Infinity"){t.preventDefault(),(t.key==="Backspace"||t.key==="Delete")&&this.clearInputValue(t);return}if(t.key==="ArrowUp"){t.preventDefault(),this.nudgeNumberValue("up",t);return}if(t.key==="ArrowDown"){this.nudgeNumberValue("down",t);return}let r=[...W1,"ArrowLeft","ArrowRight","Backspace","Delete","Enter","Escape","Tab"];if(t.altKey||t.ctrlKey||t.metaKey)return;let n=t.shiftKey&&t.key==="Tab";if(r.includes(t.key)||n){t.key==="Enter"&&this.emitChangeIfUserModified();return}Yo.numberFormatOptions={locale:this.messages._lang,numberingSystem:this.numberingSystem,useGrouping:this.groupSeparator},!(t.key===Yo.decimal&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.indexOf(Yo.decimal)===-1))&&(/[eE]/.test(t.key)&&(!this.value&&!this.childNumberEl.value||this.value&&!/[eE]/.test(this.childNumberEl.value))||t.key==="-"&&(!this.value&&!this.childNumberEl.value||this.value&&this.childNumberEl.value.split("-").length<=2)||t.preventDefault())}nudgeNumberValue(t,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(t,n,i,r),this.nudgeNumberValueIntervalId&&window.clearInterval(this.nudgeNumberValueIntervalId);let s=!0;this.nudgeNumberValueIntervalId=window.setInterval(()=>{if(s){s=!1;return}this.incrementOrDecrementNumberValue(t,n,i,r)},o)}numberButtonPointerUpAndOutHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}numberButtonPointerDownHandler(t){if(!FN(t))return;t.preventDefault();let r=t.target.dataset.adjustment;this.disabled||this.nudgeNumberValue(r,t)}syncHiddenFormInput(t){jD(this.type,this,t)}setChildElRef(t){this.childEl=t}setChildNumberElRef(t){this.childNumberEl=t}setInputValue(t){this.type==="number"&&this.childNumberEl?this.childNumberEl.value=t:this.childEl&&(this.childEl.value=t)}setPreviousEmittedValue(t){this.previousEmittedValue=this.normalizeValue(t)}normalizeValue(t){return this.type==="number"?Is(t)?t:"":t}setPreviousValue(t){this.previousValue=this.normalizeValue(t)}setValue({committing:t=!1,nativeEvent:r,origin:n,previousValue:i,value:o}){if(this.setPreviousValue(i??this.value),this.previousValueOrigin=n,this.type==="number"){Yo.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,l=o.charAt(o.length-1)===".",a=l&&s?o:DD(o),d=o&&!a?Is(this.previousValue)?this.previousValue:"":a,h=Yo.localize(d);n!=="connected"&&!l&&(h=FD(h,d,Yo)),this.displayedValue=l&&s?`${h}${Yo.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"?Yo.localize(this.previousValue):this.previousValue):t&&this.emitChangeIfUserModified())}inputKeyUpHandler(){window.clearInterval(this.nudgeNumberValueIntervalId)}warnAboutInvalidNumberValue(t){this.type==="number"&&t&&!Is(t)&&console.warn(`The specified value "${t}" cannot be parsed, or is out of range.`)}render(){let t=Zl(this.el),r=xe`<div class=${_e(Pn.loader)}><calcite-progress .label=${this.messages.loading} type=indeterminate></calcite-progress></div>`,n=xe`<button .ariaLabel=${this.messages.clear} class=${_e(Pn.clearButton)} .disabled=${this.disabled||this.readOnly} @click=${this.clearInputValue} tabindex=-1 type=button><calcite-icon icon=x .scale=${ei(this.scale)}></calcite-icon></button>`,i=xe`<calcite-icon class=${_e(Pn.inputIcon)} .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${ei(this.scale)}></calcite-icon>`,o=this.numberButtonType==="horizontal",s=xe`<button aria-hidden=true class=${_e({[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=${ei(this.scale)}></calcite-icon></button>`,l=xe`<button aria-hidden=true class=${_e({[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=${ei(this.scale)}></calcite-icon></button>`,a=xe`<div class=${_e(Pn.numberButtonWrapper)}>${s}${l}</div>`,d=xe`<div class=${_e(Pn.prefix)}>${this.prefixText}</div>`,h=xe`<div class=${_e(Pn.suffix)}>${this.suffixText}</div>`,g=this.el.autofocus,b=this.el.enterKeyHint,S=this.el.inputMode,P=this.type==="number"?ur("localized-input",xe`<input accept=${this.accept??Re} aria-errormessage=${d3.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${A1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} value=${this.defaultValue??Re} .disabled=${this.disabled?!0:null} enterkeyhint=${b??Re} inputmode=${S??Re} maxlength=${this.maxLength??Re} minlength=${this.minLength??Re} .multiple=${this.multiple} name=${Re} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputNumberInputHandler} @keydown=${this.inputNumberKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Re} placeholder=${(this.placeholder||"")??Re} .readOnly=${this.readOnly} type=text .value=${eb(this.displayedValue??"")} ${At(this.setChildNumberElRef)}>`):null,A=this.childElType==="input"?Ql`input`:Ql`textarea`,F=this.type!=="number"?bm`<${A} accept=${this.accept??Re} aria-errormessage=${d3.validationMessage} .ariaInvalid=${this.status==="invalid"} .ariaLabel=${A1(this)} autocomplete=${this.autocomplete??Re} .autofocus=${g} class=${_e({[Pn.editingEnabled]:this.editingEnabled,[Pn.inlineChild]:!!this.inlineEditableEl})} .defaultValue=${this.defaultValue??""} .disabled=${this.disabled?!0:null} enterkeyhint=${b??Re} inputmode=${S??Re} max=${this.maxString??Re} maxlength=${this.maxLength??Re} min=${this.minString??Re} minlength=${this.minLength??Re} .multiple=${this.multiple} name=${this.name??Re} @blur=${this.inputBlurHandler} @focus=${this.inputFocusHandler} @input=${this.inputInputHandler} @keydown=${this.inputKeyDownHandler} @keyup=${this.inputKeyUpHandler} pattern=${this.pattern??Re} placeholder=${(this.placeholder||"")??Re} .readOnly=${this.readOnly} .required=${this.required?!0:null} spellcheck=${this.el.spellcheck??Re} step=${this.step??Re} tabindex=${(this.disabled||this.inlineEditableEl&&!this.editingEnabled?-1:null)??Re} type=${this.type??Re} .value=${eb(this.value??"")} ${At(this.setChildElRef)}></${A}>`:null;return ec({disabled:this.disabled,children:xe`<div class=${_e({[Pn.inputWrapper]:!0,[v1.rtl]:t==="rtl",[Pn.hasSuffix]:this.suffixText,[Pn.hasPrefix]:this.prefixText})} ${At(this.inputWrapperEl)}>${this.type==="number"&&this.numberButtonType==="horizontal"&&!this.readOnly?l:null}${this.prefixText?d:null}<div class=${_e(Pn.wrapper)}>${P}${F}${this.isClearable?n:null}${this.requestedIcon?i:null}${this.loading?r:null}</div><div class=${_e(Pn.actionWrapper)} ${At(this.actionWrapperEl)}><slot name=${hK.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}${iO({component:this})}</div>${this.validationMessage&&this.status==="invalid"?BD({icon:this.validationIcon,id:d3.validationMessage,message:this.validationMessage,scale:this.scale,status:this.status}):null}`})}};o_.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:ba}],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:ba}],validationMessage:1,validity:0,value:1},o_.styles=gK;i_=o_;Gt("calcite-input",i_)});var YD={};Qs(YD,{Input:()=>i_});var JD=O(()=>{LD();ND();td();ZD()});var wK,yK,a_,s_,XD=O(()=>{cr();ro();Fr();bb();En();wK={container:"container"},yK=Dt`: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}`,a_=class a_ extends $t{constructor(){super(),this.alignment="start",this.layout="default",this.scale="m",this.calciteInternalLabelClick=Ft({bubbles:!1,cancelable:!1}),this.listen("click",this.labelClickHandler)}connectedCallback(){super.connectedCallback(),document.dispatchEvent(new CustomEvent(M1))}willUpdate(t){t.has("for")&&pO(this.el)}disconnectedCallback(){super.disconnectedCallback(),document.dispatchEvent(new CustomEvent(T1))}labelClickHandler(t){window.getSelection()?.type!=="Range"&&this.calciteInternalLabelClick.emit({sourceEvent:t})}render(){return xe`<div class=${_e(wK.container)}><slot></slot></div>`}};a_.properties={alignment:3,for:3,layout:3,scale:3},a_.styles=yK;s_=a_;Gt("calcite-label",s_)});var QD={};Qs(QD,{Label:()=>s_});var KD=O(()=>{XD()});var p3,eF=O(()=>{p3={brand:"lightbulb",danger:"exclamationMarkTriangle",info:"information",success:"checkCircle",warning:"exclamationMarkTriangle"}});var l_,Z1,vK,u_,c_,tF=O(()=>{cr();ro();Wo();Fr();Tn();Sa();eF();jb();Sm();Ms();En();l_={title:"title",message:"message",link:"link",actionsEnd:"actions-end"},Z1={actionsEnd:"actions-end",close:"notice-close",container:"container",content:"notice-content",icon:"notice-icon"},vK=Dt`: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}`,u_=class u_ extends $t{constructor(){super(...arguments),this.closeButton=ki(),this.openTransitionProp="opacity",this.hasActionEnd=!1,this.closable=!1,this.iconFlipRtl=!1,this.kind="brand",this.messages=pn(),this.open=!1,this.scale="m",this.width="auto",this.calciteNoticeBeforeClose=Ft({cancelable:!1}),this.calciteNoticeBeforeOpen=Ft({cancelable:!1}),this.calciteNoticeClose=Ft({cancelable:!1}),this.calciteNoticeOpen=Ft({cancelable:!1})}async setFocus(){await Wn(this);let t=this.el.querySelector("calcite-link");if(!(!this.closeButton.value&&!t)){if(t)return t.setFocus();this.closeButton.value&&this.closeButton.value.focus()}}async load(){Un(this),this.requestedIcon=xa(p3,this.icon,this.kind),this.open&&oc(this)}willUpdate(t){t.has("open")&&(this.hasUpdated||this.open!==!1)&&oc(this),(t.has("icon")||t.has("kind")&&(this.hasUpdated||this.kind!=="brand"))&&(this.requestedIcon=xa(p3,this.icon,this.kind))}loaded(){zn(this)}onBeforeClose(){this.calciteNoticeBeforeClose.emit()}onBeforeOpen(){this.calciteNoticeBeforeOpen.emit()}onClose(){this.calciteNoticeClose.emit()}onOpen(){this.calciteNoticeOpen.emit()}setTransitionEl(t){this.transitionEl=t}close(){this.open=!1}handleActionsEndSlotChange(t){this.hasActionEnd=Qn(t)}render(){let t=xe`<button .ariaLabel=${this.messages.close} class=${_e(Z1.close)} @click=${this.close} ${At(this.closeButton)}><calcite-icon icon=x .scale=${ei(this.scale)}></calcite-icon></button>`;return xe`<div class=${_e(Z1.container)} ${At(this.setTransitionEl)}>${this.requestedIcon?xe`<div class=${_e(Z1.icon)}><calcite-icon .flipRtl=${this.iconFlipRtl} .icon=${this.requestedIcon} .scale=${ei(this.scale)}></calcite-icon></div>`:null}<div class=${_e(Z1.content)}><slot name=${l_.title}></slot><slot name=${l_.message}></slot><slot name=${l_.link}></slot></div><div class=${_e(Z1.actionsEnd)} .hidden=${!this.hasActionEnd}><slot name=${l_.actionsEnd} @slotchange=${this.handleActionsEndSlotChange}></slot></div>${this.closable?t:null}</div>`}};u_.properties={hasActionEnd:16,closable:7,icon:[3,{converter:ba}],iconFlipRtl:7,kind:3,messageOverrides:0,open:7,scale:3,width:3},u_.styles=vK;c_=u_;Gt("calcite-notice",c_)});var rF={};Qs(rF,{Notice:()=>c_});var nF=O(()=>{td();tF()});var f3,m3,bK,Ri,h3,iF=O(()=>{gt();a5();yt();tt();it();Zr();ft();vN();rE();Iv();bN();xN();EN();n5();f3="esri-identity-modal",m3={base:f3,info:`${f3}__info`,notice:`${f3}__notice`},bK="ArcGIS Online",Ri=class extends yN{constructor(e,t){super(e,t),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 dN({button:()=>Promise.resolve().then(()=>(yO(),wO)),dialog:()=>Promise.resolve().then(()=>(MD(),PD)),input:()=>Promise.resolve().then(()=>(JD(),YD)),label:()=>Promise.resolve().then(()=>(KD(),QD)),notice:()=>Promise.resolve().then(()=>(nF(),rF))})}get title(){return this.commonMessages?.auth.signIn}render(){let{open:e,title:t,messages:r,signingIn:n,oAuthPrompt:i,server:o,resource:s,error:l}=this,{info:a,oAuthInfo:d,lblItem:h,invalidUser:g,noAuthService:b,lblUser:S,lblPwd:P,lblCancel:A,lblSigning:F,lblOk:W}=r;return Li("div",{class:this.classes(m3.base,SN())},Li("form",{bind:this,onsubmit:this._submit},Li("calcite-dialog",{bind:this,heading:t,modal:!0,open:e,outsideCloseDisabled:!0,scale:"s",widthScale:"s",onCalciteDialogClose:this._cancel,onCalciteDialogOpen:this._focusUsernameInput},Li("div",{class:m3.info},t5(i?d:a,{server:o&&/\.arcgis\.com/i.test(o)?bK:o,resource:`(${s||h})`})),l?Li("calcite-notice",{class:m3.notice,icon:"exclamation-mark-triangle",kind:"danger",open:!0},Li("div",{slot:"message"},l.details?.httpStatus?g:b)):null,i?null:[Li("calcite-label",null,S,Li("calcite-input",{afterCreate:z=>this._usernameInputNode=z,autocomplete:"off",bind:this,name:"username",required:!0,spellcheck:!1,type:"text",value:""})),Li("calcite-label",null,P,Li("calcite-input",{afterCreate:z=>this._passwordInputNode=z,bind:this,name:"password",required:!0,type:"password",value:""}))],Li("calcite-button",{appearance:"outline",bind:this,onclick:this._cancel,slot:"footer-end",type:"button"},A),Li("calcite-button",{loading:!!n,slot:"footer-end",type:"submit"},n?F:W))))}_focusUsernameInput(){return DL(()=>this._usernameInputNode)}_cancel(){this._set("signingIn",!1),this.open=!1,this._usernameInputNode&&(this._usernameInputNode.value=""),this._passwordInputNode&&(this._passwordInputNode.value=""),this.emit("cancel")}_submit(e){e.preventDefault(),this._set("signingIn",!0);let t=this.oAuthPrompt?{}:{username:this._usernameInputNode?.value,password:this._passwordInputNode?.value};this.emit("submit",t)}};R([V({readOnly:!0})],Ri.prototype,"container",void 0),R([V(),aE("esri/t9n/common")],Ri.prototype,"commonMessages",void 0),R([V()],Ri.prototype,"error",void 0),R([V(),aE("esri/identity/t9n/identity")],Ri.prototype,"messages",void 0),R([V()],Ri.prototype,"oAuthPrompt",void 0),R([V()],Ri.prototype,"open",void 0),R([V()],Ri.prototype,"signingIn",void 0),R([V()],Ri.prototype,"server",void 0),R([V({readOnly:!0})],Ri.prototype,"title",null),R([V()],Ri.prototype,"resource",void 0),Ri=R([Le("esri.identity.IdentityModal")],Ri);h3=Ri});var g3,Lm,oF=O(()=>{g3="esriJSAPIOAuth",Lm=class{constructor(t,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=t,this.storage=r,this._init()}isValid(){let t=!1;if(this.oAuthInfo&&this.userId&&(this.refreshToken||this.token)){if(this.expires==null&&this.refreshToken)t=!0;else if(this.expires){let r=Date.now();this.expires>r&&(this.expires-r)/1e3>60*this.oAuthInfo.minTimeUntilExpiration&&(t=!0)}}return t}save(){if(!this.storage)return!1;let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[r.authNamespace];n||(n=t[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(g3,JSON.stringify(t))}catch(i){return console.warn(i),!1}return!0}return!1}destroy(){let t=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=t[r.authNamespace];if(n){delete n[r.portalUrl];try{this.storage.setItem(g3,JSON.stringify(t))}catch(i){console.log(i)}}}r&&(r._oAuthCred=null,this.oAuthInfo=null)}_init(){let t=this._load(),r=this.oAuthInfo;if(r?.authNamespace&&r.portalUrl){let n=t[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 t={};if(this.storage){let r=this.storage.getItem(g3);if(r)try{t=JSON.parse(r)}catch(n){console.warn(n)}}return t}};Lm.prototype.declaredClass="esri.identity.OAuthCredential"});var w3,Mn,y3,sF=O(()=>{gt();Or();yt();tt();it();Zr();ft();Mn=w3=class extends ut{constructor(e){super(e),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 w3.fromJSON(this.toJSON())}};R([V({json:{write:!0}})],Mn.prototype,"appId",void 0),R([V({json:{write:!0}})],Mn.prototype,"authNamespace",void 0),R([V({json:{write:!0}})],Mn.prototype,"expiration",void 0),R([V({json:{write:!0}})],Mn.prototype,"flowType",void 0),R([V({json:{write:!0}})],Mn.prototype,"forceLogin",void 0),R([V({json:{write:!0}})],Mn.prototype,"forceUserId",void 0),R([V({json:{write:!0}})],Mn.prototype,"locale",void 0),R([V({json:{write:!0}})],Mn.prototype,"minTimeUntilExpiration",void 0),R([V({json:{write:!0}})],Mn.prototype,"popup",void 0),R([V({json:{write:!0}})],Mn.prototype,"popupCallbackUrl",void 0),R([V({json:{write:!0}})],Mn.prototype,"popupWindowFeatures",void 0),R([V({json:{write:!0}})],Mn.prototype,"portalUrl",void 0),R([V({json:{write:!0}})],Mn.prototype,"preserveUrlHash",void 0),R([V({json:{write:!0}})],Mn.prototype,"userId",void 0),Mn=w3=R([Le("esri.identity.OAuthInfo")],Mn);y3=Mn});var Di,d_,aF=O(()=>{gt();Or();yt();tt();it();Zr();ft();Di=class extends ut{constructor(e){super(e),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}};R([V({json:{write:!0}})],Di.prototype,"adminTokenServiceUrl",void 0),R([V({json:{write:!0}})],Di.prototype,"currentVersion",void 0),R([V({json:{write:!0}})],Di.prototype,"hasPortal",void 0),R([V({json:{write:!0}})],Di.prototype,"hasServer",void 0),R([V({json:{write:!0}})],Di.prototype,"owningSystemUrl",void 0),R([V({json:{write:!0}})],Di.prototype,"owningTenant",void 0),R([V({json:{write:!0}})],Di.prototype,"server",void 0),R([V({json:{write:!0}})],Di.prototype,"shortLivedTokenValidity",void 0),R([V({json:{write:!0}})],Di.prototype,"tokenServiceUrl",void 0),R([V({json:{write:!0}})],Di.prototype,"webTierAuth",void 0),Di=R([Le("esri.identity.ServerInfo")],Di);d_=Di});var p_,lF,v3,f_,m_,Y1,sr,cF=O(()=>{gt();Il();Gg();wv();Fn();pv();Ng();ar();ws();Qi();Es();yt();tt();it();ft();iF();oF();sF();aF();Wg();p_={},lF=e=>{let t=new _n(e.owningSystemUrl).host,r=new _n(e.server).host,n=/.+\.arcgis\.com$/i;return n.test(t)&&n.test(r)},v3=(e,t)=>!!(lF(e)&&t&&t.some(r=>r.test(e.server))),f_=null,m_=null;try{f_=window.localStorage,m_=window.sessionStorage}catch{}Y1=class extends Vo{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=fa(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",t=>{this._pageShowHandler(t)})}registerServers(t){let r=this.serverInfos;r?(t=t.filter(n=>!this.findServerInfo(n.server)),this.serverInfos=r.concat(t)):this.serverInfos=t,t.forEach(n=>{n.owningSystemUrl&&this._portals.push(n.owningSystemUrl),n.hasPortal&&this._portals.push(n.server)})}registerOAuthInfos(t){let r=this.oAuthInfos;if(r){for(let n of t){let i=this.findOAuthInfo(n.portalUrl);i&&r.splice(r.indexOf(i),1)}this.oAuthInfos=r.concat(t)}else this.oAuthInfos=t}registerToken(t){t={...t};let r=this._sanitizeUrl(t.server),n=this._isServerRsrc(r),i,o=this.findServerInfo(r),s=!0;o||(o=new d_,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 t.server,Object.assign(i,t),s=!1):(i=new sr({userId:t.userId,server:o.server??void 0,token:t.token,expires:t.expires,ssl:t.ssl,scope:n?"server":"portal"}),i.resources=[r],this.credentials.push(i)),i.emitTokenChange(!1),s||i.refreshServerTokens()}toJSON(){return zw({serverInfos:this.serverInfos.map(t=>t.toJSON()),oAuthInfos:this.oAuthInfos.map(t=>t.toJSON()),credentials:this.credentials.map(t=>t.toJSON())})}initialize(t){if(!t)return;typeof t=="string"&&(t=JSON.parse(t));let r=t.serverInfos,n=t.oAuthInfos,i=t.credentials;if(r){let o=[];r.forEach(s=>{s.server&&s.tokenServiceUrl&&o.push(s.declaredClass?s:new d_(s))}),o.length&&this.registerServers(o)}if(n){let o=[];n.forEach(s=>{s.appId&&o.push(s.declaredClass?s:new y3(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 sr(o)).emitTokenChange(),this.credentials.push(o))})}findServerInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.serverInfos)if(this._hasSameServerInstance(n.server,t)){r=n;break}return r}findOAuthInfo(t){let r;t=this._sanitizeUrl(t);for(let n of this.oAuthInfos)if(this._hasSameServerInstance(n.portalUrl,t)){r=n;break}return r}findCredential(t,r){if(!t)return;let n;t=this._sanitizeUrl(t);let i=this._isServerRsrc(t)?"server":"portal";if(r){for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&r===o.userId&&o.scope===i){n=o;break}}else for(let o of this.credentials)if(this._hasSameServerInstance(o.server,t)&&this._getIdenticalSvcIdx(t,o)!==-1&&o.scope===i){n=o;break}return n}getCredential(t,r){let n,i,o=!0;r&&(n=!!r.token,i=r.error,o=r.prompt!==!1),r={...r},t=this._sanitizeUrl(t);let s=new AbortController,l=$n();if(r.signal&&Jn(r.signal,()=>{s.abort()}),Jn(s,()=>{l.reject(new je("identity-manager:user-aborted","ABORTED"))}),xs(s))return l.promise;r.signal=s.signal;let a=this._isAdminResource(t),d=n?this.findCredential(t):null,h;if(d&&i&&i.details&&i.details.httpStatus===498)d.destroy();else if(d)return h=new je("identity-manager:not-authorized","You are currently signed in as: '"+d.userId+"'. You do not have access to this resource: "+t,{error:i}),l.reject(h),l.promise;let g=this._findCredential(t,r);if(g)return l.resolve(g),l.promise;let b=this.findServerInfo(t);if(b)!b.hasPortal&&b.server&&b.owningSystemUrl&&this._hasSameServerInstance(b.server,b.owningSystemUrl)&&(b.hasPortal=!0),!b.hasServer&&this._isServerRsrc(t)&&(b._restInfoPms=this._getTokenSvcUrl(t),b.hasServer=!0);else{let S=this._getTokenSvcUrl(t);if(!S)return h=new je("identity-manager:unknown-resource","Unknown resource - could not find token service endpoint."),l.reject(h),l.promise;b=new d_,b.server=this._getServerInstanceRoot(t),typeof S=="string"?(b.tokenServiceUrl=S,b.hasPortal=!0):(b._restInfoPms=S,b.hasServer=!0),this.registerServers([b])}return b.hasPortal&&b._selfReq===void 0&&(o||xn(b.tokenServiceUrl,this._appOrigin)||this._gwDomains.some(S=>S.tokenServiceUrl===b.tokenServiceUrl))&&(b._selfReq={owningTenant:r?.owningTenant,selfDfd:this._getPortalSelf(b.tokenServiceUrl.replace(this._rePortalTokenSvc,"/sharing/rest/portals/self"),t)}),this._enqueue(t,b,r,l,a)}getResourceName(t){return this._isRESTService(t)?t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"")||"":this._gwUser.test(t)&&t.replace(this._gwUser,"$1")||this._gwItem.test(t)&&t.replace(this._gwItem,"$1")||this._gwGroup.test(t)&&t.replace(this._gwGroup,"$1")||""}generateToken(t,r,n){let i=this._rePortalTokenSvc.test(t.tokenServiceUrl),o=new _n(this._appOrigin),s=t.shortLivedTokenValidity,l,a,d,h,g,b,S,P;r&&(P=this.tokenValidity||s||this._defaultTokenValidity,P>s&&s>0&&(P=s)),n&&(l=n.isAdmin,a=n.serverUrl,d=n.token,b=n.signal,S=n.ssl,t.customParameters=n.customParameters),l?h=t.adminTokenServiceUrl:(h=t.tokenServiceUrl,g=new _n(h.toLowerCase()),t.webTierAuth&&n?.serverUrl&&!S&&o.scheme==="http"&&(xn(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 A={query:{request:"getToken",username:r?.username,password:r?.password,serverUrl:a,token:d,expiration:P,referer:l||i?this._appOrigin:null,client:l?"referer":null,f:"json",...t.customParameters},method:"post",authMode:"anonymous",useProxy:this._useProxy(t,n),signal:b,...n?.ioArgs};return i||(A.withCredentials=!1),yr(h,A).then(F=>{let W=F.data;if(!W?.token)return new je("identity-manager:authentication-failed","Unable to generate token");let z=t.server;return p_[z]||(p_[z]={}),r&&(p_[z][r.username]=r.password),W.validity=P,W})}isBusy(){return!!this._busy}async checkSignInStatus(t){return(await this.checkAppAccess(t,"")).credential}checkAppAccess(t,r,n){let i=!1;return this.getCredential(t,{prompt:!1}).then(o=>{let s,l={f:"json"};if(o.scope==="portal")if(r&&(this._doPortalSignIn(t)||n?.force))s=o.server+"/sharing/rest/oauth2/validateAppAccess",l.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&&(l.token=o.token),yr(s,{query:l,authMode:"anonymous"}).then(a=>{if(a.data.valid===!1)throw new je("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 je("identity-manager:not-authenticated","User is not signed in.");if(d===400)throw new je("identity-manager:invalid-request");return{credential:o}})}).then(o=>({credential:o.credential,viewOnly:i}))}setOAuthResponseHash(t){t&&(t.charAt(0)==="#"&&(t=t.slice(1)),this._processOAuthPopupParams(Fl(t)))}setOAuthRedirectionHandler(t){this._oAuthRedirectFunc=t}setProtocolErrorHandler(t){this._protocolFunc=t}signIn(t,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 je("identity-manager:user-aborted","ABORTED"))};n.signal&&Jn(n.signal,()=>{s()});let l=new h3({open:!0,resource:this.getResourceName(t),server:r.server});this.dialog=l,this.emit("dialog-create");let a=l.on("cancel",s),d=l.on("submit",h=>{this.generateToken(r,h,{isAdmin:n.isAdmin,signal:n.signal}).then(g=>{o();let b=new sr({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(b)}).catch(g=>{l.error=g,l.signingIn=!1})});return i.promise}oAuthSignIn(t,r,n,i){this._oAuthDfd=$n();let o=this._oAuthDfd,s;i?.signal&&Jn(i.signal,()=>{let b=this._oAuthDfd&&this._oAuthDfd.oAuthWin_;b&&!b.closed?b.close():this.dialog&&h()}),o.resUrl_=t,o.sinfo_=r,o.oinfo_=n;let l=n._oAuthCred;if(l.storage&&(n.flowType==="authorization-code"||n.flowType==="auto"&&r.currentVersion>=8.4)){let b=crypto.getRandomValues(new Uint8Array(32));s=sv(b),l.codeVerifier=s,b=crypto.getRandomValues(new Uint8Array(32)),l.stateUID=sv(b),l.save()||(l.codeVerifier=s=null)}else l.codeVerifier=null;let a,d;this._getCodeChallenge(s).then(b=>{let S=!i||i.oAuthPopupConfirmation!==!1;if(!n.popup||!S)return void this._doOAuthSignIn(t,r,n,b);let P=new h3({oAuthPrompt:!0,server:r.server,open:!0});this.dialog=P,this.emit("dialog-create"),a=P.on("cancel",h),d=P.on("submit",()=>{g(),this._doOAuthSignIn(t,r,n,b)})});let h=()=>{g(),this._oAuthDfd=null,o.reject(new je("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(t=>{t.destroy()}),this.emit("credentials-destroy")}enablePostMessageAuth(t="https://www.arcgis.com/sharing/rest"){this._postMessageAuthHandle&&this._postMessageAuthHandle.remove(),this._postMessageAuthHandle=Ol(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(t).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 t=window.location.hash;if(t){t.charAt(0)==="#"&&(t=t.slice(1));let n=Fl(t),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=Fl(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=Fu(o),l=window.location.pathname+(s?`?${s}`:"")+(n.state?.hash||"");window.history.replaceState(window.history.state,"",l)}}}_getOAuthToken(t,r,n,i,o){return t=t.replace(/^http:/i,"https:"),yr(`${t}/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(t){if(t&&globalThis.isSecureContext){let r=new TextEncoder().encode(t),n=await crypto.subtle.digest("SHA-256",r);return sv(new Uint8Array(n))}return null}_pageShowHandler(t){if(t.persisted&&this.isBusy()&&this._rejectOnPersistedPageShow){let r=new je("identity-manager:user-aborted","ABORTED");this._errbackFunc(r)}}_findCredential(t,r){let n,i,o,s,l=-1,a=r?.token,d=r?.resource,h=this._isServerRsrc(t)?"server":"portal",g=this.credentials.filter(b=>this._hasSameServerInstance(b.server,t)&&b.scope===h);if(t=d||t,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,l=this._getIdenticalSvcIdx(t,n),!a)return l===-1&&n.resources.push(t),this._addResource(t,s),n;l!==-1&&(n.resources.splice(l,1),this._removeResource(t,s))}else{let b,S;if(g.some(P=>(S=this._getIdenticalSvcIdx(t,P),S!==-1&&(b=P,o=this.findServerInfo(b.server),i=o?.owningSystemUrl,s=i?this.findCredential(i,b.userId):void 0,l=S,!0))),a)b&&(b.resources.splice(l,1),this._removeResource(t,s));else if(b)return this._addResource(t,s),b}}_findOAuthInfo(t){let r=this.findOAuthInfo(t);if(!r){for(let n of this.oAuthInfos)if(this._isIdProvider(n.portalUrl,t)){r=n;break}}return r}_addResource(t,r){r&&this._getIdenticalSvcIdx(t,r)===-1&&r.resources.push(t)}_removeResource(t,r){let n=-1;r&&(n=this._getIdenticalSvcIdx(t,r),n>-1&&r.resources.splice(n,1))}_useProxy(t,r){return r?.isAdmin&&!xn(t.adminTokenServiceUrl,this._appOrigin)||!this._isPortalDomain(t.tokenServiceUrl)&&String(t.currentVersion)==="10.1"&&!xn(t.tokenServiceUrl,this._appOrigin)}_getOrigin(t){let r=new _n(t);return r.scheme+"://"+r.host+(r.port!=null?":"+r.port:"")}_getServerInstanceRoot(t){let r=t.toLowerCase(),n=r.indexOf(this._agsRest);return n===-1&&this._isAdminResource(t)&&(n=this._agsAdmin.test(t)?t.replace(this._agsAdmin,"$1").length:t.search(this._adminSvcs)),n!==-1||tv(r)||(n=r.indexOf("/sharing")),n===-1&&r.endsWith("/")&&(n=r.length-1),n>-1?t.slice(0,n):t}_hasSameServerInstance(t,r){return t.endsWith("/")&&(t=t.slice(0,-1)),t=t.toLowerCase(),r=this._getServerInstanceRoot(r).toLowerCase(),t=Jf(t),r=Jf(r),(t=t.slice(Math.max(0,t.indexOf(":"))))===(r=r.slice(Math.max(0,r.indexOf(":"))))}_sanitizeUrl(t){let r=(Mt.request.proxyUrl||"").toLowerCase(),n=r?t.toLowerCase().indexOf(r+"?"):-1;return n!==-1&&(t=t.slice(n+r.length+1)),t=pa(t),fa(t).path}_isRESTService(t){return t.includes(this._agsRest)}_isAdminResource(t){return this._agsAdmin.test(t)||this._adminSvcs.test(t)}_isServerRsrc(t){return this._isRESTService(t)||this._isAdminResource(t)}_isIdenticalService(t,r){let n=!1;if(this._isRESTService(t)&&this._isRESTService(r)){let i=this._getSuffix(t).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(t)&&this._isAdminResource(r)?n=!0:this._isServerRsrc(t)||this._isServerRsrc(r)||!this._isPortalDomain(t)||(n=!0);return n}_isPortalDomain(t){let r=new _n(t.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||Mt.portalUrl&&(i=xn(r,Mt.portalUrl,!0)),i||(i=this._portals.some(o=>this._hasSameServerInstance(o,r.uri))),i=i||this._agsPortal.test(r.path),i}_isIdProvider(t,r){let n=-1,i=-1;this._gwDomains.forEach((s,l)=>{n===-1&&s.regex.test(t)&&(n=l),i===-1&&s.regex.test(r)&&(i=l)});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),l=s?.owningSystemUrl;l&&lF(s)&&this._isPortalDomain(l)&&this._isIdProvider(t,l)&&(o=!0)}return o}_getIdenticalSvcIdx(t,r){let n=-1;for(let i=0;i<r.resources.length;i++){let o=r.resources[i];if(this._isIdenticalService(t,o)){n=i;break}}return n}_getSuffix(t){return t.replace(this._regexSDirUrl,"").replace(this._regexServerType,"$1")}_getTokenSvcUrl(t){let r,n,i;if(this._isRESTService(t)||this._isAdminResource(t)){let o=this._getServerInstanceRoot(t);return r=o+"/admin/generateToken",n=yr(t=o+"/rest/info",{query:{f:"json"}}).then(s=>s.data),{adminUrl:r,promise:n}}if(this._isPortalDomain(t)){let o="";if(this._gwDomains.some(s=>(s.regex.test(t)&&(o=s.tokenServiceUrl),!!o)),o||this._portals.some(s=>(this._hasSameServerInstance(s,t)&&(o=s+this._gwTokenUrl),!!o)),o||(i=t.toLowerCase().indexOf("/sharing"),i!==-1&&(o=t.slice(0,i)+this._gwTokenUrl)),o||(o=this._getOrigin(t)+this._gwTokenUrl),o){let s=new _n(t).port;/^http:\/\//i.test(t)&&s==="7080"&&(o=o.replace(/:7080/i,":7443")),o=o.replace(/http:/i,"https:")}return o}}_processOAuthResponseParams(t,r,n){let i=r._oAuthCred;if(t.code){let s=i.codeVerifier;return i.codeVerifier=null,i.stateUID=null,i.save(),this._getOAuthToken(n.server,t.code,r.appId,this._getRedirectURI(r,!0),s).then(l=>{let a=new sr({userId:l.username,server:n.server??void 0,token:l.access_token,expires:Date.now()+1e3*l.expires_in,ssl:l.ssl,oAuthState:t.state,_oAuthCred:i});return r.userId=a.userId,i.storage=l.persist?f_:m_,i.refreshToken=l.refresh_token,i.token=null,i.expires=l.refresh_token_expires_in?Date.now()+1e3*l.refresh_token_expires_in:null,i.userId=a.userId,i.ssl=a.ssl,i.save(),a})}let o=new sr({userId:t.username,server:n.server??void 0,token:t.access_token,expires:Date.now()+1e3*Number(t.expires_in),ssl:t.ssl==="true",oAuthState:t.state,_oAuthCred:i});return r.userId=o.userId,i.storage=t.persist?f_:m_,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(t){let r=this._oAuthDfd;if(this._oAuthDfd=null,r)if(clearInterval(this._oAuthIntervalId),this._oAuthOnPopupHandle?.remove(),t.error){let n=t.error==="access_denied",i=new je(n?"identity-manager:user-aborted":"identity-manager:authentication-failed",n?"ABORTED":"OAuth: "+t.error+" - "+t.error_description);r.reject(i)}else this._processOAuthResponseParams(t,r.oinfo_,r.sinfo_).then(n=>{r.resolve(n)}).catch(n=>{r.reject(n)})}_setOAuthResponseQueryString(t){t&&(t.charAt(0)==="?"&&(t=t.slice(1)),this._processOAuthPopupParams(Fl(t)))}async _exchangeToken(t,r,n){return(await yr(`${t}/sharing/rest/oauth2/exchangeToken`,{authMode:"anonymous",method:"post",query:{f:"json",client_id:r,token:n}})).data.token}async _getPlatformSelf(t,r){if(this._getPlatformSelfError&&Date.now()-this._getPlatformSelfError[1]<1e3)throw this._getPlatformSelfError[0];t=t.replace(/^http:/i,"https:");try{let n=await yr(`${t}/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(t,r){let n;return this._gwDomains.some(i=>(i.regex.test(t)&&(n=i.customBaseUrl),!!n)),n?Promise.resolve({allSSL:!0,currentVersion:"8.4",customBaseUrl:n,portalMode:"multitenant",supportsOAuth:!0}):(this._appOrigin.startsWith("https:")?t=t.replace(/^http:/i,"https:").replace(/:7080/i,":7443"):/^http:/i.test(r)&&(t=t.replace(/^https:/i,"http:").replace(/:7443/i,":7080")),yr(t,{query:{f:"json"},authMode:"anonymous",withCredentials:!0}).then(i=>i.data))}_doPortalSignIn(t){let r=this._portalConfig,n=window.location.href,i=this.findServerInfo(t);return!(!r&&!this._isPortalDomain(n)||!(i?i.hasPortal||i.owningSystemUrl&&this._isPortalDomain(i.owningSystemUrl):this._isPortalDomain(t))||!(this._isIdProvider(n,t)||r&&(this._hasSameServerInstance(this._getServerInstanceRoot(r.restBaseUrl),t)||this._isIdProvider(r.restBaseUrl,t))||xn(n,t,!0)))}_checkProtocol(t,r,n,i){let o=!0,s=i?r.adminTokenServiceUrl:r.tokenServiceUrl;return s.trim().toLowerCase().startsWith("https:")&&!this._appOrigin.startsWith("https:")&&Kf(s)&&(o=!!this._protocolFunc&&!!this._protocolFunc({resourceUrl:t,serverInfo:r}),!o)&&n(new je("identity-manager:aborted","Aborted the Sign-In process to avoid sending password over insecure connection.")),o}_enqueue(t,r,n,i,o,s){return i||(i=$n()),i.resUrl_=t,i.sinfo_=r,i.options_=n,i.admin_=o,i.refresh_=s,this._busy?this._hasSameServerInstance(this._getServerInstanceRoot(t),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(t){this._busy=t,this._rejectOnPersistedPageShow=!1;let r=d=>{let h=t.options_?.resource,g=t.resUrl_,b=t.refresh_,S=!1;this.credentials.includes(d)||(b&&this.credentials.includes(b)?(b.userId=d.userId,b.token=d.token,b.expires=d.expires,b.validity=d.validity,b.ssl=d.ssl,b.creationTime=d.creationTime,S=!0,d=b):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 P=this._soReqs,A={};this._soReqs=[],P.forEach(F=>{if(!this._isIdenticalService(g,F.resUrl_)){let W=this._getSuffix(F.resUrl_);A[W]||(A[W]=!0,d.resources.push(F.resUrl_))}}),t.resolve(d),P.forEach(F=>{this._hasSameServerInstance(this._getServerInstanceRoot(g),F.resUrl_)?F.resolve(d):this._soReqs.push(F)}),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,S||this.emit("credential-create",{credential:d}),this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},n=d=>{t.reject(d),this._busy=t.resUrl_=t.sinfo_=t.refresh_=null,this._soReqs.length?this._doSignIn(this._soReqs.shift()):this._xoReqs.length&&this._doSignIn(this._xoReqs.shift())},i=(d,h,g,b)=>{let S=t.sinfo_,P=!t.options_||t.options_.prompt!==!1,A=S.hasPortal&&this._findOAuthInfo(t.resUrl_),F,W;if(d)r(new sr({userId:d,server:S.server??void 0,token:g??void 0,expires:b!=null?Number(b):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"]),t.resUrl_)){window.parent.postMessage({type:"arcgis:auth:requestCredential"},this._appUrlObj.query["arcgis-auth-origin"]);let z=Ol(window,"message",q=>{q.source===window.parent&&q.data&&(q.data.type==="arcgis:auth:credential"?(z.remove(),q.data.credential.expires<Date.now()?n(new je("identity-manager:credential-request-failed","Parent application's token has expired.")):r(new sr(q.data.credential))):q.data.type==="arcgis:auth:error"&&(z.remove(),q.data.error.name==="tokenExpiredError"?n(new je("identity-manager:credential-request-failed","Parent application's token has expired.")):n(je.fromJSON(q.data.error))))});Jn(t.options_?.signal,()=>{z.remove()})}else if(A){let z=A._oAuthCred;if(!z){let q=new Lm(A,f_),G=new Lm(A,m_);q.isValid()&&G.isValid()?q.expires>G.expires?(z=q,G.destroy()):(z=G,q.destroy()):z=q.isValid()?q:G,A._oAuthCred=z}if(z.isValid()){F=new sr({userId:z.userId??void 0,server:S.server??void 0,token:z.token??void 0,expires:z.expires,ssl:z.ssl??void 0,_oAuthCred:z});let q=A.appId!==z.appId&&this._doPortalSignIn(t.resUrl_);q||z.refreshToken?(t._pendingDfd=z.refreshToken?this._getOAuthToken(S.server,z.refreshToken,z.appId).then(G=>(F.expires=Date.now()+1e3*G.expires_in,F.token=G.access_token,F)):Promise.resolve(F),t._pendingDfd.then(G=>q?this._exchangeToken(G.server,A.appId,G.token).then(Y=>(G.token=Y,G)).catch(()=>G):G).then(G=>{r(G)}).catch(G=>{let Y=G.details?.httpStatus;Y>0&&Y!==404?(z.destroy(),i()):n(G)})):r(F)}else if(this._oAuthLocationParams&&this._hasSameServerInstance(A.portalUrl,this._oAuthLocationParams.state.portalUrl)&&(this._oAuthLocationParams.access_token||this._oAuthLocationParams.code&&this._oAuthLocationParams.state.uid===z.stateUID&&z.codeVerifier)){let q=this._oAuthLocationParams;this._oAuthLocationParams=null,t._pendingDfd=this._processOAuthResponseParams(q,A,S).then(G=>{r(G)}).catch(n)}else{let q=()=>{P?t._pendingDfd=this.oAuthSignIn(t.resUrl_,S,A,t.options_).then(r,n):(W=new je("identity-manager:not-authenticated","User is not signed in."),n(W))};this._doPortalSignIn(t.resUrl_)?t._pendingDfd=this._getPlatformSelf(S.server,A.appId).then(G=>{xn(G.portalUrl,this._appOrigin,!0)?(F=new sr({userId:G.username,server:S.server??void 0,expires:Date.now()+1e3*G.expires_in,token:G.token}),r(F)):q()}).catch(q):q()}}else if(P){if(this._checkProtocol(t.resUrl_,S,n,t.admin_)){let z=t.options_;t.admin_&&(z=z||{},z.isAdmin=!0),t._pendingDfd=this.signIn(t.resUrl_,S,z).then(r,n)}}else W=new je("identity-manager:not-authenticated","User is not signed in."),n(W)},o=()=>{let d=t.sinfo_,h=d.owningSystemUrl,g=t.options_,b,S,P,A;if(g&&(b=g.token,S=g.error,P=g.prompt),A=this._findCredential(h,{token:b,resource:t.resUrl_}),!A){for(let F of this.credentials)if(this._isIdProvider(h,F.server)){A=F;break}}if(A){let F=this.findCredential(t.resUrl_,A.userId);if(F)r(F);else if(v3(d,this._legacyFed)){let W=A.toJSON();W.server=d.server,W.resources=null,r(new sr(W))}else(t._pendingDfd=this.generateToken(this.findServerInfo(A.server),null,{serverUrl:t.resUrl_,token:A.token,signal:t.options_.signal,ssl:A.ssl})).then(W=>{r(new sr({userId:A?.userId,server:d.server??void 0,token:W.token,expires:W.expires!=null?Number(W.expires):null,ssl:!!W.ssl,isAdmin:t.admin_,validity:W.validity}))},n)}else this._busy=null,b&&(t.options_.token=null),(t._pendingDfd=this.getCredential(h.replace(/\/?$/,"/sharing"),{resource:t.resUrl_,owningTenant:d.owningTenant,signal:t.options_.signal,token:b,error:S,prompt:P})).then(()=>{this._enqueue(t.resUrl_,t.sinfo_,t.options_,t,t.admin_)},F=>{t.resUrl_=t.sinfo_=t.refresh_=null,t.reject(F)})};this._errbackFunc=n;let s=t.sinfo_.owningSystemUrl,l=this._isServerRsrc(t.resUrl_),a=t.sinfo_._restInfoPms;a?a.promise.then(d=>{let h=t.sinfo_;if(h._restInfoPms){h.adminTokenServiceUrl=h._restInfoPms.adminUrl,h._restInfoPms=null,h.tokenServiceUrl=(qi("authInfo.tokenServicesUrl",d)||qi("authInfo.tokenServiceUrl",d)||qi("tokenServiceUrl",d))??null,h.shortLivedTokenValidity=qi("authInfo.shortLivedTokenValidity",d)??null,h.currentVersion=d.currentVersion,h.owningTenant=d.owningTenant;let g=h.owningSystemUrl=d.owningSystemUrl;g&&this._portals.push(g)}l&&h.owningSystemUrl?o():i()},()=>{t.sinfo_._restInfoPms=null;let d=new je("identity-manager:server-identification-failed","Unknown resource - could not find token service endpoint.");n(d)}):l&&s?o():t.sinfo_._selfReq?t.sinfo_._selfReq.selfDfd.then(d=>{let h={},g,b,S,P;return d&&(g=d.user?.username,h.username=g,h.allSSL=d.allSSL,b=d.supportsOAuth,P=parseFloat(d.currentVersion),d.portalMode==="multitenant"&&(S=d.customBaseUrl),t.sinfo_.currentVersion=P),t.sinfo_.webTierAuth=!!g,g&&this.normalizeWebTierAuth?this.generateToken(t.sinfo_,null,{ssl:h.allSSL}).catch(()=>null).then(A=>(h.portalToken=A?.token,h.tokenExpiration=A?.expires,h)):!g&&b&&P>=4.4&&!this._findOAuthInfo(t.resUrl_)?this._generateOAuthInfo({portalUrl:t.sinfo_.server,customBaseUrl:S,owningTenant:t.sinfo_._selfReq.owningTenant}).catch(()=>null).then(()=>h):h}).catch(()=>null).then(d=>{t.sinfo_._selfReq=null,d?i(d.username,d.allSSL,d.portalToken,d.tokenExpiration):i()}):i()}_generateOAuthInfo(t){let r,n=null,i=t.portalUrl,o=t.customBaseUrl,s=t.owningTenant,l=!this._defaultOAuthInfo&&this._createDefaultOAuthInfo&&!this._hasTestedIfAppIsOnPortal;if(l){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 l&&n?(this._hasTestedIfAppIsOnPortal=!0,r=yr(n+"/sharing/rest",{query:{f:"json"}}).then(()=>{this._defaultOAuthInfo=new y3({appId:"arcgisonline",popupCallbackUrl:n+"/home/oauth-callback.html"})})):r=Promise.resolve(),r.then(()=>{if(this._defaultOAuthInfo)return i=i.replace(/^http:/i,"https:"),yr(i+"/sharing/rest/oauth2/validateRedirectUri",{query:{accountId:s,client_id:this._defaultOAuthInfo.appId,redirect_uri:eo(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||!(xn(i,this._appOrigin)||this._gwDomains.some(h=>h.regex.test(i)&&h.regex.test(this._appOrigin))),this.oAuthInfos.push(d)}})})}_doOAuthSignIn(t,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 l={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&&(l.force_login=!0),n.forceUserId&&n.userId&&(l.prepopulatedusername=n.userId),!n.popup&&this._doPortalSignIn(t)&&(l.redirectToUserOrgUrl=!0),o.codeVerifier&&(l.code_challenge=i||o.codeVerifier,l.code_challenge_method=i?"S256":"plain");let a=n.portalUrl.replace(/^http:/i,"https:")+"/sharing/oauth2/authorize",d=a+"?"+Fu(l);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 b=new je("identity-manager:user-aborted","ABORTED");g.reject(b)}}},500),this._oAuthOnPopupHandle=Ol(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 je("identity-manager:popup-blocked","ABORTED");this._oAuthDfd.reject(g)}}else this._rejectOnPersistedPageShow=!0,this._oAuthRedirectFunc?this._oAuthRedirectFunc({authorizeParams:l,authorizeUrl:a,resourceUrl:t,serverInfo:r,oAuthInfo:n}):window.location.href=d}_getRedirectURI(t,r){let n=window.location.href.replace(/#.*$/,"");if(t.popup)return eo(t.popupCallbackUrl);if(r){let i=fa(n);return i.query&&["code","error","error_description","message_code","persist","state"].forEach(o=>{delete i.query[o]}),tm(i.path,i.query)}return n}};Y1.prototype.declaredClass="esri.identity.IdentityManagerBase";sr=class extends Vo.EventedAccessor{constructor(e){super(e),this._oAuthCred=null,this.tokenRefreshBuffer=2,e?._oAuthCred&&(this._oAuthCred=e._oAuthCred)}initialize(){this.resources=this.resources||[],this.creationTime==null&&(this.creationTime=Date.now())}refreshToken(){let e=lr,t=e.findServerInfo(this.server),r=t?.owningSystemUrl,n=!!r&&this.scope==="server",i=n&&v3(t,e._legacyFed),o=t.webTierAuth,s=o&&e.normalizeWebTierAuth,l=p_[this.server],a=l?.[this.userId],d,h=this.resources&&this.resources[0],g=n?e.findServerInfo(r):null,b={username:this.userId,password:a};if(o&&!s)return;n&&!g&&e.serverInfos.some(P=>(e._isIdProvider(r,P.server)&&(g=P),!!g));let S=g?e.findCredential(g.server,this.userId):null;if(!n||S){if(!i){if(n)d={serverUrl:h,token:S?.token,ssl:S?.ssl};else if(s)b=null,d={ssl:this.ssl};else{if(!a){let P;return h&&(h=e._sanitizeUrl(h),this._enqueued=1,P=e._enqueue(h,t,null,null,this.isAdmin,this),P.then(()=>{this._enqueued=0,this.refreshServerTokens()}).catch(()=>{this._enqueued=0})),P}this.isAdmin&&(d={isAdmin:!0})}return e.generateToken(n?g:t,n?null:b,d).then(P=>{this.token=P.token,this.expires=P.expires!=null?Number(P.expires):null,this.creationTime=Date.now(),this.validity=P.validity,this.emitTokenChange(),this.refreshServerTokens()}).catch(()=>{})}S?.refreshToken()}}refreshServerTokens(){if(this.scope==="portal"){let e=lr;e.credentials.forEach(t=>{let r=e.findServerInfo(t.server),n=r?.owningSystemUrl;t!==this&&t.userId===this.userId&&n&&t.scope==="server"&&(e._hasSameServerInstance(this.server,n)||e._isIdProvider(n,this.server))&&(v3(r,e._legacyFed)?(t.token=this.token,t.expires=this.expires,t.creationTime=this.creationTime,t.validity=this.validity,t.emitTokenChange()):t.refreshToken())})}}emitTokenChange(e){clearTimeout(this._refreshTimer);let t=lr,r=this.server?t.findServerInfo(this.server):null,n=r?.owningSystemUrl,i=n?t.findServerInfo(n):null;e===!1||n&&this.scope!=="portal"&&(!i?.webTierAuth||t.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 e=lr,t=e.credentials.indexOf(this);t>-1&&e.credentials.splice(t,1),this.emitTokenChange(),this.emit("destroy")}toJSON(){let e=zw({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}),t=this.resources;return t&&t.length>0&&(e.resources=t.slice()),e}_startRefreshTimer(){clearTimeout(this._refreshTimer);let e=6e4*this.tokenRefreshBuffer,t=2**31-1,r=(this.validity?this.creationTime+6e4*this.validity:this.expires)-Date.now();r<0?r=0:r>t&&(r=t),this._refreshTimer=setTimeout(this.refreshToken.bind(this),r>e?r-e:r)}};R([V()],sr.prototype,"creationTime",void 0),R([V()],sr.prototype,"expires",void 0),R([V()],sr.prototype,"isAdmin",void 0),R([V()],sr.prototype,"oAuthState",void 0),R([V()],sr.prototype,"resources",void 0),R([V()],sr.prototype,"scope",void 0),R([V()],sr.prototype,"server",void 0),R([V()],sr.prototype,"ssl",void 0),R([V()],sr.prototype,"token",void 0),R([V()],sr.prototype,"tokenRefreshBuffer",void 0),R([V()],sr.prototype,"userId",void 0),R([V()],sr.prototype,"validity",void 0),sr=R([Le("esri.identity.Credential")],sr)});var dF={};Qs(dF,{default:()=>uF});var h_,uF,pF=O(()=>{Gg();cF();h_=class extends Y1{};h_.prototype.declaredClass="esri.identity.IdentityManager";uF=new h_;uI(uF)});async function yr(e,t){e instanceof URL&&(e=e.toString()),t?.query instanceof URLSearchParams&&(t.query=Fl(t.query.toString().replaceAll("+"," ")));let r=em(e),n=ov(e);n||r||(e=pa(e));let i={url:e,requestOptions:{...t}},o=S=>({data:S,getAllHeaders:km,getHeader:km,httpStatus:200,requestOptions:i.requestOptions,url:i.url}),s=G4(e,lo.internalInterceptors);if(s){let S=await mF(s,i);if(S!=null)return o(S)}let l=G4(e);if(l){let S=await mF(l,i);if(S!=null)return o(S);l.after||l.error||(l=null)}if(e=i.url,(t=i.requestOptions).responseType==="image"&&(de("host-webworker")||de("host-node")))throw Ls("request:invalid-parameters",new Error("responseType 'image' is not supported in Web Workers or Node environment"),i);if(t.method==="head"){if(t.body)throw Ls("request:invalid-parameters",new Error("body parameter cannot be set when method is 'head'"),i);if(r||n)throw Ls("request:invalid-parameters",new Error("data and blob URLs are not supported for method 'head'"),i)}if(await CK(),g_)return g_.execute(e,t);let a=new AbortController,d=Jn(t,()=>a.abort()),h={controller:a,credential:void 0,credentialToken:void 0,fetchOptions:void 0,hasToken:!1,interceptor:l,params:i,redoRequest:!1,useIdentity:lo.useIdentity,useProxy:!1,useSSL:!1,withCredentials:!1},g=t.useRequestQueueing?IK(h):_3(h),b=await g.finally(()=>d?.remove());return l?.after?.(b),b}function EK(e){let t=Sn(e);t&&!yr._corsServers.includes(t)&&yr._corsServers.push(t)}function fF(e){let t=Sn(e);return!t||t.endsWith(".arcgis.com")||yr._corsServers.includes(t)||nv(t)}function Ls(e,t,r,n){let i="Error",o={url:r.url,requestOptions:r.requestOptions,getAllHeaders:km,getHeader:km,ssl:!1};if(t instanceof je)return t.details?(t.details=Je(t.details),t.details.url=r.url,t.details.requestOptions=r.requestOptions):t.details=o,t;if(t){let s=n&&(()=>Array.from(n.headers)),l=n&&(h=>n.headers.get(h)),a=n?.status,d=t.message;d&&(i=d),s&&l&&(o.getAllHeaders=s,o.getHeader=l),o.httpStatus=(t.httpCode!=null?t.httpCode:t.code)||a||0,o.subCode=t.subcode,o.messageCode=t.messageCode,typeof t.details=="string"?o.messages=[t.details]:o.messages=t.details,o.raw=w_ in t?t[w_]:t}return Rg(t)?Xn():new je(e,i,o)}async function CK(){de("host-webworker")&&!g_&&(g_=await Promise.resolve().then(()=>(RI(),OI)))}async function b3(){lr||await Promise.resolve().then(()=>(pF(),dF))}async function TK(e){let t=e.params.url,r=e.params.requestOptions,n=e.controller.signal,i=r.body,o=null,s=null;if(wF&&"HTMLFormElement"in globalThis&&(i instanceof FormData?o=i:i instanceof HTMLFormElement&&(o=new FormData(i))),typeof i=="string"&&(s=i),e.fetchOptions={cache:r.cacheBust?"no-cache":"default",credentials:"same-origin",headers:r.headers||{},method:r.method==="head"?"HEAD":"GET",mode:"cors",priority:lo.priority,redirect:"follow",signal:n},(o||s)&&(e.fetchOptions.body=o||s),r.authMode==="anonymous"&&(e.useIdentity=!1),e.hasToken=!!(/token=/i.test(t)||r.query?.token||o?.get("token")),!e.hasToken&&bI(t)&&(r.query||(r.query={}),r.query.token=Mt.apiKey,e.hasToken=!0),e.useIdentity&&!e.hasToken&&!e.credentialToken&&!yF(t)&&!xs(n)){let l;r.authMode==="immediate"?(await b3(),l=await lr.getCredential(t,{signal:n}),e.credential=l):r.authMode==="no-prompt"?(await b3(),l=await lr.getCredential(t,{prompt:!1,signal:n}).catch(()=>{}),e.credential=l):lr&&(l=lr.findCredential(t)),l&&(e.credentialToken=l.token,e.useSSL=!!l.ssl)}}function yF(e){return SK.some(t=>t.test(e))}async function PK(e){let t=e.params.url,r=e.params.requestOptions,n=e.fetchOptions??{},i=ov(t)||em(t),o=r.responseType||"json",s=i?0:r.timeout!=null?r.timeout:lo.timeout,l=!1;if(!i){e.useSSL&&(t=av(t));let b={...r.query};e.credentialToken&&(b.token=e.credentialToken);let S=Fu(b);de("esri-url-encodes-apostrophe")&&(S=S.replaceAll("'","%27"));let P=t.length+1+S.length,A;l=r.method==="delete"||r.method==="post"||r.method==="put"||!!r.body||P>lo.maxUrlLength;let F=r.useProxy||!!Kf(t);if(F){let W=oI(t);A=W.path,!l&&A.length+1+P>lo.maxUrlLength&&(l=!0),W.query&&(b={...W.query,...b})}if(n.method==="HEAD"&&(l||F)){if(l)throw P>lo.maxUrlLength?Ls("request:invalid-parameters",new Error("URL exceeds maximum length"),e.params):Ls("request:invalid-parameters",new Error("cannot use POST request when method is 'head'"),e.params);if(F)throw Ls("request:invalid-parameters",new Error("cannot use proxy when method is 'head'"),e.params)}l?(n.method=r.method==="delete"?"DELETE":r.method==="put"?"PUT":"POST",r.body?t=tm(t,b):(n.body=Fu(b),n.headers||(n.headers={}),n.headers["Content-Type"]="application/x-www-form-urlencoded")):t=tm(t,b),F&&(e.useProxy=!0,t=`${A}?${t}`),b.token&&wF&&n.body instanceof FormData&&!tv(t)&&n.body.set("token",b.token),r.hasOwnProperty("withCredentials")?e.withCredentials=r.withCredentials:xn(t,Qf())||(nv(t)||lr&&lr.findServerInfo(t)?.webTierAuth)&&(e.withCredentials=!0),e.withCredentials&&(n.credentials="include",TI(t)&&await PI(l?tm(t,b):t))}let a,d,h=0,g=!1;s>0&&(h=setTimeout(()=>{g=!0,e.controller.abort()},s));try{if(r.responseType==="native-request-init")d=n,d.url=t,r.signal?d.signal=r.signal:delete d.signal;else if(r.responseType!=="image"||n.cache!=="default"||n.method!=="GET"||l||MK(r.headers)||!i&&!e.useProxy&&lo.proxyUrl&&!fF(t)){if(yr._beforeFetch&&await yr._beforeFetch(t,n),a=await fetch(t,n),yr._afterFetch&&await yr._afterFetch(a),e.useProxy||EK(t),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=hF(d,"application/xml");break;case"document":d=hF(d,"text/html")}else d=null;if(d){if(o==="array-buffer"||o==="blob"){let b=a.headers.get("Content-Type");if(b&&/application\/json|text\/plain/i.test(b)&&d[o==="blob"?"size":"byteLength"]<=750)try{let S=await new Response(d).json();S.error&&(d=S)}catch{}}o==="image"&&d instanceof Blob&&(d=await gF(URL.createObjectURL(d),e,!0))}}else{d=await a.text();try{d=JSON.parse(d)}catch{}}}else d=await gF(t,e)}catch(b){if(b.name==="AbortError")throw g?EI():Xn("Request canceled");if(!(!a&&b instanceof TypeError&&lo.proxyUrl)||r.body||r.method==="delete"||r.method==="head"||r.method==="post"||r.method==="put"||e.useProxy||fF(t))throw b;e.redoRequest=!0,lI({proxyUrl:lo.proxyUrl,urlPrefix:Sn(t)??""})}finally{h&&clearTimeout(h)}return[a,d]}async function mF(e,t){if(e.responseData!=null)return e.responseData;if(e.headers&&(t.requestOptions.headers={...t.requestOptions.headers,...e.headers}),e.query&&(t.requestOptions.query={...t.requestOptions.query,...e.query}),e.before){let r,n;try{n=await e.before(t)}catch(i){r=Ls("request:interceptor",i,t)}if((n instanceof Error||n instanceof je)&&(r=Ls("request:interceptor",n,t)),r)throw e.error&&e.error(r),r;return n}}function MK(e){if(e){for(let t of Object.getOwnPropertyNames(e))if(e[t])return!0}return!1}function hF(e,t){let r;try{r=new DOMParser().parseFromString(e,t)}catch{}if(!r||r.getElementsByTagName("parsererror").length)throw new SyntaxError("XML Parse error");return r}function IK(e){let t=kK(e.params.url);return t?Ff(AK,t.origin,()=>{let n=t.isHosted?de("request-queue-hosted-concurrency"):de("request-queue-non-hosted-concurrency");return new dv({concurrency:n,process:i=>(T4(i.params.requestOptions),_3(i))})}).push(e):_3(e)}async function _3(e){let t,r;await TK(e);try{do[t,r]=await PK(e);while(!await LK(e,t,r))}catch(o){let s=Ls("request:server",o,e.params,t);throw s.details.ssl=e.useSSL,e.interceptor?.error&&e.interceptor.error(s),s}let n=e.params.url;if(r&&/\/sharing\/rest\/(accounts|portals)\/self/i.test(n)){if(!e.hasToken&&!e.credentialToken&&r.user?.username&&!nv(n)){let o=Sn(n,!0);o&&lo.trustedServers.push(o)}Array.isArray(r.authorizedCrossOriginNoCorsDomains)&&CI(r.authorizedCrossOriginNoCorsDomains)}let i=e.credential;if(i&&lr){let s=lr.findServerInfo(i.server)?.owningSystemUrl;if(s){s=s.replace(/\/?$/,"/sharing");let l=lr.findCredential(s,i.userId);l&&lr._getIdenticalSvcIdx(s,l)===-1&&l.resources.unshift(s)}}return{data:r,getAllHeaders:t?()=>Array.from(t.headers):km,getHeader:t?o=>t.headers.get(o):km,httpStatus:t?.status??200,requestOptions:e.params.requestOptions,ssl:e.useSSL,url:e.params.url}}async function LK(e,t,r){if(e.redoRequest)return e.redoRequest=!1,!1;let n=e.params.requestOptions;if(!t||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[w_]=r,i.details=r.messages)),!i&&!t.ok)throw i=new Error(`Unable to load ${t.url} status: ${t.status}`),i[w_]=r,i;let s,l=null;i&&(o=Number(i.code),l=i.hasOwnProperty("subcode")?Number(i.subcode):null,s=i.messageCode,s=s?.toUpperCase());let a=n.authMode;if(o===403&&(l===4||i.message?.toLowerCase().includes("ssl")&&!i.message.toLowerCase().includes("permission"))){if(!e.useSSL)return e.useSSL=!0,!1}else if(!e.hasToken&&e.useIdentity&&(a!=="no-prompt"||o===498)&&o!==void 0&&_K.has(o)&&!yF(e.params.url)&&(o!==403||(!s||!xK.has(s))&&(l==null||l===2&&e.credentialToken))){await b3();try{let d=await lr.getCredential(e.params.url,{error:Ls("request:server",i,e.params),prompt:a!=="no-prompt",signal:e.controller.signal,token:e.credentialToken});return e.credential=d,e.credentialToken=d.token,e.useSSL=e.useSSL||d.ssl,!1}catch(d){if(a==="no-prompt")return e.credential=void 0,e.credentialToken=void 0,!1;i=d}}if(i)throw i;return!0}function gF(e,t,r=!1){let n=t.controller.signal,i=new Image;return t.withCredentials?i.crossOrigin="use-credentials":i.crossOrigin="anonymous",i.alt="",i.fetchPriority=lo.priority,i.src=e,SI(i,e,r,n)}function kK(e){let t,r;return typeof e=="string"?(t=Sn(e,!0),r=Y4(e)):(t=e.origin,r=Y4(e.toString())),t==null?null:{origin:t,isHosted:r}}var g_,lo,wF,_K,xK,SK,km,w_,AK,wv=O(()=>{Il();Gg();Fn();tt();ar();wy();Qi();Es();vI();Wg();_I();MI();NI();lo=Mt.request,wF="FormData"in globalThis,_K=new Set([499,498,403,401]),xK=new Set(["COM_0056","COM_0057","SB_0008"]),SK=[/\/arcgis\/tokens/i,/\/sharing(\/rest)?\/generatetoken/i,/\/rest\/info/i],km=()=>null,w_=Symbol();yr._corsServers=["https://server.arcgisonline.com","https://services.arcgisonline.com"],yr._beforeFetch=void 0,yr._afterFetch=void 0;AK=new Map});function am(e){if(!Mt.assetsPath)throw ot.getLogger("esri.assets").errorOnce("The API assets location needs to be set using config.assetsPath. More information: https://arcg.is/1OzLe50"),new je("assets:path-not-set","config.assetsPath is not set");return iv(Mt.assetsPath,e)}var yv=O(()=>{Il();wv();Fn();it();Es()});function vF(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var bF=O(()=>{});var _F=OT(()=>{});var xF=OT(()=>{});var CF={};Qs(CF,{p:()=>RK});function NK(){return SF||(SF=1,e=EF,t=typeof document<"u"?document.currentScript?.src:void 0,typeof __filename<"u"&&(t=t||__filename),r=function(n={}){var i,o,s,l,a=n,d=new Promise((m,k)=>{i=m,o=k}),h=typeof window=="object",g=typeof WorkerGlobalScope<"u",b=typeof process=="object"&&typeof process.versions=="object"&&typeof process.versions.node=="string"&&process.type!="renderer",S=Object.assign({},a),P="./this.program",A="";function F(m){return a.locateFile?a.locateFile(m,A):A+m}if(b){var W=_F(),z=xF();A=__dirname+"/",l=m=>(m=fo(m)?new URL(m):z.normalize(m),W.readFileSync(m)),s=(m,k=!0)=>(m=fo(m)?new URL(m):z.normalize(m),new Promise((Z,se)=>{W.readFile(m,k?void 0:"utf8",(ue,Pe)=>{ue?se(ue):Z(k?Pe.buffer:Pe)})})),!a.thisProgram&&process.argv.length>1&&(P=process.argv[1].replace(/\\/g,"/")),process.argv.slice(2)}else(h||g)&&(g?A=self.location.href:typeof document<"u"&&document.currentScript&&(A=document.currentScript.src),t&&(A=t),A=A.startsWith("blob:")?"":A.substr(0,A.replace(/[?#].*/,"").lastIndexOf("/")+1),g&&(l=m=>{var k=new XMLHttpRequest;return k.open("GET",m,!1),k.responseType="arraybuffer",k.send(null),new Uint8Array(k.response)}),s=m=>fo(m)?new Promise((k,Z)=>{var se=new XMLHttpRequest;se.open("GET",m,!0),se.responseType="arraybuffer",se.onload=()=>{se.status==200||se.status==0&&se.response?k(se.response):Z(se.status)},se.onerror=Z,se.send(null)}):fetch(m,{credentials:"same-origin"}).then(k=>k.ok?k.arrayBuffer():Promise.reject(new Error(k.status+" : "+k.url))));var q,G,Y=console.log.bind(console),ie=console.error.bind(console);Object.assign(a,S),S=null;var U,me,Ae,Ee,Ne,we,ce,J=!1;function ee(m,k){m||In(k)}function fe(){var m=G.buffer;a.HEAP8=U=new Int8Array(m),a.HEAP16=Ae=new Int16Array(m),a.HEAPU8=me=new Uint8Array(m),a.HEAPU16=new Uint16Array(m),a.HEAP32=Ee=new Int32Array(m),a.HEAPU32=Ne=new Uint32Array(m),a.HEAPF32=we=new Float32Array(m),a.HEAPF64=ce=new Float64Array(m)}var pe=[],Se=[],ye=[];function Fe(){rs(pe)}function nt(){rs(Se)}function Et(){rs(ye)}function Tr(m){Se.unshift(m)}var fr=0,mr=null;function yi(m){fr++}function Gn(m){if(--fr==0&&mr){var k=mr;mr=null,k()}}function In(m){ie(m="Aborted("+m+")"),J=!0,m+=". Build with -sASSERTIONS for more info.";var k=new WebAssembly.RuntimeError(m);throw o(k),k}var ze,Md="data:application/octet-stream;base64,",ts=m=>m.startsWith(Md),fo=m=>m.startsWith("file://");function wc(){var m="pe-wasm.wasm";return ts(m)?m:F(m)}function La(m){if(l)return l(m);throw"both async and sync fetching of the wasm failed"}function Vs(m){return s(m).then(k=>new Uint8Array(k),()=>La(m))}function Vi(m,k,Z){return Vs(m).then(se=>WebAssembly.instantiate(se,k)).then(Z,se=>{ie(`failed to asynchronously prepare wasm: ${se}`),In(se)})}function Ad(m,k,Z,se){return typeof WebAssembly.instantiateStreaming!="function"||ts(k)||fo(k)||b||typeof fetch!="function"?Vi(k,Z,se):fetch(k,{credentials:"same-origin"}).then(ue=>WebAssembly.instantiateStreaming(ue,Z).then(se,function(Pe){return ie(`wasm streaming compile failed: ${Pe}`),ie("falling back to ArrayBuffer instantiation"),Vi(k,Z,se)}))}function Us(){return{a:jm}}function Gm(){var m=Us();function k(se,ue){return H=se.exports,G=H.t,fe(),Tr(H.u),Gn(),H}function Z(se){k(se.instance)}return yi(),ze??(ze=wc()),Ad(q,ze,m,Z).catch(o),{}}var rs=m=>{for(;m.length>0;)m.shift()(a)};function ka(m,k="i8"){switch(k.endsWith("*")&&(k="*"),k){case"i1":case"i8":return U[m];case"i16":return Ae[m>>1];case"i32":return Ee[m>>2];case"i64":In("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:In(`invalid type for getValue: ${k}`)}}var yc=typeof TextDecoder<"u"?new TextDecoder:void 0,vc=(m,k=0,Z=NaN)=>{for(var se=k+Z,ue=k;m[ue]&&!(ue>=se);)++ue;if(ue-k>16&&m.buffer&&yc)return yc.decode(m.subarray(k,ue));for(var Pe="";k<ue;){var We=m[k++];if(128&We){var De=63&m[k++];if((224&We)!=192){var ct=63&m[k++];if((We=(240&We)==224?(15&We)<<12|De<<6|ct:(7&We)<<18|De<<12|ct<<6|63&m[k++])<65536)Pe+=String.fromCharCode(We);else{var Nn=We-65536;Pe+=String.fromCharCode(55296|Nn>>10,56320|1023&Nn)}}else Pe+=String.fromCharCode((31&We)<<6|De)}else Pe+=String.fromCharCode(We)}return Pe},Pr=(m,k)=>m?vc(me,m,k):"";function Id(m,k,Z){return 0}var ns=(m,k,Z,se)=>{if(!(se>0))return 0;for(var ue=Z,Pe=Z+se-1,We=0;We<m.length;++We){var De=m.charCodeAt(We);if(De>=55296&&De<=57343&&(De=65536+((1023&De)<<10)|1023&m.charCodeAt(++We)),De<=127){if(Z>=Pe)break;k[Z++]=De}else if(De<=2047){if(Z+1>=Pe)break;k[Z++]=192|De>>6,k[Z++]=128|63&De}else if(De<=65535){if(Z+2>=Pe)break;k[Z++]=224|De>>12,k[Z++]=128|De>>6&63,k[Z++]=128|63&De}else{if(Z+3>=Pe)break;k[Z++]=240|De>>18,k[Z++]=128|De>>12&63,k[Z++]=128|De>>6&63,k[Z++]=128|63&De}}return k[Z]=0,Z-ue},Na=(m,k,Z)=>ns(m,me,k,Z);function bc(m,k,Z){return 0}function Ld(m,k,Z,se){}var _c=m=>m%4==0&&(m%100!=0||m%400==0),xc=[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],Ec=m=>(_c(m.getFullYear())?xc:Sc)[m.getMonth()]+m.getDate()-1,kd=(m,k)=>k+2097152>>>0<4194305-!!m?(m>>>0)+4294967296*k:NaN;function mo(m,k,Z){var se=kd(m,k),ue=new Date(1e3*se);Ee[Z>>2]=ue.getSeconds(),Ee[Z+4>>2]=ue.getMinutes(),Ee[Z+8>>2]=ue.getHours(),Ee[Z+12>>2]=ue.getDate(),Ee[Z+16>>2]=ue.getMonth(),Ee[Z+20>>2]=ue.getFullYear()-1900,Ee[Z+24>>2]=ue.getDay();var Pe=0|Ec(ue);Ee[Z+28>>2]=Pe,Ee[Z+36>>2]=-60*ue.getTimezoneOffset();var We=new Date(ue.getFullYear(),0,1),De=new Date(ue.getFullYear(),6,1).getTimezoneOffset(),ct=We.getTimezoneOffset(),Nn=0|(De!=ct&&ue.getTimezoneOffset()==Math.min(ct,De));Ee[Z+32>>2]=Nn}var Nd=()=>2147483648,Cc=(m,k)=>Math.ceil(m/k)*k,zs=m=>{var k=(m-G.buffer.byteLength+65535)/65536|0;try{return G.grow(k),fe(),1}catch{}},Ui={},is=()=>P||"./this.program",ho=()=>{if(!ho.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",_:is()};for(var k in Ui)Ui[k]===void 0?delete m[k]:m[k]=Ui[k];var Z=[];for(var k in m)Z.push(`${k}=${m[k]}`);ho.strings=Z}return ho.strings},Tc=(m,k)=>{for(var Z=0;Z<m.length;++Z)U[k++]=m.charCodeAt(Z);U[k]=0};function Od(m,k,Z,se,ue){return 70}var Pc=[null,[],[]],Oa=(m,k)=>{var Z=Pc[m];k===0||k===10?((m===1?Y:ie)(vc(Z)),Z.length=0):Z.push(k)},Rd=m=>{for(var k=0,Z=0;Z<m.length;++Z){var se=m.charCodeAt(Z);se<=127?k++:se<=2047?k+=2:se>=55296&&se<=57343?(k+=4,++Z):k+=3}return k};function Dd(m,k,Z){var se=Rd(m)+1,ue=new Array(se);return ns(m,ue,0,ue.length),ue}var jm={c:Id,q:(m,k,Z)=>{},h:bc,d:Ld,o:m=>{},n:(m,k)=>{},p:(m,k,Z)=>{},l:()=>{In("")},s:(m,k,Z)=>me.copyWithin(m,k,k+Z),j:mo,r:(m,k,Z,se)=>{var ue=new Date().getFullYear(),Pe=new Date(ue,0,1),We=new Date(ue,6,1),De=Pe.getTimezoneOffset(),ct=We.getTimezoneOffset(),Nn=Math.max(De,ct);Ne[m>>2]=60*Nn,Ee[k>>2]=+(De!=ct);var m0=w0=>{var i2=w0>=0?"-":"+",y0=Math.abs(w0);return`UTC${i2}${String(Math.floor(y0/60)).padStart(2,"0")}${String(y0%60).padStart(2,"0")}`},h0=m0(De),g0=m0(ct);ct<De?(Na(h0,Z,17),Na(g0,se,17)):(Na(h0,se,17),Na(g0,Z,17))},i:()=>Date.now(),m:m=>{var k=me.length;m>>>=0;var Z=Nd();if(m>Z)return!1;for(var se=1;se<=4;se*=2){var ue=k*(1+.2/se);ue=Math.min(ue,m+100663296);var Pe=Math.min(Z,Cc(Math.max(m,ue),65536));if(zs(Pe))return!0}return!1},e:(m,k)=>{var Z=0;return ho().forEach((se,ue)=>{var Pe=k+Z;Ne[m+4*ue>>2]=Pe,Tc(se,Pe),Z+=se.length+1}),0},f:(m,k)=>{var Z=ho();Ne[m>>2]=Z.length;var se=0;return Z.forEach(ue=>se+=ue.length+1),Ne[k>>2]=se,0},a:m=>52,g:(m,k,Z,se)=>52,k:Od,b:(m,k,Z,se)=>{for(var ue=0,Pe=0;Pe<Z;Pe++){var We=Ne[k>>2],De=Ne[k+4>>2];k+=8;for(var ct=0;ct<De;ct++)Oa(m,me[We+ct]);ue+=De}return Ne[se>>2]=ue,0}},H=Gm();a._webidl_free=m=>(a._webidl_free=H.v)(m),a._webidl_malloc=m=>(a._webidl_malloc=H.w)(m);var os,Fd=a._emscripten_bind_PeObject_getCode_0=m=>(Fd=a._emscripten_bind_PeObject_getCode_0=H.x)(m),$d=a._emscripten_bind_PeObject_getName_1=(m,k)=>($d=a._emscripten_bind_PeObject_getName_1=H.y)(m,k),Mc=a._emscripten_bind_PeObject_getType_0=m=>(Mc=a._emscripten_bind_PeObject_getType_0=H.z)(m),mn=a._emscripten_bind_PeCoordsys_isEqual_1=(m,k)=>(mn=a._emscripten_bind_PeCoordsys_isEqual_1=H.A)(m,k),zi=a._emscripten_bind_PeCoordsys_getCode_0=m=>(zi=a._emscripten_bind_PeCoordsys_getCode_0=H.B)(m),ii=a._emscripten_bind_PeCoordsys_getName_1=(m,k)=>(ii=a._emscripten_bind_PeCoordsys_getName_1=H.C)(m,k),Vd=a._emscripten_bind_PeCoordsys_getType_0=m=>(Vd=a._emscripten_bind_PeCoordsys_getType_0=H.D)(m),Ud=a._emscripten_bind_PeUnit_getUnitFactor_0=m=>(Ud=a._emscripten_bind_PeUnit_getUnitFactor_0=H.E)(m),Ra=a._emscripten_bind_PeUnit_getCode_0=m=>(Ra=a._emscripten_bind_PeUnit_getCode_0=H.F)(m),vi=a._emscripten_bind_PeUnit_getName_1=(m,k)=>(vi=a._emscripten_bind_PeUnit_getName_1=H.G)(m,k),Ze=a._emscripten_bind_PeUnit_getType_0=m=>(Ze=a._emscripten_bind_PeUnit_getType_0=H.H)(m),Da=a._emscripten_bind_VoidPtr___destroy___0=m=>(Da=a._emscripten_bind_VoidPtr___destroy___0=H.I)(m),Ac=a._emscripten_bind_PeAngunit_getCode_0=m=>(Ac=a._emscripten_bind_PeAngunit_getCode_0=H.J)(m),Ic=a._emscripten_bind_PeAngunit_getName_1=(m,k)=>(Ic=a._emscripten_bind_PeAngunit_getName_1=H.K)(m,k),Lc=a._emscripten_bind_PeAngunit_getType_0=m=>(Lc=a._emscripten_bind_PeAngunit_getType_0=H.L)(m),ss=a._emscripten_bind_PeAngunit_getUnitFactor_0=m=>(ss=a._emscripten_bind_PeAngunit_getUnitFactor_0=H.M)(m),Fa=a._emscripten_bind_PeDatum_getSpheroid_0=m=>(Fa=a._emscripten_bind_PeDatum_getSpheroid_0=H.N)(m),zd=a._emscripten_bind_PeDatum_getCode_0=m=>(zd=a._emscripten_bind_PeDatum_getCode_0=H.O)(m),Wd=a._emscripten_bind_PeDatum_getName_1=(m,k)=>(Wd=a._emscripten_bind_PeDatum_getName_1=H.P)(m,k),Bd=a._emscripten_bind_PeDatum_getType_0=m=>(Bd=a._emscripten_bind_PeDatum_getType_0=H.Q)(m),kc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=m=>(kc=a._emscripten_bind_PeDefs_get_PE_BUFFER_MAX_0=H.R)(m),Gd=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=m=>(Gd=a._emscripten_bind_PeDefs_get_PE_NAME_MAX_0=H.S)(m),Nc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=m=>(Nc=a._emscripten_bind_PeDefs_get_PE_MGRS_MAX_0=H.T)(m),Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=m=>(Oc=a._emscripten_bind_PeDefs_get_PE_USNG_MAX_0=H.U)(m),Ws=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=m=>(Ws=a._emscripten_bind_PeDefs_get_PE_DD_MAX_0=H.V)(m),Rc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=m=>(Rc=a._emscripten_bind_PeDefs_get_PE_DMS_MAX_0=H.W)(m),$a=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=m=>($a=a._emscripten_bind_PeDefs_get_PE_DDM_MAX_0=H.X)(m),Dc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=m=>(Dc=a._emscripten_bind_PeDefs_get_PE_UTM_MAX_0=H.Y)(m),jd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=m=>(jd=a._emscripten_bind_PeDefs_get_PE_PARM_MAX_0=H.Z)(m),Va=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=m=>(Va=a._emscripten_bind_PeDefs_get_PE_TYPE_NONE_0=H._)(m),qd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=m=>(qd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGCS_0=H.$)(m),Ua=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=m=>(Ua=a._emscripten_bind_PeDefs_get_PE_TYPE_PROJCS_0=H.aa)(m),Hd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=m=>(Hd=a._emscripten_bind_PeDefs_get_PE_TYPE_GEOGTRAN_0=H.ba)(m),Zd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=m=>(Zd=a._emscripten_bind_PeDefs_get_PE_TYPE_COORDSYS_0=H.ca)(m),Yd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=m=>(Yd=a._emscripten_bind_PeDefs_get_PE_TYPE_UNIT_0=H.da)(m),Jd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=m=>(Jd=a._emscripten_bind_PeDefs_get_PE_TYPE_LINUNIT_0=H.ea)(m),Xd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=m=>(Xd=a._emscripten_bind_PeDefs_get_PE_STR_OPTS_NONE_0=H.fa)(m),Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=m=>(Fc=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_NONE_0=H.ga)(m),Bs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=m=>(Bs=a._emscripten_bind_PeDefs_get_PE_STR_AUTH_TOP_0=H.ha)(m),go=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=m=>(go=a._emscripten_bind_PeDefs_get_PE_STR_NAME_CANON_0=H.ia)(m),za=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=m=>(za=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT_0=H.ja)(m),Gs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=m=>(Gs=a._emscripten_bind_PeDefs_get_PE_STR_FMT_WKT2_0=H.ka)(m),bi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=m=>(bi=a._emscripten_bind_PeDefs_get_PE_PARM_X0_0=H.la)(m),as=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=m=>(as=a._emscripten_bind_PeDefs_get_PE_PARM_ND_0=H.ma)(m),Qd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=m=>(Qd=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_1_TO_2_0=H.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=H.oa)(m),Vc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=m=>(Vc=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_P_TO_G_0=H.pa)(m),Wa=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=m=>(Wa=a._emscripten_bind_PeDefs_get_PE_TRANSFORM_G_TO_P_0=H.qa)(m),Kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=m=>(Kd=a._emscripten_bind_PeDefs_get_PE_HORIZON_RECT_0=H.ra)(m),ep=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=m=>(ep=a._emscripten_bind_PeDefs_get_PE_HORIZON_POLY_0=H.sa)(m),Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=m=>(Uc=a._emscripten_bind_PeDefs_get_PE_HORIZON_LINE_0=H.ta)(m),tp=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=m=>(tp=a._emscripten_bind_PeDefs_get_PE_HORIZON_DELTA_0=H.ua)(m),rp=a._emscripten_bind_PeDouble_PeDouble_1=m=>(rp=a._emscripten_bind_PeDouble_PeDouble_1=H.va)(m),zc=a._emscripten_bind_PeDouble_get_val_0=m=>(zc=a._emscripten_bind_PeDouble_get_val_0=H.wa)(m),Wc=a._emscripten_bind_PeDouble_set_val_1=(m,k)=>(Wc=a._emscripten_bind_PeDouble_set_val_1=H.xa)(m,k),np=a._emscripten_bind_PeDouble___destroy___0=m=>(np=a._emscripten_bind_PeDouble___destroy___0=H.ya)(m),Ba=a._emscripten_bind_PeFactory_initialize_1=m=>(Ba=a._emscripten_bind_PeFactory_initialize_1=H.za)(m),ip=a._emscripten_bind_PeFactory_factoryByType_2=(m,k)=>(ip=a._emscripten_bind_PeFactory_factoryByType_2=H.Aa)(m,k),Bc=a._emscripten_bind_PeFactory_fromString_2=(m,k)=>(Bc=a._emscripten_bind_PeFactory_fromString_2=H.Ba)(m,k),op=a._emscripten_bind_PeFactory_getCode_1=m=>(op=a._emscripten_bind_PeFactory_getCode_1=H.Ca)(m),js=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=(m,k,Z,se,ue,Pe)=>(js=a._emscripten_bind_PeGCSExtent_PeGCSExtent_6=H.Da)(m,k,Z,se,ue,Pe),sp=a._emscripten_bind_PeGCSExtent_getLLon_0=m=>(sp=a._emscripten_bind_PeGCSExtent_getLLon_0=H.Ea)(m),Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=m=>(Gc=a._emscripten_bind_PeGCSExtent_getSLat_0=H.Fa)(m),jc=a._emscripten_bind_PeGCSExtent_getRLon_0=m=>(jc=a._emscripten_bind_PeGCSExtent_getRLon_0=H.Ga)(m),ap=a._emscripten_bind_PeGCSExtent_getNLat_0=m=>(ap=a._emscripten_bind_PeGCSExtent_getNLat_0=H.Ha)(m),qc=a._emscripten_bind_PeGCSExtent___destroy___0=m=>(qc=a._emscripten_bind_PeGCSExtent___destroy___0=H.Ia)(m),Hc=a._emscripten_bind_PeGeogcs_Delete_0=m=>(Hc=a._emscripten_bind_PeGeogcs_Delete_0=H.Ja)(m),lp=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=(m,k)=>(lp=a._emscripten_bind_PeGeogcs_cloneAlterUnits_1=H.Ka)(m,k),wo=a._emscripten_bind_PeGeogcs_getDatum_0=m=>(wo=a._emscripten_bind_PeGeogcs_getDatum_0=H.La)(m),ls=a._emscripten_bind_PeGeogcs_getPrimem_0=m=>(ls=a._emscripten_bind_PeGeogcs_getPrimem_0=H.Ma)(m),cp=a._emscripten_bind_PeGeogcs_getUnit_0=m=>(cp=a._emscripten_bind_PeGeogcs_getUnit_0=H.Na)(m),Ga=a._emscripten_bind_PeGeogcs_isEqual_1=(m,k)=>(Ga=a._emscripten_bind_PeGeogcs_isEqual_1=H.Oa)(m,k),ja=a._emscripten_bind_PeGeogcs_getCode_0=m=>(ja=a._emscripten_bind_PeGeogcs_getCode_0=H.Pa)(m),up=a._emscripten_bind_PeGeogcs_getName_1=(m,k)=>(up=a._emscripten_bind_PeGeogcs_getName_1=H.Qa)(m,k),qs=a._emscripten_bind_PeGeogcs_getType_0=m=>(qs=a._emscripten_bind_PeGeogcs_getType_0=H.Ra)(m),Zc=a._emscripten_bind_PeGeogtran_isEqual_1=(m,k)=>(Zc=a._emscripten_bind_PeGeogtran_isEqual_1=H.Sa)(m,k),Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=m=>(Yc=a._emscripten_bind_PeGeogtran_getGeogcs1_0=H.Ta)(m),qa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=m=>(qa=a._emscripten_bind_PeGeogtran_getGeogcs2_0=H.Ua)(m),Jc=a._emscripten_bind_PeGeogtran_getParameters_0=m=>(Jc=a._emscripten_bind_PeGeogtran_getParameters_0=H.Va)(m),dp=a._emscripten_bind_PeGeogtran_loadConstants_0=m=>(dp=a._emscripten_bind_PeGeogtran_loadConstants_0=H.Wa)(m),_i=a._emscripten_bind_PeGeogtran_getCode_0=m=>(_i=a._emscripten_bind_PeGeogtran_getCode_0=H.Xa)(m),pp=a._emscripten_bind_PeGeogtran_getName_1=(m,k)=>(pp=a._emscripten_bind_PeGeogtran_getName_1=H.Ya)(m,k),fp=a._emscripten_bind_PeGeogtran_getType_0=m=>(fp=a._emscripten_bind_PeGeogtran_getType_0=H.Za)(m),mp=a._emscripten_bind_PeGTlistExtended_getGTlist_6=(m,k,Z,se,ue,Pe)=>(mp=a._emscripten_bind_PeGTlistExtended_getGTlist_6=H._a)(m,k,Z,se,ue,Pe),Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=m=>(Xc=a._emscripten_bind_PeGTlistExtended_get_PE_GTLIST_OPTS_COMMON_0=H.$a)(m),Qc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=m=>(Qc=a._emscripten_bind_PeGTlistExtendedEntry_getEntries_0=H.ab)(m),Mr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=m=>(Mr=a._emscripten_bind_PeGTlistExtendedEntry_getSteps_0=H.bb)(m),hp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=m=>(hp=a._emscripten_bind_PeGTlistExtendedEntry_Delete_1=H.cb)(m),gp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=m=>(gp=a._emscripten_bind_PeGTlistExtendedGTs_getDirection_0=H.db)(m),wp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=m=>(wp=a._emscripten_bind_PeGTlistExtendedGTs_getGeogtran_0=H.eb)(m),yp=a._emscripten_bind_PeHorizon_getNump_0=m=>(yp=a._emscripten_bind_PeHorizon_getNump_0=H.fb)(m),vp=a._emscripten_bind_PeHorizon_getKind_0=m=>(vp=a._emscripten_bind_PeHorizon_getKind_0=H.gb)(m),Kc=a._emscripten_bind_PeHorizon_getInclusive_0=m=>(Kc=a._emscripten_bind_PeHorizon_getInclusive_0=H.hb)(m),bp=a._emscripten_bind_PeHorizon_getSize_0=m=>(bp=a._emscripten_bind_PeHorizon_getSize_0=H.ib)(m),eu=a._emscripten_bind_PeHorizon_getCoord_0=m=>(eu=a._emscripten_bind_PeHorizon_getCoord_0=H.jb)(m),tu=a._emscripten_bind_PeInteger_PeInteger_1=m=>(tu=a._emscripten_bind_PeInteger_PeInteger_1=H.kb)(m),Hs=a._emscripten_bind_PeInteger_get_val_0=m=>(Hs=a._emscripten_bind_PeInteger_get_val_0=H.lb)(m),Wi=a._emscripten_bind_PeInteger_set_val_1=(m,k)=>(Wi=a._emscripten_bind_PeInteger_set_val_1=H.mb)(m,k),Zs=a._emscripten_bind_PeInteger___destroy___0=m=>(Zs=a._emscripten_bind_PeInteger___destroy___0=H.nb)(m),_p=a._emscripten_bind_PeLineType_geodetic_distance_10=(m,k,Z,se,ue,Pe,We,De,ct,Nn)=>(_p=a._emscripten_bind_PeLineType_geodetic_distance_10=H.ob)(m,k,Z,se,ue,Pe,We,De,ct,Nn),ru=a._emscripten_bind_PeLineType_geodetic_coordinate_9=(m,k,Z,se,ue,Pe,We,De,ct)=>(ru=a._emscripten_bind_PeLineType_geodetic_coordinate_9=H.pb)(m,k,Z,se,ue,Pe,We,De,ct),nu=a._emscripten_bind_PeLineType_geodesic_coordinate_8=(m,k,Z,se,ue,Pe,We,De)=>(nu=a._emscripten_bind_PeLineType_geodesic_coordinate_8=H.qb)(m,k,Z,se,ue,Pe,We,De),iu=a._emscripten_bind_PeLineType_great_elliptic_distance_9=(m,k,Z,se,ue,Pe,We,De,ct)=>(iu=a._emscripten_bind_PeLineType_great_elliptic_distance_9=H.rb)(m,k,Z,se,ue,Pe,We,De,ct),cs=a._emscripten_bind_PeMath_phi_to_eta_2=(m,k)=>(cs=a._emscripten_bind_PeMath_phi_to_eta_2=H.sb)(m,k),xp=a._emscripten_bind_PeMath_eta_to_phi_2=(m,k)=>(xp=a._emscripten_bind_PeMath_eta_to_phi_2=H.tb)(m,k),Sp=a._emscripten_bind_PeMath_phi_to_phig_2=(m,k)=>(Sp=a._emscripten_bind_PeMath_phi_to_phig_2=H.ub)(m,k),Ep=a._emscripten_bind_PeMath_q_3=(m,k,Z)=>(Ep=a._emscripten_bind_PeMath_q_3=H.vb)(m,k,Z),Cp=a._emscripten_bind_PeMath_q90_2=(m,k)=>(Cp=a._emscripten_bind_PeMath_q90_2=H.wb)(m,k),Tp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=m=>(Tp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_NEW_0=H.xb)(m),Pp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=m=>(Pp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_OLD_0=H.yb)(m),Ha=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=m=>(Ha=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_STYLE_AUTO_0=H.zb)(m),Mp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=m=>(Mp=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_180_ZONE_1_PLUS_0=H.Ab)(m),Ys=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=m=>(Ys=a._emscripten_bind_PeNotationMgrs_get_PE_MGRS_ADD_SPACES_0=H.Bb)(m),Ap=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=m=>(Ap=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NONE_0=H.Cb)(m),Za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=m=>(Za=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_0=H.Db)(m),Ip=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=m=>(Ip=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_NS_STRICT_0=H.Eb)(m),Lp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=m=>(Lp=a._emscripten_bind_PeNotationUtm_get_PE_UTM_OPTS_ADD_SPACES_0=H.Fb)(m),ou=a._emscripten_bind_PeParameter_getValue_0=m=>(ou=a._emscripten_bind_PeParameter_getValue_0=H.Gb)(m),us=a._emscripten_bind_PeParameter_getCode_0=m=>(us=a._emscripten_bind_PeParameter_getCode_0=H.Hb)(m),xi=a._emscripten_bind_PeParameter_getName_1=(m,k)=>(xi=a._emscripten_bind_PeParameter_getName_1=H.Ib)(m,k),su=a._emscripten_bind_PeParameter_getType_0=m=>(su=a._emscripten_bind_PeParameter_getType_0=H.Jb)(m),Ya=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=m=>(Ya=a._emscripten_bind_PePCSInfo_getCentralMeridian_0=H.Kb)(m),kp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=m=>(kp=a._emscripten_bind_PePCSInfo_getDomainMinx_0=H.Lb)(m),Np=a._emscripten_bind_PePCSInfo_getDomainMiny_0=m=>(Np=a._emscripten_bind_PePCSInfo_getDomainMiny_0=H.Mb)(m),Op=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=m=>(Op=a._emscripten_bind_PePCSInfo_getDomainMaxx_0=H.Nb)(m),Rp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=m=>(Rp=a._emscripten_bind_PePCSInfo_getDomainMaxy_0=H.Ob)(m),Dp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=m=>(Dp=a._emscripten_bind_PePCSInfo_getNorthPoleLocation_0=H.Pb)(m),Fp=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=m=>(Fp=a._emscripten_bind_PePCSInfo_getNorthPoleGeometry_0=H.Qb)(m),$p=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=m=>($p=a._emscripten_bind_PePCSInfo_getSouthPoleLocation_0=H.Rb)(m),Vp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=m=>(Vp=a._emscripten_bind_PePCSInfo_getSouthPoleGeometry_0=H.Sb)(m),Up=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=m=>(Up=a._emscripten_bind_PePCSInfo_isDensificationNeeded_0=H.Tb)(m),zp=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=m=>(zp=a._emscripten_bind_PePCSInfo_isGcsHorizonMultiOverlap_0=H.Ub)(m),f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=m=>(f=a._emscripten_bind_PePCSInfo_isPannableRectangle_0=H.Vb)(m),p=a._emscripten_bind_PePCSInfo_generate_2=(m,k)=>(p=a._emscripten_bind_PePCSInfo_generate_2=H.Wb)(m,k),w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=m=>(w=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_NONE_0=H.Xb)(m),_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=m=>(_=a._emscripten_bind_PePCSInfo_get_PE_PCSINFO_OPTION_DOMAIN_0=H.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=H.Zb)(m),T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=m=>(T=a._emscripten_bind_PePCSInfo_get_PE_POLE_POINT_0=H._b)(m),I=a._emscripten_bind_PePrimem_getLongitude_0=m=>(I=a._emscripten_bind_PePrimem_getLongitude_0=H.$b)(m),N=a._emscripten_bind_PePrimem_getCode_0=m=>(N=a._emscripten_bind_PePrimem_getCode_0=H.ac)(m),D=a._emscripten_bind_PePrimem_getName_1=(m,k)=>(D=a._emscripten_bind_PePrimem_getName_1=H.bc)(m,k),B=a._emscripten_bind_PePrimem_getType_0=m=>(B=a._emscripten_bind_PePrimem_getType_0=H.cc)(m),$=a._emscripten_bind_PeProjcs_Delete_0=m=>($=a._emscripten_bind_PeProjcs_Delete_0=H.dc)(m),Q=a._emscripten_bind_PeProjcs_getGeogcs_0=m=>(Q=a._emscripten_bind_PeProjcs_getGeogcs_0=H.ec)(m),ae=a._emscripten_bind_PeProjcs_getProjection_0=m=>(ae=a._emscripten_bind_PeProjcs_getProjection_0=H.fc)(m),ge=a._emscripten_bind_PeProjcs_getParameters_0=m=>(ge=a._emscripten_bind_PeProjcs_getParameters_0=H.gc)(m),he=a._emscripten_bind_PeProjcs_getUnit_0=m=>(he=a._emscripten_bind_PeProjcs_getUnit_0=H.hc)(m),ve=a._emscripten_bind_PeProjcs_loadConstants_0=m=>(ve=a._emscripten_bind_PeProjcs_loadConstants_0=H.ic)(m),Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=m=>(Oe=a._emscripten_bind_PeProjcs_horizonGcsGenerate_0=H.jc)(m),Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=m=>(Ie=a._emscripten_bind_PeProjcs_horizonPcsGenerate_0=H.kc)(m),Ue=a._emscripten_bind_PeProjcs_isEqual_1=(m,k)=>(Ue=a._emscripten_bind_PeProjcs_isEqual_1=H.lc)(m,k),et=a._emscripten_bind_PeProjcs_getCode_0=m=>(et=a._emscripten_bind_PeProjcs_getCode_0=H.mc)(m),st=a._emscripten_bind_PeProjcs_getName_1=(m,k)=>(st=a._emscripten_bind_PeProjcs_getName_1=H.nc)(m,k),qe=a._emscripten_bind_PeProjcs_getType_0=m=>(qe=a._emscripten_bind_PeProjcs_getType_0=H.oc)(m),rt=a._emscripten_bind_PeSpheroid_getAxis_0=m=>(rt=a._emscripten_bind_PeSpheroid_getAxis_0=H.pc)(m),Ar=a._emscripten_bind_PeSpheroid_getFlattening_0=m=>(Ar=a._emscripten_bind_PeSpheroid_getFlattening_0=H.qc)(m),Lt=a._emscripten_bind_PeSpheroid_getCode_0=m=>(Lt=a._emscripten_bind_PeSpheroid_getCode_0=H.rc)(m),Kr=a._emscripten_bind_PeSpheroid_getName_1=(m,k)=>(Kr=a._emscripten_bind_PeSpheroid_getName_1=H.sc)(m,k),Ln=a._emscripten_bind_PeSpheroid_getType_0=m=>(Ln=a._emscripten_bind_PeSpheroid_getType_0=H.tc)(m),jn=a._emscripten_bind_PeVersion_version_string_0=m=>(jn=a._emscripten_bind_PeVersion_version_string_0=H.uc)(m);function Js(){function m(){os||(os=!0,a.calledRun=!0,J||(nt(),i(a),Et()))}fr>0||(Fe(),fr>0||m())}function mt(){}function Ja(m){return(m||mt).__cache__}function hr(m,k){var Z=Ja(k),se=Z[m];return se||((se=Object.create((k||mt).prototype)).ptr=m,Z[m]=se)}function Y_(m,k){return hr(m.ptr,k)}function J_(m){if(!m.__destroy__)throw"Error: Cannot destroy object. (Did you create it yourself?)";m.__destroy__(),delete Ja(m.__class__)[m.ptr]}function X_(m,k){return m.ptr===k.ptr}function Q_(m){return m.ptr}function K_(m){return m.__class__}a._pe_getPeGTlistExtendedEntrySize=()=>(a._pe_getPeGTlistExtendedEntrySize=H.vc)(),a._pe_getPeGTlistExtendedGTsSize=()=>(a._pe_getPeGTlistExtendedGTsSize=H.wc)(),a._pe_getPeHorizonSize=()=>(a._pe_getPeHorizonSize=H.xc)(),a._pe_geog_to_geog=(m,k,Z,se,ue)=>(a._pe_geog_to_geog=H.zc)(m,k,Z,se,ue),a._pe_geog_to_proj=(m,k,Z)=>(a._pe_geog_to_proj=H.Ac)(m,k,Z),a._pe_geog_to_dd=(m,k,Z,se,ue)=>(a._pe_geog_to_dd=H.Bc)(m,k,Z,se,ue),a._pe_dd_to_geog=(m,k,Z,se)=>(a._pe_dd_to_geog=H.Cc)(m,k,Z,se),a._pe_geog_to_ddm=(m,k,Z,se,ue)=>(a._pe_geog_to_ddm=H.Dc)(m,k,Z,se,ue),a._pe_ddm_to_geog=(m,k,Z,se)=>(a._pe_ddm_to_geog=H.Ec)(m,k,Z,se),a._pe_geog_to_dms=(m,k,Z,se,ue)=>(a._pe_geog_to_dms=H.Fc)(m,k,Z,se,ue),a._pe_dms_to_geog=(m,k,Z,se)=>(a._pe_dms_to_geog=H.Gc)(m,k,Z,se),a._pe_geog_to_mgrs_extended=(m,k,Z,se,ue,Pe,We)=>(a._pe_geog_to_mgrs_extended=H.Hc)(m,k,Z,se,ue,Pe,We),a._pe_mgrs_to_geog_extended=(m,k,Z,se,ue)=>(a._pe_mgrs_to_geog_extended=H.Ic)(m,k,Z,se,ue),a._pe_geog_to_usng=(m,k,Z,se,ue,Pe,We)=>(a._pe_geog_to_usng=H.Jc)(m,k,Z,se,ue,Pe,We),a._pe_usng_to_geog=(m,k,Z,se)=>(a._pe_usng_to_geog=H.Kc)(m,k,Z,se),a._pe_geog_to_utm=(m,k,Z,se,ue)=>(a._pe_geog_to_utm=H.Lc)(m,k,Z,se,ue),a._pe_utm_to_geog=(m,k,Z,se,ue)=>(a._pe_utm_to_geog=H.Mc)(m,k,Z,se,ue),a._pe_object_to_string_ext=(m,k,Z)=>(a._pe_object_to_string_ext=H.Nc)(m,k,Z),a._pe_proj_to_geog_center=(m,k,Z,se)=>(a._pe_proj_to_geog_center=H.Oc)(m,k,Z,se),a.getValue=ka,a.UTF8ToString=Pr,mr=function m(){os||Js(),os||(mr=m)},Js(),mt.prototype=Object.create(mt.prototype),mt.prototype.constructor=mt,mt.prototype.__class__=mt,mt.__cache__={},a.WrapperObject=mt,a.getCache=Ja,a.wrapPointer=hr,a.castObject=Y_,a.NULL=hr(0),a.destroy=J_,a.compare=X_,a.getPointer=Q_,a.getClass=K_;var Xe={buffer:0,size:0,pos:0,temps:[],needed:0,prepare(){if(Xe.needed){for(var m=0;m<Xe.temps.length;m++)a._webidl_free(Xe.temps[m]);Xe.temps.length=0,a._webidl_free(Xe.buffer),Xe.buffer=0,Xe.size+=Xe.needed,Xe.needed=0}Xe.buffer||(Xe.size+=128,Xe.buffer=a._webidl_malloc(Xe.size),ee(Xe.buffer)),Xe.pos=0},alloc(m,k){ee(Xe.buffer);var Z,se=k.BYTES_PER_ELEMENT,ue=m.length*se;return ue=Cc(ue,8),Xe.pos+ue>=Xe.size?(ee(ue>0),Xe.needed+=ue,Z=a._webidl_malloc(ue),Xe.temps.push(Z)):(Z=Xe.buffer+Xe.pos,Xe.pos+=ue),Z},copy(m,k,Z){Z/=k.BYTES_PER_ELEMENT;for(var se=0;se<m.length;se++)k[Z+se]=m[se]}};function qm(m){if(typeof m=="string"){var k=Dd(m),Z=Xe.alloc(k,U);return Xe.copy(k,U,Z),Z}return m}function oi(m){if(typeof m=="object"){var k=Xe.alloc(m,U);return Xe.copy(m,U,k),k}return m}function e2(m){if(typeof m=="object"){var k=Xe.alloc(m,Ae);return Xe.copy(m,Ae,k),k}return m}function t2(m){if(typeof m=="object"){var k=Xe.alloc(m,Ee);return Xe.copy(m,Ee,k),k}return m}function r2(m){if(typeof m=="object"){var k=Xe.alloc(m,we);return Xe.copy(m,we,k),k}return m}function n2(m){if(typeof m=="object"){var k=Xe.alloc(m,ce);return Xe.copy(m,ce,k),k}return m}function rr(){throw"cannot construct a PeObject, no constructor in IDL"}function Ur(){throw"cannot construct a PeCoordsys, no constructor in IDL"}function zr(){throw"cannot construct a PeUnit, no constructor in IDL"}function yo(){throw"cannot construct a VoidPtr, no constructor in IDL"}function en(){throw"cannot construct a PeAngunit, no constructor in IDL"}function tn(){throw"cannot construct a PeDatum, no constructor in IDL"}function le(){throw"cannot construct a PeDefs, no constructor in IDL"}function Wr(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=rp(m),Ja(Wr)[this.ptr]=this}function hn(){throw"cannot construct a PeFactory, no constructor in IDL"}function Ir(m,k,Z,se,ue,Pe){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),this.ptr=js(m,k,Z,se,ue,Pe),Ja(Ir)[this.ptr]=this}function Ct(){throw"cannot construct a PeGeogcs, no constructor in IDL"}function Jt(){throw"cannot construct a PeGeogtran, no constructor in IDL"}function qn(){throw"cannot construct a PeGTlistExtended, no constructor in IDL"}function kn(){throw"cannot construct a PeGTlistExtendedEntry, no constructor in IDL"}function si(){throw"cannot construct a PeGTlistExtendedGTs, no constructor in IDL"}function Sr(){throw"cannot construct a PeHorizon, no constructor in IDL"}function Br(m){m&&typeof m=="object"&&(m=m.ptr),this.ptr=tu(m),Ja(Br)[this.ptr]=this}function gn(){throw"cannot construct a PeLineType, no constructor in IDL"}function Gr(){throw"cannot construct a PeMath, no constructor in IDL"}function kt(){throw"cannot construct a PeNotationMgrs, no constructor in IDL"}function nr(){throw"cannot construct a PeNotationUtm, no constructor in IDL"}function wn(){throw"cannot construct a PeParameter, no constructor in IDL"}function Ye(){throw"cannot construct a PePCSInfo, no constructor in IDL"}function rn(){throw"cannot construct a PePrimem, no constructor in IDL"}function bt(){throw"cannot construct a PeProjcs, no constructor in IDL"}function Lr(){throw"cannot construct a PeSpheroid, no constructor in IDL"}function vo(){throw"cannot construct a PeVersion, no constructor in IDL"}return rr.prototype=Object.create(mt.prototype),rr.prototype.constructor=rr,rr.prototype.__class__=rr,rr.__cache__={},a.PeObject=rr,rr.prototype.getCode=rr.prototype.getCode=function(){var m=this.ptr;return Fd(m)},rr.prototype.getName=rr.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr($d(k,m))},rr.prototype.getType=rr.prototype.getType=function(){var m=this.ptr;return Mc(m)},Ur.prototype=Object.create(rr.prototype),Ur.prototype.constructor=Ur,Ur.prototype.__class__=Ur,Ur.__cache__={},a.PeCoordsys=Ur,Ur.prototype.isEqual=Ur.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!mn(k,m)},Ur.prototype.getCode=Ur.prototype.getCode=function(){var m=this.ptr;return zi(m)},Ur.prototype.getName=Ur.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(ii(k,m))},Ur.prototype.getType=Ur.prototype.getType=function(){var m=this.ptr;return Vd(m)},zr.prototype=Object.create(rr.prototype),zr.prototype.constructor=zr,zr.prototype.__class__=zr,zr.__cache__={},a.PeUnit=zr,zr.prototype.getUnitFactor=zr.prototype.getUnitFactor=function(){var m=this.ptr;return Ud(m)},zr.prototype.getCode=zr.prototype.getCode=function(){var m=this.ptr;return Ra(m)},zr.prototype.getName=zr.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(vi(k,m))},zr.prototype.getType=zr.prototype.getType=function(){var m=this.ptr;return Ze(m)},yo.prototype=Object.create(mt.prototype),yo.prototype.constructor=yo,yo.prototype.__class__=yo,yo.__cache__={},a.VoidPtr=yo,yo.prototype.__destroy__=yo.prototype.__destroy__=function(){var m=this.ptr;Da(m)},en.prototype=Object.create(zr.prototype),en.prototype.constructor=en,en.prototype.__class__=en,en.__cache__={},a.PeAngunit=en,en.prototype.getCode=en.prototype.getCode=function(){var m=this.ptr;return Ac(m)},en.prototype.getName=en.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(Ic(k,m))},en.prototype.getType=en.prototype.getType=function(){var m=this.ptr;return Lc(m)},en.prototype.getUnitFactor=en.prototype.getUnitFactor=function(){var m=this.ptr;return ss(m)},tn.prototype=Object.create(rr.prototype),tn.prototype.constructor=tn,tn.prototype.__class__=tn,tn.__cache__={},a.PeDatum=tn,tn.prototype.getSpheroid=tn.prototype.getSpheroid=function(){var m=this.ptr;return hr(Fa(m),Lr)},tn.prototype.getCode=tn.prototype.getCode=function(){var m=this.ptr;return zd(m)},tn.prototype.getName=tn.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(Wd(k,m))},tn.prototype.getType=tn.prototype.getType=function(){var m=this.ptr;return Bd(m)},le.prototype=Object.create(mt.prototype),le.prototype.constructor=le,le.prototype.__class__=le,le.__cache__={},a.PeDefs=le,le.prototype.get_PE_BUFFER_MAX=le.prototype.get_PE_BUFFER_MAX=function(){var m=this.ptr;return kc(m)},Object.defineProperty(le.prototype,"PE_BUFFER_MAX",{get:le.prototype.get_PE_BUFFER_MAX}),le.prototype.get_PE_NAME_MAX=le.prototype.get_PE_NAME_MAX=function(){var m=this.ptr;return Gd(m)},Object.defineProperty(le.prototype,"PE_NAME_MAX",{get:le.prototype.get_PE_NAME_MAX}),le.prototype.get_PE_MGRS_MAX=le.prototype.get_PE_MGRS_MAX=function(){var m=this.ptr;return Nc(m)},Object.defineProperty(le.prototype,"PE_MGRS_MAX",{get:le.prototype.get_PE_MGRS_MAX}),le.prototype.get_PE_USNG_MAX=le.prototype.get_PE_USNG_MAX=function(){var m=this.ptr;return Oc(m)},Object.defineProperty(le.prototype,"PE_USNG_MAX",{get:le.prototype.get_PE_USNG_MAX}),le.prototype.get_PE_DD_MAX=le.prototype.get_PE_DD_MAX=function(){var m=this.ptr;return Ws(m)},Object.defineProperty(le.prototype,"PE_DD_MAX",{get:le.prototype.get_PE_DD_MAX}),le.prototype.get_PE_DMS_MAX=le.prototype.get_PE_DMS_MAX=function(){var m=this.ptr;return Rc(m)},Object.defineProperty(le.prototype,"PE_DMS_MAX",{get:le.prototype.get_PE_DMS_MAX}),le.prototype.get_PE_DDM_MAX=le.prototype.get_PE_DDM_MAX=function(){var m=this.ptr;return $a(m)},Object.defineProperty(le.prototype,"PE_DDM_MAX",{get:le.prototype.get_PE_DDM_MAX}),le.prototype.get_PE_UTM_MAX=le.prototype.get_PE_UTM_MAX=function(){var m=this.ptr;return Dc(m)},Object.defineProperty(le.prototype,"PE_UTM_MAX",{get:le.prototype.get_PE_UTM_MAX}),le.prototype.get_PE_PARM_MAX=le.prototype.get_PE_PARM_MAX=function(){var m=this.ptr;return jd(m)},Object.defineProperty(le.prototype,"PE_PARM_MAX",{get:le.prototype.get_PE_PARM_MAX}),le.prototype.get_PE_TYPE_NONE=le.prototype.get_PE_TYPE_NONE=function(){var m=this.ptr;return Va(m)},Object.defineProperty(le.prototype,"PE_TYPE_NONE",{get:le.prototype.get_PE_TYPE_NONE}),le.prototype.get_PE_TYPE_GEOGCS=le.prototype.get_PE_TYPE_GEOGCS=function(){var m=this.ptr;return qd(m)},Object.defineProperty(le.prototype,"PE_TYPE_GEOGCS",{get:le.prototype.get_PE_TYPE_GEOGCS}),le.prototype.get_PE_TYPE_PROJCS=le.prototype.get_PE_TYPE_PROJCS=function(){var m=this.ptr;return Ua(m)},Object.defineProperty(le.prototype,"PE_TYPE_PROJCS",{get:le.prototype.get_PE_TYPE_PROJCS}),le.prototype.get_PE_TYPE_GEOGTRAN=le.prototype.get_PE_TYPE_GEOGTRAN=function(){var m=this.ptr;return Hd(m)},Object.defineProperty(le.prototype,"PE_TYPE_GEOGTRAN",{get:le.prototype.get_PE_TYPE_GEOGTRAN}),le.prototype.get_PE_TYPE_COORDSYS=le.prototype.get_PE_TYPE_COORDSYS=function(){var m=this.ptr;return Zd(m)},Object.defineProperty(le.prototype,"PE_TYPE_COORDSYS",{get:le.prototype.get_PE_TYPE_COORDSYS}),le.prototype.get_PE_TYPE_UNIT=le.prototype.get_PE_TYPE_UNIT=function(){var m=this.ptr;return Yd(m)},Object.defineProperty(le.prototype,"PE_TYPE_UNIT",{get:le.prototype.get_PE_TYPE_UNIT}),le.prototype.get_PE_TYPE_LINUNIT=le.prototype.get_PE_TYPE_LINUNIT=function(){var m=this.ptr;return Jd(m)},Object.defineProperty(le.prototype,"PE_TYPE_LINUNIT",{get:le.prototype.get_PE_TYPE_LINUNIT}),le.prototype.get_PE_STR_OPTS_NONE=le.prototype.get_PE_STR_OPTS_NONE=function(){var m=this.ptr;return Xd(m)},Object.defineProperty(le.prototype,"PE_STR_OPTS_NONE",{get:le.prototype.get_PE_STR_OPTS_NONE}),le.prototype.get_PE_STR_AUTH_NONE=le.prototype.get_PE_STR_AUTH_NONE=function(){var m=this.ptr;return Fc(m)},Object.defineProperty(le.prototype,"PE_STR_AUTH_NONE",{get:le.prototype.get_PE_STR_AUTH_NONE}),le.prototype.get_PE_STR_AUTH_TOP=le.prototype.get_PE_STR_AUTH_TOP=function(){var m=this.ptr;return Bs(m)},Object.defineProperty(le.prototype,"PE_STR_AUTH_TOP",{get:le.prototype.get_PE_STR_AUTH_TOP}),le.prototype.get_PE_STR_NAME_CANON=le.prototype.get_PE_STR_NAME_CANON=function(){var m=this.ptr;return go(m)},Object.defineProperty(le.prototype,"PE_STR_NAME_CANON",{get:le.prototype.get_PE_STR_NAME_CANON}),le.prototype.get_PE_STR_FMT_WKT=le.prototype.get_PE_STR_FMT_WKT=function(){var m=this.ptr;return za(m)},Object.defineProperty(le.prototype,"PE_STR_FMT_WKT",{get:le.prototype.get_PE_STR_FMT_WKT}),le.prototype.get_PE_STR_FMT_WKT2=le.prototype.get_PE_STR_FMT_WKT2=function(){var m=this.ptr;return Gs(m)},Object.defineProperty(le.prototype,"PE_STR_FMT_WKT2",{get:le.prototype.get_PE_STR_FMT_WKT2}),le.prototype.get_PE_PARM_X0=le.prototype.get_PE_PARM_X0=function(){var m=this.ptr;return bi(m)},Object.defineProperty(le.prototype,"PE_PARM_X0",{get:le.prototype.get_PE_PARM_X0}),le.prototype.get_PE_PARM_ND=le.prototype.get_PE_PARM_ND=function(){var m=this.ptr;return as(m)},Object.defineProperty(le.prototype,"PE_PARM_ND",{get:le.prototype.get_PE_PARM_ND}),le.prototype.get_PE_TRANSFORM_1_TO_2=le.prototype.get_PE_TRANSFORM_1_TO_2=function(){var m=this.ptr;return Qd(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_1_TO_2",{get:le.prototype.get_PE_TRANSFORM_1_TO_2}),le.prototype.get_PE_TRANSFORM_2_TO_1=le.prototype.get_PE_TRANSFORM_2_TO_1=function(){var m=this.ptr;return $c(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_2_TO_1",{get:le.prototype.get_PE_TRANSFORM_2_TO_1}),le.prototype.get_PE_TRANSFORM_P_TO_G=le.prototype.get_PE_TRANSFORM_P_TO_G=function(){var m=this.ptr;return Vc(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_P_TO_G",{get:le.prototype.get_PE_TRANSFORM_P_TO_G}),le.prototype.get_PE_TRANSFORM_G_TO_P=le.prototype.get_PE_TRANSFORM_G_TO_P=function(){var m=this.ptr;return Wa(m)},Object.defineProperty(le.prototype,"PE_TRANSFORM_G_TO_P",{get:le.prototype.get_PE_TRANSFORM_G_TO_P}),le.prototype.get_PE_HORIZON_RECT=le.prototype.get_PE_HORIZON_RECT=function(){var m=this.ptr;return Kd(m)},Object.defineProperty(le.prototype,"PE_HORIZON_RECT",{get:le.prototype.get_PE_HORIZON_RECT}),le.prototype.get_PE_HORIZON_POLY=le.prototype.get_PE_HORIZON_POLY=function(){var m=this.ptr;return ep(m)},Object.defineProperty(le.prototype,"PE_HORIZON_POLY",{get:le.prototype.get_PE_HORIZON_POLY}),le.prototype.get_PE_HORIZON_LINE=le.prototype.get_PE_HORIZON_LINE=function(){var m=this.ptr;return Uc(m)},Object.defineProperty(le.prototype,"PE_HORIZON_LINE",{get:le.prototype.get_PE_HORIZON_LINE}),le.prototype.get_PE_HORIZON_DELTA=le.prototype.get_PE_HORIZON_DELTA=function(){var m=this.ptr;return tp(m)},Object.defineProperty(le.prototype,"PE_HORIZON_DELTA",{get:le.prototype.get_PE_HORIZON_DELTA}),Wr.prototype=Object.create(mt.prototype),Wr.prototype.constructor=Wr,Wr.prototype.__class__=Wr,Wr.__cache__={},a.PeDouble=Wr,Wr.prototype.get_val=Wr.prototype.get_val=function(){var m=this.ptr;return zc(m)},Wr.prototype.set_val=Wr.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Wc(k,m)},Object.defineProperty(Wr.prototype,"val",{get:Wr.prototype.get_val,set:Wr.prototype.set_val}),Wr.prototype.__destroy__=Wr.prototype.__destroy__=function(){var m=this.ptr;np(m)},hn.prototype=Object.create(mt.prototype),hn.prototype.constructor=hn,hn.prototype.__class__=hn,hn.__cache__={},a.PeFactory=hn,hn.prototype.initialize=hn.prototype.initialize=function(m){Xe.prepare(),m=m&&typeof m=="object"?m.ptr:qm(m),Ba(m)},hn.prototype.factoryByType=hn.prototype.factoryByType=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),hr(ip(m,k),rr)},hn.prototype.fromString=hn.prototype.fromString=function(m,k){return Xe.prepare(),m&&typeof m=="object"&&(m=m.ptr),k=k&&typeof k=="object"?k.ptr:qm(k),hr(Bc(m,k),rr)},hn.prototype.getCode=hn.prototype.getCode=function(m){return m&&typeof m=="object"&&(m=m.ptr),op(m)},Ir.prototype=Object.create(mt.prototype),Ir.prototype.constructor=Ir,Ir.prototype.__class__=Ir,Ir.__cache__={},a.PeGCSExtent=Ir,Ir.prototype.getLLon=Ir.prototype.getLLon=function(){var m=this.ptr;return sp(m)},Ir.prototype.getSLat=Ir.prototype.getSLat=function(){var m=this.ptr;return Gc(m)},Ir.prototype.getRLon=Ir.prototype.getRLon=function(){var m=this.ptr;return jc(m)},Ir.prototype.getNLat=Ir.prototype.getNLat=function(){var m=this.ptr;return ap(m)},Ir.prototype.__destroy__=Ir.prototype.__destroy__=function(){var m=this.ptr;qc(m)},Ct.prototype=Object.create(Ur.prototype),Ct.prototype.constructor=Ct,Ct.prototype.__class__=Ct,Ct.__cache__={},a.PeGeogcs=Ct,Ct.prototype.Delete=Ct.prototype.Delete=function(){var m=this.ptr;Hc(m)},Ct.prototype.cloneAlterUnits=Ct.prototype.cloneAlterUnits=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),hr(lp(k,m),Ct)},Ct.prototype.getDatum=Ct.prototype.getDatum=function(){var m=this.ptr;return hr(wo(m),tn)},Ct.prototype.getPrimem=Ct.prototype.getPrimem=function(){var m=this.ptr;return hr(ls(m),rn)},Ct.prototype.getUnit=Ct.prototype.getUnit=function(){var m=this.ptr;return hr(cp(m),en)},Ct.prototype.isEqual=Ct.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Ga(k,m)},Ct.prototype.getCode=Ct.prototype.getCode=function(){var m=this.ptr;return ja(m)},Ct.prototype.getName=Ct.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(up(k,m))},Ct.prototype.getType=Ct.prototype.getType=function(){var m=this.ptr;return qs(m)},Jt.prototype=Object.create(rr.prototype),Jt.prototype.constructor=Jt,Jt.prototype.__class__=Jt,Jt.__cache__={},a.PeGeogtran=Jt,Jt.prototype.isEqual=Jt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Zc(k,m)},Jt.prototype.getGeogcs1=Jt.prototype.getGeogcs1=function(){var m=this.ptr;return hr(Yc(m),Ct)},Jt.prototype.getGeogcs2=Jt.prototype.getGeogcs2=function(){var m=this.ptr;return hr(qa(m),Ct)},Jt.prototype.getParameters=Jt.prototype.getParameters=function(){var m=this.ptr;return Jc(m)},Jt.prototype.loadConstants=Jt.prototype.loadConstants=function(){var m=this.ptr;return!!dp(m)},Jt.prototype.getCode=Jt.prototype.getCode=function(){var m=this.ptr;return _i(m)},Jt.prototype.getName=Jt.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(pp(k,m))},Jt.prototype.getType=Jt.prototype.getType=function(){var m=this.ptr;return fp(m)},qn.prototype=Object.create(mt.prototype),qn.prototype.constructor=qn,qn.prototype.__class__=qn,qn.__cache__={},a.PeGTlistExtended=qn,qn.prototype.getGTlist=qn.prototype.getGTlist=function(m,k,Z,se,ue,Pe){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),hr(mp(m,k,Z,se,ue,Pe),kn)},qn.prototype.get_PE_GTLIST_OPTS_COMMON=qn.prototype.get_PE_GTLIST_OPTS_COMMON=function(){var m=this.ptr;return Xc(m)},Object.defineProperty(qn.prototype,"PE_GTLIST_OPTS_COMMON",{get:qn.prototype.get_PE_GTLIST_OPTS_COMMON}),kn.prototype=Object.create(mt.prototype),kn.prototype.constructor=kn,kn.prototype.__class__=kn,kn.__cache__={},a.PeGTlistExtendedEntry=kn,kn.prototype.getEntries=kn.prototype.getEntries=function(){var m=this.ptr;return hr(Qc(m),si)},kn.prototype.getSteps=kn.prototype.getSteps=function(){var m=this.ptr;return Mr(m)},kn.prototype.Delete=kn.prototype.Delete=function(m){m&&typeof m=="object"&&(m=m.ptr),hp(m)},si.prototype=Object.create(mt.prototype),si.prototype.constructor=si,si.prototype.__class__=si,si.__cache__={},a.PeGTlistExtendedGTs=si,si.prototype.getDirection=si.prototype.getDirection=function(){var m=this.ptr;return gp(m)},si.prototype.getGeogtran=si.prototype.getGeogtran=function(){var m=this.ptr;return hr(wp(m),Jt)},Sr.prototype=Object.create(mt.prototype),Sr.prototype.constructor=Sr,Sr.prototype.__class__=Sr,Sr.__cache__={},a.PeHorizon=Sr,Sr.prototype.getNump=Sr.prototype.getNump=function(){var m=this.ptr;return yp(m)},Sr.prototype.getKind=Sr.prototype.getKind=function(){var m=this.ptr;return vp(m)},Sr.prototype.getInclusive=Sr.prototype.getInclusive=function(){var m=this.ptr;return Kc(m)},Sr.prototype.getSize=Sr.prototype.getSize=function(){var m=this.ptr;return bp(m)},Sr.prototype.getCoord=Sr.prototype.getCoord=function(){var m=this.ptr;return eu(m)},Br.prototype=Object.create(mt.prototype),Br.prototype.constructor=Br,Br.prototype.__class__=Br,Br.__cache__={},a.PeInteger=Br,Br.prototype.get_val=Br.prototype.get_val=function(){var m=this.ptr;return Hs(m)},Br.prototype.set_val=Br.prototype.set_val=function(m){var k=this.ptr;m&&typeof m=="object"&&(m=m.ptr),Wi(k,m)},Object.defineProperty(Br.prototype,"val",{get:Br.prototype.get_val,set:Br.prototype.set_val}),Br.prototype.__destroy__=Br.prototype.__destroy__=function(){var m=this.ptr;Zs(m)},gn.prototype=Object.create(mt.prototype),gn.prototype.constructor=gn,gn.prototype.__class__=gn,gn.__cache__={},a.PeLineType=gn,gn.prototype.geodetic_distance=gn.prototype.geodetic_distance=function(m,k,Z,se,ue,Pe,We,De,ct,Nn){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),ct&&typeof ct=="object"&&(ct=ct.ptr),Nn&&typeof Nn=="object"&&(Nn=Nn.ptr),_p(m,k,Z,se,ue,Pe,We,De,ct,Nn)},gn.prototype.geodetic_coordinate=gn.prototype.geodetic_coordinate=function(m,k,Z,se,ue,Pe,We,De,ct){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),ct&&typeof ct=="object"&&(ct=ct.ptr),ru(m,k,Z,se,ue,Pe,We,De,ct)},gn.prototype.geodesic_coordinate=gn.prototype.geodesic_coordinate=function(m,k,Z,se,ue,Pe,We,De){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),nu(m,k,Z,se,ue,Pe,We,De)},gn.prototype.great_elliptic_distance=gn.prototype.great_elliptic_distance=function(m,k,Z,se,ue,Pe,We,De,ct){m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),se&&typeof se=="object"&&(se=se.ptr),ue&&typeof ue=="object"&&(ue=ue.ptr),Pe&&typeof Pe=="object"&&(Pe=Pe.ptr),We&&typeof We=="object"&&(We=We.ptr),De&&typeof De=="object"&&(De=De.ptr),ct&&typeof ct=="object"&&(ct=ct.ptr),iu(m,k,Z,se,ue,Pe,We,De,ct)},Gr.prototype=Object.create(mt.prototype),Gr.prototype.constructor=Gr,Gr.prototype.__class__=Gr,Gr.__cache__={},a.PeMath=Gr,Gr.prototype.phi_to_eta=Gr.prototype.phi_to_eta=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),cs(m,k)},Gr.prototype.eta_to_phi=Gr.prototype.eta_to_phi=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),xp(m,k)},Gr.prototype.phi_to_phig=Gr.prototype.phi_to_phig=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Sp(m,k)},Gr.prototype.q=Gr.prototype.q=function(m,k,Z){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Z&&typeof Z=="object"&&(Z=Z.ptr),Ep(m,k,Z)},Gr.prototype.q90=Gr.prototype.q90=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),Cp(m,k)},kt.prototype=Object.create(mt.prototype),kt.prototype.constructor=kt,kt.prototype.__class__=kt,kt.__cache__={},a.PeNotationMgrs=kt,kt.prototype.get_PE_MGRS_STYLE_NEW=kt.prototype.get_PE_MGRS_STYLE_NEW=function(){var m=this.ptr;return Tp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_NEW",{get:kt.prototype.get_PE_MGRS_STYLE_NEW}),kt.prototype.get_PE_MGRS_STYLE_OLD=kt.prototype.get_PE_MGRS_STYLE_OLD=function(){var m=this.ptr;return Pp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_OLD",{get:kt.prototype.get_PE_MGRS_STYLE_OLD}),kt.prototype.get_PE_MGRS_STYLE_AUTO=kt.prototype.get_PE_MGRS_STYLE_AUTO=function(){var m=this.ptr;return Ha(m)},Object.defineProperty(kt.prototype,"PE_MGRS_STYLE_AUTO",{get:kt.prototype.get_PE_MGRS_STYLE_AUTO}),kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS=function(){var m=this.ptr;return Mp(m)},Object.defineProperty(kt.prototype,"PE_MGRS_180_ZONE_1_PLUS",{get:kt.prototype.get_PE_MGRS_180_ZONE_1_PLUS}),kt.prototype.get_PE_MGRS_ADD_SPACES=kt.prototype.get_PE_MGRS_ADD_SPACES=function(){var m=this.ptr;return Ys(m)},Object.defineProperty(kt.prototype,"PE_MGRS_ADD_SPACES",{get:kt.prototype.get_PE_MGRS_ADD_SPACES}),nr.prototype=Object.create(mt.prototype),nr.prototype.constructor=nr,nr.prototype.__class__=nr,nr.__cache__={},a.PeNotationUtm=nr,nr.prototype.get_PE_UTM_OPTS_NONE=nr.prototype.get_PE_UTM_OPTS_NONE=function(){var m=this.ptr;return Ap(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NONE",{get:nr.prototype.get_PE_UTM_OPTS_NONE}),nr.prototype.get_PE_UTM_OPTS_NS=nr.prototype.get_PE_UTM_OPTS_NS=function(){var m=this.ptr;return Za(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NS",{get:nr.prototype.get_PE_UTM_OPTS_NS}),nr.prototype.get_PE_UTM_OPTS_NS_STRICT=nr.prototype.get_PE_UTM_OPTS_NS_STRICT=function(){var m=this.ptr;return Ip(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_NS_STRICT",{get:nr.prototype.get_PE_UTM_OPTS_NS_STRICT}),nr.prototype.get_PE_UTM_OPTS_ADD_SPACES=nr.prototype.get_PE_UTM_OPTS_ADD_SPACES=function(){var m=this.ptr;return Lp(m)},Object.defineProperty(nr.prototype,"PE_UTM_OPTS_ADD_SPACES",{get:nr.prototype.get_PE_UTM_OPTS_ADD_SPACES}),wn.prototype=Object.create(rr.prototype),wn.prototype.constructor=wn,wn.prototype.__class__=wn,wn.__cache__={},a.PeParameter=wn,wn.prototype.getValue=wn.prototype.getValue=function(){var m=this.ptr;return ou(m)},wn.prototype.getCode=wn.prototype.getCode=function(){var m=this.ptr;return us(m)},wn.prototype.getName=wn.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(xi(k,m))},wn.prototype.getType=wn.prototype.getType=function(){var m=this.ptr;return su(m)},Ye.prototype=Object.create(mt.prototype),Ye.prototype.constructor=Ye,Ye.prototype.__class__=Ye,Ye.__cache__={},a.PePCSInfo=Ye,Ye.prototype.getCentralMeridian=Ye.prototype.getCentralMeridian=function(){var m=this.ptr;return Ya(m)},Ye.prototype.getDomainMinx=Ye.prototype.getDomainMinx=function(){var m=this.ptr;return kp(m)},Ye.prototype.getDomainMiny=Ye.prototype.getDomainMiny=function(){var m=this.ptr;return Np(m)},Ye.prototype.getDomainMaxx=Ye.prototype.getDomainMaxx=function(){var m=this.ptr;return Op(m)},Ye.prototype.getDomainMaxy=Ye.prototype.getDomainMaxy=function(){var m=this.ptr;return Rp(m)},Ye.prototype.getNorthPoleLocation=Ye.prototype.getNorthPoleLocation=function(){var m=this.ptr;return Dp(m)},Ye.prototype.getNorthPoleGeometry=Ye.prototype.getNorthPoleGeometry=function(){var m=this.ptr;return Fp(m)},Ye.prototype.getSouthPoleLocation=Ye.prototype.getSouthPoleLocation=function(){var m=this.ptr;return $p(m)},Ye.prototype.getSouthPoleGeometry=Ye.prototype.getSouthPoleGeometry=function(){var m=this.ptr;return Vp(m)},Ye.prototype.isDensificationNeeded=Ye.prototype.isDensificationNeeded=function(){var m=this.ptr;return!!Up(m)},Ye.prototype.isGcsHorizonMultiOverlap=Ye.prototype.isGcsHorizonMultiOverlap=function(){var m=this.ptr;return!!zp(m)},Ye.prototype.isPannableRectangle=Ye.prototype.isPannableRectangle=function(){var m=this.ptr;return!!f(m)},Ye.prototype.generate=Ye.prototype.generate=function(m,k){return m&&typeof m=="object"&&(m=m.ptr),k&&typeof k=="object"&&(k=k.ptr),hr(p(m,k),Ye)},Ye.prototype.get_PE_PCSINFO_OPTION_NONE=Ye.prototype.get_PE_PCSINFO_OPTION_NONE=function(){var m=this.ptr;return w(m)},Object.defineProperty(Ye.prototype,"PE_PCSINFO_OPTION_NONE",{get:Ye.prototype.get_PE_PCSINFO_OPTION_NONE}),Ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN=Ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN=function(){var m=this.ptr;return _(m)},Object.defineProperty(Ye.prototype,"PE_PCSINFO_OPTION_DOMAIN",{get:Ye.prototype.get_PE_PCSINFO_OPTION_DOMAIN}),Ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=Ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY=function(){var m=this.ptr;return C(m)},Object.defineProperty(Ye.prototype,"PE_POLE_OUTSIDE_BOUNDARY",{get:Ye.prototype.get_PE_POLE_OUTSIDE_BOUNDARY}),Ye.prototype.get_PE_POLE_POINT=Ye.prototype.get_PE_POLE_POINT=function(){var m=this.ptr;return T(m)},Object.defineProperty(Ye.prototype,"PE_POLE_POINT",{get:Ye.prototype.get_PE_POLE_POINT}),rn.prototype=Object.create(rr.prototype),rn.prototype.constructor=rn,rn.prototype.__class__=rn,rn.__cache__={},a.PePrimem=rn,rn.prototype.getLongitude=rn.prototype.getLongitude=function(){var m=this.ptr;return I(m)},rn.prototype.getCode=rn.prototype.getCode=function(){var m=this.ptr;return N(m)},rn.prototype.getName=rn.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(D(k,m))},rn.prototype.getType=rn.prototype.getType=function(){var m=this.ptr;return B(m)},bt.prototype=Object.create(Ur.prototype),bt.prototype.constructor=bt,bt.prototype.__class__=bt,bt.__cache__={},a.PeProjcs=bt,bt.prototype.Delete=bt.prototype.Delete=function(){var m=this.ptr;$(m)},bt.prototype.getGeogcs=bt.prototype.getGeogcs=function(){var m=this.ptr;return hr(Q(m),Ct)},bt.prototype.getProjection=bt.prototype.getProjection=function(){var m=this.ptr;return hr(ae(m),rr)},bt.prototype.getParameters=bt.prototype.getParameters=function(){var m=this.ptr;return ge(m)},bt.prototype.getUnit=bt.prototype.getUnit=function(){var m=this.ptr;return hr(he(m),zr)},bt.prototype.loadConstants=bt.prototype.loadConstants=function(){var m=this.ptr;return!!ve(m)},bt.prototype.horizonGcsGenerate=bt.prototype.horizonGcsGenerate=function(){var m=this.ptr;return hr(Oe(m),Sr)},bt.prototype.horizonPcsGenerate=bt.prototype.horizonPcsGenerate=function(){var m=this.ptr;return hr(Ie(m),Sr)},bt.prototype.isEqual=bt.prototype.isEqual=function(m){var k=this.ptr;return m&&typeof m=="object"&&(m=m.ptr),!!Ue(k,m)},bt.prototype.getCode=bt.prototype.getCode=function(){var m=this.ptr;return et(m)},bt.prototype.getName=bt.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(st(k,m))},bt.prototype.getType=bt.prototype.getType=function(){var m=this.ptr;return qe(m)},Lr.prototype=Object.create(rr.prototype),Lr.prototype.constructor=Lr,Lr.prototype.__class__=Lr,Lr.__cache__={},a.PeSpheroid=Lr,Lr.prototype.getAxis=Lr.prototype.getAxis=function(){var m=this.ptr;return rt(m)},Lr.prototype.getFlattening=Lr.prototype.getFlattening=function(){var m=this.ptr;return Ar(m)},Lr.prototype.getCode=Lr.prototype.getCode=function(){var m=this.ptr;return Lt(m)},Lr.prototype.getName=Lr.prototype.getName=function(m){var k=this.ptr;return Xe.prepare(),typeof m=="object"&&(m=oi(m)),Pr(Kr(k,m))},Lr.prototype.getType=Lr.prototype.getType=function(){var m=this.ptr;return Ln(m)},vo.prototype=Object.create(mt.prototype),vo.prototype.constructor=vo,vo.prototype.__class__=vo,vo.__cache__={},a.PeVersion=vo,vo.prototype.version_string=vo.prototype.version_string=function(){var m=this.ptr;return Pr(jn(m))},a.ensureCache=Xe,a.ensureString=qm,a.ensureInt8=oi,a.ensureInt16=e2,a.ensureInt32=t2,a.ensureFloat32=r2,a.ensureFloat64=n2,d},e.exports=r),EF.exports;var e,t,r}var SF,EF,OK,RK,TF=O(()=>{bF();EF={exports:{}};OK=vF(NK()),RK=Object.freeze(Object.defineProperty({__proto__:null,default:OK},Symbol.toStringTag,{value:"Module"}))});function PF(){return!!j}function DK(){return!!de("esri-wasm")}function MF(){return x3||(x3=Promise.resolve().then(()=>(TF(),CF)).then(e=>e.p).then(({default:e})=>e({locateFile:t=>am(`esri/geometry/support/${t}`)})).then(e=>{LF(e)}),x3)}function LF(e){function t(o,s,l){o[s]=l(o[s])}j=e,Qt.init(),b_.init(),__.init(),x_.init(),S_.init(),AF=class extends j.PeDouble{constructor(o=NaN){super(o)}destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}},IF=class extends j.PeGCSExtent{destroy(){j.destroy(this)}[Symbol.dispose](){this.destroy()}};let r=[j.PeAngunit,j.PeDatum,j.PeGeogcs,j.PeGeogtran,j.PeObject,j.PeParameter,j.PePrimem,j.PeProjcs,j.PeSpheroid,j.PeUnit];for(let o of r)t(o.prototype,"getName",s=>function(){return s.call(this,new Array(Qt.PE_NAME_MAX))});for(let o of[j.PeGeogtran,j.PeProjcs])t(o.prototype,"getParameters",s=>function(){let l=new Array(Qt.PE_PARM_MAX),a=s.call(this);for(let d=0;d<l.length;d++){let h=j.getValue(a,"*");l[d]=h?j.wrapPointer(h,j.PeParameter):null,a+=Int32Array.BYTES_PER_ELEMENT}return l});t(j.PeHorizon.prototype,"getCoord",o=>function(s=!1){let l=this.getSize();if(!l)return null;let a=[];return lc(a,l,o.call(this),s),a}),t(j.PeGTlistExtendedEntry.prototype,"getEntries",o=>{let s=j._pe_getPeGTlistExtendedGTsSize();return function(){let l=null,a=o.call(this);if(!j.compare(a,j.NULL)){l=[a];let d=this.getSteps();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)l.push(j.wrapPointer(h+s*g,j.PeGTlistExtendedGTs))}}return l}});let n=j._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 l=null,a=o.call(this);if(!j.compare(a,j.NULL)){l=[a];let d=a.getNump();if(d>1){let h=j.getPointer(a);for(let g=1;g<d;g++)l.push(j.wrapPointer(h+n*g,j.PeHorizon))}}return s.set(o,l),l};t(j.PeProjcs.prototype,"horizonGcsGenerate",i),t(j.PeProjcs.prototype,"horizonPcsGenerate",i),j.PeObject.prototype.toString=function(o=Qt.PE_STR_OPTS_NONE){j.ensureCache.prepare();let s=j.getPointer(this),l=j.ensureInt8(new Array(Qt.PE_BUFFER_MAX));return j.UTF8ToString(j._pe_object_to_string_ext(s,o,l))},j.PeGeogcs.prototype.destroy=function(){this.Delete(),Jo(this),this.ptr=0},j.PeGeogcs.prototype[Symbol.dispose]=function(){this.destroy()},j.PeProjcs.prototype.destroy=function(){this.Delete(),Jo(this),this.ptr=0},j.PeProjcs.prototype[Symbol.dispose]=function(){this.destroy()}}function Jo(e){if(!e)return;let t=j.getClass(e);if(!t)return;let r=j.getCache(t);if(!r)return;let n=j.getPointer(e);n&&delete r[n]}function y_(e,t){let r=[],n=new Array(t);for(let i=0;i<e;i++)r.push(j.ensureInt8(n));return r}function pd(e){return ArrayBuffer.isView(e)?e:Array.isArray(e[0])?e.flat():e}function lc(e,t,r,n=!1){if(n)for(let i=0;i<2*t;i++)e[i]=j.getValue(r+i*Float64Array.BYTES_PER_ELEMENT,"double");else{let i=e.length===0;for(let o=0;o<t;o++)i&&(e[o]=new Array(2)),e[o][0]=j.getValue(r,"double"),e[o][1]=j.getValue(r+Float64Array.BYTES_PER_ELEMENT,"double"),r+=2*Float64Array.BYTES_PER_ELEMENT}}var x3,j,S3,Qt,AF,v_,IF,b_,E3,C3,T3,P3,M3,__,A3,x_,S_,I3,jEe,kF=O(()=>{yv();tt();j=null;(function(e){function t(o,s,l){j.ensureCache.prepare();let a=pd(l),d=l===a,h=j.ensureFloat64(a),g=j._pe_geog_to_proj(j.getPointer(o),s,h);return g&&lc(l,s,h,d),g}function r(o,s,l,a){switch(a){case Qt.PE_TRANSFORM_P_TO_G:return n(o,s,l);case Qt.PE_TRANSFORM_G_TO_P:return t(o,s,l)}return 0}function n(o,s,l){return i(o,s,l,0)}function i(o,s,l,a){j.ensureCache.prepare();let d=pd(l),h=l===d,g=j.ensureFloat64(d),b=j._pe_proj_to_geog_center(j.getPointer(o),s,g,a);return b&&lc(l,s,g,h),b}e.geogToProj=t,e.projGeog=r,e.projToGeog=n,e.projToGeogCenter=i})(S3||(S3={})),function(e){function t(){e.PE_BUFFER_MAX=j.PeDefs.prototype.PE_BUFFER_MAX,e.PE_NAME_MAX=j.PeDefs.prototype.PE_NAME_MAX,e.PE_MGRS_MAX=j.PeDefs.prototype.PE_MGRS_MAX,e.PE_USNG_MAX=j.PeDefs.prototype.PE_USNG_MAX,e.PE_DD_MAX=j.PeDefs.prototype.PE_DD_MAX,e.PE_DDM_MAX=j.PeDefs.prototype.PE_DDM_MAX,e.PE_DMS_MAX=j.PeDefs.prototype.PE_DMS_MAX,e.PE_UTM_MAX=j.PeDefs.prototype.PE_UTM_MAX,e.PE_PARM_MAX=j.PeDefs.prototype.PE_PARM_MAX,e.PE_TYPE_NONE=j.PeDefs.prototype.PE_TYPE_NONE,e.PE_TYPE_GEOGCS=j.PeDefs.prototype.PE_TYPE_GEOGCS,e.PE_TYPE_PROJCS=j.PeDefs.prototype.PE_TYPE_PROJCS,e.PE_TYPE_GEOGTRAN=j.PeDefs.prototype.PE_TYPE_GEOGTRAN,e.PE_TYPE_COORDSYS=j.PeDefs.prototype.PE_TYPE_COORDSYS,e.PE_TYPE_UNIT=j.PeDefs.prototype.PE_TYPE_UNIT,e.PE_TYPE_LINUNIT=j.PeDefs.prototype.PE_TYPE_LINUNIT,e.PE_STR_OPTS_NONE=j.PeDefs.prototype.PE_STR_OPTS_NONE,e.PE_STR_AUTH_NONE=j.PeDefs.prototype.PE_STR_AUTH_NONE,e.PE_STR_AUTH_TOP=j.PeDefs.prototype.PE_STR_AUTH_TOP,e.PE_STR_NAME_CANON=j.PeDefs.prototype.PE_STR_NAME_CANON,e.PE_STR_FMT_WKT=j.PeDefs.prototype.PE_STR_FMT_WKT,e.PE_STR_FMT_WKT2=j.PeDefs.prototype.PE_STR_FMT_WKT2,e.PE_PARM_X0=j.PeDefs.prototype.PE_PARM_X0,e.PE_PARM_ND=j.PeDefs.prototype.PE_PARM_ND,e.PE_TRANSFORM_1_TO_2=j.PeDefs.prototype.PE_TRANSFORM_1_TO_2,e.PE_TRANSFORM_2_TO_1=j.PeDefs.prototype.PE_TRANSFORM_2_TO_1,e.PE_TRANSFORM_P_TO_G=j.PeDefs.prototype.PE_TRANSFORM_P_TO_G,e.PE_TRANSFORM_G_TO_P=j.PeDefs.prototype.PE_TRANSFORM_G_TO_P,e.PE_HORIZON_RECT=j.PeDefs.prototype.PE_HORIZON_RECT,e.PE_HORIZON_POLY=j.PeDefs.prototype.PE_HORIZON_POLY,e.PE_HORIZON_LINE=j.PeDefs.prototype.PE_HORIZON_LINE,e.PE_HORIZON_DELTA=j.PeDefs.prototype.PE_HORIZON_DELTA}e.init=t}(Qt||(Qt={}));AF=null;(function(e){let t={},r={},n=S=>{let P=S.getType();switch(P){case Qt.PE_TYPE_GEOGCS:S=j.castObject(S,j.PeGeogcs);break;case Qt.PE_TYPE_PROJCS:S=j.castObject(S,j.PeProjcs);break;case Qt.PE_TYPE_GEOGTRAN:S=j.castObject(S,j.PeGeogtran);break;default:P&Qt.PE_TYPE_UNIT&&(S=j.castObject(S,j.PeUnit))}return S};function i(){j.PeFactory.prototype.initialize(null)}function o(S){return s(Qt.PE_TYPE_COORDSYS,S)}function s(S,P){let A=null,F=t[S];if(F||(F={},t[S]=F),F.hasOwnProperty(String(P))&&(A=F[P],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.factoryByType(S,P);j.compare(W,j.NULL)||(A=n(W),F[P]=A)}return A}function l(S,P){let A=null,F=r[S];if(F||(F={},r[S]=F),F.hasOwnProperty(P)&&(A=F[P],j.compare(A,j.NULL)&&(A=null)),!A){let W=j.PeFactory.prototype.fromString(S,P);j.compare(W,j.NULL)||(A=n(W),F[P]=A)}return A}function a(S){return s(Qt.PE_TYPE_GEOGCS,S)}function d(S){return s(Qt.PE_TYPE_GEOGTRAN,S)}function h(S){return j.PeFactory.prototype.getCode(S)}function g(S){return s(Qt.PE_TYPE_PROJCS,S)}function b(S){return s(Qt.PE_TYPE_UNIT,S)}e.initialize=i,e.coordsys=o,e.factoryByType=s,e.fromString=l,e.geogcs=a,e.geogtran=d,e.getCode=h,e.projcs=g,e.unit=b})(v_||(v_={}));IF=null;(function(e){let t;function r(){e.PE_GTLIST_OPTS_COMMON=j.PeGTlistExtended.prototype.PE_GTLIST_OPTS_COMMON,t=j._pe_getPeGTlistExtendedEntrySize()}function n(i,o,s,l,a,d){let h=null,g=new j.PeInteger(d);try{let b=j.PeGTlistExtended.prototype.getGTlist(i,o,s,l,a,g);if((d=g.val)&&(h=[b],d>1)){let S=j.getPointer(b);for(let P=1;P<d;P++)h.push(j.wrapPointer(S+t*P,j.PeGTlistExtendedEntry))}}finally{j.destroy(g)}return h}e.init=r,e.getGTlist=n})(b_||(b_={})),function(e){function t(r){if(r?.length){for(let n of r)Jo(n),n.getEntries().forEach(i=>{Jo(i);let o=i.getGeogtran();Jo(o),o.getParameters().forEach(Jo),[o.getGeogcs1(),o.getGeogcs2()].forEach(s=>{Jo(s);let l=s.getDatum();Jo(l),Jo(l.getSpheroid()),Jo(s.getPrimem()),Jo(s.getUnit())})});j.PeGTlistExtendedEntry.prototype.Delete(r[0])}}e.destroy=t}(E3||(E3={})),function(e){function t(r,n,i,o,s){j.ensureCache.prepare();let l=pd(i),a=i===l,d=j.ensureFloat64(l),h=0;o&&(h=j.ensureFloat64(o));let g=j._pe_geog_to_geog(j.getPointer(r),n,d,h,s);return g&&lc(i,n,d,a),g}e.geogToGeog=t}(C3||(C3={})),function(e){function t(o,s,l,a,d,h,g,b){j.PeLineType.prototype.geodesic_coordinate(o,s,l,a,d,h,g,b)}function r(o,s,l,a,d,h,g,b,S){j.PeLineType.prototype.geodetic_coordinate(o,s,l,a,d,h,g,b,S)}function n(o,s,l,a,d,h,g,b,S,P){j.PeLineType.prototype.geodetic_distance(o,s,l,a,d,h,g,b,S,P)}function i(o,s,l,a,d,h,g,b,S){j.PeLineType.prototype.great_elliptic_distance(o,s,l,a,d,h,g,b,S)}e.geodesicCoordinate=t,e.geodeticCoordinate=r,e.geodeticDistance=n,e.greatEllipticDistance=i}(T3||(T3={})),function(e){function t(s,l){return j.PeMath.prototype.phi_to_eta(s,l)}function r(s,l){return j.PeMath.prototype.eta_to_phi(s,l)}function n(s,l){return j.PeMath.prototype.phi_to_phig(s,l)}function i(s,l,a){return j.PeMath.prototype.q(s,l,a)}function o(s,l){return j.PeMath.prototype.q90(s,l)}e.phiToEta=t,e.etaToPhi=r,e.phiToPhig=n,e.q=i,e.q90=o}(P3||(P3={})),function(e){let t=(d,h,g,b,S,P)=>{let A,F;switch(j.ensureCache.prepare(),d){case"dd":A=j._pe_geog_to_dd,F=Qt.PE_DD_MAX;break;case"ddm":A=j._pe_geog_to_ddm,F=Qt.PE_DDM_MAX;break;case"dms":A=j._pe_geog_to_dms,F=Qt.PE_DMS_MAX}let W=0;h&&(W=j.getPointer(h));let z=pd(b),q=j.ensureFloat64(z),G=y_(g,F),Y=A(W,g,q,S,j.ensureInt32(G));if(Y)for(let ie=0;ie<g;ie++)P[ie]=j.UTF8ToString(G[ie]);return Y},r=(d,h,g,b,S)=>{let P;switch(j.ensureCache.prepare(),d){case"dd":P=j._pe_dd_to_geog;break;case"ddm":P=j._pe_ddm_to_geog;break;case"dms":P=j._pe_dms_to_geog}let A=0;h&&(A=j.getPointer(h));let F=b.map(G=>j.ensureString(G)),W=j.ensureInt32(F),z=j.ensureFloat64(new Array(2*g)),q=P(A,g,W,z);return q&&lc(S,g,z),q};function n(d,h,g,b,S){return t("dms",d,h,g,b,S)}function i(d,h,g,b){return r("dms",d,h,g,b)}function o(d,h,g,b,S){return t("ddm",d,h,g,b,S)}function s(d,h,g,b){return r("ddm",d,h,g,b)}function l(d,h,g,b,S){return t("dd",d,h,g,b,S)}function a(d,h,g,b){return r("dd",d,h,g,b)}e.geogToDms=n,e.dmsToGeog=i,e.geogToDdm=o,e.ddmToGeog=s,e.geogToDd=l,e.ddToGeog=a}(M3||(M3={})),function(e){function t(){e.PE_MGRS_STYLE_NEW=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_NEW,e.PE_MGRS_STYLE_OLD=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_OLD,e.PE_MGRS_STYLE_AUTO=j.PeNotationMgrs.prototype.PE_MGRS_STYLE_AUTO,e.PE_MGRS_180_ZONE_1_PLUS=j.PeNotationMgrs.prototype.PE_MGRS_180_ZONE_1_PLUS,e.PE_MGRS_ADD_SPACES=j.PeNotationMgrs.prototype.PE_MGRS_ADD_SPACES}function r(i,o,s,l,a,d,h){j.ensureCache.prepare();let g=0;i&&(g=j.getPointer(i));let b=pd(s),S=j.ensureFloat64(b),P=y_(o,Qt.PE_MGRS_MAX),A=j.ensureInt32(P),F=j._pe_geog_to_mgrs_extended(g,o,S,l,a,d,A);if(F)for(let W=0;W<o;W++)h[W]=j.UTF8ToString(P[W]);return F}function n(i,o,s,l,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),b=j.ensureFloat64(new Array(2*o)),S=j._pe_mgrs_to_geog_extended(d,o,g,l,b);return S&&lc(a,o,b),S}e.init=t,e.geogToMgrsExtended=r,e.mgrsToGeogExtended=n}(__||(__={})),function(e){function t(n,i,o,s,l,a,d){j.ensureCache.prepare();let h=0;n&&(h=j.getPointer(n));let g=pd(o),b=j.ensureFloat64(g),S=y_(i,Qt.PE_MGRS_MAX),P=j.ensureInt32(S),A=j._pe_geog_to_usng(h,i,b,s,l,a,P);if(A)for(let F=0;F<i;F++)d[F]=j.UTF8ToString(S[F]);return A}function r(n,i,o,s){j.ensureCache.prepare();let l=0;n&&(l=j.getPointer(n));let a=o.map(b=>j.ensureString(b)),d=j.ensureInt32(a),h=j.ensureFloat64(new Array(2*i)),g=j._pe_usng_to_geog(l,i,d,h);return g&&lc(s,i,h),g}e.geogToUsng=t,e.usngToGeog=r}(A3||(A3={})),function(e){function t(){e.PE_UTM_OPTS_NONE=j.PeNotationUtm.prototype.PE_UTM_OPTS_NONE,e.PE_UTM_OPTS_ADD_SPACES=j.PeNotationUtm.prototype.PE_UTM_OPTS_ADD_SPACES,e.PE_UTM_OPTS_NS=j.PeNotationUtm.prototype.PE_UTM_OPTS_NS}function r(i,o,s,l,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=pd(s),g=j.ensureFloat64(h),b=y_(o,Qt.PE_UTM_MAX),S=j.ensureInt32(b),P=j._pe_geog_to_utm(d,o,g,l,S);if(P)for(let A=0;A<o;A++)a[A]=j.UTF8ToString(b[A]);return P}function n(i,o,s,l,a){j.ensureCache.prepare();let d=0;i&&(d=j.getPointer(i));let h=s.map(P=>j.ensureString(P)),g=j.ensureInt32(h),b=j.ensureFloat64(new Array(2*o)),S=j._pe_utm_to_geog(d,o,g,l,b);return S&&lc(a,o,b),S}e.init=t,e.geogToUtm=r,e.utmToGeog=n}(x_||(x_={})),function(e){let t=new Map;function r(){e.PE_PCSINFO_OPTION_NONE=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_NONE,e.PE_PCSINFO_OPTION_DOMAIN=j.PePCSInfo.prototype.PE_PCSINFO_OPTION_DOMAIN,e.PE_POLE_OUTSIDE_BOUNDARY=j.PePCSInfo.prototype.PE_POLE_OUTSIDE_BOUNDARY,e.PE_POLE_POINT=j.PePCSInfo.prototype.PE_POLE_POINT}function n(i,o=e.PE_PCSINFO_OPTION_DOMAIN){let s=null,l=null;return t.has(i)&&(l=t.get(i),l[o]&&(s=l[o])),s||(s=j.PePCSInfo.prototype.generate(i,o),l||(l=[],t.set(i,l)),l[o]=s),s}e.init=r,e.generate=n}(S_||(S_={})),function(e){function t(){return j.PeVersion.prototype.version_string()}e.versionString=t}(I3||(I3={}));jEe=Object.freeze(Object.defineProperty({__proto__:null,get PeCSTransformations(){return S3},get PeDefs(){return Qt},get PeDouble(){return AF},get PeFactory(){return v_},get PeGCSExtent(){return IF},get PeGTTransformations(){return C3},get PeGTlistExtended(){return b_},get PeGTlistExtendedEntry(){return E3},get PeLineType(){return T3},get PeMath(){return P3},get PeNotationDms(){return M3},get PeNotationMgrs(){return __},get PeNotationUsng(){return A3},get PeNotationUtm(){return x_},get PePCSInfo(){return S_},get PeVersion(){return I3},_init:LF,get _pe(){return j},isLoaded:PF,isSupported:DK,load:MF},Symbol.toStringTag,{value:"Module"}))});var Nm,NF=O(()=>{(function(e){e[e.CGCS2000=4490]="CGCS2000",e[e.GCSMARS2000=104971]="GCSMARS2000",e[e.GCSMARS2000_SPHERE=104905]="GCSMARS2000_SPHERE",e[e.GCSMOON2000=104903]="GCSMOON2000"})(Nm||(Nm={}))});var c,M,L3=O(()=>{M={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(c=2e3;c<=2045;c++)M[c]=0;for(c=2056;c<=2065;c++)M[c]=0;for(c=2067;c<=2135;c++)M[c]=0;for(c=2137;c<=2154;c++)M[c]=0;for(c=2161;c<=2170;c++)M[c]=0;for(c=2172;c<=2193;c++)M[c]=0;for(c=2195;c<=2198;c++)M[c]=0;for(c=2200;c<=2203;c++)M[c]=0;for(c=2205;c<=2217;c++)M[c]=0;for(c=2222;c<=2224;c++)M[c]=1;for(c=2225;c<=2250;c++)M[c]=2;for(c=2251;c<=2253;c++)M[c]=1;for(c=2257;c<=2264;c++)M[c]=2;for(c=2274;c<=2279;c++)M[c]=2;for(c=2280;c<=2282;c++)M[c]=1;for(c=2283;c<=2289;c++)M[c]=2;for(c=2290;c<=2292;c++)M[c]=0;for(c=2308;c<=2313;c++)M[c]=0;for(c=2315;c<=2491;c++)M[c]=0;for(c=2494;c<=2866;c++)M[c]=0;for(c=2867;c<=2869;c++)M[c]=1;for(c=2870;c<=2888;c++)M[c]=2;for(c=2891;c<=2895;c++)M[c]=2;for(c=2896;c<=2898;c++)M[c]=1;for(c=2902;c<=2908;c++)M[c]=2;for(c=2915;c<=2920;c++)M[c]=2;for(c=2921;c<=2923;c++)M[c]=1;for(c=2924;c<=2930;c++)M[c]=2;for(c=2931;c<=2962;c++)M[c]=0;for(c=2964;c<=2968;c++)M[c]=2;for(c=2969;c<=2973;c++)M[c]=0;for(c=2975;c<=2991;c++)M[c]=0;for(c=2995;c<=3051;c++)M[c]=0;for(c=3054;c<=3079;c++)M[c]=0;for(c=3081;c<=3088;c++)M[c]=0;for(c=3092;c<=3101;c++)M[c]=0;for(c=3106;c<=3138;c++)M[c]=0;for(c=3146;c<=3151;c++)M[c]=0;for(c=3153;c<=3166;c++)M[c]=0;for(c=3168;c<=3172;c++)M[c]=0;for(c=3174;c<=3203;c++)M[c]=0;for(c=3294;c<=3358;c++)M[c]=0;for(c=3367;c<=3403;c++)M[c]=0;for(c=3408;c<=3416;c++)M[c]=0;for(c=3417;c<=3438;c++)M[c]=2;for(c=3441;c<=3446;c++)M[c]=2;for(c=3447;c<=3450;c++)M[c]=0;for(c=3451;c<=3459;c++)M[c]=2;for(c=3460;c<=3478;c++)M[c]=0;for(c=3554;c<=3559;c++)M[c]=0;for(c=3560;c<=3570;c++)M[c]=2;for(c=3571;c<=3581;c++)M[c]=0;for(c=3594;c<=3597;c++)M[c]=0;for(c=3601;c<=3604;c++)M[c]=0;for(c=3637;c<=3639;c++)M[c]=0;for(c=3665;c<=3667;c++)M[c]=0;for(c=3693;c<=3695;c++)M[c]=0;for(c=3701;c<=3727;c++)M[c]=0;for(c=3728;c<=3739;c++)M[c]=2;for(c=3740;c<=3751;c++)M[c]=0;for(c=3753;c<=3760;c++)M[c]=2;for(c=3761;c<=3773;c++)M[c]=0;for(c=3775;c<=3777;c++)M[c]=0;for(c=3779;c<=3781;c++)M[c]=0;for(c=3783;c<=3785;c++)M[c]=0;for(c=3788;c<=3791;c++)M[c]=0;for(c=3797;c<=3802;c++)M[c]=0;for(c=3814;c<=3816;c++)M[c]=0;for(c=3825;c<=3829;c++)M[c]=0;for(c=3832;c<=3841;c++)M[c]=0;for(c=3844;c<=3852;c++)M[c]=0;for(c=3873;c<=3885;c++)M[c]=0;for(c=3890;c<=3893;c++)M[c]=0;for(c=3907;c<=3912;c++)M[c]=0;for(c=3942;c<=3950;c++)M[c]=0;for(c=3968;c<=3970;c++)M[c]=0;for(c=3973;c<=3976;c++)M[c]=0;for(c=3986;c<=3989;c++)M[c]=0;for(c=3994;c<=3997;c++)M[c]=0;for(c=4048;c<=4051;c++)M[c]=0;for(c=4056;c<=4063;c++)M[c]=0;for(c=4093;c<=4096;c++)M[c]=0;for(c=4390;c<=4398;c++)M[c]=0;for(c=4399;c<=4413;c++)M[c]=2;for(c=4418;c<=4433;c++)M[c]=2;for(c=4455;c<=4457;c++)M[c]=2;for(c=4484;c<=4489;c++)M[c]=0;for(c=4491;c<=4554;c++)M[c]=0;for(c=4568;c<=4589;c++)M[c]=0;for(c=4652;c<=4656;c++)M[c]=0;for(c=4766;c<=4800;c++)M[c]=0;for(c=5014;c<=5016;c++)M[c]=0;for(c=5069;c<=5072;c++)M[c]=0;for(c=5105;c<=5130;c++)M[c]=0;for(c=5167;c<=5188;c++)M[c]=0;for(c=5253;c<=5259;c++)M[c]=0;for(c=5269;c<=5275;c++)M[c]=0;for(c=5292;c<=5311;c++)M[c]=0;for(c=5329;c<=5331;c++)M[c]=0;for(c=5343;c<=5349;c++)M[c]=0;for(c=5355;c<=5357;c++)M[c]=0;for(c=5387;c<=5389;c++)M[c]=0;for(c=5459;c<=5463;c++)M[c]=0;for(c=5479;c<=5482;c++)M[c]=0;for(c=5518;c<=5520;c++)M[c]=0;for(c=5530;c<=5539;c++)M[c]=0;for(c=5550;c<=5552;c++)M[c]=0;for(c=5562;c<=5583;c++)M[c]=0;for(c=5623;c<=5625;c++)M[c]=2;for(c=5631;c<=5639;c++)M[c]=0;for(c=5649;c<=5653;c++)M[c]=0;for(c=5663;c<=5680;c++)M[c]=0;for(c=5682;c<=5685;c++)M[c]=0;for(c=5875;c<=5877;c++)M[c]=0;for(c=5896;c<=5899;c++)M[c]=0;for(c=5921;c<=5940;c++)M[c]=0;for(c=6050;c<=6125;c++)M[c]=0;for(c=6244;c<=6275;c++)M[c]=0;for(c=6328;c<=6348;c++)M[c]=0;for(c=6350;c<=6356;c++)M[c]=0;for(c=6366;c<=6372;c++)M[c]=0;for(c=6381;c<=6387;c++)M[c]=0;for(c=6393;c<=6404;c++)M[c]=0;for(c=6480;c<=6483;c++)M[c]=0;for(c=6511;c<=6514;c++)M[c]=0;for(c=6579;c<=6581;c++)M[c]=0;for(c=6619;c<=6624;c++)M[c]=0;for(c=6625;c<=6627;c++)M[c]=2;for(c=6628;c<=6632;c++)M[c]=0;for(c=6634;c<=6637;c++)M[c]=0;for(c=6669;c<=6692;c++)M[c]=0;for(c=6707;c<=6709;c++)M[c]=0;for(c=6720;c<=6723;c++)M[c]=0;for(c=6732;c<=6738;c++)M[c]=0;for(c=6931;c<=6933;c++)M[c]=0;for(c=6956;c<=6959;c++)M[c]=0;for(c=7005;c<=7007;c++)M[c]=0;for(c=7057;c<=7070;c++)M[c]=2;for(c=7074;c<=7082;c++)M[c]=0;for(c=7109;c<=7118;c++)M[c]=0;for(c=7119;c<=7127;c++)M[c]=1;for(c=7374;c<=7376;c++)M[c]=0;for(c=7528;c<=7586;c++)M[c]=0;for(c=7587;c<=7645;c++)M[c]=2;for(c=7692;c<=7696;c++)M[c]=0;for(c=7755;c<=7787;c++)M[c]=0;for(c=7791;c<=7795;c++)M[c]=0;for(c=7799;c<=7801;c++)M[c]=0;for(c=7803;c<=7805;c++)M[c]=0;for(c=7825;c<=7831;c++)M[c]=0;for(c=7845;c<=7859;c++)M[c]=0;for(c=8013;c<=8032;c++)M[c]=0;for(c=8065;c<=8068;c++)M[c]=1;for(c=8518;c<=8529;c++)M[c]=2;for(c=8533;c<=8536;c++)M[c]=2;for(c=8538;c<=8540;c++)M[c]=2;for(c=8677;c<=8679;c++)M[c]=0;for(c=8836;c<=8840;c++)M[c]=0;for(c=8857;c<=8859;c++)M[c]=0;for(c=8908;c<=8910;c++)M[c]=0;for(c=9154;c<=9159;c++)M[c]=0;for(c=9205;c<=9218;c++)M[c]=0;for(c=9271;c<=9273;c++)M[c]=0;for(c=9295;c<=9297;c++)M[c]=0;for(c=9356;c<=9360;c++)M[c]=0;for(c=9404;c<=9407;c++)M[c]=0;for(c=9476;c<=9482;c++)M[c]=0;for(c=9487;c<=9494;c++)M[c]=0;for(c=9697;c<=9699;c++)M[c]=0;for(c=9821;c<=9865;c++)M[c]=0;for(c=10285;c<=10291;c++)M[c]=0;for(c=10314;c<=10317;c++)M[c]=0;for(c=10448;c<=10465;c++)M[c]=0;for(c=10731;c<=10733;c++)M[c]=0;for(c=11114;c<=11118;c++)M[c]=0;for(c=20004;c<=20032;c++)M[c]=0;for(c=20047;c<=20049;c++)M[c]=0;for(c=20062;c<=20092;c++)M[c]=0;for(c=20135;c<=20138;c++)M[c]=0;for(c=20248;c<=20258;c++)M[c]=0;for(c=20348;c<=20358;c++)M[c]=0;for(c=20436;c<=20440;c++)M[c]=0;for(c=20822;c<=20824;c++)M[c]=0;for(c=20904;c<=20932;c++)M[c]=0;for(c=20934;c<=20936;c++)M[c]=0;for(c=21004;c<=21032;c++)M[c]=0;for(c=21035;c<=21037;c++)M[c]=0;for(c=21095;c<=21097;c++)M[c]=0;for(c=21148;c<=21150;c++)M[c]=0;for(c=21207;c<=21264;c++)M[c]=0;for(c=21307;c<=21364;c++)M[c]=0;for(c=21413;c<=21423;c++)M[c]=0;for(c=21453;c<=21463;c++)M[c]=0;for(c=21473;c<=21483;c++)M[c]=0;for(c=21780;c<=21782;c++)M[c]=0;for(c=21891;c<=21894;c++)M[c]=0;for(c=21896;c<=21899;c++)M[c]=0;for(c=22171;c<=22177;c++)M[c]=0;for(c=22181;c<=22187;c++)M[c]=0;for(c=22191;c<=22197;c++)M[c]=0;for(c=22207;c<=22222;c++)M[c]=0;for(c=22229;c<=22232;c++)M[c]=0;for(c=22234;c<=22236;c++)M[c]=0;for(c=22243;c<=22250;c++)M[c]=0;for(c=22262;c<=22265;c++)M[c]=0;for(c=22307;c<=22322;c++)M[c]=0;for(c=22348;c<=22357;c++)M[c]=0;for(c=22407;c<=22422;c++)M[c]=0;for(c=22462;c<=22465;c++)M[c]=0;for(c=22521;c<=22525;c++)M[c]=0;for(c=22607;c<=22622;c++)M[c]=0;for(c=22641;c<=22646;c++)M[c]=0;for(c=22648;c<=22657;c++)M[c]=0;for(c=22707;c<=22722;c++)M[c]=0;for(c=22762;c<=22765;c++)M[c]=0;for(c=22807;c<=22822;c++)M[c]=0;for(c=22991;c<=22994;c++)M[c]=0;for(c=23028;c<=23038;c++)M[c]=0;for(c=23301;c<=23333;c++)M[c]=2;for(c=23830;c<=23853;c++)M[c]=0;for(c=23866;c<=23872;c++)M[c]=0;for(c=23877;c<=23884;c++)M[c]=0;for(c=23886;c<=23894;c++)M[c]=0;for(c=23946;c<=23948;c++)M[c]=0;for(c=24311;c<=24313;c++)M[c]=0;for(c=24342;c<=24347;c++)M[c]=0;for(c=24370;c<=24374;c++)M[c]=10;for(c=24375;c<=24381;c++)M[c]=0;for(c=24718;c<=24721;c++)M[c]=0;for(c=24817;c<=24821;c++)M[c]=0;for(c=24877;c<=24882;c++)M[c]=0;for(c=24891;c<=24893;c++)M[c]=0;for(c=25391;c<=25395;c++)M[c]=0;for(c=25828;c<=25838;c++)M[c]=0;for(c=26191;c<=26195;c++)M[c]=0;for(c=26391;c<=26393;c++)M[c]=0;for(c=26701;c<=26722;c++)M[c]=0;for(c=26729;c<=26799;c++)M[c]=2;for(c=26801;c<=26803;c++)M[c]=2;for(c=26811;c<=26813;c++)M[c]=2;for(c=26847;c<=26870;c++)M[c]=2;for(c=26891;c<=26899;c++)M[c]=0;for(c=26901;c<=26923;c++)M[c]=0;for(c=26929;c<=26946;c++)M[c]=0;for(c=26948;c<=26998;c++)M[c]=0;for(c=27037;c<=27040;c++)M[c]=0;for(c=27205;c<=27232;c++)M[c]=0;for(c=27258;c<=27260;c++)M[c]=0;for(c=27391;c<=27398;c++)M[c]=0;for(c=27561;c<=27564;c++)M[c]=0;for(c=27571;c<=27574;c++)M[c]=0;for(c=27581;c<=27584;c++)M[c]=0;for(c=27591;c<=27594;c++)M[c]=0;for(c=27700;c<=27707;c++)M[c]=0;for(c=28191;c<=28193;c++)M[c]=0;for(c=28348;c<=28358;c++)M[c]=0;for(c=28402;c<=28432;c++)M[c]=0;for(c=28462;c<=28492;c++)M[c]=0;for(c=29118;c<=29122;c++)M[c]=0;for(c=29168;c<=29172;c++)M[c]=0;for(c=29177;c<=29185;c++)M[c]=0;for(c=29187;c<=29195;c++)M[c]=0;for(c=29900;c<=29903;c++)M[c]=0;for(c=30161;c<=30179;c++)M[c]=0;for(c=30491;c<=30494;c++)M[c]=0;for(c=30729;c<=30732;c++)M[c]=0;for(c=31251;c<=31259;c++)M[c]=0;for(c=31265;c<=31268;c++)M[c]=0;for(c=31275;c<=31279;c++)M[c]=0;for(c=31281;c<=31297;c++)M[c]=0;for(c=31461;c<=31469;c++)M[c]=0;for(c=31491;c<=31495;c++)M[c]=0;for(c=31917;c<=31922;c++)M[c]=0;for(c=31965;c<=32e3;c++)M[c]=0;for(c=32001;c<=32003;c++)M[c]=2;for(c=32005;c<=32031;c++)M[c]=2;for(c=32033;c<=32060;c++)M[c]=2;for(c=32064;c<=32067;c++)M[c]=2;for(c=32074;c<=32077;c++)M[c]=2;for(c=32081;c<=32086;c++)M[c]=0;for(c=32107;c<=32130;c++)M[c]=0;for(c=32133;c<=32159;c++)M[c]=0;for(c=32164;c<=32167;c++)M[c]=2;for(c=32180;c<=32199;c++)M[c]=0;for(c=32201;c<=32260;c++)M[c]=0;for(c=32301;c<=32360;c++)M[c]=0;for(c=32401;c<=32460;c++)M[c]=0;for(c=32501;c<=32560;c++)M[c]=0;for(c=32601;c<=32662;c++)M[c]=0;for(c=32664;c<=32667;c++)M[c]=2;for(c=32701;c<=32761;c++)M[c]=0;for(c=53001;c<=53004;c++)M[c]=0;for(c=53008;c<=53019;c++)M[c]=0;for(c=53021;c<=53032;c++)M[c]=0;for(c=53034;c<=53037;c++)M[c]=0;for(c=53042;c<=53046;c++)M[c]=0;for(c=53074;c<=53080;c++)M[c]=0;for(c=54001;c<=54004;c++)M[c]=0;for(c=54008;c<=54019;c++)M[c]=0;for(c=54021;c<=54032;c++)M[c]=0;for(c=54034;c<=54037;c++)M[c]=0;for(c=54042;c<=54046;c++)M[c]=0;for(c=54048;c<=54053;c++)M[c]=0;for(c=54074;c<=54080;c++)M[c]=0;for(c=54098;c<=54101;c++)M[c]=0;for(c=102001;c<=102040;c++)M[c]=0;for(c=102042;c<=102063;c++)M[c]=0;for(c=102065;c<=102067;c++)M[c]=0;for(c=102070;c<=102117;c++)M[c]=0;for(c=102122;c<=102216;c++)M[c]=0;for(c=102221;c<=102377;c++)M[c]=0;for(c=102382;c<=102388;c++)M[c]=0;for(c=102389;c<=102398;c++)M[c]=2;for(c=102399;c<=102444;c++)M[c]=0;for(c=102445;c<=102447;c++)M[c]=2;for(c=102448;c<=102458;c++)M[c]=0;for(c=102459;c<=102468;c++)M[c]=2;for(c=102469;c<=102499;c++)M[c]=0;for(c=102500;c<=102519;c++)M[c]=1;for(c=102520;c<=102524;c++)M[c]=0;for(c=102525;c<=102529;c++)M[c]=2;for(c=102530;c<=102588;c++)M[c]=0;for(c=102590;c<=102598;c++)M[c]=0;for(c=102601;c<=102603;c++)M[c]=0;for(c=102605;c<=102628;c++)M[c]=0;for(c=102629;c<=102646;c++)M[c]=2;for(c=102648;c<=102700;c++)M[c]=2;for(c=102701;c<=102703;c++)M[c]=0;for(c=102707;c<=102730;c++)M[c]=2;for(c=102733;c<=102758;c++)M[c]=2;for(c=102767;c<=102900;c++)M[c]=0;for(c=102901;c<=102933;c++)M[c]=2;for(c=102934;c<=102950;c++)M[c]=13;for(c=102951;c<=102963;c++)M[c]=0;for(c=102965;c<=102969;c++)M[c]=0;for(c=102971;c<=102973;c++)M[c]=0;for(c=102975;c<=102989;c++)M[c]=0;for(c=102990;c<=102992;c++)M[c]=1;for(c=102997;c<=103002;c++)M[c]=0;for(c=103003;c<=103008;c++)M[c]=2;for(c=103009;c<=103011;c++)M[c]=0;for(c=103012;c<=103014;c++)M[c]=2;for(c=103019;c<=103021;c++)M[c]=0;for(c=103022;c<=103024;c++)M[c]=2;for(c=103029;c<=103031;c++)M[c]=0;for(c=103032;c<=103034;c++)M[c]=2;for(c=103065;c<=103068;c++)M[c]=0;for(c=103074;c<=103076;c++)M[c]=0;for(c=103077;c<=103079;c++)M[c]=1;for(c=103080;c<=103082;c++)M[c]=0;for(c=103083;c<=103085;c++)M[c]=2;for(c=103090;c<=103093;c++)M[c]=0;for(c=103097;c<=103099;c++)M[c]=0;for(c=103100;c<=103102;c++)M[c]=2;for(c=103107;c<=103109;c++)M[c]=0;for(c=103110;c<=103112;c++)M[c]=2;for(c=103113;c<=103116;c++)M[c]=0;for(c=103117;c<=103120;c++)M[c]=2;for(c=103153;c<=103157;c++)M[c]=0;for(c=103158;c<=103162;c++)M[c]=2;for(c=103163;c<=103165;c++)M[c]=0;for(c=103166;c<=103168;c++)M[c]=1;for(c=103169;c<=103171;c++)M[c]=2;for(c=103186;c<=103188;c++)M[c]=0;for(c=103189;c<=103191;c++)M[c]=2;for(c=103192;c<=103195;c++)M[c]=0;for(c=103196;c<=103199;c++)M[c]=2;for(c=103200;c<=103224;c++)M[c]=0;for(c=103225;c<=103227;c++)M[c]=1;for(c=103232;c<=103237;c++)M[c]=0;for(c=103238;c<=103243;c++)M[c]=2;for(c=103244;c<=103246;c++)M[c]=0;for(c=103247;c<=103249;c++)M[c]=2;for(c=103254;c<=103256;c++)M[c]=0;for(c=103257;c<=103259;c++)M[c]=2;for(c=103264;c<=103266;c++)M[c]=0;for(c=103267;c<=103269;c++)M[c]=2;for(c=103300;c<=103375;c++)M[c]=0;for(c=103381;c<=103383;c++)M[c]=0;for(c=103384;c<=103386;c++)M[c]=1;for(c=103387;c<=103389;c++)M[c]=0;for(c=103390;c<=103392;c++)M[c]=2;for(c=103397;c<=103399;c++)M[c]=0;for(c=103400;c<=103471;c++)M[c]=2;for(c=103476;c<=103478;c++)M[c]=0;for(c=103479;c<=103481;c++)M[c]=2;for(c=103486;c<=103488;c++)M[c]=0;for(c=103489;c<=103491;c++)M[c]=2;for(c=103492;c<=103495;c++)M[c]=0;for(c=103496;c<=103499;c++)M[c]=2;for(c=103528;c<=103543;c++)M[c]=0;for(c=103544;c<=103548;c++)M[c]=2;for(c=103549;c<=103551;c++)M[c]=0;for(c=103552;c<=103554;c++)M[c]=1;for(c=103555;c<=103557;c++)M[c]=2;for(c=103558;c<=103560;c++)M[c]=0;for(c=103571;c<=103573;c++)M[c]=0;for(c=103574;c<=103576;c++)M[c]=2;for(c=103577;c<=103580;c++)M[c]=0;for(c=103581;c<=103583;c++)M[c]=2;for(c=103595;c<=103694;c++)M[c]=0;for(c=103696;c<=103699;c++)M[c]=0;for(c=103700;c<=103793;c++)M[c]=2;for(c=103794;c<=103890;c++)M[c]=0;for(c=103891;c<=103896;c++)M[c]=2;for(c=103900;c<=103971;c++)M[c]=2;for(c=103972;c<=103977;c++)M[c]=0;for(c=112e3;c<=112101;c++)M[c]=0});function cc(e,t){if(e===t)return!0;if(e==null||t==null)return!1;let r=e.wkid,n=t.wkid;if(r!=null||n!=null){if(r===n||ks(e)&&ks(t))return!0;let s=e.latestWkid;if(s!=null&&n===s)return!0;let l=t.latestWkid;return l!=null&&r===l}let i,o;return e.wkt2&&t.wkt2?(i=e.wkt2,o=t.wkt2):e.wkt&&t.wkt&&(i=e.wkt,o=t.wkt),!(!i||!o)&&i.toUpperCase()===o.toUpperCase()}function fd(e){let t=e?.wkid;return t!=null&&t>=2e3&&RF[t]||null}function J1(e){if(!FF(e))return!1;let{wkid:t}=e;if(t)return M[t]==null;let r=e.wkt2||e.wkt;return!!r&&/^\s*(?:GEOGCS|GEOGCRS|GEOGRAPHICCRS)/i.test(r)}function Rm(e){return e?.wkid===4326}function ks(e){let t=e?.wkid;return t!=null&&t>=2e3&&OF.includes(t)}function O3(e){return e===Nm.GCSMARS2000||e===Nm.GCSMARS2000_SPHERE}function R3(e){return e===Nm.GCSMOON2000}function DF(e){let t=e?.wkid;return t!=null&&t>=2e3&&$K.includes(t)}function FF(e){if(e==null)return!1;let t=e.wkid;return t!=null&&t>=2e3||e.wkt2!=null||e.wkt!=null}var OF,FK,$K,Om,N3,k3,RF,D3,F3,$F,Ta=O(()=>{gl();kF();NF();L3();OF=[102100,102113,3857,3785,900913],FK=[104905,104971],$K=[4326,...OF,...FK],Om=[-20037508342788905e-9,20037508342788905e-9],N3=[-20037508342787e-6,20037508342787e-6],k3={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:Om,origin:N3,dx:1e-5},RF={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:Om,origin:N3,dx:1e-5},102100:k3,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:Om,origin:N3,dx:1e-5},3857:k3,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:k3};D3={wkid:4326,wkt:ys(RF[4326].wkTemplate,{Central_Meridian:"0.0"})},F3={wkid:102100,latestWkid:3857},$F={wkid:32662}});function $3(e){return{wkt:`GEOCCS["Spherical geocentric",
12
12
  DATUM["Not specified",
13
13
  SPHEROID["Sphere",${e.radius},0]],
14
14
  PRIMEM["Greenwich",0.0,
@@ -30,17 +30,17 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
30
30
  AXIS["Geocentric Y",OTHER],
31
31
  AXIS["Geocentric Z",NORTH],
32
32
  AUTHORITY["EPSG","4978"]
33
- ]`},s3e=VK.wkt.toUpperCase(),a3e=UK.wkt.toUpperCase()});function GK(e){return BK.fromJSON(e.toLowerCase())||null}function GF(e,t=$o.metersPerDegree){return jK(e,!0)??t}function jK(e,t=!1){let r=e?.wkid??null,n=e?.wkt2??e?.wkt??null,i=null;if(r){if(O3(r))return Qy.metersPerDegree;if(R3(r))return Ky.metersPerDegree;i=md.values[md[r]],!i&&t&&WK.has(r)&&(i=zK)}else n&&(ZF(n)?i=zF(WF.exec(n),i):HF(n)&&(i=zF(BF.exec(n),i)));return i}function zF(e,t){return e?.[1]?jF(e[1]):t}function jF(e){return parseFloat(e.split(",")[1])}function qF(e){let t=e?.wkid??null,r=e?.wkt2??e?.wkt??null,n=null;if(t)n=md.units[md[t]];else if(r){let i=ZF(r)?WF:HF(r)?BF:null;if(i){let o=i.exec(r);o?.[1]&&(n=HK(o[1]))}}return n!=null?GK(n):null}function HF(e){return/^GEOCCS/i.test(e)}function ZF(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}function HK(e){let r=/[\\"']{1}([^\\"']+)/.exec(e)?.[1];if(!r||!md.units.includes(r)){let n=jF(e);r=null;let i=md.values;for(let o=0;o<i.length;++o)if(Math.abs(n-i[o])<qK){r=md.units[o];break}}return r}var zK,WF,md,BF,WK,BK,Ns,uc,UF,w3e,qK,ZK,YK,JK,y3e,v3e,b3e,YF=O(()=>{tt();Ai();VF();ev();Ta();L3();zK=$o.radius*Math.PI/200,WF=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,md=M,BF=/UNIT\[([^\]]+)]/i,WK=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),BK=Ki()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain:"chains",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),Ns=e=>e*e,uc=e=>e*e*e,UF={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937},"clarke-feet":{inBaseUnits:.3047972654},"clarke-yards":{inBaseUnits:.9143917962},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"gold-coast-feet":{inBaseUnits:.3047997101815088},chains:{inBaseUnits:20.1168},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:Ns(.001)},"square-centimeters":{inBaseUnits:Ns(.01)},"square-decimeters":{inBaseUnits:Ns(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:Ns(1e3)},"square-inches":{inBaseUnits:Ns(.0254)},"square-feet":{inBaseUnits:Ns(.3048)},"square-yards":{inBaseUnits:Ns(.9144)},"square-miles":{inBaseUnits:Ns(1609.344)},"square-us-feet":{inBaseUnits:Ns(1200/3937)},acres:{inBaseUnits:.0015625*Ns(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*uc(.001)},"cubic-centimeters":{inBaseUnits:1e3*uc(.01)},"cubic-decimeters":{inBaseUnits:1e3*uc(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*uc(1e3)},"cubic-inches":{inBaseUnits:1e3*uc(.0254)},"cubic-feet":{inBaseUnits:1e3*uc(.3048)},"cubic-yards":{inBaseUnits:1e3*uc(.9144)},"cubic-miles":{inBaseUnits:1e3*uc(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w3e=(()=>{let e={};for(let t in UF)for(let r in UF[t].units)e[r]=t;return e})();qK=1e-7;ZK={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},YK={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},JK={esriDUDecimalDegrees:"degrees",esriDURadians:"radians"},y3e=Ki()(ZK),v3e=Ki()(YK),b3e=Ki()(JK)});function pr(e,t,r){let n,i;return t===void 0?(i=e,n=[void 0]):typeof t!="string"?(i=e,n=[void 0],r=t):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let l=o.constructor.prototype;for(let a of n){let d=Ey(o,a,i);d.write&&typeof d.write=="object"||(d.write={}),r&&(d.write.target=r),d.write.writer=l[s]}}}var Pa=O(()=>{yt()});var Os,It,jt,Xo=O(()=>{gt();Dl();Or();ar();YF();Xi();yt();ft();Pa();Ta();It=Os=class extends ut{static fromJSON(e){if(!e)return null;if(e?.wkid===102100)return Os.WebMercator;if(e?.wkid===4326)return Os.WGS84;let t=new Os;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&typeof e=="object"?e:{[typeof e=="string"?"wkt":"wkid"]:e}}get isWGS84(){return Rm(this)}get isWebMercator(){return ks(this)}get isGeographic(){return J1(this)}get isWrappable(){return DF(this)}get metersPerUnit(){return GF(this)}get unit(){return qF(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===Os.WGS84)return new Os(D3);if(this===Os.WebMercator)return new Os(F3);let e=new Os;return this.wkid!=null?(e.wkid=this.wkid,this.latestWkid!=null&&(e.latestWkid=this.latestWkid),this.vcsWkid!=null&&(e.vcsWkid=this.vcsWkid),this.latestVcsWkid!=null&&(e.latestVcsWkid=this.latestVcsWkid)):(this.wkt!=null&&(e.wkt=this.wkt),this.wkt2!=null&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=Je(this.imageCoordinateSystem)),e}equals(e){if(e==null)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(this.imageCoordinateSystem==null||e.imageCoordinateSystem==null)return!1;let{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,i=this.imageCoordinateSystem;return t==null||n?JSON.stringify(i)===JSON.stringify(e.imageCoordinateSystem):r?i.id===t&&i.referenceServiceName===r:i.id===t}return cc(this,e)}toJSON(e){return this.write(void 0,e)}};It.GCS_NAD_1927=null,It.WGS84=null,It.WebMercator=null,It.PlateCarree=null,R([V({readOnly:!0})],It.prototype,"isWGS84",null),R([V({readOnly:!0})],It.prototype,"isWebMercator",null),R([V({readOnly:!0})],It.prototype,"isGeographic",null),R([V({readOnly:!0})],It.prototype,"isWrappable",null),R([V({type:di,json:{write:!0}})],It.prototype,"latestWkid",void 0),R([V({readOnly:!0})],It.prototype,"metersPerUnit",null),R([V({readOnly:!0})],It.prototype,"unit",null),R([V({type:di,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkt==null}}}}}}})],It.prototype,"wkid",void 0),R([V({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkid==null}}}}}}})],It.prototype,"wkt",void 0),R([pr("wkt"),pr("web-scene","wkt")],It.prototype,"writeWkt",null),R([V({type:String,json:{write:!1}})],It.prototype,"wkt2",void 0),R([V({type:di,json:{write:!0}})],It.prototype,"vcsWkid",void 0),R([V({type:di,json:{write:!0}})],It.prototype,"latestVcsWkid",void 0),R([V()],It.prototype,"imageCoordinateSystem",void 0),It=Os=R([Le("esri.geometry.SpatialReference")],It),It.prototype.toJSON.isDefaultToJSON=!0,It.GCS_NAD_1927=Jr.freeze(new It({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),It.WGS84=Jr.freeze(new It(D3)),It.WebMercator=Jr.freeze(new It(F3)),It.PlateCarree=Jr.freeze(new It($F));jt=It});var Rs,mi,dc=O(()=>{gt();Or();yt();tt();it();Zr();Yf();ft();Xo();Rs=class extends ut{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=jt.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof jt)return e;if(e!=null){let r=new jt;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};R([V()],Rs.prototype,"type",void 0),R([V({readOnly:!0})],Rs.prototype,"cache",null),R([V({readOnly:!0})],Rs.prototype,"extent",null),R([V({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Rs.prototype,"hasM",void 0),R([V({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Rs.prototype,"hasZ",void 0),R([V({type:jt,json:{write:!0},value:jt.WGS84})],Rs.prototype,"spatialReference",void 0),R([Mi("spatialReference")],Rs.prototype,"readSpatialReference",null),Rs=R([Le("esri.geometry.Geometry")],Rs);mi=Rs});function JF(e){return e*XK}function XF(e){return e*QK}function U3(e){return e.wkid!=null||e.wkt!=null}function E_(e,t,r,n,i){let o=e,s=i;if(s.spatialReference=r,"x"in o&&"x"in s)[s.x,s.y]=t(o.x,o.y,V3,n);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=t(o.xmin,o.ymin,V3,n),[s.xmax,s.ymax]=t(o.xmax,o.ymax,V3,n);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){let l="paths"in o?o.paths:o.rings,a=[],d;for(let h=0;h<l.length;h++){let g=l[h];d=[],a.push(d);for(let b=0;b<g.length;b++)d.push(t(g[b][0],g[b][1],[0,0],n)),g[b].length>2&&d[b].push(g[b][2]),g[b].length>3&&d[b].push(g[b][3])}"paths"in s?s.paths=a:s.rings=a}else if("points"in o&&"points"in s){let l=o.points,a=[];for(let d=0;d<l.length;d++)a[d]=t(l[d][0],l[d][1],[0,0],n),l[d].length>2&&a[d].push(l[d][2]),l[d].length>3&&a[d].push(l[d][3]);s.points=a}return i}function X1(e,t){let r=e&&(U3(e)?e:e.spatialReference),n=t&&(U3(t)?t:t.spatialReference);return!(e&&"type"in e&&e.type==="mesh"||t&&"type"in t&&t.type==="mesh"||!r||!n)&&(!!cc(n,r)||ks(n)&&Rm(r)||ks(r)&&Rm(n))}function QF(e,t){if(e==null)return null;let r=e.spatialReference,n=t&&(U3(t)?t:t.spatialReference);return X1(r,n)?cc(r,n)?Je(e):ks(n)?E_(e,hd,jt.WebMercator,!1,Je(e)):Rm(n)?E_(e,Dm,jt.WGS84,!1,Je(e)):null:null}function hd(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);let n=XF(t);return r[0]=XF(e)*$o.radius,r[1]=$o.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function Dm(e,t,r=[0,0],n=!1){if(e===Om[0])r[0]=-180;else if(e===Om[1])r[0]=180;else{let i=JF(e/$o.radius);r[0]=n?i:i-360*Math.floor((i+180)/360)}return r[1]=JF(Math.PI/2-2*Math.atan(Math.exp(-t/$o.radius))),r}function C_(e,t=!1,r=Je(e)){return E_(e,hd,jt.WebMercator,t,r)}function Q1(e,t=!1,r=Je(e)){return E_(e,Dm,jt.WGS84,t,r)}var XK,QK,V3,K1=O(()=>{ar();Xo();ev();Ta();XK=57.29577951308232,QK=.017453292519943;V3=[0,0]});function KF(e,t){let r=e.x-t.x,n=e.y-t.y,i=e.z!=null&&t.z!=null?e.z-t.z:0;return Math.sqrt(r*r+n*n+i*i)}function e$(e){return r$(e,n$)?.[0]??null}function t$(e){return r$(e,n$)?.[1]??null}function r$({x:e,y:t,spatialReference:r},n=[0,0]){if(r){if(ks(r))return Dm(e,t,n);if(J1(r))return n[0]=e,n[1]=t,n}return null}var n$,i$=O(()=>{Ta();K1();n$=[0,0]});function o$(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var T_,z3,ti,Kt,pc=O(()=>{gt();Dl();it();yt();n1();Zr();tt();Yf();ft();Pa();Xi();dc();Xo();i$();Ta();K1();z3=[0,0];ti=T_=class extends mi{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));let r=e._get("spatialReference");t._set("spatialReference",Jr.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,n,i){let o;if(Array.isArray(e))o=e,i=t,e=o[0],t=o[1],r=o[2],n=o[3];else if(e&&typeof e=="object"){if(o=e,e=o.x!=null?o.x:o.longitude,t=o.y!=null?o.y:o.latitude,r=o.z,n=o.m,(i=o.spatialReference)&&i.declaredClass!=="esri.geometry.SpatialReference"&&(i=new jt(i)),o.longitude!=null||o.latitude!=null){if(o.longitude==null)ot.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(o.latitude==null)ot.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&i?.isWebMercator){let l=hd(o.longitude,o.latitude,z3);e=l[0],t=l[1]}}}else o$(r)?(i=r,r=null):o$(n)&&(i=n,n=null);let s={x:e,y:t};return s.x==null&&s.y!=null?ot.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):s.y==null&&s.x!=null&&ot.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),i!=null&&(s.spatialReference=i),r!=null&&(s.z=r),n!=null&&(s.m=n),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return this.m!==void 0}set hasM(e){e!==(this._get("m")!==void 0)&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return this.z!==void 0}set hasZ(e){e!==(this._get("z")!==void 0)&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return t$(this)}set latitude(e){let{spatialReference:t,x:r}=this;e!=null&&t&&(t.isWebMercator?this._set("y",hd(r,e,z3)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return e$(this)}set longitude(e){let{y:t,spatialReference:r}=this;e!=null&&r&&(r.isWebMercator?this._set("x",hd(e,t,z3)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return typeof e=="string"?NaN:e}clone(){let e=new T_;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return T_.copy(e,this),this}equals(e){if(e==null)return!1;let{x:t,y:r,z:n,m:i,spatialReference:o}=this,{z:s,m:l}=e,{x:a,y:d,spatialReference:h}=e;if(!o.equals(h))if(o.isWebMercator&&h.isWGS84)[a,d]=hd(a,d),h=o;else{if(!o.isWGS84||!h.isWebMercator)return!1;[a,d]=Dm(a,d),h=o}return t===a&&r===d&&n===s&&i===l&&o.wkid===h.wkid}offset(e,t,r){return this.x+=e,this.y+=t,r!=null&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;let e=fd(this.spatialReference);if(!e)return this;let t=this.x,[r,n]=e.valid,i=2*n,o;return t>n?(o=Math.ceil(Math.abs(t-n)/i),t-=o*i):t<r&&(o=Math.ceil(Math.abs(t-r)/i),t+=o*i),this._set("x",t),this}distance(e){return KF(this,e)}toArray(){let e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};R([V({readOnly:!0})],ti.prototype,"cache",null),R([V({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],ti.prototype,"hasM",null),R([V({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],ti.prototype,"hasZ",null),R([V({type:Number})],ti.prototype,"latitude",null),R([V({type:Number})],ti.prototype,"longitude",null),R([V({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),ha(e=>isNaN(e)?e:HS(e))],ti.prototype,"x",void 0),R([pr("x")],ti.prototype,"writeX",null),R([Mi("x")],ti.prototype,"readX",null),R([V({type:Number,json:{write:!0}})],ti.prototype,"y",void 0),R([V({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],ti.prototype,"z",void 0),R([V({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],ti.prototype,"m",void 0),ti=T_=R([Le("esri.geometry.Point")],ti),ti.prototype.toJSON.isDefaultToJSON=!0;Kt=ti});function P_(e,t){return t!=null&&ri(e,t.x,t.y,t.z)}function a$(e,t){let{xmin:r,ymin:n,zmin:i,xmax:o,ymax:s,zmax:l}=t;return e.hasZ&&t.hasZ?ri(e,r,n,i)&&ri(e,r,s,i)&&ri(e,o,s,i)&&ri(e,o,n,i)&&ri(e,r,n,l)&&ri(e,r,s,l)&&ri(e,o,s,l)&&ri(e,o,n,l):ri(e,r,n)&&ri(e,r,s)&&ri(e,o,s)&&ri(e,o,n)}function Fm(e,t){return ri(e,t[0],t[1])}function l$(e,t){return ri(e,t[0],t[1],t[2])}function ri(e,t,r,n){return t>=e.xmin&&t<=e.xmax&&r>=e.ymin&&r<=e.ymax&&(n==null||!e.hasZ||n>=e.zmin&&n<=e.zmax)}function c$(e,t){return W3[1]=t.y,W3[0]=t.x,KK(e,W3)}function KK(e,t){return B3(e.rings,t)}function B3(e,t){if(!e)return!1;if(eee(e))return s$(!1,e,t);let r=!1;for(let n=0,i=e.length;n<i;n++)r=s$(r,e[n],t);return r}function eee(e){return!Array.isArray(e[0][0])}function s$(e,t,r){let[n,i]=r,o=e,s=0;for(let l=0,a=t.length;l<a;l++){s++,s===a&&(s=0);let[d,h]=t[l],[g,b]=t[s];(h<i&&b>=i||b<i&&h>=i)&&d+(i-h)/(b-h)*(g-d)<n&&(o=!o)}return o}var W3,M_=O(()=>{W3=[0,0]});function tee(e,t){return P_(e,t)}function ree(e,t){let r=e.hasZ&&t.hasZ,n,i,o;if(e.xmin<=t.xmin){if(n=t.xmin,e.xmax<n)return!1}else if(n=e.xmin,t.xmax<n)return!1;if(e.ymin<=t.ymin){if(i=t.ymin,e.ymax<i)return!1}else if(i=e.ymin,t.ymax<i)return!1;if(r&&t.hasZ){if(e.zmin<=t.zmin){if(o=t.zmin,e.zmax<o)return!1}else if(o=e.zmin,t.zmax<o)return!1}return!0}function nee(e,t){let{points:r,hasZ:n}=t,i=n?l$:Fm;for(let o of r)if(i(e,o))return!0;return!1}function oee(e,t){return see(e,t.rings)}function see(e,t){gd[0]=e.xmin,gd[1]=e.ymax,wd[0]=e.xmax,wd[1]=e.ymax,yd[0]=e.xmin,yd[1]=e.ymin,vd[0]=e.xmax,vd[1]=e.ymin;for(let r of iee)if(B3(t,r))return!0;for(let r of t){if(!r.length)continue;let n=r[0];if(Fm(e,n))return!0;for(let i=1;i<r.length;i++){let o=r[i];if(Fm(e,o)||p$(n,o,u$))return!0;n=o}}return!1}function aee(e,t){gd[0]=e.xmin,gd[1]=e.ymax,wd[0]=e.xmax,wd[1]=e.ymax,yd[0]=e.xmin,yd[1]=e.ymin,vd[0]=e.xmax,vd[1]=e.ymin;let r=t.paths;for(let n of r){if(!r.length)continue;let i=n[0];if(Fm(e,i))return!0;for(let o=1;o<n.length;o++){let s=n[o];if(Fm(e,s)||p$(i,s,u$))return!0;i=s}}return!1}function d$(e){for(let t=0;t<e.length;t++){let r=e[t];for(let i=0;i<r.length-1;i++){let o=r[i],s=r[i+1];for(let l=t+1;l<e.length;l++)for(let a=0;a<e[l].length-1;a++){let d=e[l][a],h=e[l][a+1];if(G3(o,s,d,h,fn)&&!(fn[0]===o[0]&&fn[1]===o[1]||fn[0]===d[0]&&fn[1]===d[1]||fn[0]===s[0]&&fn[1]===s[1]||fn[0]===h[0]&&fn[1]===h[1]))return!0}}let n=r.length;if(!(n<=4))for(let i=0;i<n-3;i++){let o=n-1;i===0&&(o=n-2);let s=r[i],l=r[i+1];for(let a=i+2;a<o;a++){let d=r[a],h=r[a+1];if(G3(s,l,d,h,fn)&&!(fn[0]===s[0]&&fn[1]===s[1]||fn[0]===d[0]&&fn[1]===d[1]||fn[0]===l[0]&&fn[1]===l[1]||fn[0]===h[0]&&fn[1]===h[1]))return!0}}}return!1}function p$(e,t,r){for(let n=0;n<r.length;n++)if(G3(e,t,r[n][0],r[n][1]))return!0;return!1}function G3(e,t,r,n,i){let[o,s]=e,[l,a]=t,[d,h]=r,[g,b]=n,S=g-d,P=o-d,A=l-o,F=b-h,W=s-h,z=a-s,q=F*A-S*z;if(q===0)return!1;let G=(S*W-F*P)/q,Y=(A*W-z*P)/q;return G>=0&&G<=1&&Y>=0&&Y<=1&&(i&&(i[0]=o+G*(l-o),i[1]=s+G*(a-s)),!0)}function f$(e){switch(e){case"esriGeometryEnvelope":case"extent":return ree;case"esriGeometryMultipoint":case"multipoint":return nee;case"esriGeometryPoint":case"point":return tee;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return oee;case"esriGeometryPolyline":case"polyline":return aee}}var gd,wd,yd,vd,iee,u$,fn,j3=O(()=>{M_();gd=[0,0],wd=[0,0],yd=[0,0],vd=[0,0],iee=[gd,wd,yd,vd],u$=[[yd,gd],[gd,wd],[wd,vd],[vd,yd]];fn=[0,0]});function lee(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}function fc(e,t,r){return t==null?r:r==null?t:e(t,r)}function q3(e,t){let[r,n]=t.valid,i=2*n,o,s=0;return e>n?(o=Math.ceil(Math.abs(e-n)/i),e-=o*i,s=o):e<r&&(o=Math.ceil(Math.abs(e-r)/i),e+=o*i,s=-o),{x:e,frameId:s}}var Qo,Xr,hi,Ma=O(()=>{gt();gl();yt();tt();it();Zr();ft();dc();pc();Xo();M_();j3();Ta();K1();Xr=Qo=class extends mi{constructor(...e){super(...e),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(e,t,r,n,i){return lee(e)?{spatialReference:e,xmin:0,ymin:0,xmax:0,ymax:0}:typeof e=="object"?(e.spatialReference=e.spatialReference==null?jt.WGS84:e.spatialReference,e):{xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:i??jt.WGS84}}static fromPoint(e){return new Qo({xmin:e.x,ymin:e.y,zmin:e.z,xmax:e.x,ymax:e.y,zmax:e.z,spatialReference:e.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){let e=new Kt({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(e.z=.5*(this.zmin+this.zmax)),this.hasM&&(e.m=.5*(this.mmin+this.mmax)),e}get extent(){return this.clone()}get hasM(){return this.mmin!=null&&this.mmax!=null}get hasZ(){return this.zmin!=null&&this.zmax!=null}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(e){let t=this.center;return e.z!=null&&this.hasZ?this.offset(e.x-t.x,e.y-t.y,e.z-t.z):this.offset(e.x-t.x,e.y-t.y)}clone(){let e=new Qo;return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.spatialReference=this.spatialReference,this.zmin!=null&&(e.zmin=this.zmin,e.zmax=this.zmax),this.mmin!=null&&(e.mmin=this.mmin,e.mmax=this.mmax),e}contains(e){if(!e)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&X1(t,r)&&(e=t.isWebMercator?C_(e):Q1(e,!0)),e.type==="point"?P_(this,e):e.type==="extent"&&a$(this,e)}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&X1(t,r)&&(e=t.isWebMercator?C_(e):Q1(e,!0)),this.xmin===e.xmin&&this.ymin===e.ymin&&this.zmin===e.zmin&&this.mmin===e.mmin&&this.xmax===e.xmax&&this.ymax===e.ymax&&this.zmax===e.zmax&&this.mmax===e.mmax}expand(e){let t=.5*(1-e),r=this.width*t,n=this.height*t;if(this.xmin+=r,this.ymin+=n,this.xmax-=r,this.ymax-=n,this.hasZ){let i=(this.zmax-this.zmin)*t;this.zmin+=i,this.zmax-=i}if(this.hasM){let i=(this.mmax-this.mmin)*t;this.mmin+=i,this.mmax-=i}return this}intersects(e){if(e==null)return!1;e.type==="mesh"&&(e=e.extent);let t=this.spatialReference,r=e.spatialReference;return t&&r&&!cc(t,r)&&X1(t,r)&&(e=t.isWebMercator?C_(e):Q1(e,!0)),f$(e.type)(this,e)}normalize(){let e=this._normalize(!1,!0);return Array.isArray(e)?e:[e]}offset(e,t,r){return this.xmin+=e,this.ymin+=t,this.xmax+=e,this.ymax+=t,r!=null&&(this.zmin+=r,this.zmax+=r),this}shiftCentralMeridian(){return this._normalize(!0)}union(e){return this===e||(this.xmin=Math.min(this.xmin,e.xmin),this.ymin=Math.min(this.ymin,e.ymin),this.xmax=Math.max(this.xmax,e.xmax),this.ymax=Math.max(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=fc(Math.min,this.zmin,e.zmin),this.zmax=fc(Math.max,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=fc(Math.min,this.mmin,e.mmin),this.mmax=fc(Math.max,this.mmax,e.mmax))),this}intersection(e){return this===e?this:e!=null&&this.intersects(e)?(this.xmin=Math.max(this.xmin,e.xmin),this.ymin=Math.max(this.ymin,e.ymin),this.xmax=Math.min(this.xmax,e.xmax),this.ymax=Math.min(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=fc(Math.max,this.zmin,e.zmin),this.zmax=fc(Math.min,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=fc(Math.max,this.mmin,e.mmin),this.mmax=fc(Math.min,this.mmax,e.mmax)),this):null}toJSON(e){return this.write({},e)}_shiftCM(e=fd(this.spatialReference)){if(!e||!this.spatialReference)return this;let t=this.spatialReference,r=this._getCM(e);if(r){let n=t.isWebMercator?Q1(r):r;this.xmin-=r.x,this.xmax-=r.x,t.isWebMercator||(n.x=q3(n.x,e).x),this.spatialReference=new jt(ys((t.isWGS84?e.altTemplate:null)??e.wkTemplate,{Central_Meridian:n.x}))}return this}_getCM(e){let t=null,[r,n]=e.valid,i=this.xmin,o=this.xmax;return i>=r&&i<=n&&o>=r&&o<=n||(t=this.center),t}_normalize(e,t,r){let n=this.spatialReference;if(!n)return this;let i=r??fd(n);if(i==null)return this;let o=this._getParts(i).map(a=>a.extent);if(o.length<2)return o[0]||this;if(o.length>2)return e?this._shiftCM(i):this.set({xmin:i.valid[0],xmax:i.valid[1]});if(e)return this._shiftCM(i);if(t)return o;let s=!0,l=!0;return o.forEach(a=>{a.hasZ||(s=!1),a.hasM||(l=!1)}),{rings:o.map(a=>{let d=[[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin]];if(s){let h=(a.zmax-a.zmin)/2;for(let g=0;g<d.length;g++)d[g].push(h)}if(l){let h=(a.mmax-a.mmin)/2;for(let g=0;g<d.length;g++)d[g].push(h)}return d}),hasZ:s,hasM:l,spatialReference:n}}_getParts(e){let t=this.cache._parts;if(!t){t=[];let{ymin:i,ymax:o,spatialReference:s}=this,l=this.width,a=this.xmin,d=this.xmax,h;e=e||fd(s);let[g,b]=e.valid;h=q3(this.xmin,e);let S=h.x,P=h.frameId;h=q3(this.xmax,e);let A=h.x,F=h.frameId,W=S===A&&l>0;if(l>2*b){let z=new Qo(a<d?S:A,i,b,o,s),q=new Qo(g,i,a<d?A:S,o,s),G=new Qo(0,i,b,o,s),Y=new Qo(g,i,0,o,s),ie=[],U=[];z.contains(G)&&ie.push(P),z.contains(Y)&&U.push(P),q.contains(G)&&ie.push(F),q.contains(Y)&&U.push(F);for(let me=P+1;me<F;me++)ie.push(me),U.push(me);t.push({extent:z,frameIds:[P]},{extent:q,frameIds:[F]},{extent:G,frameIds:ie},{extent:Y,frameIds:U})}else S>A||W?t.push({extent:new Qo(S,i,b,o,s),frameIds:[P]},{extent:new Qo(g,i,A,o,s),frameIds:[F]}):t.push({extent:new Qo(S,i,A,o,s),frameIds:[P]});this.cache._parts=t}let r=this.hasZ,n=this.hasM;if(r||n){let i={};r&&(i.zmin=this.zmin,i.zmax=this.zmax),n&&(i.mmin=this.mmin,i.mmax=this.mmax);for(let o=0;o<t.length;o++)t[o].extent.set(i)}return t}};R([V({readOnly:!0})],Xr.prototype,"cache",null),R([V({readOnly:!0})],Xr.prototype,"center",null),R([V({readOnly:!0})],Xr.prototype,"extent",null),R([V({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Xr.prototype,"hasM",null),R([V({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Xr.prototype,"hasZ",null),R([V({readOnly:!0})],Xr.prototype,"height",null),R([V({readOnly:!0})],Xr.prototype,"width",null),R([V({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],Xr.prototype,"xmin",void 0),R([V({type:Number,json:{write:!0}})],Xr.prototype,"ymin",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Xr.prototype,"mmin",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Xr.prototype,"zmin",void 0),R([V({type:Number,json:{write:!0}})],Xr.prototype,"xmax",void 0),R([V({type:Number,json:{write:!0}})],Xr.prototype,"ymax",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Xr.prototype,"mmax",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Xr.prototype,"zmax",void 0),Xr=Qo=R([Le("esri.geometry.Extent")],Xr),Xr.prototype.toJSON.isDefaultToJSON=!0;hi=Xr});function e0(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}var m$=O(()=>{Ma()});function h$(e){if(!e)return"";let t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g,r="";for(let n of e.match(t)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}var Qr,t0=O(()=>{m$();Ml();Dn();Qr=class e{constructor(t,r,n,i){this._hour=t,this._minute=r,this._second=n,this._millisecond=i,this.declaredRootClass="esri.core.sql.timeonly"}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return t instanceof e&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new e(this.hour,this.minute,this.second,this.millisecond)}isValid(){return e0(this.hour)&&e0(this.minute)&&e0(this.second)&&e0(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return t===null||t===""?this.toString():(t=h$(t))?Ce.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:Ji(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,r,n,i){let o=new e(t,r,n,i);return o.isValid()?o:null}static fromReader(t){if(!t)return null;let r=t.split(":");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;let r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),i=Math.floor(t/36e5%24),o=Math.floor(t%1e3);return new e(i,n,r,o)}static fromDateJS(t){return new e(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new e(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];r?(r=h$(r))&&n.push(r):r!==null&&r!==""||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(let i of n){let o=Ce.fromFormat(t,i);if(o.isValid)return new e(o.hour,o.minute,o.second,o.millisecond)}return null}plus(t,r){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}return null}toUTCDateTime(){return Ce.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}});function w$(e,t){let r=y$[e.toLowerCase()];if(r==null)throw new oe(K.FunctionNotRecognized);if(t.length<r.minParams||t.length>r.maxParams)throw new oe(K.InvalidParameterCount,{name:e.toUpperCase()});return r.evaluate(t)}function H3(e,t){let r=y$[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function v$(e){if(e===null)return null;let t=0,r=0;for(let n=0;n<e.length;n++){let i=e[n];if(i!==null){if(!Z3(i))throw new oe(K.InvalidValueForAggregateFunction);r++,t+=i}}return r===0?null:t/e.length}function Z3(e){return typeof e=="number"}function g$(e,t){if(e===null)return null;let r=null,n=null;for(let i of e){let o=i;o=i instanceof un||i instanceof Qr?i.toNumber():i instanceof Ce?i.toMillis():i instanceof bn?i.toMilliseconds():i,(r===null||t==="max"&&n!==null&&o!==null&&n<=o||t==="min"&&n!==null&&o!==null&&n>=o)&&(r=i,n=o)}return r}function cee(e){if(e===null)return null;let t=0;for(let r=0;r<e.length;r++){let n=e[r];if(n!==null){if(!Z3(n))throw new oe(K.InvalidValueForAggregateFunction);t+=n}}return t}function uee(e){if(e===null)return null;let t=b$(e);return t===null?null:Math.sqrt(t)}function b$(e){if(e===null||(e=e.filter(n=>n!==null)).length===0)return null;let t=v$(e);if(t===null)return null;let r=0;for(let n of e){if(!Z3(n))throw new oe(K.InvalidValueForAggregateFunction);r+=(t-n)**2}return r/(e.length-1)}var y$,_$=O(()=>{wg();Al();yg();t0();Dn();y$={min:{minParams:1,maxParams:1,evaluate:e=>g$(e[0],"min")},max:{minParams:1,maxParams:1,evaluate:e=>g$(e[0],"max")},avg:{minParams:1,maxParams:1,evaluate:e=>v$(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>cee(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>uee(e[0])},count:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>b$(e[0])}}});var xr,A_=O(()=>{Al();xr=class e{constructor(){this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0,this.millis=0}static _fixDefaults(t){if(t.precision!==null||t.secondary!==null)throw new oe(K.PrimarySecondaryQualifiers)}static _parseSecondsComponent(t,r){if(r.includes(".")){let n=r.split(".");t.second=parseFloat(n[0]),t.millis=parseInt(n[1],10)}else t.second=parseFloat(r)}static createFromMilliseconds(t){let r=new e;return r.second=t/1e3,r}static createFromValueAndQualifier(t,r,n){let i=null,o=new e;if(o.op=n==="-"?"-":"+",r.type==="interval-period"){e._fixDefaults(r);let s=new RegExp("^[0-9]{1,}$");if(r.period==="year"||r.period==="month")throw new oe(K.YearMonthIntervals);if(r.period==="second"){if(!/^[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$/.test(t))throw new oe(K.IllegalInterval);e._parseSecondsComponent(o,t)}else{if(!s.test(t))throw new oe(K.IllegalInterval);o[r.period]=parseFloat(t)}}else{if(e._fixDefaults(r.start),e._fixDefaults(r.end),r.start.period==="year"||r.start.period==="month"||r.end.period==="year"||r.end.period==="month")throw new oe(K.YearMonthIntervals);switch(r.start.period){case"day":switch(r.end.period){case"hour":if(i=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!i.test(t))throw new oe(K.IllegalInterval);o[r.start.period]=parseFloat(t.split(" ")[0]),o[r.end.period]=parseFloat(t.split(" ")[1]);break;case"minute":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!i.test(t))throw new oe(K.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1])}break;case"second":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new oe(K.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new oe(K.IllegalInterval)}break;case"hour":switch(r.end.period){case"minute":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!i.test(t))throw new oe(K.IllegalInterval);o.hour=parseFloat(t.split(":")[0]),o.minute=parseFloat(t.split(":")[1]);break;case"second":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new oe(K.IllegalInterval);{let s=t.split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new oe(K.IllegalInterval)}break;case"minute":if(r.end.period!=="second")throw new oe(K.IllegalInterval);if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new oe(K.IllegalInterval);{let s=t.split(":");o.minute=parseFloat(s[0]),e._parseSecondsComponent(o,s[1])}break;default:throw new oe(K.IllegalInterval)}}return o}valueInMilliseconds(){return(this.op==="-"?-1:1)*(this.millis+1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}});function $m(e,t){if(t instanceof Nr)return t===Yr.instance?Ce.fromMillis(e.getTime(),{zone:Yr.instance}):Ce.fromJSDate(e,{zone:t});switch(t){case"system":case"local":case null:return Ce.fromJSDate(e);default:return t?.toLowerCase()==="unknown"?Ce.fromMillis(e.getTime(),{zone:Yr.instance}):Ce.fromJSDate(e,{zone:t})}}function Aa(e){return e instanceof xr}function Ut(e){return e instanceof Ce}function zt(e){return e instanceof un}function Yt(e){return e instanceof Qr}function Wt(e){return e instanceof bn}function r0(e){let t=dee.exec(e);if(t!==null){let[,r,n,i]=t,o=Qr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),0);if(o!==null)return o;throw new oe(K.InvalidTime)}if(t=pee.exec(e),t!==null){let[,r,n]=t,i=Qr.fromParts(parseInt(r,10),parseInt(n,10),0,0);if(i!==null)return i;throw new oe(K.InvalidTime)}if(t=fee.exec(e),t!==null){let[,r,n,i,o]=t,s=Qr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s!==null)return s;throw new oe(K.InvalidTime)}throw new oe(K.InvalidTime)}function Vm(e,t,r=!1){let n=mee.exec(e);if(n!==null){let[,i,o,s,l,a,d,h]=n,g=Ce.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(l,10),minute:parseInt(a,10),second:parseInt(d,10),millisecond:h?parseInt(h.replace(".",""),10):0},{zone:dy(t)});if(g.isValid===!1)throw new oe(K.InvalidTimeStamp);return g}if(n=hee.exec(e),n!==null){let[,i,o,s,l,a,d,h,g,b,S]=n,P=bn.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(l,10),parseInt(a,10),parseInt(d,10),h?parseInt(h.replace(".",""),10):0,g==="-",parseInt(b,10),parseInt(S,10));if(P.isValid===!1)throw new oe(K.InvalidTimeStamp);return P}if(n=gee.exec(e),n!==null){let[,i,o,s,l,a,d,h,g]=n,b=bn.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(l,10),parseInt(a,10),0,0,d==="-",parseInt(h,10),parseInt(g,10));if(b.isValid===!1)throw new oe(K.InvalidTimeStamp);return b}if(n=wee.exec(e),n!==null){let[,i,o,s,l,a]=n,d=Ce.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(l,10),minute:parseInt(a,10),second:0},{zone:dy(t)});if(d.isValid===!1)throw new oe(K.InvalidTimeStamp);return d}if(n=x$.exec(e),n!==null){let[,i,o,s]=n,l=Ce.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:0,minute:0,second:0},{zone:dy(t)});if(l.isValid===!1)throw new oe(K.InvalidTimeStamp);return l}throw new oe(K.InvalidTimeStamp)}function Y3(e,t){let r=x$.exec(e);if(r===null)try{return Vm(e,t)}catch{throw new oe(K.InvalidDate)}let[,n,i,o]=r,s=un.fromParts(parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s===null)throw new oe(K.InvalidDate);return s}var dee,pee,fee,x$,mee,hee,gee,wee,n0=O(()=>{wg();Al();A_();yg();t0();hg();Dn();dee=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,pee=/^(\d{1,2}):(\d{1,2})$/,fee=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,x$=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,mee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,hee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,gee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,wee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/});function yee(e){return I_.setFloat64(0,e),I_.getBigInt64(0)}function vee(e){return I_.setBigInt64(0,e),I_.getFloat64(0)}function bee(e){let t=yee(e=Math.abs(e)),r=vee(t<=J3?J3:t-J3);return Math.abs(e-r)}function _ee(e){return S$[0]=e,S$[0]}function E$(e,t,r){if(r===void 0||+r==0)return Math[e](t);if(t=+t,r=+r,isNaN(t)||typeof r!="number"||r%1!=0)return NaN;let n=t.toString().split("e");return n=(t=Math[e](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}var S$,I_,J3,sTe,aTe,X3=O(()=>{S$=new Float32Array(1),I_=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));J3=BigInt("1000000"),sTe=bee(1);aTe=_ee(34028234663852886e22)});function Ia(e,t,r=!1){let{hasM:n,hasZ:i}=e;Array.isArray(t)?t.length!==4||n||i?t.length===3&&r&&!n?(i=!0,n=!1):t.length===3&&n&&i&&(n=!1,i=!1):(n=!0,i=!0):(i=!i&&t.hasZ&&(!n||t.hasM),n=!n&&t.hasM&&(!i||t.hasZ)),e.hasZ=i,e.hasM=n}var L_=O(()=>{});function C$(e){return(t,r)=>t==null?r:r==null?t:e(t,r)}function xee(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var Q3,mc,k_,K3=O(()=>{gt();ar();yt();tt();it();ft();Pa();Ma();dc();pc();L_();mc=Q3=class extends mi{constructor(...e){super(...e),this.points=[],this.type="multipoint"}normalizeCtorArgs(e,t){if(!e&&!t)return{};let r={};Array.isArray(e)?(r.points=e,r.spatialReference=t):xee(e)?r.spatialReference=e:(e.points&&(r.points=e.points),e.spatialReference&&(r.spatialReference=e.spatialReference),e.hasZ&&(r.hasZ=e.hasZ),e.hasM&&(r.hasM=e.hasM));let n=r.points?.[0];return n&&(r.hasZ===void 0&&r.hasM===void 0?(r.hasZ=n.length>2,r.hasM=!1):r.hasZ===void 0?r.hasZ=n.length>3:r.hasM===void 0&&(r.hasM=n.length>3)),r}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=this.points;if(!e.length)return null;let t=new hi,r=this.hasZ,n=this.hasM,i=r?3:2,o=e[0],s=C$(Math.min),l=C$(Math.max),a,d,h,g,[b,S]=o,[P,A]=o;for(let F=0,W=e.length;F<W;F++){let z=e[F],[q,G]=z;if(b=s(b,q),S=s(S,G),P=l(P,q),A=l(A,G),r&&z.length>2){let Y=z[2];a=s(a,Y),h=l(h,Y)}if(n&&z.length>i){let Y=z[i];d=s(d,Y),g=l(g,Y)}}return t.xmin=b,t.ymin=S,t.xmax=P,t.ymax=A,t.spatialReference=this.spatialReference,r?(t.zmin=a,t.zmax=h):(t.zmin=void 0,t.zmax=void 0),n?(t.mmin=d,t.mmax=g):(t.mmin=void 0,t.mmax=void 0),t}writePoints(e,t){t.points=Je(this.points)}addPoint(e){return Ia(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}clone(){let e={points:Je(this.points),spatialReference:this.spatialReference};return this.hasZ&&(e.hasZ=!0),this.hasM&&(e.hasM=!0),new Q3(e)}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new Kt(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new Kt(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?(Ia(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return e!=null&&e>=0&&e<this.points.length}};R([V({readOnly:!0})],mc.prototype,"cache",null),R([V()],mc.prototype,"extent",null),R([V({type:[[Number]],json:{write:{isRequired:!0}}})],mc.prototype,"points",void 0),R([pr("points")],mc.prototype,"writePoints",null),mc=Q3=R([Le("esri.geometry.Multipoint")],mc),mc.prototype.toJSON.isDefaultToJSON=!0;k_=mc});var T$=O(()=>{});var i0,P$=O(()=>{(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"})(i0||(i0={}))});function M$(e,t){let r=t[0]-e[0],n=t[1]-e[1];if(e.length>2&&t.length>2){let i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}return Math.sqrt(r*r+n*n)}function See(e,t,r){let n=e[0]+r*(t[0]-e[0]),i=e[1]+r*(t[1]-e[1]);return e.length>2&&t.length>2?[n,i,e[2]+r*(t[2]-e[2])]:[n,i]}function A$(e,t){return See(e,t,.5)}function I$(e,t=i0.X,r=i0.Y){let n=0,i=e.length,o=e[0];for(let s=1;s<i;s++){let l=e[s];n+=(l[t]-o[t])*(l[r]+o[r]),o=l}if(!Eee(e)){let s=e[0];n+=(s[t]-o[t])*(s[r]+o[r])}return n>=0}function Eee(e){let t=e.length;return t<3||ml(e[0],e[t-1])}var eC=O(()=>{hl();P$();Ta()});function L$(e){return e?Cee(e.rings,e.hasZ??!1):null}function Cee(e,t){if(!e?.length)return null;let r=[],n=[],i=t?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let o=0,s=e.length;o<s;o++){let l=Tee(e[o],t,i);l&&n.push(l)}if(n.sort((o,s)=>{let l=o[2]-s[2];return l===0&&t&&(l=o[4]-s[4]),l}),n.length&&(r[0]=n[0][0],r[1]=n[0][1],t&&(r[2]=n[0][3]),(r[0]<i[0]||r[0]>i[1]||r[1]<i[2]||r[1]>i[3]||t&&(r[2]<i[4]||r[2]>i[5]))&&(r.length=0)),!r.length){let o=e[0]&&e[0].length?Pee(e[0],t):null;if(!o)return null;r[0]=o[0],r[1]=o[1],t&&o.length>2&&(r[2]=o[2])}return r}function Tee(e,t,r){let n=0,i=0,o=0,s=0,l=0,a=e.length?e[0][0]:0,d=e.length?e[0][1]:0,h=e.length&&t?e[0][2]:0;for(let b=0;b<e.length;b++){let S=e[b],P=e[(b+1)%e.length],[A,F,W]=S,z=A-a,q=F-d,[G,Y,ie]=P,U=G-a,me=Y-d,Ae=z*me-U*q;if(s+=Ae,n+=(z+U)*Ae,i+=(q+me)*Ae,t&&S.length>2&&P.length>2){let Ee=W-h,Ne=ie-h,we=z*Ne-U*Ee;o+=(Ee+Ne)*we,l+=we}A<r[0]&&(r[0]=A),A>r[1]&&(r[1]=A),F<r[2]&&(r[2]=F),F>r[3]&&(r[3]=F),t&&(W<r[4]&&(r[4]=W),W>r[5]&&(r[5]=W))}if(s>0&&(s*=-1),l>0&&(l*=-1),!s)return null;s*=.5,l*=.5;let g=[n/(6*s)+a,i/(6*s)+d,s];return t&&(r[4]===r[5]||l===0?(g[3]=(r[4]+r[5])/2,g[4]=0):(g[3]=o/(6*l)+h,g[4]=l)),g}function Pee(e,t){let r=t?[0,0,0]:[0,0],n=t?[0,0,0]:[0,0],i=0,o=0,s=0,l=0;for(let a=0,d=e.length;a<d-1;a++){let h=e[a],g=e[a+1];if(h&&g){r[0]=h[0],r[1]=h[1],n[0]=g[0],n[1]=g[1],t&&h.length>2&&g.length>2&&(r[2]=h[2],n[2]=g[2]);let b=M$(r,n);if(b){i+=b;let S=A$(h,g);o+=b*S[0],s+=b*S[1],t&&S.length>2&&(l+=b*S[2])}}}return i>0?t?[o/i,s/i,l/i]:[o/i,s/i]:e.length?e[0]:null}var kTe,k$=O(()=>{T$();eC();kTe=1/3});var $Te,VTe,UTe,zTe,N$=O(()=>{tt();X3();Ma();$Te=[-1/0,-1/0,1/0,1/0],VTe=[1/0,1/0,-1/0,-1/0],UTe=[0,0,0,0],zTe=[0,0,1,1]});function O$(e){function t(r,n){return r==null?n:n==null?r:e(r,n)}return t}function tC(e,t,r,n){let i=r?3:2;if(!t.length||!t[0].length)return null;let o,s,l,a,[d,h]=t[0][0],[g,b]=t[0][0];for(let S=0;S<t.length;S++){let P=t[S];for(let A=0;A<P.length;A++){let F=P[A],[W,z]=F;if(d=N_(d,W),h=N_(h,z),g=O_(g,W),b=O_(b,z),r&&F.length>2){let q=F[2];o=N_(o,q),s=O_(s,q)}if(n&&F.length>i){let q=F[i];l=N_(o,q),a=O_(s,q)}}}return r?n?(e[0]=d,e[1]=h,e[2]=o,e[3]=l,e[4]=g,e[5]=b,e[6]=s,e[7]=a,e.length=8,e):(e[0]=d,e[1]=h,e[2]=o,e[3]=g,e[4]=b,e[5]=s,e.length=6,e):n?(e[0]=d,e[1]=h,e[2]=l,e[3]=g,e[4]=b,e[5]=a,e.length=6,e):(e[0]=d,e[1]=h,e[2]=g,e[3]=b,e.length=4,e)}var N_,O_,R$=O(()=>{N$();N_=O$(Math.min),O_=O$(Math.max)});function Mee(e,t,r,n){return{xmin:e,ymin:t,xmax:r,ymax:n}}function Aee(e,t,r,n,i,o){return{xmin:e,ymin:t,zmin:r,xmax:n,ymax:i,zmax:o}}function Iee(e,t,r,n,i,o){return{xmin:e,ymin:t,mmin:r,xmax:n,ymax:i,mmax:o}}function Lee(e,t,r,n,i,o,s,l){return{xmin:e,ymin:t,zmin:r,mmin:n,xmax:i,ymax:o,zmax:s,mmax:l}}function F$(e,t=!1,r=!1){return t?r?Lee(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]):Aee(e[0],e[1],e[2],e[3],e[4],e[5]):r?Iee(e[0],e[1],e[2],e[3],e[4],e[5]):Mee(e[0],e[1],e[2],e[3])}function $$(e){let{hasZ:t,hasM:r,rings:n}=e,i=tC(D$,n,t??!1,r??!1);return i?F$(i,t,r):null}function V$(e){let{hasZ:t,hasM:r,paths:n}=e,i=tC(D$,n,t??!1,r??!1);return i?F$(i,t,r):null}var D$,rC=O(()=>{R$();D$=[]});function U$(e){return!Array.isArray(e[0])}function kee(e){return typeof e[0]?.[0]=="number"}function Nee(e){if(!e)return;let{rings:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??(t=[]),kee(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??(n=!0),r??(r=!0);break;case 3:n??(n=r!==!0),r??(r=!n);break;default:n??(n=!1),r??(r=!1)}return i??(i=jt.WGS84),{...e,hasM:r,hasZ:n,rings:t,spatialReference:i}}var R_,co,D_,nC=O(()=>{gt();hl();ar();yt();tt();it();ft();Pa();Ma();dc();pc();Xo();k$();M_();eC();rC();j3();K1();L_();co=R_=class extends mi{static fromExtent(e){let t=e.clone().normalize(),{spatialReference:r}=e,n=!1,i=!1;for(let s of t)s.hasZ&&(n=!0),s.hasM&&(i=!0);let o={rings:t.map(s=>{let l=[[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin]];if(n&&s.hasZ){let a=s.zmin+.5*(s.zmax-s.zmin);for(let d=0;d<l.length;d++)l[d].push(a)}if(i&&s.hasM){let a=s.mmin+.5*(s.mmax-s.mmin);for(let d=0;d<l.length;d++)l[d].push(a)}return l}),spatialReference:r};return n&&(o.hasZ=!0),i&&(o.hasM=!0),new R_(o)}constructor(e){super(Nee(e)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){let e=L$(this);if(!e||isNaN(e[0])||isNaN(e[1])||this.hasZ&&isNaN(e[2]))return null;let t=new Kt;return t.x=e[0],t.y=e[1],t.spatialReference=this.spatialReference,this.hasZ&&(t.z=e[2]),t}writeCurveRings(e,t){t.curveRings=Je(e)}get extent(){let e=$$(this),{spatialReference:t}=this;return e?new hi({...e,spatialReference:t}):null}get isSelfIntersecting(){return d$(this.rings)}writeRings(e,t){t.rings=Je(this.rings)}addRing(e){if(!e)return;let t=this.rings,r=t.length;if(U$(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("rings"),this}clone(){let e=new R_;return e.spatialReference=this.spatialReference,e.rings=Je(this.rings),e.curveRings=Je(this.curveRings),e.hasZ=this.hasZ,e.hasM=this.hasM,e}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;if(t!=null!=(r!=null)||t!=null&&r!=null&&!t.equals(r)||this.rings.length!==e.rings.length)return!1;let n=([i,o,s,l],[a,d,h,g])=>i===a&&o===d&&(s==null&&h==null||s===h)&&(l==null&&g==null||l===g);for(let i=0;i<this.rings.length;i++){let o=this.rings[i],s=e.rings[i];if(!ml(o,s,n))return!1}return!0}contains(e){if(!e)return!1;let t=QF(e,this.spatialReference);return c$(this,t??e)}isClockwise(e){let t=U$(e)?e.map(r=>this.hasZ?this.hasM?[r.x,r.y,r.z,r.m]:[r.x,r.y,r.z]:[r.x,r.y]):e;return I$(t)}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.rings[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new Kt(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new Kt(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new Kt(r[0],r[1],r[2],r[3],this.spatialReference):new Kt(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e].splice(t,0,r),this.notifyChange("rings"),this):this}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new Kt(this.rings[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("rings"),r}removeRing(e){if(!this._validateInputs(e,null))return null;let t=this.rings.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new Kt(i,r));return this.notifyChange("rings"),n}setPoint(e,t,r){return this._validateInputs(e,t)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e][t]=r,this.notifyChange("rings"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.rings.length)return!1;if(t!=null){let n=this.rings[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};R([V({readOnly:!0})],co.prototype,"cache",null),R([V({readOnly:!0})],co.prototype,"centroid",null),R([V({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],co.prototype,"curveRings",void 0),R([pr("curveRings")],co.prototype,"writeCurveRings",null),R([V({readOnly:!0})],co.prototype,"extent",null),R([V({readOnly:!0})],co.prototype,"isSelfIntersecting",null),R([V({type:[[[Number]]],json:{write:{isRequired:!0}}})],co.prototype,"rings",void 0),R([pr("rings")],co.prototype,"writeRings",null),co=R_=R([Le("esri.geometry.Polygon")],co);D_=co;co.prototype.toJSON.isDefaultToJSON=!0});function Oee(e){return!Array.isArray(e[0])}function Ree(e){return typeof e[0]?.[0]=="number"}function Dee(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??(t=[]),Ree(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??(n=!0),r??(r=!0);break;case 3:n??(n=r!==!0),r??(r=!n);break;default:n??(n=!1),r??(r=!1)}return i??(i=jt.WGS84),{...e,hasM:r,hasZ:n,paths:t,spatialReference:i}}var iC,Ds,F_,oC=O(()=>{gt();ar();yt();tt();it();ft();Pa();Ma();dc();pc();Xo();rC();L_();Ds=iC=class extends mi{constructor(e){super(Dee(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=Je(e)}get extent(){let e=V$(this),{spatialReference:t}=this;return e?new hi({...e,spatialReference:t}):null}writePaths(e,t){t.paths=Je(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(Oee(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new iC;return e.spatialReference=this.spatialReference,e.paths=Je(this.paths),e.curvePaths=Je(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new Kt(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new Kt(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new Kt(r[0],r[1],r[2],r[3],this.spatialReference):new Kt(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new Kt(i,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new Kt(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.paths.length)return!1;if(t!=null){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};R([V({readOnly:!0})],Ds.prototype,"cache",null),R([V({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],Ds.prototype,"curvePaths",void 0),R([pr("curvePaths")],Ds.prototype,"writeCurvePaths",null),R([V({readOnly:!0})],Ds.prototype,"extent",null),R([V({type:[[[Number]]],json:{write:{isRequired:!0}}})],Ds.prototype,"paths",void 0),R([pr("paths")],Ds.prototype,"writePaths",null),Ds=iC=R([Le("esri.geometry.Polyline")],Ds);F_=Ds;Ds.prototype.toJSON.isDefaultToJSON=!0});var sC,Fee,aC=O(()=>{Ai();sC=Ki()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),Fee=Ki()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})});function $ee(e){return e.xmin!==void 0&&e.ymin!==void 0&&e.xmax!==void 0&&e.ymax!==void 0}function Vee(e){return e.points!==void 0}function Uee(e){return e.x!==void 0&&e.y!==void 0}function zee(e){return e.paths!==void 0||e.curvePaths!==void 0}function Wee(e){return e.rings!==void 0||e.curveRings!==void 0}function lC(e){return e==null?null:e instanceof mi?e:Uee(e)?Kt.fromJSON(e):zee(e)?F_.fromJSON(e):Wee(e)?D_.fromJSON(e):Vee(e)?k_.fromJSON(e):$ee(e)?hi.fromJSON(e):null}var cC=O(()=>{Ma();dc();K3();pc();nC();oC()});var uC,H7e,o0=O(()=>{Xi();Ma();dc();K3();pc();nC();oC();Xo();aC();cC();uC={base:mi,key:"type",typeMap:{extent:hi,multipoint:k_,point:Kt,polyline:F_,polygon:D_}},H7e=Ro(uC)});function er(e,t={}){let r=e instanceof Rr?e:new Rr(e,t),{alwaysWriteDefaults:n,default:i,ignoreUnknown:o=!0,name:s,nonNullable:l,readOnly:a=!1}=t;return V({type:o?r.apiValues:String,json:{type:r.jsonValues,default:i,name:s,read:!a&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:n}},nonNullable:l,readOnly:a})}var uo=O(()=>{Ai();yt()});var dC,Um,z$=O(()=>{gt();Or();yt();tt();it();Zr();ft();Um=dC=class extends ut{constructor(e){super(e),this.name=null,this.code=null}clone(){return new dC({name:this.name,code:this.code})}};R([V({type:String,json:{write:{isRequired:!0}}})],Um.prototype,"name",void 0),R([V({type:[String,Number],json:{write:{isRequired:!0}}})],Um.prototype,"code",void 0),Um=dC=R([Le("esri.layers.support.CodedValue")],Um)});var Bee,s0,hc,a0=O(()=>{gt();Ai();Or();yt();tt();it();Zr();uo();ft();Bee=new Rr({inherited:"inherited",codedValue:"coded-value",range:"range"}),s0=class extends ut{constructor(e){super(e),this.name=null,this.type=null}};R([V({type:String,json:{write:!0}})],s0.prototype,"name",void 0),R([er(Bee),V({json:{write:{isRequired:!0}}})],s0.prototype,"type",void 0),s0=R([Le("esri.layers.support.Domain")],s0);hc=s0});var pC,l0,fC,W$=O(()=>{gt();ar();yt();tt();it();uo();ft();z$();a0();l0=pC=class extends hc{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(n=>(String(n.code)===r&&(t=n.name),!!t))}return t}clone(){return new pC({codedValues:Je(this.codedValues),name:this.name})}};R([V({type:[Um],json:{write:{isRequired:!0}}})],l0.prototype,"codedValues",void 0),R([er({codedValue:"coded-value"})],l0.prototype,"type",void 0),l0=pC=R([Le("esri.layers.support.CodedValueDomain")],l0);fC=l0});var mC,$_,hC,B$=O(()=>{gt();it();tt();Zr();Fn();uo();ft();a0();$_=mC=class extends hc{constructor(e){super(e),this.type="inherited"}clone(){return new mC}};R([er({inherited:"inherited"})],$_.prototype,"type",void 0),$_=mC=R([Le("esri.layers.support.InheritedDomain")],$_);hC=$_});var gC,zm,wC,G$=O(()=>{gt();yt();tt();it();Zr();uo();ft();a0();zm=gC=class extends hc{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new gC({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};R([V({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:this.maxValue!=null&&this.minValue==null}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],zm.prototype,"maxValue",void 0),R([V({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],zm.prototype,"minValue",void 0),R([er({range:"range"})],zm.prototype,"type",void 0),zm=gC=R([Le("esri.layers.support.RangeDomain")],zm);wC=zm});function q$(e){if(!e?.type)return null;switch(e.type){case"range":return wC.fromJSON(e);case"codedValue":return fC.fromJSON(e);case"inherited":return hC.fromJSON(e)}return null}var j$,H$=O(()=>{tt();W$();a0();B$();G$();j$={key:"type",base:hc,typeMap:{range:wC,"coded-value":fC,inherited:hC}}});var Z$,Y$=O(()=>{Ai();Z$=new Rr({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})});var yC,Gee,Bn,J$,X$=O(()=>{gt();Ai();Or();yt();Xi();Zr();tt();uo();Yf();ft();H$();Y$();Gee=new Rr({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"}),Bn=yC=class extends ut{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?Gee.fromJSON(r.fieldValueType):null}clone(){return new yC({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};R([V({type:String,json:{write:!0}})],Bn.prototype,"alias",void 0),R([V({type:[String,Number],json:{write:{allowNull:!0}}})],Bn.prototype,"defaultValue",void 0),R([V()],Bn.prototype,"description",void 0),R([Mi("description")],Bn.prototype,"readDescription",null),R([V({types:j$,json:{read:{reader:q$},write:!0}})],Bn.prototype,"domain",void 0),R([V({type:Boolean,json:{write:!0}})],Bn.prototype,"editable",void 0),R([V({type:di,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],Bn.prototype,"length",void 0),R([V({type:String,json:{write:!0}})],Bn.prototype,"name",void 0),R([V({type:Boolean,json:{write:!0}})],Bn.prototype,"nullable",void 0),R([er(Z$)],Bn.prototype,"type",void 0),R([V()],Bn.prototype,"valueType",void 0),R([Mi("valueType",["description"])],Bn.prototype,"readValueType",null),R([V({type:Boolean,json:{read:!1}})],Bn.prototype,"visible",void 0),Bn=yC=R([Le("esri.layers.support.Field")],Bn);J$=Bn});var vC,bd,Q$=O(()=>{gt();Or();yt();Xi();Zr();tt();uo();ft();bd=vC=class extends ut{constructor(e){super(e),this.type="map-layer"}clone(){let{mapLayerId:e,gdbVersion:t}=this;return new vC({mapLayerId:e,gdbVersion:t})}};R([er({mapLayer:"map-layer"}),V({json:{write:{isRequired:!0}}})],bd.prototype,"type",void 0),R([V({type:di,json:{write:{isRequired:!0}}})],bd.prototype,"mapLayerId",void 0),R([V({type:String,json:{write:!0}})],bd.prototype,"gdbVersion",void 0),bd=vC=R([Le("esri.layers.support.source.MapLayerSource")],bd)});var bC,Fs,K$=O(()=>{gt();o0();Or();yt();tt();it();Zr();uo();ft();Xo();aC();Fs=bC=class extends ut{constructor(e){super(e),this.type="query-table"}clone(){let{workspaceId:e,query:t,oidFields:r,spatialReference:n,geometryType:i}=this,o={workspaceId:e,query:t,oidFields:r,spatialReference:n?.clone()??void 0,geometryType:i};return new bC(o)}};R([er({queryTable:"query-table"}),V({json:{write:{isRequired:!0}}})],Fs.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],Fs.prototype,"workspaceId",void 0),R([V({type:String,json:{write:!0}})],Fs.prototype,"query",void 0),R([V({type:String,json:{write:!0}})],Fs.prototype,"oidFields",void 0),R([V({type:jt,json:{write:!0}})],Fs.prototype,"spatialReference",void 0),R([er(sC)],Fs.prototype,"geometryType",void 0),Fs=bC=R([Le("esri.layers.support.source.QueryTableDataSource")],Fs)});var _C,_d,eV=O(()=>{gt();Or();yt();tt();it();Zr();uo();ft();_d=_C=class extends ut{constructor(e){super(e),this.type="raster"}clone(){let{workspaceId:e,dataSourceName:t}=this;return new _C({workspaceId:e,dataSourceName:t})}};R([er({raster:"raster"}),V({json:{write:{isRequired:!0}}})],_d.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],_d.prototype,"dataSourceName",void 0),R([V({type:String,json:{write:!0}})],_d.prototype,"workspaceId",void 0),_d=_C=R([Le("esri.layers.support.source.RasterDataSource")],_d)});var xC,gc,tV=O(()=>{gt();Or();yt();tt();it();Zr();uo();ft();gc=xC=class extends ut{constructor(e){super(e),this.type="table"}clone(){let{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new xC({workspaceId:e,gdbVersion:t,dataSourceName:r})}};R([er({table:"table"}),V({json:{write:{isRequired:!0}}})],gc.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],gc.prototype,"workspaceId",void 0),R([V({type:String,json:{write:!0}})],gc.prototype,"gdbVersion",void 0),R([V({type:String,json:{write:!0}})],gc.prototype,"dataSourceName",void 0),gc=xC=R([Le("esri.layers.support.source.TableDataSource")],gc)});function rV(){return SC||(SC=a4({types:PC()})),SC}function PC(){return EC||(EC={key:"type",base:null,typeMap:{"data-layer":$s,"map-layer":bd}}),EC}var CC,TC,jee,Fi,SC,EC,qee,$s,nV=O(()=>{gt();Ai();Or();yt();n1();uo();Yf();ft();Xi();u4();X$();Q$();K$();eV();tV();jee=Ki()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"}),Fi=CC=class extends ut{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return rV()(e,t,r)}castLeftTableSource(e){return Ro(PC(),e)}readRightTableSource(e,t,r){return rV()(e,t,r)}castRightTableSource(e){return Ro(PC(),e)}clone(){let{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:n,joinType:i}=this,o={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:n?.clone()??void 0,joinType:i};return new CC(o)}};R([er({joinTable:"join-table"}),V({json:{write:{isRequired:!0}}})],Fi.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],Fi.prototype,"leftTableKey",void 0),R([V({type:String,json:{write:!0}})],Fi.prototype,"rightTableKey",void 0),R([V({json:{write:!0}})],Fi.prototype,"leftTableSource",void 0),R([Mi("leftTableSource")],Fi.prototype,"readLeftTableSource",null),R([ha("leftTableSource")],Fi.prototype,"castLeftTableSource",null),R([V({json:{write:!0}})],Fi.prototype,"rightTableSource",void 0),R([Mi("rightTableSource")],Fi.prototype,"readRightTableSource",null),R([ha("rightTableSource")],Fi.prototype,"castRightTableSource",null),R([er(jee)],Fi.prototype,"joinType",void 0),Fi=CC=R([Le("esri.layers.support.source.JoinTableDataSource")],Fi);SC=null;EC=null;qee={key:"type",base:null,typeMap:{"join-table":Fi,"query-table":Fs,raster:_d,table:gc}},$s=TC=class extends ut{constructor(e){super(e),this.type="data-layer"}clone(){let{fields:e,dataSource:t}=this;return new TC({fields:e,dataSource:t})}};R([er({dataLayer:"data-layer"}),V({json:{write:{isRequired:!0}}})],$s.prototype,"type",void 0),R([V({type:[J$],json:{write:!0}})],$s.prototype,"fields",void 0),R([V({types:qee,json:{write:!0}})],$s.prototype,"dataSource",void 0),$s=TC=R([Le("esri.layers.support.source.DataLayerSource")],$s),$s.from=ui($s)});var iV,c0,oV,sV=O(()=>{gt();Dl();tt();ar();it();da();Nl();ua();ft();iV=e=>{let t=class extends e{clone(){let r=Pi(this);sA(r,"unable to clone instance of non-accessor class");let n=r.metadata,i=r.store,o={},s=new Map;for(let a in n){let d=n[a],h=i?.originOf(a),g=d.clonable;if(d.readOnly||g===!1||h!==lt.USER&&h!==lt.DEFAULTS&&h!==lt.WEB_MAP&&h!==lt.WEB_SCENE)continue;let b=this[a],S=null;S=typeof g=="function"?g(b):g==="reference"?b:Uw(b),b!=null&&S==null||(h===lt.DEFAULTS?s.set(a,S):o[a]=S)}let l=new(Object.getPrototypeOf(this)).constructor(o);if(s.size){let a=Pi(l)?.store;if(a)for(let[d,h]of s)a.set(d,h,lt.DEFAULTS)}return l}};return t=R([Le("esri.core.Clonable")],t),t},c0=class extends iV(Jr){};c0=R([Le("esri.core.Clonable")],c0),function(e){e.ClonableMixin=iV}(c0||(c0={}));oV=c0});var xd,aV,lV=O(()=>{gt();sV();Or();yt();tt();it();Zr();ft();xd=class extends oV.ClonableMixin(ut){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};R([V({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:this.onFields!=null&&this.onFields.length>0}}}}})],xd.prototype,"onFields",void 0),R([V({type:String,json:{write:!0}})],xd.prototype,"operator",void 0),R([V({type:String,json:{write:!0}})],xd.prototype,"searchTerm",void 0),R([V({type:String,json:{write:!0}})],xd.prototype,"searchType",void 0),xd=R([Le("esri.rest.support.FullTextSearch")],xd);aV=xd});var MC,cV,Sd,uV,dV=O(()=>{gt();o0();Ai();Or();ar();yt();tt();it();ft();Ma();cV=new Rr({upperLeft:"upper-left",lowerLeft:"lower-left"}),Sd=MC=class extends ut{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new MC(Je({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};R([V({type:hi,json:{write:{overridePolicy(){return{enabled:this.mode==="view"}}}}})],Sd.prototype,"extent",void 0),R([V({type:["view","edit"],json:{write:!0}})],Sd.prototype,"mode",void 0),R([V({type:String,json:{read:cV.read,write:cV.write}})],Sd.prototype,"originPosition",void 0),R([V({type:Number,json:{write:{overridePolicy(){return{enabled:this.mode==="view"}}}}})],Sd.prototype,"tolerance",void 0),Sd=MC=R([Le("esri.rest.support.QuantizationParameters")],Sd);uV=Sd});var pV,fV=O(()=>{Ai();pV=new Rr({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})});var AC,mV,Ko,hV,gV=O(()=>{gt();Ai();Or();ar();yt();tt();it();ft();Pa();mV=new Rr({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"}),Ko=AC=class extends ut{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){this.statisticType!=="percentile-continuous"&&this.statisticType!=="percentile-discrete"||(t.statisticParameters=Je(e))}clone(){return new AC({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:Je(this.statisticParameters)})}};R([V({type:Number,json:{write:!0}})],Ko.prototype,"maxPointCount",void 0),R([V({type:Number,json:{write:!0}})],Ko.prototype,"maxRecordCount",void 0),R([V({type:Number,json:{write:!0}})],Ko.prototype,"maxVertexCount",void 0),R([V({type:String,json:{write:!0}})],Ko.prototype,"onStatisticField",void 0),R([V({type:String,json:{write:!0}})],Ko.prototype,"outStatisticFieldName",void 0),R([V({type:String,json:{read:{source:"statisticType",reader:mV.read},write:{target:"statisticType",writer:mV.write}}})],Ko.prototype,"statisticType",void 0),R([V({type:Object})],Ko.prototype,"statisticParameters",void 0),R([pr("statisticParameters")],Ko.prototype,"writeStatisticParameters",null),Ko=AC=R([Le("esri.rest.support.StatisticDefinition")],Ko);hV=Ko});function V_(e,t,r,n=Uo){let i=new or(mv(n)),o=Ce.fromJSDate(e,{zone:i}),s=r==="decades"||r==="centuries"?"year":wV(r);return r==="decades"&&(t*=10),r==="centuries"&&(t*=100),o.plus({[s]:t}).toJSDate()}function IC(e,t,r=Uo){let n=new or(mv(r)),i=Ce.fromJSDate(e,{zone:n});if(t==="decades"||t==="centuries"){let s=i.startOf("year"),{year:l}=s,a=l-l%(t==="decades"?10:100);return s.set({year:a}).toJSDate()}let o=wV(t);return i.startOf(o).toJSDate()}function wV(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}var yV=O(()=>{hv();Hg();Dn()});var po,$i,bV,vV,Hee,_V=O(()=>{gt();Or();yV();yt();tt();it();Zr();Yf();ft();Pa();Hg();$i=po=class extends ut{static get allTime(){return vV}static get empty(){return Hee}static fromArray(e){return new po({start:e[0]!=null?new Date(e[0]):e[0],end:e[1]!=null?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return t.end!=null?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(po.allTime)}get isEmpty(){return this.equals(po.empty)}readStart(e,t){return t.start!=null?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new po({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=Uo){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=IC(r,e,t));let n=this.end;if(n){let i=IC(n,e,t);n=n.getTime()===i.getTime()?i:V_(i,1,e,t)}return new po({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return po.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0,o,s;return n>=t&&n<=r?o=n:t>=n&&t<=i&&(o=t),r>=n&&r<=i?s=r:i>=t&&i<=r&&(s=i),o==null||s==null||isNaN(o)||isNaN(s)?po.empty:new po({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=Uo){if(this.isEmpty||this.isAllTime)return this.clone();let n=new po,{start:i,end:o}=this;return i!=null&&(n.start=V_(i,e,t,r)),o!=null&&(n.end=V_(o,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return vV.clone();let t=this.start!=null&&e.start!=null?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=this.end!=null&&e.end!=null?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new po({start:t,end:r})}};R([V({type:Date,json:{write:{allowNull:!0}}})],$i.prototype,"end",void 0),R([Mi("end")],$i.prototype,"readEnd",null),R([pr("end")],$i.prototype,"writeEnd",null),R([V({readOnly:!0,json:{read:!1}})],$i.prototype,"isAllTime",null),R([V({readOnly:!0,json:{read:!1}})],$i.prototype,"isEmpty",null),R([V({type:Date,json:{write:{allowNull:!0}}})],$i.prototype,"start",void 0),R([Mi("start")],$i.prototype,"readStart",null),R([pr("start")],$i.prototype,"writeStart",null),$i=po=R([Le("esri.time.TimeExtent")],$i);bV=$i,vV=new $i,Hee=new $i({start:void 0,end:void 0})});var U_,Zee,Ge,xV=O(()=>{gt();o0();Ai();Or();ar();yt();n1();uo();ft();Pa();Xi();cC();nV();lV();dV();fV();gV();_V();Xo();pc();Zee=new Rr({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),Ge=U_=class extends ut{static from(e){return ZS(U_,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return typeof e=="number"||typeof e=="object"?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){let r={};for(let n in e){let i=e[n];Array.isArray(i)?r[n]=i.map(o=>o instanceof Date?o.getTime():o):i instanceof Date?r[n]=i.getTime():r[n]=i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new U_(Je({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:this.historicMoment!=null?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}};Ge.MAX_MAX_RECORD_COUNT_FACTOR=5,R([V({json:{write:!0}})],Ge.prototype,"aggregateIds",void 0),R([V({type:Boolean,json:{write:!0}})],Ge.prototype,"cacheHint",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"compactGeometryEnabled",void 0),R([V({json:{write:!0}})],Ge.prototype,"datumTransformation",void 0),R([ha("datumTransformation")],Ge.prototype,"castDatumTransformation",null),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"defaultSpatialReferenceEnabled",void 0),R([V({type:Number,json:{write:!0}})],Ge.prototype,"distance",void 0),R([V({type:$s,json:{write:!0}})],Ge.prototype,"dynamicDataSource",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"formatOf3DObjects",void 0),R([V({type:[aV],json:{write:{enabled:!0,overridePolicy(){return{enabled:this.fullText!=null&&this.fullText.length>0}}}}})],Ge.prototype,"fullText",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"gdbVersion",void 0),R([V({types:uC,json:{read:lC,write:!0}})],Ge.prototype,"geometry",void 0),R([V({type:Number,json:{write:!0}})],Ge.prototype,"geometryPrecision",void 0),R([V({type:[String],json:{write:!0}})],Ge.prototype,"groupByFieldsForStatistics",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"having",void 0),R([V({type:Date})],Ge.prototype,"historicMoment",void 0),R([pr("historicMoment")],Ge.prototype,"writeHistoricMoment",null),R([V({type:Number,json:{write:!0}})],Ge.prototype,"maxAllowableOffset",void 0),R([V({type:Number,cast:e=>e<1?1:e>Ge.MAX_MAX_RECORD_COUNT_FACTOR?Ge.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],Ge.prototype,"maxRecordCountFactor",void 0),R([V({type:["xyFootprint"],json:{write:!0}})],Ge.prototype,"multipatchOption",void 0),R([V({type:Number,json:{read:{source:"resultRecordCount"}}})],Ge.prototype,"num",void 0),R([V({json:{write:!0}})],Ge.prototype,"objectIds",void 0),R([V({type:[String],json:{write:!0}})],Ge.prototype,"orderByFields",void 0),R([V({type:[String],json:{write:!0}})],Ge.prototype,"outFields",void 0),R([V({type:jt,json:{name:"outSR",write:!0}})],Ge.prototype,"outSpatialReference",void 0),R([V({type:[hV],json:{write:{enabled:!0,overridePolicy(){return{enabled:this.outStatistics!=null&&this.outStatistics.length>0}}}}})],Ge.prototype,"outStatistics",void 0),R([V({json:{write:!0}})],Ge.prototype,"parameterValues",void 0),R([pr("parameterValues")],Ge.prototype,"writeParameterValues",null),R([V({type:Kt,json:{write:!0}})],Ge.prototype,"pixelSize",void 0),R([V({type:uV,json:{write:!0}})],Ge.prototype,"quantizationParameters",void 0),R([V({type:[Object],json:{write:!0}})],Ge.prototype,"rangeValues",void 0),R([V({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:this.spatialRelationship==="relation"}}}}})],Ge.prototype,"relationParameter",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"resultType",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnCentroid",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnDistinctValues",void 0),R([V({type:Boolean,json:{default:!0,write:!0}})],Ge.prototype,"returnExceededLimitFeatures",void 0),R([V({type:Boolean,json:{write:!0}})],Ge.prototype,"returnGeometry",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnQueryGeometry",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnM",void 0),R([V({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Ge.prototype,"returnZ",void 0),R([V({type:Boolean,json:{write:!0}})],Ge.prototype,"returnTrueCurves",void 0),R([V({type:jt,json:{write:!0}})],Ge.prototype,"sourceSpatialReference",void 0),R([er(pV,{ignoreUnknown:!1,name:"spatialRel"})],Ge.prototype,"spatialRelationship",void 0),R([V({type:Number,json:{read:{source:"resultOffset"}}})],Ge.prototype,"start",void 0),R([pr("start"),pr("num")],Ge.prototype,"writeStart",null),R([V({type:String,json:{write:!0}})],Ge.prototype,"sqlFormat",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"text",void 0),R([V({type:bV,json:{write:!0}})],Ge.prototype,"timeExtent",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"timeReferenceUnknownClient",void 0),R([er(Zee,{ignoreUnknown:!1}),V({json:{write:{overridePolicy(e){return{enabled:!!e&&this.distance!=null}}}}})],Ge.prototype,"units",void 0),R([V({type:String,json:{write:{overridePolicy(e){return{enabled:e!=null||this.start!=null&&this.start>0}}}}})],Ge.prototype,"where",void 0),R([pr("where")],Ge.prototype,"writeWhere",null),Ge=U_=R([Le("esri.rest.support.Query")],Ge)});function An(e){return typeof e=="number"}function tr(e){return typeof e=="string"||e instanceof String}function SV(e){return e==null||tr(e)}function gi(e){return e instanceof Date}var Ed=O(()=>{xV()});function LC(e){return!!Ut(e)||!!Wt(e)}function W_(e){return!!Ut(e)||!!zt(e)||!!Wt(e)||!!Yt(e)}function z_(e){if(Ut(e))return e.toMillis();if(zt(e))return e.toNumber();if(Wt(e))return e.toMilliseconds();throw new oe(K.InvalidDataType)}function ni(e,t,r,n){if(e==null||t==null)return null;if(An(e)){if(An(t))return es(e,t,r);if(tr(t))return ete(e,t,r);if(W_(t))throw new oe(K.InvalidOperator);if(zt(t))throw new oe(K.InvalidOperator)}else if(tr(e)){if(An(t))return tte(e,t,r);if(tr(t))return rte(e,t,r);if(Ut(t))throw new oe(K.InvalidOperator);if(zt(t))throw new oe(K.InvalidOperator);if(Yt(t))throw new oe(K.InvalidOperator);if(Wt(t))throw new oe(K.InvalidOperator)}else if(Ut(e)){if(LC(t)){if(e instanceof Ce&&Lu(e.zone)){if(t instanceof Ce&&Lu(t.zone)===!1||t instanceof bn)return u0(e,t,r)}else if(t instanceof Ce&&Lu(t.zone)&&(e instanceof Ce&&Lu(e.zone)===!1||e instanceof bn))return u0(e,t,r);return es(z_(e),z_(t),r)}if(tr(t))throw new oe(K.InvalidOperator);if(zt(t))return nte(e,t,r);if(Yt(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator)}else if(zt(e)){if(Wt(t))return ste(e,t,r);if(Ut(t))return ote(e,t,r);if(tr(t))throw new oe(K.InvalidOperator);if(zt(t))return es(e.toNumber(),t.toNumber(),r);if(Yt(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator)}else if(Yt(e)){if(Yt(t))return es(e.toNumber(),t.toNumber(),r);if(tr(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator);if(zt(t))throw new oe(K.InvalidOperator);if(LC(t))throw new oe(K.InvalidOperator)}else if(Wt(e)){if(LC(t))return t instanceof Ce&&Lu(t.zone)?u0(e,t,r):es(z_(e),z_(t),r);if(tr(t))throw new oe(K.InvalidOperator);if(zt(t))return ite(e,t,r);if(Yt(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator)}switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function es(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function ete(e,t,r){let n=parseFloat(t);if(!isNaN(n))return es(e,n,r);let i=e.toString();switch(r){case"<>":return i!==t;case"=":return i===t;case">":return i>t;case"<":return i<t;case">=":return i>=t;case"<=":return i<=t}}function tte(e,t,r){let n=parseFloat(e);if(!isNaN(n))return es(n,t,r);let i=t.toString();switch(r){case"<>":return e!==i;case"=":return e===i;case">":return e>i;case"<":return e<i;case">=":return e>=i;case"<=":return e<=i}}function rte(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function nte(e,t,r){let n=t.toDateTimeLuxon(e.zone);return es((e=e.startOf("day")).toMillis(),n.toMillis(),r)}function ite(e,t,r){let n=t.toDateTimeLuxon(e.toDateTime().zone);return es((e=e.startOfDay()).toMilliseconds(),n.toMillis(),r)}function ote(e,t,r){let n=e.toDateTimeLuxon(t.zone);return t=t.startOf("day"),es(n.toMillis(),t.toMillis(),r)}function ste(e,t,r){let n=e.toDateTimeLuxon(t.toDateTime().zone);return t=t.startOfDay(),es(n.toMillis(),t.toMilliseconds(),r)}function u0(e,t,r){e instanceof bn&&(e=e.toDateTime()),t instanceof bn&&(t=t.toDateTime());let n=EV(e),i=EV(t);switch(r){case"<>":return n!==i;case"=":return n===i;case">":return n>i;case"<":return n<i;case">=":return n>=i;case"<=":return n<=i}}function EV(e){return e.year*Yee+e.month*Jee+e.day*Xee+e.hour*Qee+e.minute*Kee+1e3*e.second+e.millisecond}var Yee,Jee,Xee,Qee,Kee,kC=O(()=>{Al();n0();yg();hg();Ed();Dn();Yee=321408e5,Jee=26784e5,Xee=864e5,Qee=36e5,Kee=6e4});function d0(e,t,r){let n=PV[e.toLowerCase()];if(n==null)throw new oe(K.FunctionNotRecognized);if(t.length<n.minParams||t.length>n.maxParams)throw new oe(K.InvalidParameterCount,{name:e.toUpperCase()});return n.evaluate(t,r)}function CV(e,t){let r=PV[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function NC(e){return!gi(e)&&!zt(e)&&!Ut(e)&&!Yt(e)&&!Wt(e)}function TV(e){return zt(e)||Yt(e)?e.toString():Wt(e)?e.toSQLValue():Ut(e)?e.millisecond===0?e.toFormat("yyyy-LL-dd HH:mm:ss"):e.toSQL({includeOffset:!1}):gi(e)?TV(Ce.fromJSDate(e)):e.toString()}function ate(e){if(gi(e))return un.fromDateJS(e);if(Ut(e))return un.fromParts(e.year,e.month,e.day);if(zt(e))return e;if(Yt(e))throw new oe(K.CannotCastValue);if(Wt(e)&&un.fromParts(e.year,e.month,e.day)===null)throw new oe(K.CannotCastValue);if(tr(e)){let t=un.fromReader(e);if(t!==null&&t.isValid)return t}throw new oe(K.CannotCastValue)}function lte(e,t,r){if(gi(e))return $m(e,t);if(Ut(e))return e;if(zt(e))return e.toDateTimeLuxon("unknown");if(Yt(e))throw new oe(K.CannotCastValue);if(Wt(e))return e;if(tr(e))return Vm(e,"unknown",r);throw new oe(K.CannotCastValue)}function cte(e){if(gi(e))return Qr.fromDateJS(e);if(Ut(e))return Qr.fromDateTime(e);if(zt(e))throw new oe(K.CannotCastValue);if(Yt(e))return e;if(Wt(e))return Qr.fromSqlTimeStampOffset(e);if(tr(e))return r0(e);throw new oe(K.CannotCastValue)}var PV,OC=O(()=>{X3();gl();wg();Al();kC();n0();t0();Ed();Dn();PV={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(t==null)return null;if(gi(t))switch(e.toUpperCase()){case"SECOND":return t.getSeconds();case"MINUTE":return t.getMinutes();case"HOUR":return t.getHours();case"DAY":return t.getDate();case"MONTH":return t.getMonth()+1;case"YEAR":return t.getFullYear();case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":return 0}else if(Ut(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new oe(K.InvalidFunctionParameters,{function:"EXTRACT"})}else if(zt(t))switch(e.toUpperCase()){case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new oe(K.InvalidFunctionParameters,{function:"EXTRACT"})}else if(Yt(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour}else if(Wt(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":return t.timezoneOffsetHour;case"TIMEZONE_MINUTE":return t.timezoneOffsetMinutes}throw new oe(K.InvalidFunctionParameters,{function:"EXTRACT"})}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(e.length===2){let[t,r]=e;return t==null||r==null?null:t.toString().substring(r-1)}if(e.length===3){let[t,r,n]=e;return t==null||r==null||n==null?null:n<=0?"":t.toString().substring(r-1,r+n-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>e==null||t==null?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{let t=e.length===3,r=t?e[1]:" ",n=t?e[2]:e[1];if(r==null||n==null)return null;let i=`(${X8(r)})`;switch(e[0]){case"BOTH":return n.replaceAll(new RegExp(`^${i}*|${i}*$`,"g"),"");case"LEADING":return n.replaceAll(new RegExp(`^${i}*`,"g"),"");case"TRAILING":return n.replaceAll(new RegExp(`${i}*$`,"g"),"")}throw new oe(K.InvalidFunctionParameters,{function:"TRIM"})}},abs:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0]>0?1:e[0]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{let t=e[0],r=e.length===2?10**e[1]:1;return t==null?null:Math.round(t*r)/r}},truncate:{minParams:1,maxParams:2,evaluate:e=>e[0]==null?null:e.length===1||e[1]===0?Math.trunc(e[0]):E$("trunc",e[0],-Number(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>tr(e[0])?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let r=0;r<e.length;r++){if(e[r]==null)return null;t+=e[r].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toUpperCase()},coalesce:{minParams:1,maxParams:1/0,evaluate:e=>{for(let t of e)if(t!==null)return t;return null}},cosh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cosh(e[0])},sinh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sinh(e[0])},tanh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tanh(e[0])},nullif:{minParams:2,maxParams:2,evaluate:(e,t)=>ni(e[0],e[1],"=")?null:e[0]},cast:{minParams:2,maxParams:2,evaluate:(e,t)=>{let r=e[0],n=e[1];if(r===null)return null;switch(n.type){case"integer":{if(!NC(r))throw new oe(K.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new oe(K.CannotCastValue);return i}case"smallint":{if(!NC(r))throw new oe(K.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new oe(K.CannotCastValue);if(i>32767||i<-32767)throw new oe(K.CannotCastValue);return i}case"float":case"real":{if(!NC(r))throw new oe(K.CannotCastValue);let i=parseFloat(r);if(isNaN(i))throw new oe(K.CannotCastValue);return i}case"time":return cte(r);case"date":return ate(r);case"timestamp":return lte(r,t,n.withtimezone===!0);case"varchar":{let i=TV(r);if(i.length>n.size)throw new oe(K.CannotCastValue);return i}default:throw new oe(K.InvalidDataType)}}}}});function RC(e,t,r,n){if(e==="||")return d0("concat",[t,r],n);if(t===null||r===null)return null;if(An(t)){if(An(r))return DC(t,r,e);if(Aa(r))return wte(t,r,e);if(Yt(r))return Pte();if(zt(r))return Mte();if(Wt(r))return Tte();if(Ut(r))return Ete();if(tr(r))return Ate(t,r,e);throw new oe(K.InvalidOperator)}if(zt(t)){if(An(r))return xte(t,r,e);if(Aa(r))return yte(t,r,e);if(Yt(r))return Fte();if(zt(r))return Dte(t,r,e);if(Wt(r))return Rte(t,r,e);if(Ut(r))return Ote(t,r,e);if(tr(r))return Jte();throw new oe(K.InvalidOperator)}if(Yt(t)){if(An(r))return Ste(t,r,e);if(Aa(r))return fte(t,r,e);if(Yt(r))return jte();if(zt(r))return Bte();if(Wt(r))return Gte();if(Ut(r))return Wte();if(tr(r))return Xte();throw new oe(K.InvalidOperator)}if(Aa(t)){if(An(r))return gte(t,r,e);if(Aa(r))return hte(t,r,e);if(Yt(r))return dte(t,r,e);if(zt(r))return pte(t,r,e);if(Wt(r))return mte(t,r,e);if(Ut(r))return ute(t,r,e);if(tr(r))return kte();throw new oe(K.InvalidOperator)}if(Ut(t)){if(An(r))return _te(t,r,e);if(Aa(r))return vte(t,r,e);if(Yt(r))return Yte();if(zt(r))return Hte(t,r,e);if(Wt(r))return Zte(t,r,e);if(Ut(r))return qte(t,r,e);if(tr(r))return Qte();throw new oe(K.InvalidOperator)}if(Wt(t)){if(An(r))return Cte(t,r,e);if(Aa(r))return bte(t,r,e);if(Yt(r))return $te();if(zt(r))return Vte(t,r,e);if(Wt(r))return zte(t,r,e);if(Ut(r))return Ute(t,r,e);if(tr(r))return Kte();throw new oe(K.InvalidOperator)}if(tr(t)){if(An(r))return Ite(t,r,e);if(Aa(r))return Nte();if(Yt(r))return ere();if(zt(r))return tre();if(Wt(r))return nre();if(Ut(r))return rre();if(tr(r))return Lte(t,r,e);throw new oe(K.InvalidOperator)}throw new oe(K.InvalidOperator)}function DC(e,t,r){switch(r){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t}throw new oe(K.InvalidOperator)}function ute(e,t,r){switch(r){case"+":return t.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-t.toMillis()}throw new oe(K.InvalidOperator)}function dte(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new oe(K.InvalidOperator)}function pte(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new oe(K.InvalidOperator)}function fte(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function mte(e,t,r){if(r==="+")return t.addMilliseconds(e.valueInMilliseconds());throw new oe(K.InvalidOperator)}function hte(e,t,r){switch(r){case"+":return xr.createFromMilliseconds(e.valueInMilliseconds()+t.valueInMilliseconds());case"-":return xr.createFromMilliseconds(e.valueInMilliseconds()-t.valueInMilliseconds());case"*":return xr.createFromMilliseconds(e.valueInMilliseconds()*t.valueInMilliseconds());case"/":return xr.createFromMilliseconds(e.valueInMilliseconds()/t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function gte(e,t,r){switch(r){case"+":return xr.createFromMilliseconds(e.valueInMilliseconds()+t);case"-":return xr.createFromMilliseconds(e.valueInMilliseconds()-t);case"*":return xr.createFromMilliseconds(e.valueInMilliseconds()*t);case"/":return xr.createFromMilliseconds(e.valueInMilliseconds()/t)}throw new oe(K.InvalidOperator)}function wte(e,t,r){switch(r){case"+":return xr.createFromMilliseconds(e+t.valueInMilliseconds());case"-":return xr.createFromMilliseconds(e-t.valueInMilliseconds());case"*":return xr.createFromMilliseconds(e*t.valueInMilliseconds());case"/":return xr.createFromMilliseconds(e/t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function yte(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function vte(e,t,r){switch(r){case"+":return e.plus({milliseconds:t.valueInMilliseconds()});case"-":return e.minus({milliseconds:t.valueInMilliseconds()})}throw new oe(K.InvalidOperator)}function bte(e,t,r){switch(r){case"+":return e.addMilliseconds(t.valueInMilliseconds());case"-":return e.addMilliseconds(-1*t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function _te(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus({milliseconds:n});case"-":return e.minus({milliseconds:n})}throw new oe(K.InvalidOperator)}function xte(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new oe(K.InvalidOperator)}function Ste(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new oe(K.InvalidOperator)}function Ete(e,t,r){throw new oe(K.InvalidOperator)}function Cte(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.addMilliseconds(n);case"-":return e.addMilliseconds(-1*n)}throw new oe(K.InvalidOperator)}function Tte(e,t,r){throw new oe(K.InvalidOperator)}function Pte(e,t,r){throw new oe(K.InvalidOperator)}function Mte(e,t,r){throw new oe(K.InvalidOperator)}function Ate(e,t,r){let n=parseFloat(t);if(isNaN(n))throw new oe(K.InvalidOperator);return DC(e,n,r)}function Ite(e,t,r){let n=parseFloat(e);if(isNaN(n))throw new oe(K.InvalidOperator);return DC(n,t,r)}function Lte(e,t,r){if(r==="+")return e+t;throw new oe(K.InvalidOperator)}function kte(e,t,r){throw new oe(K.InvalidOperator)}function Nte(e,t,r){throw new oe(K.InvalidOperator)}function Ote(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.zone).diff(t).as("days");throw new oe(K.InvalidOperator)}function Rte(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.toDateTime().zone).diff(t.toDateTime()).as("days");throw new oe(K.InvalidOperator)}function Dte(e,t,r){if(r==="-")return e.toDateTimeLuxon("UTC").diff(t.toDateTimeLuxon("UTC")).as("days");throw new oe(K.InvalidOperator)}function Fte(e,t,r){throw new oe(K.InvalidOperator)}function $te(e,t,r){throw new oe(K.InvalidOperator)}function Vte(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new oe(K.InvalidOperator)}function Ute(e,t,r){if(r==="-")return e.toDateTime().diff(t).as("days");throw new oe(K.InvalidOperator)}function zte(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTime()).as("days");throw new oe(K.InvalidOperator)}function Wte(e,t,r){throw new oe(K.InvalidOperator)}function Bte(e,t,r){throw new oe(K.InvalidOperator)}function Gte(e,t,r){throw new oe(K.InvalidOperator)}function jte(e,t,r){throw new oe(K.InvalidOperator)}function qte(e,t,r){if(r==="-")return e.diff(t).as("days");throw new oe(K.InvalidOperator)}function Hte(e,t,r){if(r==="-")return e.diff(t.toDateTimeLuxon(e.zone)).as("days");throw new oe(K.InvalidOperator)}function Zte(e,t,r){if(r==="-")return e.diff(t.toDateTime()).as("days");throw new oe(K.InvalidOperator)}function Yte(e,t,r){throw new oe(K.InvalidOperator)}function Jte(e,t,r){throw new oe(K.InvalidOperator)}function Xte(e,t,r){throw new oe(K.InvalidOperator)}function Qte(e,t,r){throw new oe(K.InvalidOperator)}function Kte(e,t,r){throw new oe(K.InvalidOperator)}function ere(e,t,r){throw new oe(K.InvalidOperator)}function tre(e,t,r){throw new oe(K.InvalidOperator)}function rre(e,t,r){throw new oe(K.InvalidOperator)}function nre(e,t,r){throw new oe(K.InvalidOperator)}var MV=O(()=>{Al();n0();A_();OC();Ed()});function ire(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Cd(e,t,r,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Cd.prototype),i.expected=t,i.found=r,i.location=n,i.name="SyntaxError",i}function FC(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function ore(e,t){var r,n={},i=(t=t!==void 0?t:{}).grammarSource,o={start:JC},s=JC,l="!",a="=",d=">=",h=">",g="<=",b="<>",S="!=",P="||",A="@",F="'",W="N'",z="''",q=".",G="null",Y="true",ie="false",U="in",me="is",Ae="like",Ee="escape",Ne="not",we="and",ce="or",J="between",ee="from",pe="for",de="substring",Se="extract",ye="trim",Fe="position",nt="timestamp",Et="date",Tr="time",fr="leading",mr="trailing",yi="both",Gn="cast",In="as",ze="integer",Md="int",ts="smallint",fo="float",wc="real",La="varchar",Vs="to",Vi="interval",Ad="year",Us="timezone_hour",Gm="timezone_minute",rs="month",ka="day",yc="hour",vc="minute",Pr="second",Id="case",ns="end",Na="when",bc="then",Ld="else",_c=",",xc="(",Sc=")",Ec="`",kd=/^[<-=]/,mo=/^[+\-]/,Nd=/^[*\/]/,Cc=/^[A-Za-z_\x80-\uFFFF]/,zs=/^[A-Za-z0-9_]/,Ui=/^[A-Za-z0-9_.\x80-\uFFFF]/,is=/^["]/,ho=/^[^']/,Tc=/^[0-9]/,Od=/^[eE]/,Pc=/^[ \t\n\r]/,Oa=/^[^`]/,Rd=$e("!",!1),Dd=$e("=",!1),jm=$e(">=",!1),H=$e(">",!1),os=$e("<=",!1),Fd=$e("<>",!1),$d=Bi([["<","="]],!1,!1),Mc=$e("!=",!1),mn=Bi(["+","-"],!1,!1),zi=$e("||",!1),ii=Bi(["*","/"],!1,!1),Vd=Bi([["A","Z"],["a","z"],"_",["\x80","\uFFFF"]],!1,!1),Ud=Bi([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),Ra=Bi([["A","Z"],["a","z"],["0","9"],"_",".",["\x80","\uFFFF"]],!1,!1),vi=Bi(['"'],!1,!1),Ze=$e("@",!1),Da=$e("'",!1),Ac=$e("N'",!1),Ic=$e("''",!1),Lc=Bi(["'"],!0,!1),ss=$e(".",!1),Fa=Bi([["0","9"]],!1,!1),zd=Bi(["e","E"],!1,!1),Wd=$e("NULL",!0),Bd=$e("TRUE",!0),kc=$e("FALSE",!0),Gd=$e("IN",!0),Nc=$e("IS",!0),Oc=$e("LIKE",!0),Ws=$e("ESCAPE",!0),Rc=$e("NOT",!0),$a=$e("AND",!0),Dc=$e("OR",!0),jd=$e("BETWEEN",!0),Va=$e("FROM",!0),qd=$e("FOR",!0),Ua=$e("SUBSTRING",!0),Hd=$e("EXTRACT",!0),Zd=$e("TRIM",!0),Yd=$e("POSITION",!0),Jd=$e("TIMESTAMP",!0),Xd=$e("DATE",!0),Fc=$e("TIME",!0),Bs=$e("LEADING",!0),go=$e("TRAILING",!0),za=$e("BOTH",!0),Gs=$e("CAST",!0),bi=$e("AS",!0),as=$e("INTEGER",!0),Qd=$e("INT",!0),$c=$e("SMALLINT",!0),Vc=$e("FLOAT",!0),Wa=$e("REAL",!0),Kd=$e("VARCHAR",!0),ep=$e("TO",!0),Uc=$e("INTERVAL",!0),tp=$e("YEAR",!0),rp=$e("TIMEZONE_HOUR",!0),zc=$e("TIMEZONE_MINUTE",!0),Wc=$e("MONTH",!0),np=$e("DAY",!0),Ba=$e("HOUR",!0),ip=$e("MINUTE",!0),Bc=$e("SECOND",!0),op=$e("CASE",!0),js=$e("END",!0),sp=$e("WHEN",!0),Gc=$e("THEN",!0),jc=$e("ELSE",!0),ap=$e(",",!1),qc=$e("(",!1),Hc=$e(")",!1),lp=Bi([" "," ",`
34
- `,"\r"],!1,!1),wo=$e("`",!1),ls=Bi(["`"],!0,!1),cp=function(u){return u},Ga=function(u){return Si(Me(),...u)},ja=function(u,y,E){return{op:y,expr:E,location:Me()}},up=function(u,y){return Ym(u,y)},qs=function(u,y,E){return{op:y,expr:E,location:Me()}},Zc=function(u,y){return Ym(u,y)},Yc=function(u){return xz("NOT",u,Me())},qa=function(u,y){return y==""||y==null||y==null?u:y.type=="arithmetic"?Ym(u,y.tail):LT(y.op,u,y.right,y.escape,Me())},Jc=function(u,y){return{op:u,expr:y,location:Me()}},dp=function(u){return{type:"arithmetic",tail:u}},_i=function(u,y){return{op:u+"NOT",right:y}},pp=function(u,y){return{op:u,right:y}},fp=function(u,y,E){return Si(Me(),y,E)},mp=function(u,y){return{op:"NOT"+u,right:y}},Xc=function(u,y,E){return Si(Me(),y,E)},Qc=function(u,y){return{op:u,right:y}},Mr=function(u){return u[0]+" "+u[2]},hp=function(u){return u[0]+" "+u[2]},gp=function(u,y,E){return{op:u,right:y,escape:E.value}},wp=function(u,y){return{op:u,right:y,escape:""}},yp=function(u,y){return{op:u,right:y}},vp=function(u,y){return{op:u,right:y}},Kc=function(u,y,E){return{op:y,expr:E,location:Me()}},bp=function(u,y){return Ym(u,y)},eu=function(u,y,E){return{op:y,expr:E,location:Me()}},tu=function(u,y){return Ym(u,y)},Hs=function(u){return u.paren=!0,u},Wi=function(u){return/^CURRENT_DATE$/i.test(u)?{type:"current-time",location:Me(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(u)?{type:"current-time",location:Me(),mode:"timestamp"}:/^CURRENT_TIME$/i.test(u)?{type:"current-time",location:Me(),mode:"time"}:/^CURRENT_USER$/i.test(u)?{type:"current-user",location:Me()}:{type:"column-reference",location:Me(),table:"",column:u}},Zs=function(u){return{type:"column-reference",location:Me(),table:"",column:u,delimited:!0}},_p=function(u){return u},ru=function(u,y){return u+y.join("")},nu=function(u,y){return u+y.join("")},iu=function(u){return u},cs=function(u){return u.join("")},xp=function(){return'"'},Sp=function(u){return{type:"parameter",location:Me(),value:u[1]}},Ep=function(u,y){return Si(Me(),u,y)},Cp=function(u,y){return Si(Me(),u,y)},Tp=function(u){return{type:"function",location:Me(),name:"extract",args:u}},Pp=function(u,y,E){return Si(Me(),u,y,...E?[E]:[])},Ha=function(u,y,E){return Si(Me(),u,y,E)},Mp=function(u){return{type:"function",location:Me(),name:"substring",args:u}},Ys=function(u,y){return Si(Me(),u,y)},Ap=function(u,y){return Si(Me(),u,y)},Za=function(u){return{type:"function",location:Me(),name:"cast",args:u}},Ip=function(){return{type:"data-type",location:Me(),value:{type:"integer"}}},Lp=function(){return{type:"data-type",location:Me(),value:{type:"smallint"}}},ou=function(){return{type:"data-type",location:Me(),value:{type:"float"}}},us=function(){return{type:"data-type",location:Me(),value:{type:"real"}}},xi=function(){return{type:"data-type",location:Me(),value:{type:"date"}}},su=function(){return{type:"data-type",location:Me(),value:{type:"timestamp"}}},Ya=function(){return{type:"data-type",location:Me(),value:{type:"time"}}},kp=function(u){return{type:"data-type",location:Me(),value:{type:"varchar",size:parseInt(u)}}},Np=function(u,y,E){return Si(Me(),u,y,E)},Op=function(u,y){return Si(Me(),u,y)},Rp=function(u){return{type:"function",location:Me(),name:"trim",args:u}},Dp=function(u){return{type:"string",location:Me(),value:u??"BOTH"}},Fp=function(u,y){return Si(Me(),u,y)},$p=function(u,y){return Si(Me(),u,y)},Vp=function(u){return{type:"function",location:Me(),name:"position",args:u}},Up=function(u,y){return{type:"function",location:Me(),name:u,args:y}},zp=function(u){return{type:"string",location:Me(),value:u}},f=function(u){return u.type==="string"&&Sz(u.value),{type:"timestamp",location:Me(),value:u.value}},p=function(u){return u.type==="string"&&Ez(u.value),{type:"time",location:Me(),value:u.value}},w=function(u,y,E){return{type:"interval",location:Me(),value:y,qualifier:E,op:u}},_=function(u,y){return{type:"interval",location:Me(),value:u,qualifier:y,op:""}},C=function(u,y){return{type:"interval-qualifier",location:Me(),start:u,end:y}},T=function(u,y){return{type:"interval-period",location:Me(),period:u.value,precision:y,secondary:null}},I=function(u){return{type:"interval-period",location:Me(),period:u.value,precision:null,secondary:null}},N=function(u){return{type:"interval-period",location:Me(),period:u.value,precision:null,secondary:null}},D=function(u,y){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:y}},B=function(u){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:null}},$=function(){return{type:"interval-period",location:Me(),period:"second",precision:null,secondary:null}},Q=function(u,y){return{type:"interval-period",location:Me(),period:u.value,precision:y,secondary:null}},ae=function(u){return{type:"interval-period",location:Me(),period:u.value,precision:null,secondary:null}},ge=function(u,y){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:y}},he=function(u){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:null}},ve=function(){return{type:"interval-period",location:Me(),period:"second",precision:null,secondary:null}},Oe=function(){return{type:"string",location:Me(),value:"day"}},Ie=function(){return{type:"string",location:Me(),value:"hour"}},Ue=function(){return{type:"string",location:Me(),value:"minute"}},et=function(){return{type:"string",location:Me(),value:"month"}},st=function(){return{type:"string",location:Me(),value:"year"}},qe=function(u){return parseFloat(u)},rt=function(u){return parseFloat(u)},Ar=function(u){return u.type==="string"&&Cz(u.value),{type:"date",location:Me(),value:u.value}},Lt=function(){return{type:"null",location:Me(),value:null}},Kr=function(){return{type:"boolean",location:Me(),value:!0}},Ln=function(){return{type:"boolean",location:Me(),value:!1}},jn=function(){return"'"},Js=function(u){return{type:"string",location:Me(),value:u.join("")}},mt=function(u,y){return{type:"case-expression",location:Me(),format:"simple",operand:u,clauses:y,else:null,elseLocation:null}},Ja=function(u,y,E){return{type:"case-expression",location:Me(),format:"simple",operand:u,clauses:y,else:E.value,elseLocation:E.location}},hr=function(u){return{type:"case-expression",location:Me(),format:"searched",clauses:u,else:null,elseLocation:null}},Y_=function(u,y){return{type:"case-expression",location:Me(),format:"searched",clauses:u,else:y.value,elseLocation:y.location}},J_=function(u,y){return{type:"when-clause",location:Me(),operand:u,value:y}},X_=function(u,y){return{type:"when-clause",location:Me(),operand:u,value:y}},Q_=function(u){return{type:"else-clause",location:Me(),value:u}},K_=function(u){return{type:"number",location:Me(),value:u}},Xe=function(u,y,E){return parseFloat(u+y+E)},qm=function(u,y){return parseFloat(u+y)},oi=function(u,y){return parseFloat(u+y)},e2=function(u){return parseFloat(u)},t2=function(u,y){return u[0]+y},r2=function(u){return"."+(u??"")},n2=function(u,y){return u+y},rr=function(u){return u.join("")},Ur=function(u,y){return"e"+(y===null?"":y)},zr=function(){return"IN"},yo=function(){return"IS"},en=function(){return"LIKE"},tn=function(){return"ESCAPE"},le=function(){return"NOT"},Wr=function(){return"AND"},hn=function(){return"OR"},Ir=function(){return"BETWEEN"},Ct=function(){return"FROM"},Jt=function(){return"FOR"},qn=function(){return"SUBSTRING"},kn=function(){return"EXTRACT"},si=function(){return"TRIM"},Sr=function(){return"POSITION"},Br=function(){return"TIMESTAMP"},gn=function(){return"DATE"},Gr=function(){return"TIME"},kt=function(){return"LEADING"},nr=function(){return"TRAILING"},wn=function(){return"BOTH"},Ye=function(){return"CAST"},rn=function(){return"AS"},bt=function(){return"INTEGER"},Lr=function(){return"INT"},vo=function(){return"SMALLINT"},m=function(){return"FLOAT"},k=function(){return"REAL"},Z=function(){return"VARCHAR"},se=function(){return"TO"},ue=function(){return"INTERVAL"},Pe=function(){return"YEAR"},We=function(){return"TIMEZONE_HOUR"},De=function(){return"TIMEZONE_MINUTE"},ct=function(){return"MONTH"},Nn=function(){return"DAY"},m0=function(){return"HOUR"},h0=function(){return"MINUTE"},g0=function(){return"SECOND"},w0=function(){return"CASE"},i2=function(){return"END"},y0=function(){return"WHEN"},cU=function(){return"THEN"},uU=function(){return"ELSE"},dU=function(u){return u},pU=function(u){return u.join("")},v=0|t.peg$currPos,te=v,Wp=[{line:1,column:1}],bo=v,v0=t.peg$maxFailExpected||[],X=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');s=o[t.startRule]}function Me(){return b0(te,v)}function o2(u,y){throw mU(u,y=y!==void 0?y:b0(te,v))}function $e(u,y){return{type:"literal",text:u,ignoreCase:y}}function Bi(u,y,E){return{type:"class",parts:u,inverted:y,ignoreCase:E}}function fU(){return{type:"end"}}function YC(u){var y,E=Wp[u];if(E)return E;if(u>=Wp.length)y=Wp.length-1;else for(y=u;!Wp[--y];);for(E={line:(E=Wp[y]).line,column:E.column};y<u;)e.charCodeAt(y)===10?(E.line++,E.column=1):E.column++,y++;return Wp[u]=E,E}function b0(u,y,E){var L=YC(u),be=YC(y);return{source:i,start:{offset:u,line:L.line,column:L.column},end:{offset:y,line:be.line,column:be.column}}}function Te(u){v<bo||(v>bo&&(bo=v,v0=[]),v0.push(u))}function mU(u,y){return new Cd(u,null,null,y)}function hU(u,y,E){return new Cd(Cd.buildMessage(u,y),u,y,E)}function JC(){var u,y;return u=v,ne(),(y=Bt())!==n?(ne(),te=u,u=cp(y)):(v=u,u=n),u}function XC(){var u,y,E,L,be,ht;if(u=v,jr()!==n){for(ne(),y=[],E=Bt();E!==n;)y.push(E),E=v,L=v,be=ne(),(ht=Xa())!==n?L=be=[be,ht,ne()]:(v=L,L=n),L!==n&&(L=Bt())===n?(v=E,E=n):E=L;E=ne(),(L=qr())!==n?(te=u,u=Ga(y)):(v=u,u=n)}else v=u,u=n;return u}function Bt(){var u,y,E,L,be,ht;if(u=v,(y=s2())!==n){for(E=[],L=v,ne(),(be=gT())!==n?(ne(),(ht=s2())!==n?(te=L,L=ja(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=gT())!==n?(ne(),(ht=s2())!==n?(te=L,L=ja(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=up(y,E)}else v=u,u=n;return u}function s2(){var u,y,E,L,be,ht;if(u=v,(y=_0())!==n){for(E=[],L=v,ne(),(be=M0())!==n?(ne(),(ht=_0())!==n?(te=L,L=qs(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=M0())!==n?(ne(),(ht=_0())!==n?(te=L,L=qs(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=Zc(y,E)}else v=u,u=n;return u}function _0(){var u,y,E,L,be;return u=v,(y=Zm())===n&&(y=v,e.charCodeAt(v)===33?(E=l,v++):(E=n,X===0&&Te(Rd)),E!==n?(L=v,X++,e.charCodeAt(v)===61?(be=a,v++):(be=n,X===0&&Te(Dd)),X--,be===n?L=void 0:(v=L,L=n),L!==n?y=E=[E,L]:(v=y,y=n)):(v=y,y=n)),y!==n?(E=ne(),(L=_0())!==n?(te=u,u=Yc(L)):(v=u,u=n)):(v=u,u=n),u===n&&(u=gU()),u}function gU(){var u,y,E,L;return u=v,(y=Xs())!==n?(E=v,ne(),(L=wU())!==n?E=L:(v=E,E=n),E===n&&(E=null),te=u,u=qa(y,E)):(v=u,u=n),u}function wU(){var u;return(u=yU())===n&&(u=xU())===n&&(u=bU())===n&&(u=vU())===n&&(u=_U()),u}function yU(){var u,y,E,L,be;if(u=v,y=[],E=v,ne(),(L=QC())!==n?(ne(),(be=Xs())!==n?(te=E,E=Jc(L,be)):(v=E,E=n)):(v=E,E=n),E!==n)for(;E!==n;)y.push(E),E=v,ne(),(L=QC())!==n?(ne(),(be=Xs())!==n?(te=E,E=Jc(L,be)):(v=E,E=n)):(v=E,E=n);else y=n;return y!==n&&(te=u,y=dp(y)),u=y}function QC(){var u;return e.substr(v,2)===d?(u=d,v+=2):(u=n,X===0&&Te(jm)),u===n&&(e.charCodeAt(v)===62?(u=h,v++):(u=n,X===0&&Te(H)),u===n&&(e.substr(v,2)===g?(u=g,v+=2):(u=n,X===0&&Te(os)),u===n&&(e.substr(v,2)===b?(u=b,v+=2):(u=n,X===0&&Te(Fd)),u===n&&(u=e.charAt(v),kd.test(u)?v++:(u=n,X===0&&Te($d)),u===n&&(e.substr(v,2)===S?(u=S,v+=2):(u=n,X===0&&Te(Mc))))))),u}function vU(){var u,y,E,L;return u=v,(y=mT())!==n?(ne(),(E=Zm())!==n?(ne(),(L=Xs())!==n?(te=u,u=_i(y,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=mT())!==n?(ne(),(E=Xs())!==n?(te=u,u=pp(y,E)):(v=u,u=n)):(v=u,u=n)),u}function bU(){var u,y,E,L,be,ht,uu,kT;return u=v,(y=Zm())!==n?(ne(),(E=wT())!==n?(L=ne(),be=v,(ht=Xs())!==n?(ne(),(uu=M0())!==n?(ne(),(kT=Xs())!==n?(te=be,be=fp(E,ht,kT)):(v=be,be=n)):(v=be,be=n)):(v=be,be=n),be!==n?(te=u,u=mp(E,be)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=wT())!==n?(ne(),E=v,(L=Xs())!==n?(be=ne(),(ht=M0())!==n?(ne(),(uu=Xs())!==n?(te=E,E=Xc(y,L,uu)):(v=E,E=n)):(v=E,E=n)):(v=E,E=n),E!==n?(te=u,u=Qc(y,E)):(v=u,u=n)):(v=u,u=n)),u}function KC(){var u,y,E,L,be;return u=v,y=v,(E=Zm())!==n?(L=ne(),(be=hT())!==n?y=E=[E,L,be]:(v=y,y=n)):(v=y,y=n),y!==n&&(te=u,y=Mr(y)),(u=y)===n&&(u=hT()),u}function eT(){var u,y,E,L,be;return u=v,y=v,(E=Zm())!==n?(L=ne(),(be=p2())!==n?y=E=[E,L,be]:(v=y,y=n)):(v=y,y=n),y!==n&&(te=u,y=hp(y)),(u=y)===n&&(u=p2()),u}function _U(){var u,y,E,L;return u=v,(y=KC())!==n?(ne(),(E=au())!==n?(ne(),tz()!==n?(ne(),(L=d2())!==n?(te=u,u=gp(y,E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=KC())!==n?(ne(),(E=au())!==n?(te=u,u=wp(y,E)):(v=u,u=n)):(v=u,u=n)),u}function xU(){var u,y,E;return u=v,(y=eT())!==n?(ne(),(E=XC())!==n?(te=u,u=yp(y,E)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=eT())!==n?(ne(),(E=u2())!==n?(te=u,u=vp(y,E)):(v=u,u=n)):(v=u,u=n)),u}function Xs(){var u,y,E,L,be,ht;if(u=v,(y=a2())!==n){for(E=[],L=v,ne(),(be=tT())!==n?(ne(),(ht=a2())!==n?(te=L,L=Kc(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=tT())!==n?(ne(),(ht=a2())!==n?(te=L,L=Kc(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=bp(y,E)}else v=u,u=n;return u}function tT(){var u;return u=e.charAt(v),mo.test(u)?v++:(u=n,X===0&&Te(mn)),u===n&&(e.substr(v,2)===P?(u=P,v+=2):(u=n,X===0&&Te(zi))),u}function a2(){var u,y,E,L,be,ht;if(u=v,(y=l2())!==n){for(E=[],L=v,ne(),(be=rT())!==n?(ne(),(ht=l2())!==n?(te=L,L=eu(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=rT())!==n?(ne(),(ht=l2())!==n?(te=L,L=eu(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=tu(y,E)}else v=u,u=n;return u}function rT(){var u;return u=e.charAt(v),Nd.test(u)?v++:(u=n,X===0&&Te(ii)),u}function l2(){var u,y;return(u=DU())===n&&(u=IU())===n&&(u=LU())===n&&(u=NU())===n&&(u=OU())===n&&(u=kU())===n&&(u=RU())===n&&(u=qU())===n&&(u=SU())===n&&(u=u2())===n&&(u=v,jr()!==n?(ne(),(y=Bt())!==n?(ne(),qr()!==n?(te=u,u=Hs(y)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)),u}function SU(){var u,y;return u=v,(y=EU())!==n&&(te=u,y=Wi(y)),(u=y)===n&&(u=v,(y=TU())!==n&&(te=u,y=Zs(y)),u=y),u}function EU(){var u,y;return u=v,(y=CU())!==n&&(te=u,y=_p(y)),u=y}function CU(){var u,y,E,L;if(u=v,(y=c2())!==n){for(E=[],L=iT();L!==n;)E.push(L),L=iT();te=u,u=ru(y,E)}else v=u,u=n;return u}function nT(){var u,y,E,L;if(u=v,(y=c2())!==n){for(E=[],L=Ke();L!==n;)E.push(L),L=Ke();te=u,u=nu(y,E)}else v=u,u=n;return u}function c2(){var u;return u=e.charAt(v),Cc.test(u)?v++:(u=n,X===0&&Te(Vd)),u}function Ke(){var u;return u=e.charAt(v),zs.test(u)?v++:(u=n,X===0&&Te(Ud)),u}function iT(){var u;return u=e.charAt(v),Ui.test(u)?v++:(u=n,X===0&&Te(Ra)),u}function TU(){var u,y;return u=v,x0()!==n?(y=PU(),x0()!==n?(te=u,u=iu(y)):(v=u,u=n)):(v=u,u=n),u}function PU(){var u,y,E;for(u=v,y=[],E=oT();E!==n;)y.push(E),E=oT();return te=u,u=y=cs(y)}function oT(){var u;return(u=AU())===n&&(u=MU()),u}function MU(){var u;return u=v,x0()!==n&&x0()!==n?(te=u,u=xp()):(v=u,u=n),u}function AU(){var u;return u=e.charAt(v),Ui.test(u)?v++:(u=n,X===0&&Te(Ra)),u}function x0(){var u;return u=e.charAt(v),is.test(u)?v++:(u=n,X===0&&Te(vi)),u}function u2(){var u,y,E,L;return u=v,y=v,e.charCodeAt(v)===64?(E=A,v++):(E=n,X===0&&Te(Ze)),E!==n&&(L=nT())!==n?y=E=[E,L]:(v=y,y=n),y!==n&&(te=u,y=Sp(y)),u=y}function IU(){var u,y,E,L;return u=v,yT()!==n?(ne(),y=v,jr()!==n?(ne(),(E=lT())!==n?(ne(),f2()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Ep(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=lT())!==n?(ne(),Xa()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Cp(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Tp(y)):(v=u,u=n)):(v=u,u=n),u}function LU(){var u,y,E,L,be,ht,uu;return u=v,nz()!==n?(ne(),y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),f2()!==n?(ne(),(L=Bt())!==n?(ne(),be=v,rz()!==n?(ht=ne(),(uu=Bt())!==n?(ne(),be=uu):(v=be,be=n)):(v=be,be=n),be===n&&(be=null),qr()!==n?(te=y,y=Pp(E,L,be)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),Xa()!==n?(ne(),(L=Bt())!==n?(ne(),(be=Xa())!==n?(ne(),(ht=Bt())!==n&&(uu=qr())!==n?(te=y,y=Ha(E,L,ht)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Mp(y)):(v=u,u=n)):(v=u,u=n),u}function kU(){var u,y,E,L;return u=v,cz()!==n?(ne(),y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),uz()!==n?(ne(),(L=sT())!==n?(ne(),qr()!==n?(te=y,y=Ys(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),Xa()!==n?(ne(),(L=sT())!==n?(ne(),qr()!==n?(te=y,y=Ap(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Za(y)):(v=u,u=n)):(v=u,u=n),u}function sT(){var u,y,E;return u=v,(y=dz())===n&&(y=pz()),y!==n&&(te=u,y=Ip()),(u=y)===n&&(u=v,(y=fz())!==n&&(te=u,y=Lp()),(u=y)===n&&(u=v,(y=mz())!==n&&(te=u,y=ou()),(u=y)===n&&(u=v,(y=hz())!==n&&(te=u,y=us()),(u=y)===n&&(u=v,(y=bT())!==n&&(te=u,y=xi()),(u=y)===n&&(u=v,(y=vT())!==n&&(te=u,y=su()),(u=y)===n&&(u=v,(y=_T())!==n&&(te=u,y=Ya()),(u=y)===n&&(u=v,(y=gz())!==n?(ne(),jr()!==n?(ne(),(E=lu())!==n?(ne(),qr()!==n?(te=u,u=kp(E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)))))))),u}function NU(){var u,y,E,L,be;return u=v,iz()!==n?(ne(),y=v,jr()!==n?(ne(),E=aT(),ne(),(L=Bt())!==n?(ne(),f2()!==n?(ne(),(be=Bt())!==n?(ne(),qr()!==n?(te=y,y=Np(E,L,be)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),E=aT(),ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Op(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Rp(y)):(v=u,u=n)):(v=u,u=n),u}function aT(){var u,y;return u=v,(y=sz())===n&&(y=az())===n&&(y=lz()),y===n&&(y=null),te=u,u=y=Dp(y)}function OU(){var u,y,E,L;return u=v,oz()!==n?(ne(),y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),p2()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Fp(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),Xa()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=$p(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Vp(y)):(v=u,u=n)):(v=u,u=n),u}function RU(){var u,y,E,L;return u=v,y=v,X++,E=yT(),X--,E===n?y=void 0:(v=y,y=n),y!==n&&(E=_z())!==n?(ne(),(L=XC())!==n?(te=u,u=Up(E,L)):(v=u,u=n)):(v=u,u=n),u}function lT(){var u,y;return u=v,(y=ST())===n&&(y=ET())===n&&(y=CT())===n&&(y=TT())===n&&(y=PT())===n&&(y=cu())===n&&(y=yz())===n&&(y=vz()),y!==n&&(te=u,y=zp(y)),u=y}function DU(){var u;return(u=d2())===n&&(u=YU())===n&&(u=jU())===n&&(u=GU())===n&&(u=BU())===n&&(u=FU())===n&&(u=VU())===n&&(u=$U()),u}function FU(){var u,y;return u=v,vT()!==n?(ne(),(y=au())!==n?(te=u,u=f(y)):(v=u,u=n)):(v=u,u=n),u}function $U(){var u,y;return u=v,_T()!==n?(ne(),(y=au())!==n?(te=u,u=p(y)):(v=u,u=n)):(v=u,u=n),u}function VU(){var u,y,E,L;return u=v,xT()!==n?(ne(),y=e.charAt(v),mo.test(y)?v++:(y=n,X===0&&Te(mn)),y!==n?(ne(),(E=au())!==n?(ne(),(L=cT())!==n?(te=u,u=w(y,E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,xT()!==n?(ne(),(y=au())!==n?(ne(),(E=cT())!==n?(te=u,u=_(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)),u}function cT(){var u,y,E;return u=v,(y=UU())!==n?(ne(),wz()!==n?(ne(),(E=zU())!==n?(te=u,u=C(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=WU()),u}function UU(){var u,y,E;return u=v,(y=Hm())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),qr()!==n?(te=u,u=T(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=Hm())!==n&&(te=u,y=I(y)),u=y),u}function zU(){var u,y,E,L;return u=v,(y=Hm())!==n&&(te=u,y=N(y)),(u=y)===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),Xa()!==n?(ne(),(L=S0())!==n?(ne(),qr()!==n?(te=u,u=D(E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),qr()!==n?(te=u,u=B(E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n&&(te=u,y=$()),u=y))),u}function WU(){var u,y,E,L;return u=v,(y=Hm())!==n?(ne(),jr()!==n?(ne(),(E=S0())!==n?(ne(),qr()!==n?(te=u,u=Q(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=Hm())!==n&&(te=u,y=ae(y)),(u=y)===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),Xa()!==n?(ne(),(L=S0())!==n?(ne(),qr()!==n?(te=u,u=ge(E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=S0())!==n?(ne(),qr()!==n?(te=u,u=he(E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n&&(te=u,y=ve()),u=y)))),u}function Hm(){var u,y;return u=v,(y=CT())!==n&&(te=u,y=Oe()),(u=y)===n&&(u=v,(y=TT())!==n&&(te=u,y=Ie()),(u=y)===n&&(u=v,(y=PT())!==n&&(te=u,y=Ue()),(u=y)===n&&(u=v,(y=ET())!==n&&(te=u,y=et()),(u=y)===n&&(u=v,(y=ST())!==n&&(te=u,y=st()),u=y)))),u}function S0(){var u,y;return u=v,(y=lu())!==n&&(te=u,y=qe(y)),u=y}function E0(){var u,y;return u=v,(y=lu())!==n&&(te=u,y=rt(y)),u=y}function BU(){var u,y;return u=v,bT()!==n?(ne(),(y=au())!==n?(te=u,u=Ar(y)):(v=u,u=n)):(v=u,u=n),u}function GU(){var u,y;return u=v,(y=QU())!==n&&(te=u,y=Lt()),u=y}function jU(){var u,y;return u=v,(y=KU())!==n&&(te=u,y=Kr()),(u=y)===n&&(u=v,(y=ez())!==n&&(te=u,y=Ln()),u=y),u}function au(){var u;return(u=d2())===n&&(u=u2()),u}function d2(){var u,y,E,L,be;if(u=v,e.charCodeAt(v)===39?(y=F,v++):(y=n,X===0&&Te(Da)),y===n&&(e.substr(v,2)===W?(y=W,v+=2):(y=n,X===0&&Te(Ac))),y!==n){for(E=[],L=v,e.substr(v,2)===z?(be=z,v+=2):(be=n,X===0&&Te(Ic)),be!==n&&(te=L,be=jn()),(L=be)===n&&(L=e.charAt(v),ho.test(L)?v++:(L=n,X===0&&Te(Lc)));L!==n;)E.push(L),L=v,e.substr(v,2)===z?(be=z,v+=2):(be=n,X===0&&Te(Ic)),be!==n&&(te=L,be=jn()),(L=be)===n&&(L=e.charAt(v),ho.test(L)?v++:(L=n,X===0&&Te(Lc)));e.charCodeAt(v)===39?(L=F,v++):(L=n,X===0&&Te(Da)),L!==n?(te=u,u=Js(E)):(v=u,u=n)}else v=u,u=n;return u}function qU(){var u;return(u=HU())===n&&(u=ZU()),u}function HU(){var u,y,E,L,be;if(u=v,A0()!==n)if(ne(),(y=Bt())!==n){for(ne(),E=[],L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);L!==n;)E.push(L),L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);(L=I0())!==n?(te=u,u=mt(y,E)):(v=u,u=n)}else v=u,u=n;else v=u,u=n;if(u===n)if(u=v,A0()!==n)if(ne(),(y=Bt())!==n){for(ne(),E=[],L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);L!==n;)E.push(L),L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);(L=uT())!==n?(be=ne(),I0()!==n?(te=u,u=Ja(y,E,L)):(v=u,u=n)):(v=u,u=n)}else v=u,u=n;else v=u,u=n;return u}function ZU(){var u,y,E,L;if(u=v,A0()!==n){for(ne(),y=[],E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);E!==n;)y.push(E),E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);(E=I0())!==n?(te=u,u=hr(y)):(v=u,u=n)}else v=u,u=n;if(u===n)if(u=v,A0()!==n){for(ne(),y=[],E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);E!==n;)y.push(E),E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);(E=uT())!==n?(L=ne(),I0()!==n?(te=u,u=Y_(y,E)):(v=u,u=n)):(v=u,u=n)}else v=u,u=n;return u}function C0(){var u,y,E;return u=v,MT()!==n?(ne(),(y=Bt())!==n?(ne(),AT()!==n?(ne(),(E=Bt())!==n?(te=u,u=J_(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u}function T0(){var u,y,E;return u=v,MT()!==n?(ne(),(y=Bt())!==n?(ne(),AT()!==n?(ne(),(E=Bt())!==n?(te=u,u=X_(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u}function uT(){var u,y;return u=v,bz()!==n?(ne(),(y=Bt())!==n?(te=u,u=Q_(y)):(v=u,u=n)):(v=u,u=n),u}function YU(){var u,y,E,L;return u=v,(y=JU())!==n?(E=v,X++,L=c2(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=K_(y)):(v=u,u=n)):(v=u,u=n),u}function JU(){var u,y,E,L;return u=v,(y=P0())!==n&&(E=dT())!==n&&(L=pT())!==n?(te=u,u=Xe(y,E,L)):(v=u,u=n),u===n&&(u=v,(y=P0())!==n&&(E=dT())!==n?(te=u,u=qm(y,E)):(v=u,u=n),u===n&&(u=v,(y=P0())!==n&&(E=pT())!==n?(te=u,u=oi(y,E)):(v=u,u=n),u===n&&(u=v,(y=P0())!==n&&(te=u,y=e2(y)),u=y))),u}function P0(){var u,y,E;return(u=lu())===n&&(u=v,y=e.charAt(v),mo.test(y)?v++:(y=n,X===0&&Te(mn)),y!==n&&(E=lu())!==n?(te=u,u=t2(y,E)):(v=u,u=n)),u}function dT(){var u,y,E;return u=v,e.charCodeAt(v)===46?(y=q,v++):(y=n,X===0&&Te(ss)),y!==n?((E=lu())===n&&(E=null),te=u,u=r2(E)):(v=u,u=n),u}function pT(){var u,y,E;return u=v,(y=XU())!==n&&(E=lu())!==n?(te=u,u=n2(y,E)):(v=u,u=n),u}function lu(){var u,y,E;if(u=v,y=[],(E=fT())!==n)for(;E!==n;)y.push(E),E=fT();else y=n;return y!==n&&(te=u,y=rr(y)),u=y}function fT(){var u;return u=e.charAt(v),Tc.test(u)?v++:(u=n,X===0&&Te(Fa)),u}function XU(){var u,y,E;return u=v,y=e.charAt(v),Od.test(y)?v++:(y=n,X===0&&Te(zd)),y!==n?(E=e.charAt(v),mo.test(E)?v++:(E=n,X===0&&Te(mn)),E===n&&(E=null),te=u,u=Ur(y,E)):(v=u,u=n),u}function QU(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===G?v+=4:(y=n,X===0&&Te(Wd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?u=y=[y,E]:(v=u,u=n)):(v=u,u=n),u}function KU(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Y?v+=4:(y=n,X===0&&Te(Bd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?u=y=[y,E]:(v=u,u=n)):(v=u,u=n),u}function ez(){var u,y,E,L;return u=v,(y=e.substr(v,5)).toLowerCase()===ie?v+=5:(y=n,X===0&&Te(kc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?u=y=[y,E]:(v=u,u=n)):(v=u,u=n),u}function p2(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===U?v+=2:(y=n,X===0&&Te(Gd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=zr()):(v=u,u=n)):(v=u,u=n),u}function mT(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===me?v+=2:(y=n,X===0&&Te(Nc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=yo()):(v=u,u=n)):(v=u,u=n),u}function hT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Ae?v+=4:(y=n,X===0&&Te(Oc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=en()):(v=u,u=n)):(v=u,u=n),u}function tz(){var u,y,E,L;return u=v,(y=e.substr(v,6)).toLowerCase()===Ee?v+=6:(y=n,X===0&&Te(Ws)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=tn()):(v=u,u=n)):(v=u,u=n),u}function Zm(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===Ne?v+=3:(y=n,X===0&&Te(Rc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=le()):(v=u,u=n)):(v=u,u=n),u}function M0(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===we?v+=3:(y=n,X===0&&Te($a)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Wr()):(v=u,u=n)):(v=u,u=n),u}function gT(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===ce?v+=2:(y=n,X===0&&Te(Dc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=hn()):(v=u,u=n)):(v=u,u=n),u}function wT(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===J?v+=7:(y=n,X===0&&Te(jd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Ir()):(v=u,u=n)):(v=u,u=n),u}function f2(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===ee?v+=4:(y=n,X===0&&Te(Va)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Ct()):(v=u,u=n)):(v=u,u=n),u}function rz(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===pe?v+=3:(y=n,X===0&&Te(qd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Jt()):(v=u,u=n)):(v=u,u=n),u}function nz(){var u,y,E,L;return u=v,(y=e.substr(v,9)).toLowerCase()===de?v+=9:(y=n,X===0&&Te(Ua)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=qn()):(v=u,u=n)):(v=u,u=n),u}function yT(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===Se?v+=7:(y=n,X===0&&Te(Hd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=kn()):(v=u,u=n)):(v=u,u=n),u}function iz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===ye?v+=4:(y=n,X===0&&Te(Zd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=si()):(v=u,u=n)):(v=u,u=n),u}function oz(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===Fe?v+=8:(y=n,X===0&&Te(Yd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Sr()):(v=u,u=n)):(v=u,u=n),u}function vT(){var u,y,E,L;return u=v,(y=e.substr(v,9)).toLowerCase()===nt?v+=9:(y=n,X===0&&Te(Jd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Br()):(v=u,u=n)):(v=u,u=n),u}function bT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Et?v+=4:(y=n,X===0&&Te(Xd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=gn()):(v=u,u=n)):(v=u,u=n),u}function _T(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Tr?v+=4:(y=n,X===0&&Te(Fc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Gr()):(v=u,u=n)):(v=u,u=n),u}function sz(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===fr?v+=7:(y=n,X===0&&Te(Bs)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=kt()):(v=u,u=n)):(v=u,u=n),u}function az(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===mr?v+=8:(y=n,X===0&&Te(go)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=nr()):(v=u,u=n)):(v=u,u=n),u}function lz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===yi?v+=4:(y=n,X===0&&Te(za)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=wn()):(v=u,u=n)):(v=u,u=n),u}function cz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Gn?v+=4:(y=n,X===0&&Te(Gs)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Ye()):(v=u,u=n)):(v=u,u=n),u}function uz(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===In?v+=2:(y=n,X===0&&Te(bi)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=rn()):(v=u,u=n)):(v=u,u=n),u}function dz(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===ze?v+=7:(y=n,X===0&&Te(as)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=bt()):(v=u,u=n)):(v=u,u=n),u}function pz(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===Md?v+=3:(y=n,X===0&&Te(Qd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Lr()):(v=u,u=n)):(v=u,u=n),u}function fz(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===ts?v+=8:(y=n,X===0&&Te($c)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=vo()):(v=u,u=n)):(v=u,u=n),u}function mz(){var u,y,E,L;return u=v,(y=e.substr(v,5)).toLowerCase()===fo?v+=5:(y=n,X===0&&Te(Vc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=m()):(v=u,u=n)):(v=u,u=n),u}function hz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===wc?v+=4:(y=n,X===0&&Te(Wa)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=k()):(v=u,u=n)):(v=u,u=n),u}function gz(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===La?v+=7:(y=n,X===0&&Te(Kd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Z()):(v=u,u=n)):(v=u,u=n),u}function wz(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===Vs?v+=2:(y=n,X===0&&Te(ep)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=se()):(v=u,u=n)):(v=u,u=n),u}function xT(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===Vi?v+=8:(y=n,X===0&&Te(Uc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=ue()):(v=u,u=n)):(v=u,u=n),u}function ST(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Ad?v+=4:(y=n,X===0&&Te(tp)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Pe()):(v=u,u=n)):(v=u,u=n),u}function yz(){var u,y,E,L;return u=v,(y=e.substr(v,13)).toLowerCase()===Us?v+=13:(y=n,X===0&&Te(rp)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=We()):(v=u,u=n)):(v=u,u=n),u}function vz(){var u,y,E,L;return u=v,(y=e.substr(v,15)).toLowerCase()===Gm?v+=15:(y=n,X===0&&Te(zc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=De()):(v=u,u=n)):(v=u,u=n),u}function ET(){var u,y,E,L;return u=v,(y=e.substr(v,5)).toLowerCase()===rs?v+=5:(y=n,X===0&&Te(Wc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=ct()):(v=u,u=n)):(v=u,u=n),u}function CT(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===ka?v+=3:(y=n,X===0&&Te(np)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Nn()):(v=u,u=n)):(v=u,u=n),u}function TT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===yc?v+=4:(y=n,X===0&&Te(Ba)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=m0()):(v=u,u=n)):(v=u,u=n),u}function PT(){var u,y,E,L;return u=v,(y=e.substr(v,6)).toLowerCase()===vc?v+=6:(y=n,X===0&&Te(ip)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=h0()):(v=u,u=n)):(v=u,u=n),u}function cu(){var u,y,E,L;return u=v,(y=e.substr(v,6)).toLowerCase()===Pr?v+=6:(y=n,X===0&&Te(Bc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=g0()):(v=u,u=n)):(v=u,u=n),u}function A0(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Id?v+=4:(y=n,X===0&&Te(op)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=w0()):(v=u,u=n)):(v=u,u=n),u}function I0(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===ns?v+=3:(y=n,X===0&&Te(js)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=i2()):(v=u,u=n)):(v=u,u=n),u}function MT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Na?v+=4:(y=n,X===0&&Te(sp)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=y0()):(v=u,u=n)):(v=u,u=n),u}function AT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===bc?v+=4:(y=n,X===0&&Te(Gc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=cU()):(v=u,u=n)):(v=u,u=n),u}function bz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Ld?v+=4:(y=n,X===0&&Te(jc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=uU()):(v=u,u=n)):(v=u,u=n),u}function Xa(){var u;return e.charCodeAt(v)===44?(u=_c,v++):(u=n,X===0&&Te(ap)),u}function jr(){var u;return e.charCodeAt(v)===40?(u=xc,v++):(u=n,X===0&&Te(qc)),u}function qr(){var u;return e.charCodeAt(v)===41?(u=Sc,v++):(u=n,X===0&&Te(Hc)),u}function ne(){var u,y;for(u=[],y=IT();y!==n;)u.push(y),y=IT();return u}function IT(){var u;return u=e.charAt(v),Pc.test(u)?v++:(u=n,X===0&&Te(lp)),u}function _z(){var u,y,E,L;if(u=v,(y=nT())!==n&&(te=u,y=dU(y)),(u=y)===n)if(u=v,e.charCodeAt(v)===96?(y=Ec,v++):(y=n,X===0&&Te(wo)),y!==n){if(E=[],L=e.charAt(v),Oa.test(L)?v++:(L=n,X===0&&Te(ls)),L!==n)for(;L!==n;)E.push(L),L=e.charAt(v),Oa.test(L)?v++:(L=n,X===0&&Te(ls));else E=n;E!==n?(e.charCodeAt(v)===96?(L=Ec,v++):(L=n,X===0&&Te(wo)),L!==n?(te=u,u=pU(E)):(v=u,u=n)):(v=u,u=n)}else v=u,u=n;return u}function xz(u,y,E){return{type:"unary-expression",location:E,operator:u,expr:y}}function LT(u,y,E,L,be){let ht={type:"binary-expression",location:be,operator:u,left:y,right:E};return L!==void 0&&(ht.escape=L),ht}function Si(u,...y){return{type:"expression-list",location:u,value:y}}function Ym(u,y){let E=u;for(let{op:L,expr:be,location:{end:ht}}of y)E=LT(L,E,be,void 0,{...E.location,end:ht});return E}function Sz(u){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(u)!==!0&&o2("Timestamp literal is invalid")}function Ez(u){/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(u)!==!0&&o2("Time literal is invalid")}function Cz(u){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(u)!==!0&&o2("Date literal is invalid")}if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:v,peg$FAILED:n,peg$maxFailExpected:v0,peg$maxFailPos:bo};if(r!==n&&v===e.length)return r;throw r!==n&&v<e.length&&Te(fU()),hU(v0,bo<e.length?e.charAt(bo):null,bo<e.length?b0(bo,bo+1):b0(bo,bo))}function Vr(e,t){if(e!=null)switch(t(e),e.type){case"when-clause":Vr(e.operand,t),Vr(e.value,t);break;case"case-expression":for(let r of e.clauses)Vr(r,t);e.format==="simple"&&Vr(e.operand,t),e.else!==null&&Vr(e.else,t);break;case"expression-list":for(let r of e.value)Vr(r,t);break;case"unary-expression":Vr(e.expr,t);break;case"binary-expression":Vr(e.left,t),Vr(e.right,t);break;case"function":Vr(e.args,t);break;case"interval":Vr(e.value,t),Vr(e.qualifier,t);break;case"interval-qualifier":Vr(e.start,t),Vr(e.end,t)}}var B_,AV=O(()=>{ire(Cd,Error),Cd.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){n=e[r].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(n){var l=this.location.end,a=FC("",o.line.toString().length," "),d=n[i.line-1],h=(i.line===l.line?l.column:d.length+1)-i.column||1;t+=`
33
+ ]`},s3e=VK.wkt.toUpperCase(),a3e=UK.wkt.toUpperCase()});function GK(e){return BK.fromJSON(e.toLowerCase())||null}function GF(e,t=$o.metersPerDegree){return jK(e,!0)??t}function jK(e,t=!1){let r=e?.wkid??null,n=e?.wkt2??e?.wkt??null,i=null;if(r){if(O3(r))return Qy.metersPerDegree;if(R3(r))return Ky.metersPerDegree;i=md.values[md[r]],!i&&t&&WK.has(r)&&(i=zK)}else n&&(ZF(n)?i=zF(WF.exec(n),i):HF(n)&&(i=zF(BF.exec(n),i)));return i}function zF(e,t){return e?.[1]?jF(e[1]):t}function jF(e){return parseFloat(e.split(",")[1])}function qF(e){let t=e?.wkid??null,r=e?.wkt2??e?.wkt??null,n=null;if(t)n=md.units[md[t]];else if(r){let i=ZF(r)?WF:HF(r)?BF:null;if(i){let o=i.exec(r);o?.[1]&&(n=HK(o[1]))}}return n!=null?GK(n):null}function HF(e){return/^GEOCCS/i.test(e)}function ZF(e){return/^\s*(?:PROJCS|PROJCRS|PROJECTEDCRS)/i.test(e)}function HK(e){let r=/[\\"']{1}([^\\"']+)/.exec(e)?.[1];if(!r||!md.units.includes(r)){let n=jF(e);r=null;let i=md.values;for(let o=0;o<i.length;++o)if(Math.abs(n-i[o])<qK){r=md.units[o];break}}return r}var zK,WF,md,BF,WK,BK,Ns,uc,UF,w3e,qK,ZK,YK,JK,y3e,v3e,b3e,YF=O(()=>{tt();Ai();VF();ev();Ta();L3();zK=$o.radius*Math.PI/200,WF=/(?:LENGTH)?UNIT\[([^\]]+)]]$/i,md=M,BF=/UNIT\[([^\]]+)]/i,WK=new Set([4305,4807,4810,4811,4812,4816,4819,4821,4901,4902,37225,104025,104026,104139,104140]),BK=Ki()({meter:"meters",foot:"feet",foot_us:"us-feet",foot_clarke:"clarke-feet",yard_clarke:"clarke-yards",link_clarke:"clarke-links",yard_sears:"sears-yards",foot_sears:"sears-feet",chain_sears:"sears-chains",chain_benoit_1895_b:"benoit-1895-b-chains",yard_indian:"indian-yards",yard_indian_1937:"indian-1937-yards",foot_gold_coast:"gold-coast-feet",chain:"chains",chain_sears_1922_truncated:"sears-1922-truncated-chains","50_kilometers":"50-kilometers","150_kilometers":"150-kilometers"}),Ns=e=>e*e,uc=e=>e*e*e,UF={length:{baseUnit:"meters",units:{millimeters:{inBaseUnits:.001},centimeters:{inBaseUnits:.01},decimeters:{inBaseUnits:.1},meters:{inBaseUnits:1},kilometers:{inBaseUnits:1e3},inches:{inBaseUnits:.0254},feet:{inBaseUnits:.3048},yards:{inBaseUnits:.9144},miles:{inBaseUnits:1609.344},"nautical-miles":{inBaseUnits:1852},"us-feet":{inBaseUnits:1200/3937},"clarke-feet":{inBaseUnits:.3047972654},"clarke-yards":{inBaseUnits:.9143917962},"clarke-links":{inBaseUnits:.201166195164},"sears-yards":{inBaseUnits:.9143984146160287},"sears-feet":{inBaseUnits:.3047994715386762},"sears-chains":{inBaseUnits:20.11676512155263},"benoit-1895-b-chains":{inBaseUnits:20.11678249437587},"indian-yards":{inBaseUnits:.9143985307444408},"indian-1937-yards":{inBaseUnits:.91439523},"gold-coast-feet":{inBaseUnits:.3047997101815088},chains:{inBaseUnits:20.1168},"sears-1922-truncated-chains":{inBaseUnits:20.116756},"50-kilometers":{inBaseUnits:5e4},"150-kilometers":{inBaseUnits:15e4}}},area:{baseUnit:"square-meters",units:{"square-millimeters":{inBaseUnits:Ns(.001)},"square-centimeters":{inBaseUnits:Ns(.01)},"square-decimeters":{inBaseUnits:Ns(.1)},"square-meters":{inBaseUnits:1},"square-kilometers":{inBaseUnits:Ns(1e3)},"square-inches":{inBaseUnits:Ns(.0254)},"square-feet":{inBaseUnits:Ns(.3048)},"square-yards":{inBaseUnits:Ns(.9144)},"square-miles":{inBaseUnits:Ns(1609.344)},"square-us-feet":{inBaseUnits:Ns(1200/3937)},acres:{inBaseUnits:.0015625*Ns(1609.344)},ares:{inBaseUnits:100},hectares:{inBaseUnits:1e4}}},volume:{baseUnit:"liters",units:{liters:{inBaseUnits:1},"cubic-millimeters":{inBaseUnits:1e3*uc(.001)},"cubic-centimeters":{inBaseUnits:1e3*uc(.01)},"cubic-decimeters":{inBaseUnits:1e3*uc(.1)},"cubic-meters":{inBaseUnits:1e3},"cubic-kilometers":{inBaseUnits:1e3*uc(1e3)},"cubic-inches":{inBaseUnits:1e3*uc(.0254)},"cubic-feet":{inBaseUnits:1e3*uc(.3048)},"cubic-yards":{inBaseUnits:1e3*uc(.9144)},"cubic-miles":{inBaseUnits:1e3*uc(1609.344)}}},angle:{baseUnit:"radians",units:{radians:{inBaseUnits:1},degrees:{inBaseUnits:Math.PI/180}}}},w3e=(()=>{let e={};for(let t in UF)for(let r in UF[t].units)e[r]=t;return e})();qK=1e-7;ZK={esriAcres:"acres",esriAres:"ares",esriHectares:"hectares",esriSquareCentimeters:"square-centimeters",esriSquareDecimeters:"square-decimeters",esriSquareFeet:"square-feet",esriSquareInches:"square-inches",esriSquareKilometers:"square-kilometers",esriSquareMeters:"square-meters",esriSquareMiles:"square-miles",esriSquareMillimeters:"square-millimeters",esriSquareUsFeet:"square-us-feet",esriSquareYards:"square-yards"},YK={esriCentimeters:"centimeters",esriDecimeters:"decimeters",esriFeet:"feet",esriInches:"inches",esriKilometers:"kilometers",esriMeters:"meters",esriMiles:"miles",esriMillimeters:"millimeters",esriNauticalMiles:"nautical-miles",esriYards:"yards"},JK={esriDUDecimalDegrees:"degrees",esriDURadians:"radians"},y3e=Ki()(ZK),v3e=Ki()(YK),b3e=Ki()(JK)});function pr(e,t,r){let n,i;return t===void 0?(i=e,n=[void 0]):typeof t!="string"?(i=e,n=[void 0],r=t):(i=t,n=Array.isArray(e)?e:[e]),(o,s)=>{let l=o.constructor.prototype;for(let a of n){let d=Ey(o,a,i);d.write&&typeof d.write=="object"||(d.write={}),r&&(d.write.target=r),d.write.writer=l[s]}}}var Pa=O(()=>{yt()});var Os,It,jt,Xo=O(()=>{gt();Dl();Or();ar();YF();Xi();yt();ft();Pa();Ta();It=Os=class extends ut{static fromJSON(e){if(!e)return null;if(e?.wkid===102100)return Os.WebMercator;if(e?.wkid===4326)return Os.WGS84;let t=new Os;return t.read(e),t}constructor(e){super(e),this.latestWkid=null,this.wkid=null,this.wkt=null,this.wkt2=null,this.vcsWkid=null,this.latestVcsWkid=null,this.imageCoordinateSystem=null}normalizeCtorArgs(e){return e&&typeof e=="object"?e:{[typeof e=="string"?"wkt":"wkid"]:e}}get isWGS84(){return Rm(this)}get isWebMercator(){return ks(this)}get isGeographic(){return J1(this)}get isWrappable(){return DF(this)}get metersPerUnit(){return GF(this)}get unit(){return qF(this)||(this.isGeographic?"degrees":null)}writeWkt(e,t){this.wkid||(t.wkt=e)}clone(){if(this===Os.WGS84)return new Os(D3);if(this===Os.WebMercator)return new Os(F3);let e=new Os;return this.wkid!=null?(e.wkid=this.wkid,this.latestWkid!=null&&(e.latestWkid=this.latestWkid),this.vcsWkid!=null&&(e.vcsWkid=this.vcsWkid),this.latestVcsWkid!=null&&(e.latestVcsWkid=this.latestVcsWkid)):(this.wkt!=null&&(e.wkt=this.wkt),this.wkt2!=null&&(e.wkt2=this.wkt2)),this.imageCoordinateSystem&&(e.imageCoordinateSystem=Je(this.imageCoordinateSystem)),e}equals(e){if(e==null)return!1;if(this.imageCoordinateSystem||e.imageCoordinateSystem){if(this.imageCoordinateSystem==null||e.imageCoordinateSystem==null)return!1;let{id:t,referenceServiceName:r}=e.imageCoordinateSystem,{geodataXform:n}=e.imageCoordinateSystem,i=this.imageCoordinateSystem;return t==null||n?JSON.stringify(i)===JSON.stringify(e.imageCoordinateSystem):r?i.id===t&&i.referenceServiceName===r:i.id===t}return cc(this,e)}toJSON(e){return this.write(void 0,e)}};It.GCS_NAD_1927=null,It.WGS84=null,It.WebMercator=null,It.PlateCarree=null,R([V({readOnly:!0})],It.prototype,"isWGS84",null),R([V({readOnly:!0})],It.prototype,"isWebMercator",null),R([V({readOnly:!0})],It.prototype,"isGeographic",null),R([V({readOnly:!0})],It.prototype,"isWrappable",null),R([V({type:di,json:{write:!0}})],It.prototype,"latestWkid",void 0),R([V({readOnly:!0})],It.prototype,"metersPerUnit",null),R([V({readOnly:!0})],It.prototype,"unit",null),R([V({type:di,json:{write:!0,origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkt==null}}}}}}})],It.prototype,"wkid",void 0),R([V({type:String,json:{origins:{"web-scene":{write:{overridePolicy(){return{isRequired:this.wkid==null}}}}}}})],It.prototype,"wkt",void 0),R([pr("wkt"),pr("web-scene","wkt")],It.prototype,"writeWkt",null),R([V({type:String,json:{write:!1}})],It.prototype,"wkt2",void 0),R([V({type:di,json:{write:!0}})],It.prototype,"vcsWkid",void 0),R([V({type:di,json:{write:!0}})],It.prototype,"latestVcsWkid",void 0),R([V()],It.prototype,"imageCoordinateSystem",void 0),It=Os=R([Le("esri.geometry.SpatialReference")],It),It.prototype.toJSON.isDefaultToJSON=!0,It.GCS_NAD_1927=Jr.freeze(new It({wkid:4267,wkt:'GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]]'})),It.WGS84=Jr.freeze(new It(D3)),It.WebMercator=Jr.freeze(new It(F3)),It.PlateCarree=Jr.freeze(new It($F));jt=It});var Rs,mi,dc=O(()=>{gt();Or();yt();tt();it();Zr();Yf();ft();Xo();Rs=class extends ut{constructor(...e){super(...e),this.type=null,this.hasM=!1,this.hasZ=!1,this.spatialReference=jt.WGS84}get cache(){return this.commitProperty("spatialReference"),{}}get extent(){return null}readSpatialReference(e,t){if(e instanceof jt)return e;if(e!=null){let r=new jt;return r.read(e,t),r}return e}clone(){return console.warn(".clone() is not implemented for "+this.declaredClass),null}clearCache(){this.notifyChange("cache")}getCacheValue(e){return this.cache[e]}setCacheValue(e,t){this.cache[e]=t}};R([V()],Rs.prototype,"type",void 0),R([V({readOnly:!0})],Rs.prototype,"cache",null),R([V({readOnly:!0})],Rs.prototype,"extent",null),R([V({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Rs.prototype,"hasM",void 0),R([V({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Rs.prototype,"hasZ",void 0),R([V({type:jt,json:{write:!0},value:jt.WGS84})],Rs.prototype,"spatialReference",void 0),R([Mi("spatialReference")],Rs.prototype,"readSpatialReference",null),Rs=R([Le("esri.geometry.Geometry")],Rs);mi=Rs});function JF(e){return e*XK}function XF(e){return e*QK}function U3(e){return e.wkid!=null||e.wkt!=null}function E_(e,t,r,n,i){let o=e,s=i;if(s.spatialReference=r,"x"in o&&"x"in s)[s.x,s.y]=t(o.x,o.y,V3,n);else if("xmin"in o&&"xmin"in s)[s.xmin,s.ymin]=t(o.xmin,o.ymin,V3,n),[s.xmax,s.ymax]=t(o.xmax,o.ymax,V3,n);else if("paths"in o&&"paths"in s||"rings"in o&&"rings"in s){let l="paths"in o?o.paths:o.rings,a=[],d;for(let h=0;h<l.length;h++){let g=l[h];d=[],a.push(d);for(let b=0;b<g.length;b++)d.push(t(g[b][0],g[b][1],[0,0],n)),g[b].length>2&&d[b].push(g[b][2]),g[b].length>3&&d[b].push(g[b][3])}"paths"in s?s.paths=a:s.rings=a}else if("points"in o&&"points"in s){let l=o.points,a=[];for(let d=0;d<l.length;d++)a[d]=t(l[d][0],l[d][1],[0,0],n),l[d].length>2&&a[d].push(l[d][2]),l[d].length>3&&a[d].push(l[d][3]);s.points=a}return i}function X1(e,t){let r=e&&(U3(e)?e:e.spatialReference),n=t&&(U3(t)?t:t.spatialReference);return!(e&&"type"in e&&e.type==="mesh"||t&&"type"in t&&t.type==="mesh"||!r||!n)&&(!!cc(n,r)||ks(n)&&Rm(r)||ks(r)&&Rm(n))}function QF(e,t){if(e==null)return null;let r=e.spatialReference,n=t&&(U3(t)?t:t.spatialReference);return X1(r,n)?cc(r,n)?Je(e):ks(n)?E_(e,hd,jt.WebMercator,!1,Je(e)):Rm(n)?E_(e,Dm,jt.WGS84,!1,Je(e)):null:null}function hd(e,t,r=[0,0]){t>89.99999?t=89.99999:t<-89.99999&&(t=-89.99999);let n=XF(t);return r[0]=XF(e)*$o.radius,r[1]=$o.halfSemiMajorAxis*Math.log((1+Math.sin(n))/(1-Math.sin(n))),r}function Dm(e,t,r=[0,0],n=!1){if(e===Om[0])r[0]=-180;else if(e===Om[1])r[0]=180;else{let i=JF(e/$o.radius);r[0]=n?i:i-360*Math.floor((i+180)/360)}return r[1]=JF(Math.PI/2-2*Math.atan(Math.exp(-t/$o.radius))),r}function C_(e,t=!1,r=Je(e)){return E_(e,hd,jt.WebMercator,t,r)}function Q1(e,t=!1,r=Je(e)){return E_(e,Dm,jt.WGS84,t,r)}var XK,QK,V3,K1=O(()=>{ar();Xo();ev();Ta();XK=57.29577951308232,QK=.017453292519943;V3=[0,0]});function KF(e,t){let r=e.x-t.x,n=e.y-t.y,i=e.z!=null&&t.z!=null?e.z-t.z:0;return Math.sqrt(r*r+n*n+i*i)}function e$(e){return r$(e,n$)?.[0]??null}function t$(e){return r$(e,n$)?.[1]??null}function r$({x:e,y:t,spatialReference:r},n=[0,0]){if(r){if(ks(r))return Dm(e,t,n);if(J1(r))return n[0]=e,n[1]=t,n}return null}var n$,i$=O(()=>{Ta();K1();n$=[0,0]});function o$(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var T_,z3,ti,Kt,pc=O(()=>{gt();Dl();it();yt();n1();Zr();tt();Yf();ft();Pa();Xi();dc();Xo();i$();Ta();K1();z3=[0,0];ti=T_=class extends mi{static copy(e,t){t._set("x",e._get("x")),t._set("y",e._get("y")),t._set("z",e._get("z")),t._set("m",e._get("m"));let r=e._get("spatialReference");t._set("spatialReference",Jr.isFrozen(r)?r:r.clone())}constructor(...e){super(...e),this.x=0,this.y=0,this.z=void 0,this.m=void 0,this.type="point"}normalizeCtorArgs(e,t,r,n,i){let o;if(Array.isArray(e))o=e,i=t,e=o[0],t=o[1],r=o[2],n=o[3];else if(e&&typeof e=="object"){if(o=e,e=o.x!=null?o.x:o.longitude,t=o.y!=null?o.y:o.latitude,r=o.z,n=o.m,(i=o.spatialReference)&&i.declaredClass!=="esri.geometry.SpatialReference"&&(i=new jt(i)),o.longitude!=null||o.latitude!=null){if(o.longitude==null)ot.getLogger(this).warn(".longitude=","Latitude was defined without longitude");else if(o.latitude==null)ot.getLogger(this).warn(".latitude=","Longitude was defined without latitude");else if(!o.declaredClass&&i?.isWebMercator){let l=hd(o.longitude,o.latitude,z3);e=l[0],t=l[1]}}}else o$(r)?(i=r,r=null):o$(n)&&(i=n,n=null);let s={x:e,y:t};return s.x==null&&s.y!=null?ot.getLogger(this).warn(".y=","Y coordinate was defined without an X coordinate"):s.y==null&&s.x!=null&&ot.getLogger(this).warn(".x=","X coordinate was defined without a Y coordinate"),i!=null&&(s.spatialReference=i),r!=null&&(s.z=r),n!=null&&(s.m=n),s}get cache(){return this.commitProperty("x"),this.commitProperty("y"),this.commitProperty("z"),this.commitProperty("m"),this.commitProperty("spatialReference"),{}}get hasM(){return this.m!==void 0}set hasM(e){e!==(this._get("m")!==void 0)&&(this._set("m",e?0:void 0),this._set("hasM",e))}get hasZ(){return this.z!==void 0}set hasZ(e){e!==(this._get("z")!==void 0)&&(this._set("z",e?0:void 0),this._set("hasZ",e))}get latitude(){return t$(this)}set latitude(e){let{spatialReference:t,x:r}=this;e!=null&&t&&(t.isWebMercator?this._set("y",hd(r,e,z3)[1]):t.isGeographic&&this._set("y",e),this._set("latitude",e))}get longitude(){return e$(this)}set longitude(e){let{y:t,spatialReference:r}=this;e!=null&&r&&(r.isWebMercator?this._set("x",hd(e,t,z3)[0]):r.isGeographic&&this._set("x",e),this._set("longitude",e))}writeX(e,t,r){t[r]=isNaN(e)?"NaN":e}readX(e){return typeof e=="string"?NaN:e}clone(){let e=new T_;return e.x=this.x,e.y=this.y,e.z=this.z,e.m=this.m,e.spatialReference=this.spatialReference,e}copy(e){return T_.copy(e,this),this}equals(e){if(e==null)return!1;let{x:t,y:r,z:n,m:i,spatialReference:o}=this,{z:s,m:l}=e,{x:a,y:d,spatialReference:h}=e;if(!o.equals(h))if(o.isWebMercator&&h.isWGS84)[a,d]=hd(a,d),h=o;else{if(!o.isWGS84||!h.isWebMercator)return!1;[a,d]=Dm(a,d),h=o}return t===a&&r===d&&n===s&&i===l&&o.wkid===h.wkid}offset(e,t,r){return this.x+=e,this.y+=t,r!=null&&(this.z=(this.z??0)+r),this}normalize(){if(!this.spatialReference)return this;let e=fd(this.spatialReference);if(!e)return this;let t=this.x,[r,n]=e.valid,i=2*n,o;return t>n?(o=Math.ceil(Math.abs(t-n)/i),t-=o*i):t<r&&(o=Math.ceil(Math.abs(t-r)/i),t+=o*i),this._set("x",t),this}distance(e){return KF(this,e)}toArray(){let e=this.hasZ,t=this.hasM;return e&&t?[this.x,this.y,this.z,this.m]:e?[this.x,this.y,this.z]:t?[this.x,this.y,this.m]:[this.x,this.y]}toJSON(e){return this.write({},e)}};R([V({readOnly:!0})],ti.prototype,"cache",null),R([V({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],ti.prototype,"hasM",null),R([V({type:Boolean,json:{read:!1,write:{enabled:!1,overridePolicy:null}}})],ti.prototype,"hasZ",null),R([V({type:Number})],ti.prototype,"latitude",null),R([V({type:Number})],ti.prototype,"longitude",null),R([V({type:Number,json:{type:[Number,String],write:{isRequired:!0,allowNull:!0}}}),ha(e=>isNaN(e)?e:HS(e))],ti.prototype,"x",void 0),R([pr("x")],ti.prototype,"writeX",null),R([Mi("x")],ti.prototype,"readX",null),R([V({type:Number,json:{write:!0}})],ti.prototype,"y",void 0),R([V({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasZ}}}}})],ti.prototype,"z",void 0),R([V({type:Number,json:{write:{overridePolicy(){return{enabled:this.hasM}}}}})],ti.prototype,"m",void 0),ti=T_=R([Le("esri.geometry.Point")],ti),ti.prototype.toJSON.isDefaultToJSON=!0;Kt=ti});function P_(e,t){return t!=null&&ri(e,t.x,t.y,t.z)}function a$(e,t){let{xmin:r,ymin:n,zmin:i,xmax:o,ymax:s,zmax:l}=t;return e.hasZ&&t.hasZ?ri(e,r,n,i)&&ri(e,r,s,i)&&ri(e,o,s,i)&&ri(e,o,n,i)&&ri(e,r,n,l)&&ri(e,r,s,l)&&ri(e,o,s,l)&&ri(e,o,n,l):ri(e,r,n)&&ri(e,r,s)&&ri(e,o,s)&&ri(e,o,n)}function Fm(e,t){return ri(e,t[0],t[1])}function l$(e,t){return ri(e,t[0],t[1],t[2])}function ri(e,t,r,n){return t>=e.xmin&&t<=e.xmax&&r>=e.ymin&&r<=e.ymax&&(n==null||!e.hasZ||n>=e.zmin&&n<=e.zmax)}function c$(e,t){return W3[1]=t.y,W3[0]=t.x,KK(e,W3)}function KK(e,t){return B3(e.rings,t)}function B3(e,t){if(!e)return!1;if(eee(e))return s$(!1,e,t);let r=!1;for(let n=0,i=e.length;n<i;n++)r=s$(r,e[n],t);return r}function eee(e){return!Array.isArray(e[0][0])}function s$(e,t,r){let[n,i]=r,o=e,s=0;for(let l=0,a=t.length;l<a;l++){s++,s===a&&(s=0);let[d,h]=t[l],[g,b]=t[s];(h<i&&b>=i||b<i&&h>=i)&&d+(i-h)/(b-h)*(g-d)<n&&(o=!o)}return o}var W3,M_=O(()=>{W3=[0,0]});function tee(e,t){return P_(e,t)}function ree(e,t){let r=e.hasZ&&t.hasZ,n,i,o;if(e.xmin<=t.xmin){if(n=t.xmin,e.xmax<n)return!1}else if(n=e.xmin,t.xmax<n)return!1;if(e.ymin<=t.ymin){if(i=t.ymin,e.ymax<i)return!1}else if(i=e.ymin,t.ymax<i)return!1;if(r&&t.hasZ){if(e.zmin<=t.zmin){if(o=t.zmin,e.zmax<o)return!1}else if(o=e.zmin,t.zmax<o)return!1}return!0}function nee(e,t){let{points:r,hasZ:n}=t,i=n?l$:Fm;for(let o of r)if(i(e,o))return!0;return!1}function oee(e,t){return see(e,t.rings)}function see(e,t){gd[0]=e.xmin,gd[1]=e.ymax,wd[0]=e.xmax,wd[1]=e.ymax,yd[0]=e.xmin,yd[1]=e.ymin,vd[0]=e.xmax,vd[1]=e.ymin;for(let r of iee)if(B3(t,r))return!0;for(let r of t){if(!r.length)continue;let n=r[0];if(Fm(e,n))return!0;for(let i=1;i<r.length;i++){let o=r[i];if(Fm(e,o)||p$(n,o,u$))return!0;n=o}}return!1}function aee(e,t){gd[0]=e.xmin,gd[1]=e.ymax,wd[0]=e.xmax,wd[1]=e.ymax,yd[0]=e.xmin,yd[1]=e.ymin,vd[0]=e.xmax,vd[1]=e.ymin;let r=t.paths;for(let n of r){if(!r.length)continue;let i=n[0];if(Fm(e,i))return!0;for(let o=1;o<n.length;o++){let s=n[o];if(Fm(e,s)||p$(i,s,u$))return!0;i=s}}return!1}function d$(e){for(let t=0;t<e.length;t++){let r=e[t];for(let i=0;i<r.length-1;i++){let o=r[i],s=r[i+1];for(let l=t+1;l<e.length;l++)for(let a=0;a<e[l].length-1;a++){let d=e[l][a],h=e[l][a+1];if(G3(o,s,d,h,fn)&&!(fn[0]===o[0]&&fn[1]===o[1]||fn[0]===d[0]&&fn[1]===d[1]||fn[0]===s[0]&&fn[1]===s[1]||fn[0]===h[0]&&fn[1]===h[1]))return!0}}let n=r.length;if(!(n<=4))for(let i=0;i<n-3;i++){let o=n-1;i===0&&(o=n-2);let s=r[i],l=r[i+1];for(let a=i+2;a<o;a++){let d=r[a],h=r[a+1];if(G3(s,l,d,h,fn)&&!(fn[0]===s[0]&&fn[1]===s[1]||fn[0]===d[0]&&fn[1]===d[1]||fn[0]===l[0]&&fn[1]===l[1]||fn[0]===h[0]&&fn[1]===h[1]))return!0}}}return!1}function p$(e,t,r){for(let n=0;n<r.length;n++)if(G3(e,t,r[n][0],r[n][1]))return!0;return!1}function G3(e,t,r,n,i){let[o,s]=e,[l,a]=t,[d,h]=r,[g,b]=n,S=g-d,P=o-d,A=l-o,F=b-h,W=s-h,z=a-s,q=F*A-S*z;if(q===0)return!1;let G=(S*W-F*P)/q,Y=(A*W-z*P)/q;return G>=0&&G<=1&&Y>=0&&Y<=1&&(i&&(i[0]=o+G*(l-o),i[1]=s+G*(a-s)),!0)}function f$(e){switch(e){case"esriGeometryEnvelope":case"extent":return ree;case"esriGeometryMultipoint":case"multipoint":return nee;case"esriGeometryPoint":case"point":return tee;case"esriGeometryMultiPatch":case"multipatch":case"esriGeometryPolygon":case"polygon":return oee;case"esriGeometryPolyline":case"polyline":return aee}}var gd,wd,yd,vd,iee,u$,fn,j3=O(()=>{M_();gd=[0,0],wd=[0,0],yd=[0,0],vd=[0,0],iee=[gd,wd,yd,vd],u$=[[yd,gd],[gd,wd],[wd,vd],[vd,yd]];fn=[0,0]});function lee(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}function fc(e,t,r){return t==null?r:r==null?t:e(t,r)}function q3(e,t){let[r,n]=t.valid,i=2*n,o,s=0;return e>n?(o=Math.ceil(Math.abs(e-n)/i),e-=o*i,s=o):e<r&&(o=Math.ceil(Math.abs(e-r)/i),e+=o*i,s=-o),{x:e,frameId:s}}var Qo,Xr,hi,Ma=O(()=>{gt();gl();yt();tt();it();Zr();ft();dc();pc();Xo();M_();j3();Ta();K1();Xr=Qo=class extends mi{constructor(...e){super(...e),this.type="extent",this.xmin=0,this.ymin=0,this.mmin=void 0,this.zmin=void 0,this.xmax=0,this.ymax=0,this.mmax=void 0,this.zmax=void 0}normalizeCtorArgs(e,t,r,n,i){return lee(e)?{spatialReference:e,xmin:0,ymin:0,xmax:0,ymax:0}:typeof e=="object"?(e.spatialReference=e.spatialReference==null?jt.WGS84:e.spatialReference,e):{xmin:e,ymin:t,xmax:r,ymax:n,spatialReference:i??jt.WGS84}}static fromPoint(e){return new Qo({xmin:e.x,ymin:e.y,zmin:e.z,xmax:e.x,ymax:e.y,zmax:e.z,spatialReference:e.spatialReference})}get cache(){return this.commitProperty("xmin"),this.commitProperty("ymin"),this.commitProperty("zmin"),this.commitProperty("mmin"),this.commitProperty("xmax"),this.commitProperty("ymax"),this.commitProperty("zmax"),this.commitProperty("mmax"),this.commitProperty("spatialReference"),{}}get center(){let e=new Kt({x:.5*(this.xmin+this.xmax),y:.5*(this.ymin+this.ymax),spatialReference:this.spatialReference});return this.hasZ&&(e.z=.5*(this.zmin+this.zmax)),this.hasM&&(e.m=.5*(this.mmin+this.mmax)),e}get extent(){return this.clone()}get hasM(){return this.mmin!=null&&this.mmax!=null}get hasZ(){return this.zmin!=null&&this.zmax!=null}get height(){return Math.abs(this.ymax-this.ymin)}get width(){return Math.abs(this.xmax-this.xmin)}centerAt(e){let t=this.center;return e.z!=null&&this.hasZ?this.offset(e.x-t.x,e.y-t.y,e.z-t.z):this.offset(e.x-t.x,e.y-t.y)}clone(){let e=new Qo;return e.xmin=this.xmin,e.ymin=this.ymin,e.xmax=this.xmax,e.ymax=this.ymax,e.spatialReference=this.spatialReference,this.zmin!=null&&(e.zmin=this.zmin,e.zmax=this.zmax),this.mmin!=null&&(e.mmin=this.mmin,e.mmax=this.mmax),e}contains(e){if(!e)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&X1(t,r)&&(e=t.isWebMercator?C_(e):Q1(e,!0)),e.type==="point"?P_(this,e):e.type==="extent"&&a$(this,e)}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;return t&&r&&!t.equals(r)&&X1(t,r)&&(e=t.isWebMercator?C_(e):Q1(e,!0)),this.xmin===e.xmin&&this.ymin===e.ymin&&this.zmin===e.zmin&&this.mmin===e.mmin&&this.xmax===e.xmax&&this.ymax===e.ymax&&this.zmax===e.zmax&&this.mmax===e.mmax}expand(e){let t=.5*(1-e),r=this.width*t,n=this.height*t;if(this.xmin+=r,this.ymin+=n,this.xmax-=r,this.ymax-=n,this.hasZ){let i=(this.zmax-this.zmin)*t;this.zmin+=i,this.zmax-=i}if(this.hasM){let i=(this.mmax-this.mmin)*t;this.mmin+=i,this.mmax-=i}return this}intersects(e){if(e==null)return!1;e.type==="mesh"&&(e=e.extent);let t=this.spatialReference,r=e.spatialReference;return t&&r&&!cc(t,r)&&X1(t,r)&&(e=t.isWebMercator?C_(e):Q1(e,!0)),f$(e.type)(this,e)}normalize(){let e=this._normalize(!1,!0);return Array.isArray(e)?e:[e]}offset(e,t,r){return this.xmin+=e,this.ymin+=t,this.xmax+=e,this.ymax+=t,r!=null&&(this.zmin+=r,this.zmax+=r),this}shiftCentralMeridian(){return this._normalize(!0)}union(e){return this===e||(this.xmin=Math.min(this.xmin,e.xmin),this.ymin=Math.min(this.ymin,e.ymin),this.xmax=Math.max(this.xmax,e.xmax),this.ymax=Math.max(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=fc(Math.min,this.zmin,e.zmin),this.zmax=fc(Math.max,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=fc(Math.min,this.mmin,e.mmin),this.mmax=fc(Math.max,this.mmax,e.mmax))),this}intersection(e){return this===e?this:e!=null&&this.intersects(e)?(this.xmin=Math.max(this.xmin,e.xmin),this.ymin=Math.max(this.ymin,e.ymin),this.xmax=Math.min(this.xmax,e.xmax),this.ymax=Math.min(this.ymax,e.ymax),(this.hasZ||e.hasZ)&&(this.zmin=fc(Math.max,this.zmin,e.zmin),this.zmax=fc(Math.min,this.zmax,e.zmax)),(this.hasM||e.hasM)&&(this.mmin=fc(Math.max,this.mmin,e.mmin),this.mmax=fc(Math.min,this.mmax,e.mmax)),this):null}toJSON(e){return this.write({},e)}_shiftCM(e=fd(this.spatialReference)){if(!e||!this.spatialReference)return this;let t=this.spatialReference,r=this._getCM(e);if(r){let n=t.isWebMercator?Q1(r):r;this.xmin-=r.x,this.xmax-=r.x,t.isWebMercator||(n.x=q3(n.x,e).x),this.spatialReference=new jt(ys((t.isWGS84?e.altTemplate:null)??e.wkTemplate,{Central_Meridian:n.x}))}return this}_getCM(e){let t=null,[r,n]=e.valid,i=this.xmin,o=this.xmax;return i>=r&&i<=n&&o>=r&&o<=n||(t=this.center),t}_normalize(e,t,r){let n=this.spatialReference;if(!n)return this;let i=r??fd(n);if(i==null)return this;let o=this._getParts(i).map(a=>a.extent);if(o.length<2)return o[0]||this;if(o.length>2)return e?this._shiftCM(i):this.set({xmin:i.valid[0],xmax:i.valid[1]});if(e)return this._shiftCM(i);if(t)return o;let s=!0,l=!0;return o.forEach(a=>{a.hasZ||(s=!1),a.hasM||(l=!1)}),{rings:o.map(a=>{let d=[[a.xmin,a.ymin],[a.xmin,a.ymax],[a.xmax,a.ymax],[a.xmax,a.ymin],[a.xmin,a.ymin]];if(s){let h=(a.zmax-a.zmin)/2;for(let g=0;g<d.length;g++)d[g].push(h)}if(l){let h=(a.mmax-a.mmin)/2;for(let g=0;g<d.length;g++)d[g].push(h)}return d}),hasZ:s,hasM:l,spatialReference:n}}_getParts(e){let t=this.cache._parts;if(!t){t=[];let{ymin:i,ymax:o,spatialReference:s}=this,l=this.width,a=this.xmin,d=this.xmax,h;e=e||fd(s);let[g,b]=e.valid;h=q3(this.xmin,e);let S=h.x,P=h.frameId;h=q3(this.xmax,e);let A=h.x,F=h.frameId,W=S===A&&l>0;if(l>2*b){let z=new Qo(a<d?S:A,i,b,o,s),q=new Qo(g,i,a<d?A:S,o,s),G=new Qo(0,i,b,o,s),Y=new Qo(g,i,0,o,s),ie=[],U=[];z.contains(G)&&ie.push(P),z.contains(Y)&&U.push(P),q.contains(G)&&ie.push(F),q.contains(Y)&&U.push(F);for(let me=P+1;me<F;me++)ie.push(me),U.push(me);t.push({extent:z,frameIds:[P]},{extent:q,frameIds:[F]},{extent:G,frameIds:ie},{extent:Y,frameIds:U})}else S>A||W?t.push({extent:new Qo(S,i,b,o,s),frameIds:[P]},{extent:new Qo(g,i,A,o,s),frameIds:[F]}):t.push({extent:new Qo(S,i,A,o,s),frameIds:[P]});this.cache._parts=t}let r=this.hasZ,n=this.hasM;if(r||n){let i={};r&&(i.zmin=this.zmin,i.zmax=this.zmax),n&&(i.mmin=this.mmin,i.mmax=this.mmax);for(let o=0;o<t.length;o++)t[o].extent.set(i)}return t}};R([V({readOnly:!0})],Xr.prototype,"cache",null),R([V({readOnly:!0})],Xr.prototype,"center",null),R([V({readOnly:!0})],Xr.prototype,"extent",null),R([V({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Xr.prototype,"hasM",null),R([V({readOnly:!0,json:{write:{enabled:!1,overridePolicy:null}}})],Xr.prototype,"hasZ",null),R([V({readOnly:!0})],Xr.prototype,"height",null),R([V({readOnly:!0})],Xr.prototype,"width",null),R([V({type:Number,json:{type:[Number,String],write:{enabled:!0,allowNull:!0}}})],Xr.prototype,"xmin",void 0),R([V({type:Number,json:{write:!0}})],Xr.prototype,"ymin",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Xr.prototype,"mmin",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Xr.prototype,"zmin",void 0),R([V({type:Number,json:{write:!0}})],Xr.prototype,"xmax",void 0),R([V({type:Number,json:{write:!0}})],Xr.prototype,"ymax",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasM}}}}})],Xr.prototype,"mmax",void 0),R([V({type:Number,json:{origins:{"web-scene":{write:!1}},write:{overridePolicy(){return{enabled:this.hasZ}}}}})],Xr.prototype,"zmax",void 0),Xr=Qo=R([Le("esri.geometry.Extent")],Xr),Xr.prototype.toJSON.isDefaultToJSON=!0;hi=Xr});function e0(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e}var m$=O(()=>{Ma()});function h$(e){if(!e)return"";let t=/(a|A|hh?|HH?|mm?|ss?|SSS|S|.)/g,r="";for(let n of e.match(t)||[])switch(n){case"SSS":case"m":case"mm":case"h":case"hh":case"H":case"HH":case"s":case"ss":r+=n;break;case"A":case"a":r+="a";break;default:r+=`'${n}'`}return r}var Qr,t0=O(()=>{m$();Ml();Dn();Qr=class e{constructor(t,r,n,i){this._hour=t,this._minute=r,this._second=n,this._millisecond=i,this.declaredRootClass="esri.core.sql.timeonly"}get hour(){return this._hour}get minute(){return this._minute}get second(){return this._second}get millisecond(){return this._millisecond}equals(t){return t instanceof e&&t.hour===this.hour&&t.minute===this.minute&&t.second===this.second&&t.millisecond===this.millisecond}clone(){return new e(this.hour,this.minute,this.second,this.millisecond)}isValid(){return e0(this.hour)&&e0(this.minute)&&e0(this.second)&&e0(this.millisecond)&&this.hour>=0&&this.hour<24&&this.minute>=0&&this.minute<60&&this.second>=0&&this.second<60&&this.millisecond>=0&&this.millisecond<1e3}toString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`+(this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):"")}toSQLValue(){return this.toString()}toSQLWithKeyword(){return`time '${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}${this.millisecond>0?"."+this.millisecond.toString().padStart(3,"0"):""}'`}toStorageString(){return`${this.hour.toString().padStart(2,"0")}:${this.minute.toString().padStart(2,"0")}:${this.second.toString().padStart(2,"0")}`}toFormat(t=null){return t===null||t===""?this.toString():(t=h$(t))?Ce.local(1970,1,1,this._hour,this._minute,this._second,this._millisecond).toFormat(t,{locale:Ji(),numberingSystem:"latn"}):""}toNumber(){return this.millisecond+1e3*this.second+1e3*this.minute*60+60*this.hour*60*1e3}static fromParts(t,r,n,i){let o=new e(t,r,n,i);return o.isValid()?o:null}static fromReader(t){if(!t)return null;let r=t.split(":");return r.length!==3?null:new e(parseInt(r[0],10),parseInt(r[1],10),parseInt(r[2],10),0)}static fromMilliseconds(t){if(t>864e5||t<0)return null;let r=Math.floor(t/1e3%60),n=Math.floor(t/6e4%60),i=Math.floor(t/36e5%24),o=Math.floor(t%1e3);return new e(i,n,r,o)}static fromDateJS(t){return new e(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds())}static fromDateTime(t){return new e(t.hour,t.minute,t.second,t.millisecond)}static fromSqlTimeStampOffset(t){return this.fromDateTime(t.toDateTime())}static fromString(t,r=null){if(t===""||t===null)return null;let n=[];r?(r=h$(r))&&n.push(r):r!==null&&r!==""||(n.push("HH:mm:ss"),n.push("HH:mm:ss.SSS"),n.push("hh:mm:ss a"),n.push("hh:mm:ss.SSS a"),n.push("HH:mm"),n.push("hh:mm a"),n.push("H:mm"),n.push("h:mm a"),n.push("H:mm:ss"),n.push("h:mm:ss a"),n.push("H:mm:ss.SSS"),n.push("h:mm:ss.SSS a"));for(let i of n){let o=Ce.fromFormat(t,i);if(o.isValid)return new e(o.hour,o.minute,o.second,o.millisecond)}return null}plus(t,r){switch(t){case"days":case"years":case"months":return this.clone();case"hours":case"minutes":case"seconds":case"milliseconds":return e.fromDateTime(this.toUTCDateTime().plus({[t]:r}))}return null}toUTCDateTime(){return Ce.utc(1970,1,1,this.hour,this.minute,this.second,this.millisecond)}difference(t,r){switch(r.toLowerCase()){case"days":case"day":case"d":return this.toUTCDateTime().diff(t.toUTCDateTime(),"days").days;case"months":case"month":return this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months;case"minutes":case"minute":case"m":return r==="M"?this.toUTCDateTime().diff(t.toUTCDateTime(),"months").months:this.toUTCDateTime().diff(t.toUTCDateTime(),"minutes").minutes;case"seconds":case"second":case"s":return this.toUTCDateTime().diff(t.toUTCDateTime(),"seconds").seconds;case"milliseconds":case"millisecond":case"ms":default:return this.toUTCDateTime().diff(t.toUTCDateTime(),"milliseconds").milliseconds;case"hours":case"hour":case"h":return this.toUTCDateTime().diff(t.toUTCDateTime(),"hours").hours;case"years":case"year":case"y":return this.toUTCDateTime().diff(t.toUTCDateTime(),"years").years}}}});function w$(e,t){let r=y$[e.toLowerCase()];if(r==null)throw new oe(K.FunctionNotRecognized);if(t.length<r.minParams||t.length>r.maxParams)throw new oe(K.InvalidParameterCount,{name:e.toUpperCase()});return r.evaluate(t)}function H3(e,t){let r=y$[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function v$(e){if(e===null)return null;let t=0,r=0;for(let n=0;n<e.length;n++){let i=e[n];if(i!==null){if(!Z3(i))throw new oe(K.InvalidValueForAggregateFunction);r++,t+=i}}return r===0?null:t/e.length}function Z3(e){return typeof e=="number"}function g$(e,t){if(e===null)return null;let r=null,n=null;for(let i of e){let o=i;o=i instanceof un||i instanceof Qr?i.toNumber():i instanceof Ce?i.toMillis():i instanceof bn?i.toMilliseconds():i,(r===null||t==="max"&&n!==null&&o!==null&&n<=o||t==="min"&&n!==null&&o!==null&&n>=o)&&(r=i,n=o)}return r}function cee(e){if(e===null)return null;let t=0;for(let r=0;r<e.length;r++){let n=e[r];if(n!==null){if(!Z3(n))throw new oe(K.InvalidValueForAggregateFunction);t+=n}}return t}function uee(e){if(e===null)return null;let t=b$(e);return t===null?null:Math.sqrt(t)}function b$(e){if(e===null||(e=e.filter(n=>n!==null)).length===0)return null;let t=v$(e);if(t===null)return null;let r=0;for(let n of e){if(!Z3(n))throw new oe(K.InvalidValueForAggregateFunction);r+=(t-n)**2}return r/(e.length-1)}var y$,_$=O(()=>{wg();Al();yg();t0();Dn();y$={min:{minParams:1,maxParams:1,evaluate:e=>g$(e[0],"min")},max:{minParams:1,maxParams:1,evaluate:e=>g$(e[0],"max")},avg:{minParams:1,maxParams:1,evaluate:e=>v$(e[0])},sum:{minParams:1,maxParams:1,evaluate:e=>cee(e[0])},stddev:{minParams:1,maxParams:1,evaluate:e=>uee(e[0])},count:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].length},var:{minParams:1,maxParams:1,evaluate:e=>b$(e[0])}}});var xr,A_=O(()=>{Al();xr=class e{constructor(){this.op="+",this.day=0,this.second=0,this.hour=0,this.month=0,this.year=0,this.minute=0,this.millis=0}static _fixDefaults(t){if(t.precision!==null||t.secondary!==null)throw new oe(K.PrimarySecondaryQualifiers)}static _parseSecondsComponent(t,r){if(r.includes(".")){let n=r.split(".");t.second=parseFloat(n[0]),t.millis=parseInt(n[1],10)}else t.second=parseFloat(r)}static createFromMilliseconds(t){let r=new e;return r.second=t/1e3,r}static createFromValueAndQualifier(t,r,n){let i=null,o=new e;if(o.op=n==="-"?"-":"+",r.type==="interval-period"){e._fixDefaults(r);let s=new RegExp("^[0-9]{1,}$");if(r.period==="year"||r.period==="month")throw new oe(K.YearMonthIntervals);if(r.period==="second"){if(!/^[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$/.test(t))throw new oe(K.IllegalInterval);e._parseSecondsComponent(o,t)}else{if(!s.test(t))throw new oe(K.IllegalInterval);o[r.period]=parseFloat(t)}}else{if(e._fixDefaults(r.start),e._fixDefaults(r.end),r.start.period==="year"||r.start.period==="month"||r.end.period==="year"||r.end.period==="month")throw new oe(K.YearMonthIntervals);switch(r.start.period){case"day":switch(r.end.period){case"hour":if(i=new RegExp("^[0-9]{1,} [0-9]{1,}$"),!i.test(t))throw new oe(K.IllegalInterval);o[r.start.period]=parseFloat(t.split(" ")[0]),o[r.end.period]=parseFloat(t.split(" ")[1]);break;case"minute":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,}$"),!i.test(t))throw new oe(K.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1])}break;case"second":if(i=new RegExp("^[0-9]{1,} [0-9]{1,2}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new oe(K.IllegalInterval);{o[r.start.period]=parseFloat(t.split(" ")[0]);let s=t.split(" ")[1].split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new oe(K.IllegalInterval)}break;case"hour":switch(r.end.period){case"minute":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}$"),!i.test(t))throw new oe(K.IllegalInterval);o.hour=parseFloat(t.split(":")[0]),o.minute=parseFloat(t.split(":")[1]);break;case"second":if(i=new RegExp("^[0-9]{1,}:[0-9]{1,2}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new oe(K.IllegalInterval);{let s=t.split(":");o.hour=parseFloat(s[0]),o.minute=parseFloat(s[1]),e._parseSecondsComponent(o,s[2])}break;default:throw new oe(K.IllegalInterval)}break;case"minute":if(r.end.period!=="second")throw new oe(K.IllegalInterval);if(i=new RegExp("^[0-9]{1,}:[0-9]{1,}([.]{1}[0-9]{1,}){0,1}$"),!i.test(t))throw new oe(K.IllegalInterval);{let s=t.split(":");o.minute=parseFloat(s[0]),e._parseSecondsComponent(o,s[1])}break;default:throw new oe(K.IllegalInterval)}}return o}valueInMilliseconds(){return(this.op==="-"?-1:1)*(this.millis+1e3*this.second+60*this.minute*1e3+60*this.hour*60*1e3+24*this.day*60*60*1e3+this.month*(365/12)*24*60*60*1e3+365*this.year*24*60*60*1e3)}}});function $m(e,t){if(t instanceof Nr)return t===Yr.instance?Ce.fromMillis(e.getTime(),{zone:Yr.instance}):Ce.fromJSDate(e,{zone:t});switch(t){case"system":case"local":case null:return Ce.fromJSDate(e);default:return t?.toLowerCase()==="unknown"?Ce.fromMillis(e.getTime(),{zone:Yr.instance}):Ce.fromJSDate(e,{zone:t})}}function Aa(e){return e instanceof xr}function Ut(e){return e instanceof Ce}function zt(e){return e instanceof un}function Yt(e){return e instanceof Qr}function Wt(e){return e instanceof bn}function r0(e){let t=dee.exec(e);if(t!==null){let[,r,n,i]=t,o=Qr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),0);if(o!==null)return o;throw new oe(K.InvalidTime)}if(t=pee.exec(e),t!==null){let[,r,n]=t,i=Qr.fromParts(parseInt(r,10),parseInt(n,10),0,0);if(i!==null)return i;throw new oe(K.InvalidTime)}if(t=fee.exec(e),t!==null){let[,r,n,i,o]=t,s=Qr.fromParts(parseInt(r,10),parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s!==null)return s;throw new oe(K.InvalidTime)}throw new oe(K.InvalidTime)}function Vm(e,t,r=!1){let n=mee.exec(e);if(n!==null){let[,i,o,s,l,a,d,h]=n,g=Ce.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(l,10),minute:parseInt(a,10),second:parseInt(d,10),millisecond:h?parseInt(h.replace(".",""),10):0},{zone:dy(t)});if(g.isValid===!1)throw new oe(K.InvalidTimeStamp);return g}if(n=hee.exec(e),n!==null){let[,i,o,s,l,a,d,h,g,b,S]=n,P=bn.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(l,10),parseInt(a,10),parseInt(d,10),h?parseInt(h.replace(".",""),10):0,g==="-",parseInt(b,10),parseInt(S,10));if(P.isValid===!1)throw new oe(K.InvalidTimeStamp);return P}if(n=gee.exec(e),n!==null){let[,i,o,s,l,a,d,h,g]=n,b=bn.fromParts(parseInt(i,10),parseInt(o,10),parseInt(s,10),parseInt(l,10),parseInt(a,10),0,0,d==="-",parseInt(h,10),parseInt(g,10));if(b.isValid===!1)throw new oe(K.InvalidTimeStamp);return b}if(n=wee.exec(e),n!==null){let[,i,o,s,l,a]=n,d=Ce.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:parseInt(l,10),minute:parseInt(a,10),second:0},{zone:dy(t)});if(d.isValid===!1)throw new oe(K.InvalidTimeStamp);return d}if(n=x$.exec(e),n!==null){let[,i,o,s]=n,l=Ce.fromObject({year:parseInt(i,10),month:parseInt(o,10),day:parseInt(s,10),hour:0,minute:0,second:0},{zone:dy(t)});if(l.isValid===!1)throw new oe(K.InvalidTimeStamp);return l}throw new oe(K.InvalidTimeStamp)}function Y3(e,t){let r=x$.exec(e);if(r===null)try{return Vm(e,t)}catch{throw new oe(K.InvalidDate)}let[,n,i,o]=r,s=un.fromParts(parseInt(n,10),parseInt(i,10),parseInt(o,10));if(s===null)throw new oe(K.InvalidDate);return s}var dee,pee,fee,x$,mee,hee,gee,wee,n0=O(()=>{wg();Al();A_();yg();t0();hg();Dn();dee=/^(\d{1,2}):(\d{1,2}):(\d{1,2})$/,pee=/^(\d{1,2}):(\d{1,2})$/,fee=/^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/,x$=/^(\d{4})-(\d{1,2})-(\d{1,2})$/,mee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$/,hee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,gee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|-)(\d{1,2}):(\d{1,2})$/,wee=/^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/});function yee(e){return I_.setFloat64(0,e),I_.getBigInt64(0)}function vee(e){return I_.setBigInt64(0,e),I_.getFloat64(0)}function bee(e){let t=yee(e=Math.abs(e)),r=vee(t<=J3?J3:t-J3);return Math.abs(e-r)}function _ee(e){return S$[0]=e,S$[0]}function E$(e,t,r){if(r===void 0||+r==0)return Math[e](t);if(t=+t,r=+r,isNaN(t)||typeof r!="number"||r%1!=0)return NaN;let n=t.toString().split("e");return n=(t=Math[e](+(n[0]+"e"+(n[1]?+n[1]-r:-r)))).toString().split("e"),+(n[0]+"e"+(n[1]?+n[1]+r:r))}var S$,I_,J3,sTe,aTe,X3=O(()=>{S$=new Float32Array(1),I_=new DataView(new ArrayBuffer(Float64Array.BYTES_PER_ELEMENT));J3=BigInt("1000000"),sTe=bee(1);aTe=_ee(34028234663852886e22)});function Ia(e,t,r=!1){let{hasM:n,hasZ:i}=e;Array.isArray(t)?t.length!==4||n||i?t.length===3&&r&&!n?(i=!0,n=!1):t.length===3&&n&&i&&(n=!1,i=!1):(n=!0,i=!0):(i=!i&&t.hasZ&&(!n||t.hasM),n=!n&&t.hasM&&(!i||t.hasZ)),e.hasZ=i,e.hasM=n}var L_=O(()=>{});function C$(e){return(t,r)=>t==null?r:r==null?t:e(t,r)}function xee(e){return e&&(e.declaredClass==="esri.geometry.SpatialReference"||e.wkid!=null)}var Q3,mc,k_,K3=O(()=>{gt();ar();yt();tt();it();ft();Pa();Ma();dc();pc();L_();mc=Q3=class extends mi{constructor(...e){super(...e),this.points=[],this.type="multipoint"}normalizeCtorArgs(e,t){if(!e&&!t)return{};let r={};Array.isArray(e)?(r.points=e,r.spatialReference=t):xee(e)?r.spatialReference=e:(e.points&&(r.points=e.points),e.spatialReference&&(r.spatialReference=e.spatialReference),e.hasZ&&(r.hasZ=e.hasZ),e.hasM&&(r.hasM=e.hasM));let n=r.points?.[0];return n&&(r.hasZ===void 0&&r.hasM===void 0?(r.hasZ=n.length>2,r.hasM=!1):r.hasZ===void 0?r.hasZ=n.length>3:r.hasM===void 0&&(r.hasM=n.length>3)),r}get cache(){return this.commitProperty("points"),this.commitProperty("hasZ"),this.commitProperty("hasM"),this.commitProperty("spatialReference"),{}}get extent(){let e=this.points;if(!e.length)return null;let t=new hi,r=this.hasZ,n=this.hasM,i=r?3:2,o=e[0],s=C$(Math.min),l=C$(Math.max),a,d,h,g,[b,S]=o,[P,A]=o;for(let F=0,W=e.length;F<W;F++){let z=e[F],[q,G]=z;if(b=s(b,q),S=s(S,G),P=l(P,q),A=l(A,G),r&&z.length>2){let Y=z[2];a=s(a,Y),h=l(h,Y)}if(n&&z.length>i){let Y=z[i];d=s(d,Y),g=l(g,Y)}}return t.xmin=b,t.ymin=S,t.xmax=P,t.ymax=A,t.spatialReference=this.spatialReference,r?(t.zmin=a,t.zmax=h):(t.zmin=void 0,t.zmax=void 0),n?(t.mmin=d,t.mmax=g):(t.mmin=void 0,t.mmax=void 0),t}writePoints(e,t){t.points=Je(this.points)}addPoint(e){return Ia(this,e),Array.isArray(e)?this.points.push(e):this.points.push(e.toArray()),this.notifyChange("points"),this}clone(){let e={points:Je(this.points),spatialReference:this.spatialReference};return this.hasZ&&(e.hasZ=!0),this.hasM&&(e.hasM=!0),new Q3(e)}getPoint(e){if(!this._validateInputs(e))return null;let t=this.points[e],r={x:t[0],y:t[1],spatialReference:this.spatialReference},n=2;return this.hasZ&&(r.z=t[2],n=3),this.hasM&&(r.m=t[n]),new Kt(r)}removePoint(e){if(!this._validateInputs(e))return null;let t=new Kt(this.points.splice(e,1)[0],this.spatialReference);return this.notifyChange("points"),t}setPoint(e,t){return this._validateInputs(e)?(Ia(this,t),Array.isArray(t)||(t=t.toArray()),this.points[e]=t,this.notifyChange("points"),this):this}toJSON(e){return this.write({},e)}_validateInputs(e){return e!=null&&e>=0&&e<this.points.length}};R([V({readOnly:!0})],mc.prototype,"cache",null),R([V()],mc.prototype,"extent",null),R([V({type:[[Number]],json:{write:{isRequired:!0}}})],mc.prototype,"points",void 0),R([pr("points")],mc.prototype,"writePoints",null),mc=Q3=R([Le("esri.geometry.Multipoint")],mc),mc.prototype.toJSON.isDefaultToJSON=!0;k_=mc});var T$=O(()=>{});var i0,P$=O(()=>{(function(e){e[e.X=0]="X",e[e.Y=1]="Y",e[e.Z=2]="Z"})(i0||(i0={}))});function M$(e,t){let r=t[0]-e[0],n=t[1]-e[1];if(e.length>2&&t.length>2){let i=e[2]-t[2];return Math.sqrt(r*r+n*n+i*i)}return Math.sqrt(r*r+n*n)}function See(e,t,r){let n=e[0]+r*(t[0]-e[0]),i=e[1]+r*(t[1]-e[1]);return e.length>2&&t.length>2?[n,i,e[2]+r*(t[2]-e[2])]:[n,i]}function A$(e,t){return See(e,t,.5)}function I$(e,t=i0.X,r=i0.Y){let n=0,i=e.length,o=e[0];for(let s=1;s<i;s++){let l=e[s];n+=(l[t]-o[t])*(l[r]+o[r]),o=l}if(!Eee(e)){let s=e[0];n+=(s[t]-o[t])*(s[r]+o[r])}return n>=0}function Eee(e){let t=e.length;return t<3||ml(e[0],e[t-1])}var eC=O(()=>{hl();P$();Ta()});function L$(e){return e?Cee(e.rings,e.hasZ??!1):null}function Cee(e,t){if(!e?.length)return null;let r=[],n=[],i=t?[1/0,-1/0,1/0,-1/0,1/0,-1/0]:[1/0,-1/0,1/0,-1/0];for(let o=0,s=e.length;o<s;o++){let l=Tee(e[o],t,i);l&&n.push(l)}if(n.sort((o,s)=>{let l=o[2]-s[2];return l===0&&t&&(l=o[4]-s[4]),l}),n.length&&(r[0]=n[0][0],r[1]=n[0][1],t&&(r[2]=n[0][3]),(r[0]<i[0]||r[0]>i[1]||r[1]<i[2]||r[1]>i[3]||t&&(r[2]<i[4]||r[2]>i[5]))&&(r.length=0)),!r.length){let o=e[0]&&e[0].length?Pee(e[0],t):null;if(!o)return null;r[0]=o[0],r[1]=o[1],t&&o.length>2&&(r[2]=o[2])}return r}function Tee(e,t,r){let n=0,i=0,o=0,s=0,l=0,a=e.length?e[0][0]:0,d=e.length?e[0][1]:0,h=e.length&&t?e[0][2]:0;for(let b=0;b<e.length;b++){let S=e[b],P=e[(b+1)%e.length],[A,F,W]=S,z=A-a,q=F-d,[G,Y,ie]=P,U=G-a,me=Y-d,Ae=z*me-U*q;if(s+=Ae,n+=(z+U)*Ae,i+=(q+me)*Ae,t&&S.length>2&&P.length>2){let Ee=W-h,Ne=ie-h,we=z*Ne-U*Ee;o+=(Ee+Ne)*we,l+=we}A<r[0]&&(r[0]=A),A>r[1]&&(r[1]=A),F<r[2]&&(r[2]=F),F>r[3]&&(r[3]=F),t&&(W<r[4]&&(r[4]=W),W>r[5]&&(r[5]=W))}if(s>0&&(s*=-1),l>0&&(l*=-1),!s)return null;s*=.5,l*=.5;let g=[n/(6*s)+a,i/(6*s)+d,s];return t&&(r[4]===r[5]||l===0?(g[3]=(r[4]+r[5])/2,g[4]=0):(g[3]=o/(6*l)+h,g[4]=l)),g}function Pee(e,t){let r=t?[0,0,0]:[0,0],n=t?[0,0,0]:[0,0],i=0,o=0,s=0,l=0;for(let a=0,d=e.length;a<d-1;a++){let h=e[a],g=e[a+1];if(h&&g){r[0]=h[0],r[1]=h[1],n[0]=g[0],n[1]=g[1],t&&h.length>2&&g.length>2&&(r[2]=h[2],n[2]=g[2]);let b=M$(r,n);if(b){i+=b;let S=A$(h,g);o+=b*S[0],s+=b*S[1],t&&S.length>2&&(l+=b*S[2])}}}return i>0?t?[o/i,s/i,l/i]:[o/i,s/i]:e.length?e[0]:null}var kTe,k$=O(()=>{T$();eC();kTe=1/3});var $Te,VTe,UTe,zTe,N$=O(()=>{tt();X3();Ma();$Te=[-1/0,-1/0,1/0,1/0],VTe=[1/0,1/0,-1/0,-1/0],UTe=[0,0,0,0],zTe=[0,0,1,1]});function O$(e){function t(r,n){return r==null?n:n==null?r:e(r,n)}return t}function tC(e,t,r,n){let i=r?3:2;if(!t.length||!t[0].length)return null;let o,s,l,a,[d,h]=t[0][0],[g,b]=t[0][0];for(let S=0;S<t.length;S++){let P=t[S];for(let A=0;A<P.length;A++){let F=P[A],[W,z]=F;if(d=N_(d,W),h=N_(h,z),g=O_(g,W),b=O_(b,z),r&&F.length>2){let q=F[2];o=N_(o,q),s=O_(s,q)}if(n&&F.length>i){let q=F[i];l=N_(o,q),a=O_(s,q)}}}return r?n?(e[0]=d,e[1]=h,e[2]=o,e[3]=l,e[4]=g,e[5]=b,e[6]=s,e[7]=a,e.length=8,e):(e[0]=d,e[1]=h,e[2]=o,e[3]=g,e[4]=b,e[5]=s,e.length=6,e):n?(e[0]=d,e[1]=h,e[2]=l,e[3]=g,e[4]=b,e[5]=a,e.length=6,e):(e[0]=d,e[1]=h,e[2]=g,e[3]=b,e.length=4,e)}var N_,O_,R$=O(()=>{N$();N_=O$(Math.min),O_=O$(Math.max)});function Mee(e,t,r,n){return{xmin:e,ymin:t,xmax:r,ymax:n}}function Aee(e,t,r,n,i,o){return{xmin:e,ymin:t,zmin:r,xmax:n,ymax:i,zmax:o}}function Iee(e,t,r,n,i,o){return{xmin:e,ymin:t,mmin:r,xmax:n,ymax:i,mmax:o}}function Lee(e,t,r,n,i,o,s,l){return{xmin:e,ymin:t,zmin:r,mmin:n,xmax:i,ymax:o,zmax:s,mmax:l}}function F$(e,t=!1,r=!1){return t?r?Lee(e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]):Aee(e[0],e[1],e[2],e[3],e[4],e[5]):r?Iee(e[0],e[1],e[2],e[3],e[4],e[5]):Mee(e[0],e[1],e[2],e[3])}function $$(e){let{hasZ:t,hasM:r,rings:n}=e,i=tC(D$,n,t??!1,r??!1);return i?F$(i,t,r):null}function V$(e){let{hasZ:t,hasM:r,paths:n}=e,i=tC(D$,n,t??!1,r??!1);return i?F$(i,t,r):null}var D$,rC=O(()=>{R$();D$=[]});function U$(e){return!Array.isArray(e[0])}function kee(e){return typeof e[0]?.[0]=="number"}function Nee(e){if(!e)return;let{rings:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??(t=[]),kee(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??(n=!0),r??(r=!0);break;case 3:n??(n=r!==!0),r??(r=!n);break;default:n??(n=!1),r??(r=!1)}return i??(i=jt.WGS84),{...e,hasM:r,hasZ:n,rings:t,spatialReference:i}}var R_,co,D_,nC=O(()=>{gt();hl();ar();yt();tt();it();ft();Pa();Ma();dc();pc();Xo();k$();M_();eC();rC();j3();K1();L_();co=R_=class extends mi{static fromExtent(e){let t=e.clone().normalize(),{spatialReference:r}=e,n=!1,i=!1;for(let s of t)s.hasZ&&(n=!0),s.hasM&&(i=!0);let o={rings:t.map(s=>{let l=[[s.xmin,s.ymin],[s.xmin,s.ymax],[s.xmax,s.ymax],[s.xmax,s.ymin],[s.xmin,s.ymin]];if(n&&s.hasZ){let a=s.zmin+.5*(s.zmax-s.zmin);for(let d=0;d<l.length;d++)l[d].push(a)}if(i&&s.hasM){let a=s.mmin+.5*(s.mmax-s.mmin);for(let d=0;d<l.length;d++)l[d].push(a)}return l}),spatialReference:r};return n&&(o.hasZ=!0),i&&(o.hasM=!0),new R_(o)}constructor(e){super(Nee(e)),this.curveRings=void 0,this.rings=[],this.type="polygon"}get cache(){return this.commitProperty("curveRings"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("rings"),this.commitProperty("spatialReference"),{}}get centroid(){let e=L$(this);if(!e||isNaN(e[0])||isNaN(e[1])||this.hasZ&&isNaN(e[2]))return null;let t=new Kt;return t.x=e[0],t.y=e[1],t.spatialReference=this.spatialReference,this.hasZ&&(t.z=e[2]),t}writeCurveRings(e,t){t.curveRings=Je(e)}get extent(){let e=$$(this),{spatialReference:t}=this;return e?new hi({...e,spatialReference:t}):null}get isSelfIntersecting(){return d$(this.rings)}writeRings(e,t){t.rings=Je(this.rings)}addRing(e){if(!e)return;let t=this.rings,r=t.length;if(U$(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("rings"),this}clone(){let e=new R_;return e.spatialReference=this.spatialReference,e.rings=Je(this.rings),e.curveRings=Je(this.curveRings),e.hasZ=this.hasZ,e.hasM=this.hasM,e}equals(e){if(this===e)return!0;if(e==null)return!1;let t=this.spatialReference,r=e.spatialReference;if(t!=null!=(r!=null)||t!=null&&r!=null&&!t.equals(r)||this.rings.length!==e.rings.length)return!1;let n=([i,o,s,l],[a,d,h,g])=>i===a&&o===d&&(s==null&&h==null||s===h)&&(l==null&&g==null||l===g);for(let i=0;i<this.rings.length;i++){let o=this.rings[i],s=e.rings[i];if(!ml(o,s,n))return!1}return!0}contains(e){if(!e)return!1;let t=QF(e,this.spatialReference);return c$(this,t??e)}isClockwise(e){let t=U$(e)?e.map(r=>this.hasZ?this.hasM?[r.x,r.y,r.z,r.m]:[r.x,r.y,r.z]:[r.x,r.y]):e;return I$(t)}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.rings[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new Kt(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new Kt(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new Kt(r[0],r[1],r[2],r[3],this.spatialReference):new Kt(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e].splice(t,0,r),this.notifyChange("rings"),this):this}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new Kt(this.rings[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("rings"),r}removeRing(e){if(!this._validateInputs(e,null))return null;let t=this.rings.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new Kt(i,r));return this.notifyChange("rings"),n}setPoint(e,t,r){return this._validateInputs(e,t)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.rings[e][t]=r,this.notifyChange("rings"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.rings.length)return!1;if(t!=null){let n=this.rings[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};R([V({readOnly:!0})],co.prototype,"cache",null),R([V({readOnly:!0})],co.prototype,"centroid",null),R([V({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],co.prototype,"curveRings",void 0),R([pr("curveRings")],co.prototype,"writeCurveRings",null),R([V({readOnly:!0})],co.prototype,"extent",null),R([V({readOnly:!0})],co.prototype,"isSelfIntersecting",null),R([V({type:[[[Number]]],json:{write:{isRequired:!0}}})],co.prototype,"rings",void 0),R([pr("rings")],co.prototype,"writeRings",null),co=R_=R([Le("esri.geometry.Polygon")],co);D_=co;co.prototype.toJSON.isDefaultToJSON=!0});function Oee(e){return!Array.isArray(e[0])}function Ree(e){return typeof e[0]?.[0]=="number"}function Dee(e){if(!e)return;let{paths:t,hasM:r,hasZ:n,spatialReference:i}=e;switch(t??(t=[]),Ree(t)&&(t=[t]),t[0]?.[0]?.length){case 4:n??(n=!0),r??(r=!0);break;case 3:n??(n=r!==!0),r??(r=!n);break;default:n??(n=!1),r??(r=!1)}return i??(i=jt.WGS84),{...e,hasM:r,hasZ:n,paths:t,spatialReference:i}}var iC,Ds,F_,oC=O(()=>{gt();ar();yt();tt();it();ft();Pa();Ma();dc();pc();Xo();rC();L_();Ds=iC=class extends mi{constructor(e){super(Dee(e)),this.curvePaths=void 0,this.paths=[],this.type="polyline"}get cache(){return this.commitProperty("curvePaths"),this.commitProperty("hasM"),this.commitProperty("hasZ"),this.commitProperty("paths"),this.commitProperty("spatialReference"),{}}writeCurvePaths(e,t){t.curvePaths=Je(e)}get extent(){let e=V$(this),{spatialReference:t}=this;return e?new hi({...e,spatialReference:t}):null}writePaths(e,t){t.paths=Je(this.paths)}addPath(e){if(!e)return;let t=this.paths,r=t.length;if(Oee(e)){let n=[];for(let i=0,o=e.length;i<o;i++)n[i]=e[i].toArray();t[r]=n}else t[r]=e.slice();return this.notifyChange("paths"),this}clone(){let e=new iC;return e.spatialReference=this.spatialReference,e.paths=Je(this.paths),e.curvePaths=Je(this.curvePaths),e.hasZ=this.hasZ,e.hasM=this.hasM,e}getPoint(e,t){if(!this._validateInputs(e,t))return null;let r=this.paths[e][t],n=this.hasZ,i=this.hasM;return n&&!i?new Kt(r[0],r[1],r[2],void 0,this.spatialReference):i&&!n?new Kt(r[0],r[1],void 0,r[2],this.spatialReference):n&&i?new Kt(r[0],r[1],r[2],r[3],this.spatialReference):new Kt(r[0],r[1],this.spatialReference)}insertPoint(e,t,r){return this._validateInputs(e,t,!0)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e].splice(t,0,r),this.notifyChange("paths"),this):this}removePath(e){if(!this._validateInputs(e,null))return null;let t=this.paths.splice(e,1)[0],r=this.spatialReference,n=t.map(i=>new Kt(i,r));return this.notifyChange("paths"),n}removePoint(e,t){if(!this._validateInputs(e,t))return null;let r=new Kt(this.paths[e].splice(t,1)[0],this.spatialReference);return this.notifyChange("paths"),r}setPoint(e,t,r){return this._validateInputs(e,t)?(Ia(this,r),Array.isArray(r)||(r=r.toArray()),this.paths[e][t]=r,this.notifyChange("paths"),this):this}_validateInputs(e,t,r=!1){if(e==null||e<0||e>=this.paths.length)return!1;if(t!=null){let n=this.paths[e];if(r&&(t<0||t>n.length)||!r&&(t<0||t>=n.length))return!1}return!0}toJSON(e){return this.write({},e)}};R([V({readOnly:!0})],Ds.prototype,"cache",null),R([V({json:{write:!0,origins:{"portal-item":{write:!1},"web-map":{write:!1},"web-scene":{write:!1}}}})],Ds.prototype,"curvePaths",void 0),R([pr("curvePaths")],Ds.prototype,"writeCurvePaths",null),R([V({readOnly:!0})],Ds.prototype,"extent",null),R([V({type:[[[Number]]],json:{write:{isRequired:!0}}})],Ds.prototype,"paths",void 0),R([pr("paths")],Ds.prototype,"writePaths",null),Ds=iC=R([Le("esri.geometry.Polyline")],Ds);F_=Ds;Ds.prototype.toJSON.isDefaultToJSON=!0});var sC,Fee,aC=O(()=>{Ai();sC=Ki()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon"}),Fee=Ki()({esriGeometryPoint:"point",esriGeometryMultipoint:"multipoint",esriGeometryPolyline:"polyline",esriGeometryPolygon:"polygon",esriGeometryEnvelope:"extent",mesh:"mesh"})});function $ee(e){return e.xmin!==void 0&&e.ymin!==void 0&&e.xmax!==void 0&&e.ymax!==void 0}function Vee(e){return e.points!==void 0}function Uee(e){return e.x!==void 0&&e.y!==void 0}function zee(e){return e.paths!==void 0||e.curvePaths!==void 0}function Wee(e){return e.rings!==void 0||e.curveRings!==void 0}function lC(e){return e==null?null:e instanceof mi?e:Uee(e)?Kt.fromJSON(e):zee(e)?F_.fromJSON(e):Wee(e)?D_.fromJSON(e):Vee(e)?k_.fromJSON(e):$ee(e)?hi.fromJSON(e):null}var cC=O(()=>{Ma();dc();K3();pc();nC();oC()});var uC,H7e,o0=O(()=>{Xi();Ma();dc();K3();pc();nC();oC();Xo();aC();cC();uC={base:mi,key:"type",typeMap:{extent:hi,multipoint:k_,point:Kt,polyline:F_,polygon:D_}},H7e=Ro(uC)});function er(e,t={}){let r=e instanceof Rr?e:new Rr(e,t),{alwaysWriteDefaults:n,default:i,ignoreUnknown:o=!0,name:s,nonNullable:l,readOnly:a=!1}=t;return V({type:o?r.apiValues:String,json:{type:r.jsonValues,default:i,name:s,read:!a&&{reader:r.read},write:{writer:r.write,alwaysWriteDefaults:n}},nonNullable:l,readOnly:a})}var uo=O(()=>{Ai();yt()});var dC,Um,z$=O(()=>{gt();Or();yt();tt();it();Zr();ft();Um=dC=class extends ut{constructor(e){super(e),this.name=null,this.code=null}clone(){return new dC({name:this.name,code:this.code})}};R([V({type:String,json:{write:{isRequired:!0}}})],Um.prototype,"name",void 0),R([V({type:[String,Number],json:{write:{isRequired:!0}}})],Um.prototype,"code",void 0),Um=dC=R([Le("esri.layers.support.CodedValue")],Um)});var Bee,s0,hc,a0=O(()=>{gt();Ai();Or();yt();tt();it();Zr();uo();ft();Bee=new Rr({inherited:"inherited",codedValue:"coded-value",range:"range"}),s0=class extends ut{constructor(e){super(e),this.name=null,this.type=null}};R([V({type:String,json:{write:!0}})],s0.prototype,"name",void 0),R([er(Bee),V({json:{write:{isRequired:!0}}})],s0.prototype,"type",void 0),s0=R([Le("esri.layers.support.Domain")],s0);hc=s0});var pC,l0,fC,W$=O(()=>{gt();ar();yt();tt();it();uo();ft();z$();a0();l0=pC=class extends hc{constructor(e){super(e),this.codedValues=null,this.type="coded-value"}getName(e){let t=null;if(this.codedValues){let r=String(e);this.codedValues.some(n=>(String(n.code)===r&&(t=n.name),!!t))}return t}clone(){return new pC({codedValues:Je(this.codedValues),name:this.name})}};R([V({type:[Um],json:{write:{isRequired:!0}}})],l0.prototype,"codedValues",void 0),R([er({codedValue:"coded-value"})],l0.prototype,"type",void 0),l0=pC=R([Le("esri.layers.support.CodedValueDomain")],l0);fC=l0});var mC,$_,hC,B$=O(()=>{gt();it();tt();Zr();Fn();uo();ft();a0();$_=mC=class extends hc{constructor(e){super(e),this.type="inherited"}clone(){return new mC}};R([er({inherited:"inherited"})],$_.prototype,"type",void 0),$_=mC=R([Le("esri.layers.support.InheritedDomain")],$_);hC=$_});var gC,zm,wC,G$=O(()=>{gt();yt();tt();it();Zr();uo();ft();a0();zm=gC=class extends hc{constructor(e){super(e),this.maxValue=null,this.minValue=null,this.type="range"}clone(){return new gC({maxValue:this.maxValue,minValue:this.minValue,name:this.name})}};R([V({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[1]},write:{enabled:!1,overridePolicy(){return{enabled:this.maxValue!=null&&this.minValue==null}},target:"range",writer(e,t,r){t[r]=[this.minValue||0,e]},isRequired:!0}}})],zm.prototype,"maxValue",void 0),R([V({json:{type:[Number],read:{source:"range",reader:(e,t)=>t.range?.[0]},write:{target:"range",writer(e,t,r){t[r]=[e,this.maxValue||0]},isRequired:!0}}})],zm.prototype,"minValue",void 0),R([er({range:"range"})],zm.prototype,"type",void 0),zm=gC=R([Le("esri.layers.support.RangeDomain")],zm);wC=zm});function q$(e){if(!e?.type)return null;switch(e.type){case"range":return wC.fromJSON(e);case"codedValue":return fC.fromJSON(e);case"inherited":return hC.fromJSON(e)}return null}var j$,H$=O(()=>{tt();W$();a0();B$();G$();j$={key:"type",base:hc,typeMap:{range:wC,"coded-value":fC,inherited:hC}}});var Z$,Y$=O(()=>{Ai();Z$=new Rr({esriFieldTypeSmallInteger:"small-integer",esriFieldTypeInteger:"integer",esriFieldTypeSingle:"single",esriFieldTypeDouble:"double",esriFieldTypeLong:"long",esriFieldTypeString:"string",esriFieldTypeDate:"date",esriFieldTypeOID:"oid",esriFieldTypeGeometry:"geometry",esriFieldTypeBlob:"blob",esriFieldTypeRaster:"raster",esriFieldTypeGUID:"guid",esriFieldTypeGlobalID:"global-id",esriFieldTypeXML:"xml",esriFieldTypeBigInteger:"big-integer",esriFieldTypeDateOnly:"date-only",esriFieldTypeTimeOnly:"time-only",esriFieldTypeTimestampOffset:"timestamp-offset"})});var yC,Gee,Bn,J$,X$=O(()=>{gt();Ai();Or();yt();Xi();Zr();tt();uo();Yf();ft();H$();Y$();Gee=new Rr({binary:"binary",coordinate:"coordinate",countOrAmount:"count-or-amount",dateAndTime:"date-and-time",description:"description",locationOrPlaceName:"location-or-place-name",measurement:"measurement",nameOrTitle:"name-or-title",none:"none",orderedOrRanked:"ordered-or-ranked",percentageOrRatio:"percentage-or-ratio",typeOrCategory:"type-or-category",uniqueIdentifier:"unique-identifier"}),Bn=yC=class extends ut{constructor(e){super(e),this.alias=null,this.defaultValue=void 0,this.description=null,this.domain=null,this.editable=!0,this.length=void 0,this.name=null,this.nullable=!0,this.type=null,this.valueType=null,this.visible=!0}readDescription(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?.value??null}readValueType(e,{description:t}){let r=null;try{r=t?JSON.parse(t):null}catch{}return r?Gee.fromJSON(r.fieldValueType):null}clone(){return new yC({alias:this.alias,defaultValue:this.defaultValue,description:this.description,domain:this.domain?.clone()??null,editable:this.editable,length:this.length,name:this.name,nullable:this.nullable,type:this.type,valueType:this.valueType,visible:this.visible})}};R([V({type:String,json:{write:!0}})],Bn.prototype,"alias",void 0),R([V({type:[String,Number],json:{write:{allowNull:!0}}})],Bn.prototype,"defaultValue",void 0),R([V()],Bn.prototype,"description",void 0),R([Mi("description")],Bn.prototype,"readDescription",null),R([V({types:j$,json:{read:{reader:q$},write:!0}})],Bn.prototype,"domain",void 0),R([V({type:Boolean,json:{write:!0}})],Bn.prototype,"editable",void 0),R([V({type:di,json:{write:{overridePolicy:e=>({enabled:Number.isFinite(e)})}}})],Bn.prototype,"length",void 0),R([V({type:String,json:{write:!0}})],Bn.prototype,"name",void 0),R([V({type:Boolean,json:{write:!0}})],Bn.prototype,"nullable",void 0),R([er(Z$)],Bn.prototype,"type",void 0),R([V()],Bn.prototype,"valueType",void 0),R([Mi("valueType",["description"])],Bn.prototype,"readValueType",null),R([V({type:Boolean,json:{read:!1}})],Bn.prototype,"visible",void 0),Bn=yC=R([Le("esri.layers.support.Field")],Bn);J$=Bn});var vC,bd,Q$=O(()=>{gt();Or();yt();Xi();Zr();tt();uo();ft();bd=vC=class extends ut{constructor(e){super(e),this.type="map-layer"}clone(){let{mapLayerId:e,gdbVersion:t}=this;return new vC({mapLayerId:e,gdbVersion:t})}};R([er({mapLayer:"map-layer"}),V({json:{write:{isRequired:!0}}})],bd.prototype,"type",void 0),R([V({type:di,json:{write:{isRequired:!0}}})],bd.prototype,"mapLayerId",void 0),R([V({type:String,json:{write:!0}})],bd.prototype,"gdbVersion",void 0),bd=vC=R([Le("esri.layers.support.source.MapLayerSource")],bd)});var bC,Fs,K$=O(()=>{gt();o0();Or();yt();tt();it();Zr();uo();ft();Xo();aC();Fs=bC=class extends ut{constructor(e){super(e),this.type="query-table"}clone(){let{workspaceId:e,query:t,oidFields:r,spatialReference:n,geometryType:i}=this,o={workspaceId:e,query:t,oidFields:r,spatialReference:n?.clone()??void 0,geometryType:i};return new bC(o)}};R([er({queryTable:"query-table"}),V({json:{write:{isRequired:!0}}})],Fs.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],Fs.prototype,"workspaceId",void 0),R([V({type:String,json:{write:!0}})],Fs.prototype,"query",void 0),R([V({type:String,json:{write:!0}})],Fs.prototype,"oidFields",void 0),R([V({type:jt,json:{write:!0}})],Fs.prototype,"spatialReference",void 0),R([er(sC)],Fs.prototype,"geometryType",void 0),Fs=bC=R([Le("esri.layers.support.source.QueryTableDataSource")],Fs)});var _C,_d,eV=O(()=>{gt();Or();yt();tt();it();Zr();uo();ft();_d=_C=class extends ut{constructor(e){super(e),this.type="raster"}clone(){let{workspaceId:e,dataSourceName:t}=this;return new _C({workspaceId:e,dataSourceName:t})}};R([er({raster:"raster"}),V({json:{write:{isRequired:!0}}})],_d.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],_d.prototype,"dataSourceName",void 0),R([V({type:String,json:{write:!0}})],_d.prototype,"workspaceId",void 0),_d=_C=R([Le("esri.layers.support.source.RasterDataSource")],_d)});var xC,gc,tV=O(()=>{gt();Or();yt();tt();it();Zr();uo();ft();gc=xC=class extends ut{constructor(e){super(e),this.type="table"}clone(){let{workspaceId:e,gdbVersion:t,dataSourceName:r}=this;return new xC({workspaceId:e,gdbVersion:t,dataSourceName:r})}};R([er({table:"table"}),V({json:{write:{isRequired:!0}}})],gc.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],gc.prototype,"workspaceId",void 0),R([V({type:String,json:{write:!0}})],gc.prototype,"gdbVersion",void 0),R([V({type:String,json:{write:!0}})],gc.prototype,"dataSourceName",void 0),gc=xC=R([Le("esri.layers.support.source.TableDataSource")],gc)});function rV(){return SC||(SC=a4({types:PC()})),SC}function PC(){return EC||(EC={key:"type",base:null,typeMap:{"data-layer":$s,"map-layer":bd}}),EC}var CC,TC,jee,Fi,SC,EC,qee,$s,nV=O(()=>{gt();Ai();Or();yt();n1();uo();Yf();ft();Xi();u4();X$();Q$();K$();eV();tV();jee=Ki()({esriLeftInnerJoin:"left-inner-join",esriLeftOuterJoin:"left-outer-join"}),Fi=CC=class extends ut{constructor(e){super(e),this.type="join-table"}readLeftTableSource(e,t,r){return rV()(e,t,r)}castLeftTableSource(e){return Ro(PC(),e)}readRightTableSource(e,t,r){return rV()(e,t,r)}castRightTableSource(e){return Ro(PC(),e)}clone(){let{leftTableKey:e,rightTableKey:t,leftTableSource:r,rightTableSource:n,joinType:i}=this,o={leftTableKey:e,rightTableKey:t,leftTableSource:r?.clone()??void 0,rightTableSource:n?.clone()??void 0,joinType:i};return new CC(o)}};R([er({joinTable:"join-table"}),V({json:{write:{isRequired:!0}}})],Fi.prototype,"type",void 0),R([V({type:String,json:{write:!0}})],Fi.prototype,"leftTableKey",void 0),R([V({type:String,json:{write:!0}})],Fi.prototype,"rightTableKey",void 0),R([V({json:{write:!0}})],Fi.prototype,"leftTableSource",void 0),R([Mi("leftTableSource")],Fi.prototype,"readLeftTableSource",null),R([ha("leftTableSource")],Fi.prototype,"castLeftTableSource",null),R([V({json:{write:!0}})],Fi.prototype,"rightTableSource",void 0),R([Mi("rightTableSource")],Fi.prototype,"readRightTableSource",null),R([ha("rightTableSource")],Fi.prototype,"castRightTableSource",null),R([er(jee)],Fi.prototype,"joinType",void 0),Fi=CC=R([Le("esri.layers.support.source.JoinTableDataSource")],Fi);SC=null;EC=null;qee={key:"type",base:null,typeMap:{"join-table":Fi,"query-table":Fs,raster:_d,table:gc}},$s=TC=class extends ut{constructor(e){super(e),this.type="data-layer"}clone(){let{fields:e,dataSource:t}=this;return new TC({fields:e,dataSource:t})}};R([er({dataLayer:"data-layer"}),V({json:{write:{isRequired:!0}}})],$s.prototype,"type",void 0),R([V({type:[J$],json:{write:!0}})],$s.prototype,"fields",void 0),R([V({types:qee,json:{write:!0}})],$s.prototype,"dataSource",void 0),$s=TC=R([Le("esri.layers.support.source.DataLayerSource")],$s),$s.from=ui($s)});var iV,c0,oV,sV=O(()=>{gt();Dl();tt();ar();it();da();Nl();ua();ft();iV=e=>{let t=class extends e{clone(){let r=Pi(this);sA(r,"unable to clone instance of non-accessor class");let n=r.metadata,i=r.store,o={},s=new Map;for(let a in n){let d=n[a],h=i?.originOf(a),g=d.clonable;if(d.readOnly||g===!1||h!==lt.USER&&h!==lt.DEFAULTS&&h!==lt.WEB_MAP&&h!==lt.WEB_SCENE)continue;let b=this[a],S=null;S=typeof g=="function"?g(b):g==="reference"?b:Uw(b),b!=null&&S==null||(h===lt.DEFAULTS?s.set(a,S):o[a]=S)}let l=new(Object.getPrototypeOf(this)).constructor(o);if(s.size){let a=Pi(l)?.store;if(a)for(let[d,h]of s)a.set(d,h,lt.DEFAULTS)}return l}};return t=R([Le("esri.core.Clonable")],t),t},c0=class extends iV(Jr){};c0=R([Le("esri.core.Clonable")],c0),function(e){e.ClonableMixin=iV}(c0||(c0={}));oV=c0});var xd,aV,lV=O(()=>{gt();sV();Or();yt();tt();it();Zr();ft();xd=class extends oV.ClonableMixin(ut){constructor(e){super(e),this.onFields=null,this.operator=null,this.searchTerm=null,this.searchType=null}};R([V({type:[String],json:{write:{enabled:!0,overridePolicy(){return{enabled:this.onFields!=null&&this.onFields.length>0}}}}})],xd.prototype,"onFields",void 0),R([V({type:String,json:{write:!0}})],xd.prototype,"operator",void 0),R([V({type:String,json:{write:!0}})],xd.prototype,"searchTerm",void 0),R([V({type:String,json:{write:!0}})],xd.prototype,"searchType",void 0),xd=R([Le("esri.rest.support.FullTextSearch")],xd);aV=xd});var MC,cV,Sd,uV,dV=O(()=>{gt();o0();Ai();Or();ar();yt();tt();it();ft();Ma();cV=new Rr({upperLeft:"upper-left",lowerLeft:"lower-left"}),Sd=MC=class extends ut{constructor(e){super(e),this.extent=null,this.mode="view",this.originPosition="upper-left",this.tolerance=1}clone(){return new MC(Je({extent:this.extent,mode:this.mode,originPosition:this.originPosition,tolerance:this.tolerance}))}};R([V({type:hi,json:{write:{overridePolicy(){return{enabled:this.mode==="view"}}}}})],Sd.prototype,"extent",void 0),R([V({type:["view","edit"],json:{write:!0}})],Sd.prototype,"mode",void 0),R([V({type:String,json:{read:cV.read,write:cV.write}})],Sd.prototype,"originPosition",void 0),R([V({type:Number,json:{write:{overridePolicy(){return{enabled:this.mode==="view"}}}}})],Sd.prototype,"tolerance",void 0),Sd=MC=R([Le("esri.rest.support.QuantizationParameters")],Sd);uV=Sd});var pV,fV=O(()=>{Ai();pV=new Rr({esriSpatialRelIntersects:"intersects",esriSpatialRelContains:"contains",esriSpatialRelCrosses:"crosses",esriSpatialRelDisjoint:"disjoint",esriSpatialRelEnvelopeIntersects:"envelope-intersects",esriSpatialRelIndexIntersects:"index-intersects",esriSpatialRelOverlaps:"overlaps",esriSpatialRelTouches:"touches",esriSpatialRelWithin:"within",esriSpatialRelRelation:"relation"})});var AC,mV,Ko,hV,gV=O(()=>{gt();Ai();Or();ar();yt();tt();it();ft();Pa();mV=new Rr({count:"count",sum:"sum",min:"min",max:"max",avg:"avg",stddev:"stddev",var:"var",exceedslimit:"exceedslimit",percentile_cont:"percentile-continuous",percentile_disc:"percentile-discrete",EnvelopeAggregate:"envelope-aggregate",CentroidAggregate:"centroid-aggregate",ConvexHullAggregate:"convex-hull-aggregate"}),Ko=AC=class extends ut{constructor(e){super(e),this.maxPointCount=void 0,this.maxRecordCount=void 0,this.maxVertexCount=void 0,this.onStatisticField=null,this.outStatisticFieldName=null,this.statisticType=null,this.statisticParameters=null}writeStatisticParameters(e,t){this.statisticType!=="percentile-continuous"&&this.statisticType!=="percentile-discrete"||(t.statisticParameters=Je(e))}clone(){return new AC({maxPointCount:this.maxPointCount,maxRecordCount:this.maxRecordCount,maxVertexCount:this.maxVertexCount,onStatisticField:this.onStatisticField,outStatisticFieldName:this.outStatisticFieldName,statisticType:this.statisticType,statisticParameters:Je(this.statisticParameters)})}};R([V({type:Number,json:{write:!0}})],Ko.prototype,"maxPointCount",void 0),R([V({type:Number,json:{write:!0}})],Ko.prototype,"maxRecordCount",void 0),R([V({type:Number,json:{write:!0}})],Ko.prototype,"maxVertexCount",void 0),R([V({type:String,json:{write:!0}})],Ko.prototype,"onStatisticField",void 0),R([V({type:String,json:{write:!0}})],Ko.prototype,"outStatisticFieldName",void 0),R([V({type:String,json:{read:{source:"statisticType",reader:mV.read},write:{target:"statisticType",writer:mV.write}}})],Ko.prototype,"statisticType",void 0),R([V({type:Object})],Ko.prototype,"statisticParameters",void 0),R([pr("statisticParameters")],Ko.prototype,"writeStatisticParameters",null),Ko=AC=R([Le("esri.rest.support.StatisticDefinition")],Ko);hV=Ko});function V_(e,t,r,n=Uo){let i=new or(mv(n)),o=Ce.fromJSDate(e,{zone:i}),s=r==="decades"||r==="centuries"?"year":wV(r);return r==="decades"&&(t*=10),r==="centuries"&&(t*=100),o.plus({[s]:t}).toJSDate()}function IC(e,t,r=Uo){let n=new or(mv(r)),i=Ce.fromJSDate(e,{zone:n});if(t==="decades"||t==="centuries"){let s=i.startOf("year"),{year:l}=s,a=l-l%(t==="decades"?10:100);return s.set({year:a}).toJSDate()}let o=wV(t);return i.startOf(o).toJSDate()}function wV(e){switch(e){case"milliseconds":return"millisecond";case"seconds":return"second";case"minutes":return"minute";case"hours":return"hour";case"days":return"day";case"weeks":return"week";case"months":return"month";case"years":return"year"}}var yV=O(()=>{hv();Hg();Dn()});var po,$i,bV,vV,Hee,_V=O(()=>{gt();Or();yV();yt();tt();it();Zr();Yf();ft();Pa();Hg();$i=po=class extends ut{static get allTime(){return vV}static get empty(){return Hee}static fromArray(e){return new po({start:e[0]!=null?new Date(e[0]):e[0],end:e[1]!=null?new Date(e[1]):e[1]})}constructor(e){super(e),this.end=null,this.start=null}readEnd(e,t){return t.end!=null?new Date(t.end):null}writeEnd(e,t){t.end=e?.getTime()??null}get isAllTime(){return this.equals(po.allTime)}get isEmpty(){return this.equals(po.empty)}readStart(e,t){return t.start!=null?new Date(t.start):null}writeStart(e,t){t.start=e?.getTime()??null}clone(){return new po({end:this.end,start:this.start})}equals(e){if(!e)return!1;let t=this.start?.getTime()??this.start,r=this.end?.getTime()??this.end,n=e.start?.getTime()??e.start,i=e.end?.getTime()??e.end;return t===n&&r===i}expandTo(e,t=Uo){if(this.isEmpty||this.isAllTime)return this.clone();let r=this.start;r&&(r=IC(r,e,t));let n=this.end;if(n){let i=IC(n,e,t);n=n.getTime()===i.getTime()?i:V_(i,1,e,t)}return new po({start:r,end:n})}intersection(e){if(!e)return this.clone();if(this.isEmpty||e.isEmpty)return po.empty;if(this.isAllTime)return e.clone();if(e.isAllTime)return this.clone();let t=this.start?.getTime()??-1/0,r=this.end?.getTime()??1/0,n=e.start?.getTime()??-1/0,i=e.end?.getTime()??1/0,o,s;return n>=t&&n<=r?o=n:t>=n&&t<=i&&(o=t),r>=n&&r<=i?s=r:i>=t&&i<=r&&(s=i),o==null||s==null||isNaN(o)||isNaN(s)?po.empty:new po({start:o===-1/0?null:new Date(o),end:s===1/0?null:new Date(s)})}offset(e,t,r=Uo){if(this.isEmpty||this.isAllTime)return this.clone();let n=new po,{start:i,end:o}=this;return i!=null&&(n.start=V_(i,e,t,r)),o!=null&&(n.end=V_(o,e,t,r)),n}toArray(){return this.isEmpty?[void 0,void 0]:[this.start?.getTime()??null,this.end?.getTime()??null]}union(e){if(!e||e.isEmpty)return this.clone();if(this.isEmpty)return e.clone();if(this.isAllTime||e.isAllTime)return vV.clone();let t=this.start!=null&&e.start!=null?new Date(Math.min(this.start.getTime(),e.start.getTime())):null,r=this.end!=null&&e.end!=null?new Date(Math.max(this.end.getTime(),e.end.getTime())):null;return new po({start:t,end:r})}};R([V({type:Date,json:{write:{allowNull:!0}}})],$i.prototype,"end",void 0),R([Mi("end")],$i.prototype,"readEnd",null),R([pr("end")],$i.prototype,"writeEnd",null),R([V({readOnly:!0,json:{read:!1}})],$i.prototype,"isAllTime",null),R([V({readOnly:!0,json:{read:!1}})],$i.prototype,"isEmpty",null),R([V({type:Date,json:{write:{allowNull:!0}}})],$i.prototype,"start",void 0),R([Mi("start")],$i.prototype,"readStart",null),R([pr("start")],$i.prototype,"writeStart",null),$i=po=R([Le("esri.time.TimeExtent")],$i);bV=$i,vV=new $i,Hee=new $i({start:void 0,end:void 0})});var U_,Zee,Ge,xV=O(()=>{gt();o0();Ai();Or();ar();yt();n1();uo();ft();Pa();Xi();cC();nV();lV();dV();fV();gV();_V();Xo();pc();Zee=new Rr({esriSRUnit_Meter:"meters",esriSRUnit_Kilometer:"kilometers",esriSRUnit_Foot:"feet",esriSRUnit_StatuteMile:"miles",esriSRUnit_NauticalMile:"nautical-miles",esriSRUnit_USNauticalMile:"us-nautical-miles"}),Ge=U_=class extends ut{static from(e){return ZS(U_,e)}constructor(e){super(e),this.aggregateIds=null,this.cacheHint=void 0,this.compactGeometryEnabled=!1,this.datumTransformation=null,this.defaultSpatialReferenceEnabled=!1,this.distance=void 0,this.dynamicDataSource=void 0,this.formatOf3DObjects=null,this.fullText=null,this.gdbVersion=null,this.geometry=null,this.geometryPrecision=void 0,this.groupByFieldsForStatistics=null,this.having=null,this.historicMoment=null,this.maxAllowableOffset=void 0,this.maxRecordCountFactor=1,this.multipatchOption=null,this.num=void 0,this.objectIds=null,this.orderByFields=null,this.outFields=null,this.outSpatialReference=null,this.outStatistics=null,this.parameterValues=null,this.pixelSize=null,this.quantizationParameters=null,this.rangeValues=null,this.relationParameter=null,this.resultType=null,this.returnCentroid=!1,this.returnDistinctValues=!1,this.returnExceededLimitFeatures=!0,this.returnGeometry=!1,this.returnQueryGeometry=!1,this.returnM=void 0,this.returnZ=void 0,this.returnTrueCurves=void 0,this.sourceSpatialReference=null,this.spatialRelationship="intersects",this.start=void 0,this.sqlFormat=null,this.text=null,this.timeExtent=null,this.timeReferenceUnknownClient=!1,this.units=null,this.where=null}castDatumTransformation(e){return typeof e=="number"||typeof e=="object"?e:null}writeHistoricMoment(e,t){t.historicMoment=e&&e.getTime()}writeParameterValues(e,t){if(e){let r={};for(let n in e){let i=e[n];Array.isArray(i)?r[n]=i.map(o=>o instanceof Date?o.getTime():o):i instanceof Date?r[n]=i.getTime():r[n]=i}t.parameterValues=r}}writeStart(e,t){t.resultOffset=this.start,t.resultRecordCount=this.num||10,t.where="1=1"}writeWhere(e,t){t.where=e||"1=1"}clone(){return new U_(Je({aggregateIds:this.aggregateIds,cacheHint:this.cacheHint,compactGeometryEnabled:this.compactGeometryEnabled,datumTransformation:this.datumTransformation,defaultSpatialReferenceEnabled:this.defaultSpatialReferenceEnabled,distance:this.distance,fullText:this.fullText,formatOf3DObjects:this.formatOf3DObjects,gdbVersion:this.gdbVersion,geometry:this.geometry,geometryPrecision:this.geometryPrecision,groupByFieldsForStatistics:this.groupByFieldsForStatistics,having:this.having,historicMoment:this.historicMoment!=null?new Date(this.historicMoment.getTime()):null,maxAllowableOffset:this.maxAllowableOffset,maxRecordCountFactor:this.maxRecordCountFactor,multipatchOption:this.multipatchOption,num:this.num,objectIds:this.objectIds,orderByFields:this.orderByFields,outFields:this.outFields,outSpatialReference:this.outSpatialReference,outStatistics:this.outStatistics,parameterValues:this.parameterValues,pixelSize:this.pixelSize,quantizationParameters:this.quantizationParameters,rangeValues:this.rangeValues,relationParameter:this.relationParameter,resultType:this.resultType,returnDistinctValues:this.returnDistinctValues,returnGeometry:this.returnGeometry,returnCentroid:this.returnCentroid,returnExceededLimitFeatures:this.returnExceededLimitFeatures,returnQueryGeometry:this.returnQueryGeometry,returnM:this.returnM,returnZ:this.returnZ,returnTrueCurves:this.returnTrueCurves,dynamicDataSource:this.dynamicDataSource,sourceSpatialReference:this.sourceSpatialReference,spatialRelationship:this.spatialRelationship,start:this.start,sqlFormat:this.sqlFormat,text:this.text,timeExtent:this.timeExtent,timeReferenceUnknownClient:this.timeReferenceUnknownClient,units:this.units,where:this.where}))}};Ge.MAX_MAX_RECORD_COUNT_FACTOR=5,R([V({json:{write:!0}})],Ge.prototype,"aggregateIds",void 0),R([V({type:Boolean,json:{write:!0}})],Ge.prototype,"cacheHint",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"compactGeometryEnabled",void 0),R([V({json:{write:!0}})],Ge.prototype,"datumTransformation",void 0),R([ha("datumTransformation")],Ge.prototype,"castDatumTransformation",null),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"defaultSpatialReferenceEnabled",void 0),R([V({type:Number,json:{write:!0}})],Ge.prototype,"distance",void 0),R([V({type:$s,json:{write:!0}})],Ge.prototype,"dynamicDataSource",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"formatOf3DObjects",void 0),R([V({type:[aV],json:{write:{enabled:!0,overridePolicy(){return{enabled:this.fullText!=null&&this.fullText.length>0}}}}})],Ge.prototype,"fullText",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"gdbVersion",void 0),R([V({types:uC,json:{read:lC,write:!0}})],Ge.prototype,"geometry",void 0),R([V({type:Number,json:{write:!0}})],Ge.prototype,"geometryPrecision",void 0),R([V({type:[String],json:{write:!0}})],Ge.prototype,"groupByFieldsForStatistics",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"having",void 0),R([V({type:Date})],Ge.prototype,"historicMoment",void 0),R([pr("historicMoment")],Ge.prototype,"writeHistoricMoment",null),R([V({type:Number,json:{write:!0}})],Ge.prototype,"maxAllowableOffset",void 0),R([V({type:Number,cast:e=>e<1?1:e>Ge.MAX_MAX_RECORD_COUNT_FACTOR?Ge.MAX_MAX_RECORD_COUNT_FACTOR:e,json:{write:{overridePolicy:e=>({enabled:e>1})}}})],Ge.prototype,"maxRecordCountFactor",void 0),R([V({type:["xyFootprint"],json:{write:!0}})],Ge.prototype,"multipatchOption",void 0),R([V({type:Number,json:{read:{source:"resultRecordCount"}}})],Ge.prototype,"num",void 0),R([V({json:{write:!0}})],Ge.prototype,"objectIds",void 0),R([V({type:[String],json:{write:!0}})],Ge.prototype,"orderByFields",void 0),R([V({type:[String],json:{write:!0}})],Ge.prototype,"outFields",void 0),R([V({type:jt,json:{name:"outSR",write:!0}})],Ge.prototype,"outSpatialReference",void 0),R([V({type:[hV],json:{write:{enabled:!0,overridePolicy(){return{enabled:this.outStatistics!=null&&this.outStatistics.length>0}}}}})],Ge.prototype,"outStatistics",void 0),R([V({json:{write:!0}})],Ge.prototype,"parameterValues",void 0),R([pr("parameterValues")],Ge.prototype,"writeParameterValues",null),R([V({type:Kt,json:{write:!0}})],Ge.prototype,"pixelSize",void 0),R([V({type:uV,json:{write:!0}})],Ge.prototype,"quantizationParameters",void 0),R([V({type:[Object],json:{write:!0}})],Ge.prototype,"rangeValues",void 0),R([V({type:String,json:{read:{source:"relationParam"},write:{target:"relationParam",overridePolicy(){return{enabled:this.spatialRelationship==="relation"}}}}})],Ge.prototype,"relationParameter",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"resultType",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnCentroid",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnDistinctValues",void 0),R([V({type:Boolean,json:{default:!0,write:!0}})],Ge.prototype,"returnExceededLimitFeatures",void 0),R([V({type:Boolean,json:{write:!0}})],Ge.prototype,"returnGeometry",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnQueryGeometry",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"returnM",void 0),R([V({type:Boolean,json:{write:{overridePolicy:e=>({enabled:e})}}})],Ge.prototype,"returnZ",void 0),R([V({type:Boolean,json:{write:!0}})],Ge.prototype,"returnTrueCurves",void 0),R([V({type:jt,json:{write:!0}})],Ge.prototype,"sourceSpatialReference",void 0),R([er(pV,{ignoreUnknown:!1,name:"spatialRel"})],Ge.prototype,"spatialRelationship",void 0),R([V({type:Number,json:{read:{source:"resultOffset"}}})],Ge.prototype,"start",void 0),R([pr("start"),pr("num")],Ge.prototype,"writeStart",null),R([V({type:String,json:{write:!0}})],Ge.prototype,"sqlFormat",void 0),R([V({type:String,json:{write:!0}})],Ge.prototype,"text",void 0),R([V({type:bV,json:{write:!0}})],Ge.prototype,"timeExtent",void 0),R([V({type:Boolean,json:{default:!1,write:!0}})],Ge.prototype,"timeReferenceUnknownClient",void 0),R([er(Zee,{ignoreUnknown:!1}),V({json:{write:{overridePolicy(e){return{enabled:!!e&&this.distance!=null}}}}})],Ge.prototype,"units",void 0),R([V({type:String,json:{write:{overridePolicy(e){return{enabled:e!=null||this.start!=null&&this.start>0}}}}})],Ge.prototype,"where",void 0),R([pr("where")],Ge.prototype,"writeWhere",null),Ge=U_=R([Le("esri.rest.support.Query")],Ge)});function An(e){return typeof e=="number"}function tr(e){return typeof e=="string"||e instanceof String}function SV(e){return e==null||tr(e)}function gi(e){return e instanceof Date}var Ed=O(()=>{xV()});function LC(e){return!!Ut(e)||!!Wt(e)}function W_(e){return!!Ut(e)||!!zt(e)||!!Wt(e)||!!Yt(e)}function z_(e){if(Ut(e))return e.toMillis();if(zt(e))return e.toNumber();if(Wt(e))return e.toMilliseconds();throw new oe(K.InvalidDataType)}function ni(e,t,r,n){if(e==null||t==null)return null;if(An(e)){if(An(t))return es(e,t,r);if(tr(t))return ete(e,t,r);if(W_(t))throw new oe(K.InvalidOperator);if(zt(t))throw new oe(K.InvalidOperator)}else if(tr(e)){if(An(t))return tte(e,t,r);if(tr(t))return rte(e,t,r);if(Ut(t))throw new oe(K.InvalidOperator);if(zt(t))throw new oe(K.InvalidOperator);if(Yt(t))throw new oe(K.InvalidOperator);if(Wt(t))throw new oe(K.InvalidOperator)}else if(Ut(e)){if(LC(t)){if(e instanceof Ce&&Lu(e.zone)){if(t instanceof Ce&&Lu(t.zone)===!1||t instanceof bn)return u0(e,t,r)}else if(t instanceof Ce&&Lu(t.zone)&&(e instanceof Ce&&Lu(e.zone)===!1||e instanceof bn))return u0(e,t,r);return es(z_(e),z_(t),r)}if(tr(t))throw new oe(K.InvalidOperator);if(zt(t))return nte(e,t,r);if(Yt(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator)}else if(zt(e)){if(Wt(t))return ste(e,t,r);if(Ut(t))return ote(e,t,r);if(tr(t))throw new oe(K.InvalidOperator);if(zt(t))return es(e.toNumber(),t.toNumber(),r);if(Yt(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator)}else if(Yt(e)){if(Yt(t))return es(e.toNumber(),t.toNumber(),r);if(tr(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator);if(zt(t))throw new oe(K.InvalidOperator);if(LC(t))throw new oe(K.InvalidOperator)}else if(Wt(e)){if(LC(t))return t instanceof Ce&&Lu(t.zone)?u0(e,t,r):es(z_(e),z_(t),r);if(tr(t))throw new oe(K.InvalidOperator);if(zt(t))return ite(e,t,r);if(Yt(t))throw new oe(K.InvalidOperator);if(An(t))throw new oe(K.InvalidOperator)}switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function es(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function ete(e,t,r){let n=parseFloat(t);if(!isNaN(n))return es(e,n,r);let i=e.toString();switch(r){case"<>":return i!==t;case"=":return i===t;case">":return i>t;case"<":return i<t;case">=":return i>=t;case"<=":return i<=t}}function tte(e,t,r){let n=parseFloat(e);if(!isNaN(n))return es(n,t,r);let i=t.toString();switch(r){case"<>":return e!==i;case"=":return e===i;case">":return e>i;case"<":return e<i;case">=":return e>=i;case"<=":return e<=i}}function rte(e,t,r){switch(r){case"<>":return e!==t;case"=":return e===t;case">":return e>t;case"<":return e<t;case">=":return e>=t;case"<=":return e<=t}}function nte(e,t,r){let n=t.toDateTimeLuxon(e.zone);return es((e=e.startOf("day")).toMillis(),n.toMillis(),r)}function ite(e,t,r){let n=t.toDateTimeLuxon(e.toDateTime().zone);return es((e=e.startOfDay()).toMilliseconds(),n.toMillis(),r)}function ote(e,t,r){let n=e.toDateTimeLuxon(t.zone);return t=t.startOf("day"),es(n.toMillis(),t.toMillis(),r)}function ste(e,t,r){let n=e.toDateTimeLuxon(t.toDateTime().zone);return t=t.startOfDay(),es(n.toMillis(),t.toMilliseconds(),r)}function u0(e,t,r){e instanceof bn&&(e=e.toDateTime()),t instanceof bn&&(t=t.toDateTime());let n=EV(e),i=EV(t);switch(r){case"<>":return n!==i;case"=":return n===i;case">":return n>i;case"<":return n<i;case">=":return n>=i;case"<=":return n<=i}}function EV(e){return e.year*Yee+e.month*Jee+e.day*Xee+e.hour*Qee+e.minute*Kee+1e3*e.second+e.millisecond}var Yee,Jee,Xee,Qee,Kee,kC=O(()=>{Al();n0();yg();hg();Ed();Dn();Yee=321408e5,Jee=26784e5,Xee=864e5,Qee=36e5,Kee=6e4});function d0(e,t,r){let n=PV[e.toLowerCase()];if(n==null)throw new oe(K.FunctionNotRecognized);if(t.length<n.minParams||t.length>n.maxParams)throw new oe(K.InvalidParameterCount,{name:e.toUpperCase()});return n.evaluate(t,r)}function CV(e,t){let r=PV[e.toLowerCase()];return r!=null&&t>=r.minParams&&t<=r.maxParams}function NC(e){return!gi(e)&&!zt(e)&&!Ut(e)&&!Yt(e)&&!Wt(e)}function TV(e){return zt(e)||Yt(e)?e.toString():Wt(e)?e.toSQLValue():Ut(e)?e.millisecond===0?e.toFormat("yyyy-LL-dd HH:mm:ss"):e.toSQL({includeOffset:!1}):gi(e)?TV(Ce.fromJSDate(e)):e.toString()}function ate(e){if(gi(e))return un.fromDateJS(e);if(Ut(e))return un.fromParts(e.year,e.month,e.day);if(zt(e))return e;if(Yt(e))throw new oe(K.CannotCastValue);if(Wt(e)&&un.fromParts(e.year,e.month,e.day)===null)throw new oe(K.CannotCastValue);if(tr(e)){let t=un.fromReader(e);if(t!==null&&t.isValid)return t}throw new oe(K.CannotCastValue)}function lte(e,t,r){if(gi(e))return $m(e,t);if(Ut(e))return e;if(zt(e))return e.toDateTimeLuxon("unknown");if(Yt(e))throw new oe(K.CannotCastValue);if(Wt(e))return e;if(tr(e))return Vm(e,"unknown",r);throw new oe(K.CannotCastValue)}function cte(e){if(gi(e))return Qr.fromDateJS(e);if(Ut(e))return Qr.fromDateTime(e);if(zt(e))throw new oe(K.CannotCastValue);if(Yt(e))return e;if(Wt(e))return Qr.fromSqlTimeStampOffset(e);if(tr(e))return r0(e);throw new oe(K.CannotCastValue)}var PV,OC=O(()=>{X3();gl();wg();Al();kC();n0();t0();Ed();Dn();PV={extract:{minParams:2,maxParams:2,evaluate:([e,t])=>{if(t==null)return null;if(gi(t))switch(e.toUpperCase()){case"SECOND":return t.getSeconds();case"MINUTE":return t.getMinutes();case"HOUR":return t.getHours();case"DAY":return t.getDate();case"MONTH":return t.getMonth()+1;case"YEAR":return t.getFullYear();case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":return 0}else if(Ut(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new oe(K.InvalidFunctionParameters,{function:"EXTRACT"})}else if(zt(t))switch(e.toUpperCase()){case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":case"TIMEZONE_MINUTE":throw new oe(K.InvalidFunctionParameters,{function:"EXTRACT"})}else if(Yt(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour}else if(Wt(t))switch(e.toUpperCase()){case"SECOND":return t.second;case"MINUTE":return t.minute;case"HOUR":return t.hour;case"DAY":return t.day;case"MONTH":return t.month;case"YEAR":return t.year;case"TIMEZONE_HOUR":return t.timezoneOffsetHour;case"TIMEZONE_MINUTE":return t.timezoneOffsetMinutes}throw new oe(K.InvalidFunctionParameters,{function:"EXTRACT"})}},substring:{minParams:2,maxParams:3,evaluate:e=>{if(e.length===2){let[t,r]=e;return t==null||r==null?null:t.toString().substring(r-1)}if(e.length===3){let[t,r,n]=e;return t==null||r==null||n==null?null:n<=0?"":t.toString().substring(r-1,r+n-1)}}},position:{minParams:2,maxParams:2,evaluate:([e,t])=>e==null||t==null?null:t.indexOf(e)+1},trim:{minParams:2,maxParams:3,evaluate:e=>{let t=e.length===3,r=t?e[1]:" ",n=t?e[2]:e[1];if(r==null||n==null)return null;let i=`(${X8(r)})`;switch(e[0]){case"BOTH":return n.replaceAll(new RegExp(`^${i}*|${i}*$`,"g"),"");case"LEADING":return n.replaceAll(new RegExp(`^${i}*`,"g"),"");case"TRAILING":return n.replaceAll(new RegExp(`${i}*$`,"g"),"")}throw new oe(K.InvalidFunctionParameters,{function:"TRIM"})}},abs:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.abs(e[0])},ceiling:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.ceil(e[0])},floor:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.floor(e[0])},log:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])},log10:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.log(e[0])*Math.LOG10E},sin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sin(e[0])},cos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cos(e[0])},tan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tan(e[0])},asin:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.asin(e[0])},acos:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.acos(e[0])},atan:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.atan(e[0])},sign:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0]>0?1:e[0]<0?-1:0},power:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]**e[1]},mod:{minParams:2,maxParams:2,evaluate:e=>e[0]==null||e[1]==null?null:e[0]%e[1]},round:{minParams:1,maxParams:2,evaluate:e=>{let t=e[0],r=e.length===2?10**e[1]:1;return t==null?null:Math.round(t*r)/r}},truncate:{minParams:1,maxParams:2,evaluate:e=>e[0]==null?null:e.length===1||e[1]===0?Math.trunc(e[0]):E$("trunc",e[0],-Number(e[1]))},char_length:{minParams:1,maxParams:1,evaluate:e=>tr(e[0])?e[0].length:0},concat:{minParams:1,maxParams:1/0,evaluate:e=>{let t="";for(let r=0;r<e.length;r++){if(e[r]==null)return null;t+=e[r].toString()}return t}},lower:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toLowerCase()},upper:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:e[0].toString().toUpperCase()},coalesce:{minParams:1,maxParams:1/0,evaluate:e=>{for(let t of e)if(t!==null)return t;return null}},cosh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.cosh(e[0])},sinh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.sinh(e[0])},tanh:{minParams:1,maxParams:1,evaluate:e=>e[0]==null?null:Math.tanh(e[0])},nullif:{minParams:2,maxParams:2,evaluate:(e,t)=>ni(e[0],e[1],"=")?null:e[0]},cast:{minParams:2,maxParams:2,evaluate:(e,t)=>{let r=e[0],n=e[1];if(r===null)return null;switch(n.type){case"integer":{if(!NC(r))throw new oe(K.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new oe(K.CannotCastValue);return i}case"smallint":{if(!NC(r))throw new oe(K.CannotCastValue);let i=parseInt(r,10);if(isNaN(i))throw new oe(K.CannotCastValue);if(i>32767||i<-32767)throw new oe(K.CannotCastValue);return i}case"float":case"real":{if(!NC(r))throw new oe(K.CannotCastValue);let i=parseFloat(r);if(isNaN(i))throw new oe(K.CannotCastValue);return i}case"time":return cte(r);case"date":return ate(r);case"timestamp":return lte(r,t,n.withtimezone===!0);case"varchar":{let i=TV(r);if(i.length>n.size)throw new oe(K.CannotCastValue);return i}default:throw new oe(K.InvalidDataType)}}}}});function RC(e,t,r,n){if(e==="||")return d0("concat",[t,r],n);if(t===null||r===null)return null;if(An(t)){if(An(r))return DC(t,r,e);if(Aa(r))return wte(t,r,e);if(Yt(r))return Pte();if(zt(r))return Mte();if(Wt(r))return Tte();if(Ut(r))return Ete();if(tr(r))return Ate(t,r,e);throw new oe(K.InvalidOperator)}if(zt(t)){if(An(r))return xte(t,r,e);if(Aa(r))return yte(t,r,e);if(Yt(r))return Fte();if(zt(r))return Dte(t,r,e);if(Wt(r))return Rte(t,r,e);if(Ut(r))return Ote(t,r,e);if(tr(r))return Jte();throw new oe(K.InvalidOperator)}if(Yt(t)){if(An(r))return Ste(t,r,e);if(Aa(r))return fte(t,r,e);if(Yt(r))return jte();if(zt(r))return Bte();if(Wt(r))return Gte();if(Ut(r))return Wte();if(tr(r))return Xte();throw new oe(K.InvalidOperator)}if(Aa(t)){if(An(r))return gte(t,r,e);if(Aa(r))return hte(t,r,e);if(Yt(r))return dte(t,r,e);if(zt(r))return pte(t,r,e);if(Wt(r))return mte(t,r,e);if(Ut(r))return ute(t,r,e);if(tr(r))return kte();throw new oe(K.InvalidOperator)}if(Ut(t)){if(An(r))return _te(t,r,e);if(Aa(r))return vte(t,r,e);if(Yt(r))return Yte();if(zt(r))return Hte(t,r,e);if(Wt(r))return Zte(t,r,e);if(Ut(r))return qte(t,r,e);if(tr(r))return Qte();throw new oe(K.InvalidOperator)}if(Wt(t)){if(An(r))return Cte(t,r,e);if(Aa(r))return bte(t,r,e);if(Yt(r))return $te();if(zt(r))return Vte(t,r,e);if(Wt(r))return zte(t,r,e);if(Ut(r))return Ute(t,r,e);if(tr(r))return Kte();throw new oe(K.InvalidOperator)}if(tr(t)){if(An(r))return Ite(t,r,e);if(Aa(r))return Nte();if(Yt(r))return ere();if(zt(r))return tre();if(Wt(r))return nre();if(Ut(r))return rre();if(tr(r))return Lte(t,r,e);throw new oe(K.InvalidOperator)}throw new oe(K.InvalidOperator)}function DC(e,t,r){switch(r){case"+":return e+t;case"-":return e-t;case"*":return e*t;case"/":return e/t}throw new oe(K.InvalidOperator)}function ute(e,t,r){switch(r){case"+":return t.plus({milliseconds:e.valueInMilliseconds()});case"-":return e.valueInMilliseconds()-t.toMillis()}throw new oe(K.InvalidOperator)}function dte(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new oe(K.InvalidOperator)}function pte(e,t,r){if(r==="+")return t.plus("milliseconds",e.valueInMilliseconds());throw new oe(K.InvalidOperator)}function fte(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function mte(e,t,r){if(r==="+")return t.addMilliseconds(e.valueInMilliseconds());throw new oe(K.InvalidOperator)}function hte(e,t,r){switch(r){case"+":return xr.createFromMilliseconds(e.valueInMilliseconds()+t.valueInMilliseconds());case"-":return xr.createFromMilliseconds(e.valueInMilliseconds()-t.valueInMilliseconds());case"*":return xr.createFromMilliseconds(e.valueInMilliseconds()*t.valueInMilliseconds());case"/":return xr.createFromMilliseconds(e.valueInMilliseconds()/t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function gte(e,t,r){switch(r){case"+":return xr.createFromMilliseconds(e.valueInMilliseconds()+t);case"-":return xr.createFromMilliseconds(e.valueInMilliseconds()-t);case"*":return xr.createFromMilliseconds(e.valueInMilliseconds()*t);case"/":return xr.createFromMilliseconds(e.valueInMilliseconds()/t)}throw new oe(K.InvalidOperator)}function wte(e,t,r){switch(r){case"+":return xr.createFromMilliseconds(e+t.valueInMilliseconds());case"-":return xr.createFromMilliseconds(e-t.valueInMilliseconds());case"*":return xr.createFromMilliseconds(e*t.valueInMilliseconds());case"/":return xr.createFromMilliseconds(e/t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function yte(e,t,r){switch(r){case"+":return e.plus("milliseconds",t.valueInMilliseconds());case"-":return e.plus("milliseconds",-1*t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function vte(e,t,r){switch(r){case"+":return e.plus({milliseconds:t.valueInMilliseconds()});case"-":return e.minus({milliseconds:t.valueInMilliseconds()})}throw new oe(K.InvalidOperator)}function bte(e,t,r){switch(r){case"+":return e.addMilliseconds(t.valueInMilliseconds());case"-":return e.addMilliseconds(-1*t.valueInMilliseconds())}throw new oe(K.InvalidOperator)}function _te(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus({milliseconds:n});case"-":return e.minus({milliseconds:n})}throw new oe(K.InvalidOperator)}function xte(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new oe(K.InvalidOperator)}function Ste(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.plus("milliseconds",n);case"-":return e.plus("milliseconds",-1*n)}throw new oe(K.InvalidOperator)}function Ete(e,t,r){throw new oe(K.InvalidOperator)}function Cte(e,t,r){let n=1e3*t*24*60*60;switch(r){case"+":return e.addMilliseconds(n);case"-":return e.addMilliseconds(-1*n)}throw new oe(K.InvalidOperator)}function Tte(e,t,r){throw new oe(K.InvalidOperator)}function Pte(e,t,r){throw new oe(K.InvalidOperator)}function Mte(e,t,r){throw new oe(K.InvalidOperator)}function Ate(e,t,r){let n=parseFloat(t);if(isNaN(n))throw new oe(K.InvalidOperator);return DC(e,n,r)}function Ite(e,t,r){let n=parseFloat(e);if(isNaN(n))throw new oe(K.InvalidOperator);return DC(n,t,r)}function Lte(e,t,r){if(r==="+")return e+t;throw new oe(K.InvalidOperator)}function kte(e,t,r){throw new oe(K.InvalidOperator)}function Nte(e,t,r){throw new oe(K.InvalidOperator)}function Ote(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.zone).diff(t).as("days");throw new oe(K.InvalidOperator)}function Rte(e,t,r){if(r==="-")return e.toDateTimeLuxon(t.toDateTime().zone).diff(t.toDateTime()).as("days");throw new oe(K.InvalidOperator)}function Dte(e,t,r){if(r==="-")return e.toDateTimeLuxon("UTC").diff(t.toDateTimeLuxon("UTC")).as("days");throw new oe(K.InvalidOperator)}function Fte(e,t,r){throw new oe(K.InvalidOperator)}function $te(e,t,r){throw new oe(K.InvalidOperator)}function Vte(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTimeLuxon(e.toDateTime().zone)).as("days");throw new oe(K.InvalidOperator)}function Ute(e,t,r){if(r==="-")return e.toDateTime().diff(t).as("days");throw new oe(K.InvalidOperator)}function zte(e,t,r){if(r==="-")return e.toDateTime().diff(t.toDateTime()).as("days");throw new oe(K.InvalidOperator)}function Wte(e,t,r){throw new oe(K.InvalidOperator)}function Bte(e,t,r){throw new oe(K.InvalidOperator)}function Gte(e,t,r){throw new oe(K.InvalidOperator)}function jte(e,t,r){throw new oe(K.InvalidOperator)}function qte(e,t,r){if(r==="-")return e.diff(t).as("days");throw new oe(K.InvalidOperator)}function Hte(e,t,r){if(r==="-")return e.diff(t.toDateTimeLuxon(e.zone)).as("days");throw new oe(K.InvalidOperator)}function Zte(e,t,r){if(r==="-")return e.diff(t.toDateTime()).as("days");throw new oe(K.InvalidOperator)}function Yte(e,t,r){throw new oe(K.InvalidOperator)}function Jte(e,t,r){throw new oe(K.InvalidOperator)}function Xte(e,t,r){throw new oe(K.InvalidOperator)}function Qte(e,t,r){throw new oe(K.InvalidOperator)}function Kte(e,t,r){throw new oe(K.InvalidOperator)}function ere(e,t,r){throw new oe(K.InvalidOperator)}function tre(e,t,r){throw new oe(K.InvalidOperator)}function rre(e,t,r){throw new oe(K.InvalidOperator)}function nre(e,t,r){throw new oe(K.InvalidOperator)}var MV=O(()=>{Al();n0();A_();OC();Ed()});function ire(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}function Cd(e,t,r,n){var i=Error.call(this,e);return Object.setPrototypeOf&&Object.setPrototypeOf(i,Cd.prototype),i.expected=t,i.found=r,i.location=n,i.name="SyntaxError",i}function FC(e,t,r){return r=r||" ",e.length>t?e:(t-=e.length,e+(r+=r.repeat(t)).slice(0,t))}function ore(e,t){var r,n={},i=(t=t!==void 0?t:{}).grammarSource,o={start:JC},s=JC,l="!",a="=",d=">=",h=">",g="<=",b="<>",S="!=",P="||",A="@",F="'",W="N'",z="''",q=".",G="null",Y="true",ie="false",U="in",me="is",Ae="like",Ee="escape",Ne="not",we="and",ce="or",J="between",ee="from",fe="for",pe="substring",Se="extract",ye="trim",Fe="position",nt="timestamp",Et="date",Tr="time",fr="leading",mr="trailing",yi="both",Gn="cast",In="as",ze="integer",Md="int",ts="smallint",fo="float",wc="real",La="varchar",Vs="to",Vi="interval",Ad="year",Us="timezone_hour",Gm="timezone_minute",rs="month",ka="day",yc="hour",vc="minute",Pr="second",Id="case",ns="end",Na="when",bc="then",Ld="else",_c=",",xc="(",Sc=")",Ec="`",kd=/^[<-=]/,mo=/^[+\-]/,Nd=/^[*\/]/,Cc=/^[A-Za-z_\x80-\uFFFF]/,zs=/^[A-Za-z0-9_]/,Ui=/^[A-Za-z0-9_.\x80-\uFFFF]/,is=/^["]/,ho=/^[^']/,Tc=/^[0-9]/,Od=/^[eE]/,Pc=/^[ \t\n\r]/,Oa=/^[^`]/,Rd=$e("!",!1),Dd=$e("=",!1),jm=$e(">=",!1),H=$e(">",!1),os=$e("<=",!1),Fd=$e("<>",!1),$d=Bi([["<","="]],!1,!1),Mc=$e("!=",!1),mn=Bi(["+","-"],!1,!1),zi=$e("||",!1),ii=Bi(["*","/"],!1,!1),Vd=Bi([["A","Z"],["a","z"],"_",["\x80","\uFFFF"]],!1,!1),Ud=Bi([["A","Z"],["a","z"],["0","9"],"_"],!1,!1),Ra=Bi([["A","Z"],["a","z"],["0","9"],"_",".",["\x80","\uFFFF"]],!1,!1),vi=Bi(['"'],!1,!1),Ze=$e("@",!1),Da=$e("'",!1),Ac=$e("N'",!1),Ic=$e("''",!1),Lc=Bi(["'"],!0,!1),ss=$e(".",!1),Fa=Bi([["0","9"]],!1,!1),zd=Bi(["e","E"],!1,!1),Wd=$e("NULL",!0),Bd=$e("TRUE",!0),kc=$e("FALSE",!0),Gd=$e("IN",!0),Nc=$e("IS",!0),Oc=$e("LIKE",!0),Ws=$e("ESCAPE",!0),Rc=$e("NOT",!0),$a=$e("AND",!0),Dc=$e("OR",!0),jd=$e("BETWEEN",!0),Va=$e("FROM",!0),qd=$e("FOR",!0),Ua=$e("SUBSTRING",!0),Hd=$e("EXTRACT",!0),Zd=$e("TRIM",!0),Yd=$e("POSITION",!0),Jd=$e("TIMESTAMP",!0),Xd=$e("DATE",!0),Fc=$e("TIME",!0),Bs=$e("LEADING",!0),go=$e("TRAILING",!0),za=$e("BOTH",!0),Gs=$e("CAST",!0),bi=$e("AS",!0),as=$e("INTEGER",!0),Qd=$e("INT",!0),$c=$e("SMALLINT",!0),Vc=$e("FLOAT",!0),Wa=$e("REAL",!0),Kd=$e("VARCHAR",!0),ep=$e("TO",!0),Uc=$e("INTERVAL",!0),tp=$e("YEAR",!0),rp=$e("TIMEZONE_HOUR",!0),zc=$e("TIMEZONE_MINUTE",!0),Wc=$e("MONTH",!0),np=$e("DAY",!0),Ba=$e("HOUR",!0),ip=$e("MINUTE",!0),Bc=$e("SECOND",!0),op=$e("CASE",!0),js=$e("END",!0),sp=$e("WHEN",!0),Gc=$e("THEN",!0),jc=$e("ELSE",!0),ap=$e(",",!1),qc=$e("(",!1),Hc=$e(")",!1),lp=Bi([" "," ",`
34
+ `,"\r"],!1,!1),wo=$e("`",!1),ls=Bi(["`"],!0,!1),cp=function(u){return u},Ga=function(u){return Si(Me(),...u)},ja=function(u,y,E){return{op:y,expr:E,location:Me()}},up=function(u,y){return Ym(u,y)},qs=function(u,y,E){return{op:y,expr:E,location:Me()}},Zc=function(u,y){return Ym(u,y)},Yc=function(u){return xz("NOT",u,Me())},qa=function(u,y){return y==""||y==null||y==null?u:y.type=="arithmetic"?Ym(u,y.tail):LT(y.op,u,y.right,y.escape,Me())},Jc=function(u,y){return{op:u,expr:y,location:Me()}},dp=function(u){return{type:"arithmetic",tail:u}},_i=function(u,y){return{op:u+"NOT",right:y}},pp=function(u,y){return{op:u,right:y}},fp=function(u,y,E){return Si(Me(),y,E)},mp=function(u,y){return{op:"NOT"+u,right:y}},Xc=function(u,y,E){return Si(Me(),y,E)},Qc=function(u,y){return{op:u,right:y}},Mr=function(u){return u[0]+" "+u[2]},hp=function(u){return u[0]+" "+u[2]},gp=function(u,y,E){return{op:u,right:y,escape:E.value}},wp=function(u,y){return{op:u,right:y,escape:""}},yp=function(u,y){return{op:u,right:y}},vp=function(u,y){return{op:u,right:y}},Kc=function(u,y,E){return{op:y,expr:E,location:Me()}},bp=function(u,y){return Ym(u,y)},eu=function(u,y,E){return{op:y,expr:E,location:Me()}},tu=function(u,y){return Ym(u,y)},Hs=function(u){return u.paren=!0,u},Wi=function(u){return/^CURRENT_DATE$/i.test(u)?{type:"current-time",location:Me(),mode:"date"}:/^CURRENT_TIMESTAMP$/i.test(u)?{type:"current-time",location:Me(),mode:"timestamp"}:/^CURRENT_TIME$/i.test(u)?{type:"current-time",location:Me(),mode:"time"}:/^CURRENT_USER$/i.test(u)?{type:"current-user",location:Me()}:{type:"column-reference",location:Me(),table:"",column:u}},Zs=function(u){return{type:"column-reference",location:Me(),table:"",column:u,delimited:!0}},_p=function(u){return u},ru=function(u,y){return u+y.join("")},nu=function(u,y){return u+y.join("")},iu=function(u){return u},cs=function(u){return u.join("")},xp=function(){return'"'},Sp=function(u){return{type:"parameter",location:Me(),value:u[1]}},Ep=function(u,y){return Si(Me(),u,y)},Cp=function(u,y){return Si(Me(),u,y)},Tp=function(u){return{type:"function",location:Me(),name:"extract",args:u}},Pp=function(u,y,E){return Si(Me(),u,y,...E?[E]:[])},Ha=function(u,y,E){return Si(Me(),u,y,E)},Mp=function(u){return{type:"function",location:Me(),name:"substring",args:u}},Ys=function(u,y){return Si(Me(),u,y)},Ap=function(u,y){return Si(Me(),u,y)},Za=function(u){return{type:"function",location:Me(),name:"cast",args:u}},Ip=function(){return{type:"data-type",location:Me(),value:{type:"integer"}}},Lp=function(){return{type:"data-type",location:Me(),value:{type:"smallint"}}},ou=function(){return{type:"data-type",location:Me(),value:{type:"float"}}},us=function(){return{type:"data-type",location:Me(),value:{type:"real"}}},xi=function(){return{type:"data-type",location:Me(),value:{type:"date"}}},su=function(){return{type:"data-type",location:Me(),value:{type:"timestamp"}}},Ya=function(){return{type:"data-type",location:Me(),value:{type:"time"}}},kp=function(u){return{type:"data-type",location:Me(),value:{type:"varchar",size:parseInt(u)}}},Np=function(u,y,E){return Si(Me(),u,y,E)},Op=function(u,y){return Si(Me(),u,y)},Rp=function(u){return{type:"function",location:Me(),name:"trim",args:u}},Dp=function(u){return{type:"string",location:Me(),value:u??"BOTH"}},Fp=function(u,y){return Si(Me(),u,y)},$p=function(u,y){return Si(Me(),u,y)},Vp=function(u){return{type:"function",location:Me(),name:"position",args:u}},Up=function(u,y){return{type:"function",location:Me(),name:u,args:y}},zp=function(u){return{type:"string",location:Me(),value:u}},f=function(u){return u.type==="string"&&Sz(u.value),{type:"timestamp",location:Me(),value:u.value}},p=function(u){return u.type==="string"&&Ez(u.value),{type:"time",location:Me(),value:u.value}},w=function(u,y,E){return{type:"interval",location:Me(),value:y,qualifier:E,op:u}},_=function(u,y){return{type:"interval",location:Me(),value:u,qualifier:y,op:""}},C=function(u,y){return{type:"interval-qualifier",location:Me(),start:u,end:y}},T=function(u,y){return{type:"interval-period",location:Me(),period:u.value,precision:y,secondary:null}},I=function(u){return{type:"interval-period",location:Me(),period:u.value,precision:null,secondary:null}},N=function(u){return{type:"interval-period",location:Me(),period:u.value,precision:null,secondary:null}},D=function(u,y){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:y}},B=function(u){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:null}},$=function(){return{type:"interval-period",location:Me(),period:"second",precision:null,secondary:null}},Q=function(u,y){return{type:"interval-period",location:Me(),period:u.value,precision:y,secondary:null}},ae=function(u){return{type:"interval-period",location:Me(),period:u.value,precision:null,secondary:null}},ge=function(u,y){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:y}},he=function(u){return{type:"interval-period",location:Me(),period:"second",precision:u,secondary:null}},ve=function(){return{type:"interval-period",location:Me(),period:"second",precision:null,secondary:null}},Oe=function(){return{type:"string",location:Me(),value:"day"}},Ie=function(){return{type:"string",location:Me(),value:"hour"}},Ue=function(){return{type:"string",location:Me(),value:"minute"}},et=function(){return{type:"string",location:Me(),value:"month"}},st=function(){return{type:"string",location:Me(),value:"year"}},qe=function(u){return parseFloat(u)},rt=function(u){return parseFloat(u)},Ar=function(u){return u.type==="string"&&Cz(u.value),{type:"date",location:Me(),value:u.value}},Lt=function(){return{type:"null",location:Me(),value:null}},Kr=function(){return{type:"boolean",location:Me(),value:!0}},Ln=function(){return{type:"boolean",location:Me(),value:!1}},jn=function(){return"'"},Js=function(u){return{type:"string",location:Me(),value:u.join("")}},mt=function(u,y){return{type:"case-expression",location:Me(),format:"simple",operand:u,clauses:y,else:null,elseLocation:null}},Ja=function(u,y,E){return{type:"case-expression",location:Me(),format:"simple",operand:u,clauses:y,else:E.value,elseLocation:E.location}},hr=function(u){return{type:"case-expression",location:Me(),format:"searched",clauses:u,else:null,elseLocation:null}},Y_=function(u,y){return{type:"case-expression",location:Me(),format:"searched",clauses:u,else:y.value,elseLocation:y.location}},J_=function(u,y){return{type:"when-clause",location:Me(),operand:u,value:y}},X_=function(u,y){return{type:"when-clause",location:Me(),operand:u,value:y}},Q_=function(u){return{type:"else-clause",location:Me(),value:u}},K_=function(u){return{type:"number",location:Me(),value:u}},Xe=function(u,y,E){return parseFloat(u+y+E)},qm=function(u,y){return parseFloat(u+y)},oi=function(u,y){return parseFloat(u+y)},e2=function(u){return parseFloat(u)},t2=function(u,y){return u[0]+y},r2=function(u){return"."+(u??"")},n2=function(u,y){return u+y},rr=function(u){return u.join("")},Ur=function(u,y){return"e"+(y===null?"":y)},zr=function(){return"IN"},yo=function(){return"IS"},en=function(){return"LIKE"},tn=function(){return"ESCAPE"},le=function(){return"NOT"},Wr=function(){return"AND"},hn=function(){return"OR"},Ir=function(){return"BETWEEN"},Ct=function(){return"FROM"},Jt=function(){return"FOR"},qn=function(){return"SUBSTRING"},kn=function(){return"EXTRACT"},si=function(){return"TRIM"},Sr=function(){return"POSITION"},Br=function(){return"TIMESTAMP"},gn=function(){return"DATE"},Gr=function(){return"TIME"},kt=function(){return"LEADING"},nr=function(){return"TRAILING"},wn=function(){return"BOTH"},Ye=function(){return"CAST"},rn=function(){return"AS"},bt=function(){return"INTEGER"},Lr=function(){return"INT"},vo=function(){return"SMALLINT"},m=function(){return"FLOAT"},k=function(){return"REAL"},Z=function(){return"VARCHAR"},se=function(){return"TO"},ue=function(){return"INTERVAL"},Pe=function(){return"YEAR"},We=function(){return"TIMEZONE_HOUR"},De=function(){return"TIMEZONE_MINUTE"},ct=function(){return"MONTH"},Nn=function(){return"DAY"},m0=function(){return"HOUR"},h0=function(){return"MINUTE"},g0=function(){return"SECOND"},w0=function(){return"CASE"},i2=function(){return"END"},y0=function(){return"WHEN"},cU=function(){return"THEN"},uU=function(){return"ELSE"},dU=function(u){return u},pU=function(u){return u.join("")},v=0|t.peg$currPos,te=v,Wp=[{line:1,column:1}],bo=v,v0=t.peg$maxFailExpected||[],X=0|t.peg$silentFails;if(t.startRule){if(!(t.startRule in o))throw new Error(`Can't start parsing from rule "`+t.startRule+'".');s=o[t.startRule]}function Me(){return b0(te,v)}function o2(u,y){throw mU(u,y=y!==void 0?y:b0(te,v))}function $e(u,y){return{type:"literal",text:u,ignoreCase:y}}function Bi(u,y,E){return{type:"class",parts:u,inverted:y,ignoreCase:E}}function fU(){return{type:"end"}}function YC(u){var y,E=Wp[u];if(E)return E;if(u>=Wp.length)y=Wp.length-1;else for(y=u;!Wp[--y];);for(E={line:(E=Wp[y]).line,column:E.column};y<u;)e.charCodeAt(y)===10?(E.line++,E.column=1):E.column++,y++;return Wp[u]=E,E}function b0(u,y,E){var L=YC(u),be=YC(y);return{source:i,start:{offset:u,line:L.line,column:L.column},end:{offset:y,line:be.line,column:be.column}}}function Te(u){v<bo||(v>bo&&(bo=v,v0=[]),v0.push(u))}function mU(u,y){return new Cd(u,null,null,y)}function hU(u,y,E){return new Cd(Cd.buildMessage(u,y),u,y,E)}function JC(){var u,y;return u=v,ne(),(y=Bt())!==n?(ne(),te=u,u=cp(y)):(v=u,u=n),u}function XC(){var u,y,E,L,be,ht;if(u=v,jr()!==n){for(ne(),y=[],E=Bt();E!==n;)y.push(E),E=v,L=v,be=ne(),(ht=Xa())!==n?L=be=[be,ht,ne()]:(v=L,L=n),L!==n&&(L=Bt())===n?(v=E,E=n):E=L;E=ne(),(L=qr())!==n?(te=u,u=Ga(y)):(v=u,u=n)}else v=u,u=n;return u}function Bt(){var u,y,E,L,be,ht;if(u=v,(y=s2())!==n){for(E=[],L=v,ne(),(be=gT())!==n?(ne(),(ht=s2())!==n?(te=L,L=ja(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=gT())!==n?(ne(),(ht=s2())!==n?(te=L,L=ja(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=up(y,E)}else v=u,u=n;return u}function s2(){var u,y,E,L,be,ht;if(u=v,(y=_0())!==n){for(E=[],L=v,ne(),(be=M0())!==n?(ne(),(ht=_0())!==n?(te=L,L=qs(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=M0())!==n?(ne(),(ht=_0())!==n?(te=L,L=qs(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=Zc(y,E)}else v=u,u=n;return u}function _0(){var u,y,E,L,be;return u=v,(y=Zm())===n&&(y=v,e.charCodeAt(v)===33?(E=l,v++):(E=n,X===0&&Te(Rd)),E!==n?(L=v,X++,e.charCodeAt(v)===61?(be=a,v++):(be=n,X===0&&Te(Dd)),X--,be===n?L=void 0:(v=L,L=n),L!==n?y=E=[E,L]:(v=y,y=n)):(v=y,y=n)),y!==n?(E=ne(),(L=_0())!==n?(te=u,u=Yc(L)):(v=u,u=n)):(v=u,u=n),u===n&&(u=gU()),u}function gU(){var u,y,E,L;return u=v,(y=Xs())!==n?(E=v,ne(),(L=wU())!==n?E=L:(v=E,E=n),E===n&&(E=null),te=u,u=qa(y,E)):(v=u,u=n),u}function wU(){var u;return(u=yU())===n&&(u=xU())===n&&(u=bU())===n&&(u=vU())===n&&(u=_U()),u}function yU(){var u,y,E,L,be;if(u=v,y=[],E=v,ne(),(L=QC())!==n?(ne(),(be=Xs())!==n?(te=E,E=Jc(L,be)):(v=E,E=n)):(v=E,E=n),E!==n)for(;E!==n;)y.push(E),E=v,ne(),(L=QC())!==n?(ne(),(be=Xs())!==n?(te=E,E=Jc(L,be)):(v=E,E=n)):(v=E,E=n);else y=n;return y!==n&&(te=u,y=dp(y)),u=y}function QC(){var u;return e.substr(v,2)===d?(u=d,v+=2):(u=n,X===0&&Te(jm)),u===n&&(e.charCodeAt(v)===62?(u=h,v++):(u=n,X===0&&Te(H)),u===n&&(e.substr(v,2)===g?(u=g,v+=2):(u=n,X===0&&Te(os)),u===n&&(e.substr(v,2)===b?(u=b,v+=2):(u=n,X===0&&Te(Fd)),u===n&&(u=e.charAt(v),kd.test(u)?v++:(u=n,X===0&&Te($d)),u===n&&(e.substr(v,2)===S?(u=S,v+=2):(u=n,X===0&&Te(Mc))))))),u}function vU(){var u,y,E,L;return u=v,(y=mT())!==n?(ne(),(E=Zm())!==n?(ne(),(L=Xs())!==n?(te=u,u=_i(y,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=mT())!==n?(ne(),(E=Xs())!==n?(te=u,u=pp(y,E)):(v=u,u=n)):(v=u,u=n)),u}function bU(){var u,y,E,L,be,ht,uu,kT;return u=v,(y=Zm())!==n?(ne(),(E=wT())!==n?(L=ne(),be=v,(ht=Xs())!==n?(ne(),(uu=M0())!==n?(ne(),(kT=Xs())!==n?(te=be,be=fp(E,ht,kT)):(v=be,be=n)):(v=be,be=n)):(v=be,be=n),be!==n?(te=u,u=mp(E,be)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=wT())!==n?(ne(),E=v,(L=Xs())!==n?(be=ne(),(ht=M0())!==n?(ne(),(uu=Xs())!==n?(te=E,E=Xc(y,L,uu)):(v=E,E=n)):(v=E,E=n)):(v=E,E=n),E!==n?(te=u,u=Qc(y,E)):(v=u,u=n)):(v=u,u=n)),u}function KC(){var u,y,E,L,be;return u=v,y=v,(E=Zm())!==n?(L=ne(),(be=hT())!==n?y=E=[E,L,be]:(v=y,y=n)):(v=y,y=n),y!==n&&(te=u,y=Mr(y)),(u=y)===n&&(u=hT()),u}function eT(){var u,y,E,L,be;return u=v,y=v,(E=Zm())!==n?(L=ne(),(be=p2())!==n?y=E=[E,L,be]:(v=y,y=n)):(v=y,y=n),y!==n&&(te=u,y=hp(y)),(u=y)===n&&(u=p2()),u}function _U(){var u,y,E,L;return u=v,(y=KC())!==n?(ne(),(E=au())!==n?(ne(),tz()!==n?(ne(),(L=d2())!==n?(te=u,u=gp(y,E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=KC())!==n?(ne(),(E=au())!==n?(te=u,u=wp(y,E)):(v=u,u=n)):(v=u,u=n)),u}function xU(){var u,y,E;return u=v,(y=eT())!==n?(ne(),(E=XC())!==n?(te=u,u=yp(y,E)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=eT())!==n?(ne(),(E=u2())!==n?(te=u,u=vp(y,E)):(v=u,u=n)):(v=u,u=n)),u}function Xs(){var u,y,E,L,be,ht;if(u=v,(y=a2())!==n){for(E=[],L=v,ne(),(be=tT())!==n?(ne(),(ht=a2())!==n?(te=L,L=Kc(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=tT())!==n?(ne(),(ht=a2())!==n?(te=L,L=Kc(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=bp(y,E)}else v=u,u=n;return u}function tT(){var u;return u=e.charAt(v),mo.test(u)?v++:(u=n,X===0&&Te(mn)),u===n&&(e.substr(v,2)===P?(u=P,v+=2):(u=n,X===0&&Te(zi))),u}function a2(){var u,y,E,L,be,ht;if(u=v,(y=l2())!==n){for(E=[],L=v,ne(),(be=rT())!==n?(ne(),(ht=l2())!==n?(te=L,L=eu(y,be,ht)):(v=L,L=n)):(v=L,L=n);L!==n;)E.push(L),L=v,ne(),(be=rT())!==n?(ne(),(ht=l2())!==n?(te=L,L=eu(y,be,ht)):(v=L,L=n)):(v=L,L=n);te=u,u=tu(y,E)}else v=u,u=n;return u}function rT(){var u;return u=e.charAt(v),Nd.test(u)?v++:(u=n,X===0&&Te(ii)),u}function l2(){var u,y;return(u=DU())===n&&(u=IU())===n&&(u=LU())===n&&(u=NU())===n&&(u=OU())===n&&(u=kU())===n&&(u=RU())===n&&(u=qU())===n&&(u=SU())===n&&(u=u2())===n&&(u=v,jr()!==n?(ne(),(y=Bt())!==n?(ne(),qr()!==n?(te=u,u=Hs(y)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)),u}function SU(){var u,y;return u=v,(y=EU())!==n&&(te=u,y=Wi(y)),(u=y)===n&&(u=v,(y=TU())!==n&&(te=u,y=Zs(y)),u=y),u}function EU(){var u,y;return u=v,(y=CU())!==n&&(te=u,y=_p(y)),u=y}function CU(){var u,y,E,L;if(u=v,(y=c2())!==n){for(E=[],L=iT();L!==n;)E.push(L),L=iT();te=u,u=ru(y,E)}else v=u,u=n;return u}function nT(){var u,y,E,L;if(u=v,(y=c2())!==n){for(E=[],L=Ke();L!==n;)E.push(L),L=Ke();te=u,u=nu(y,E)}else v=u,u=n;return u}function c2(){var u;return u=e.charAt(v),Cc.test(u)?v++:(u=n,X===0&&Te(Vd)),u}function Ke(){var u;return u=e.charAt(v),zs.test(u)?v++:(u=n,X===0&&Te(Ud)),u}function iT(){var u;return u=e.charAt(v),Ui.test(u)?v++:(u=n,X===0&&Te(Ra)),u}function TU(){var u,y;return u=v,x0()!==n?(y=PU(),x0()!==n?(te=u,u=iu(y)):(v=u,u=n)):(v=u,u=n),u}function PU(){var u,y,E;for(u=v,y=[],E=oT();E!==n;)y.push(E),E=oT();return te=u,u=y=cs(y)}function oT(){var u;return(u=AU())===n&&(u=MU()),u}function MU(){var u;return u=v,x0()!==n&&x0()!==n?(te=u,u=xp()):(v=u,u=n),u}function AU(){var u;return u=e.charAt(v),Ui.test(u)?v++:(u=n,X===0&&Te(Ra)),u}function x0(){var u;return u=e.charAt(v),is.test(u)?v++:(u=n,X===0&&Te(vi)),u}function u2(){var u,y,E,L;return u=v,y=v,e.charCodeAt(v)===64?(E=A,v++):(E=n,X===0&&Te(Ze)),E!==n&&(L=nT())!==n?y=E=[E,L]:(v=y,y=n),y!==n&&(te=u,y=Sp(y)),u=y}function IU(){var u,y,E,L;return u=v,yT()!==n?(ne(),y=v,jr()!==n?(ne(),(E=lT())!==n?(ne(),f2()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Ep(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=lT())!==n?(ne(),Xa()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Cp(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Tp(y)):(v=u,u=n)):(v=u,u=n),u}function LU(){var u,y,E,L,be,ht,uu;return u=v,nz()!==n?(ne(),y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),f2()!==n?(ne(),(L=Bt())!==n?(ne(),be=v,rz()!==n?(ht=ne(),(uu=Bt())!==n?(ne(),be=uu):(v=be,be=n)):(v=be,be=n),be===n&&(be=null),qr()!==n?(te=y,y=Pp(E,L,be)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),Xa()!==n?(ne(),(L=Bt())!==n?(ne(),(be=Xa())!==n?(ne(),(ht=Bt())!==n&&(uu=qr())!==n?(te=y,y=Ha(E,L,ht)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Mp(y)):(v=u,u=n)):(v=u,u=n),u}function kU(){var u,y,E,L;return u=v,cz()!==n?(ne(),y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),uz()!==n?(ne(),(L=sT())!==n?(ne(),qr()!==n?(te=y,y=Ys(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),Xa()!==n?(ne(),(L=sT())!==n?(ne(),qr()!==n?(te=y,y=Ap(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Za(y)):(v=u,u=n)):(v=u,u=n),u}function sT(){var u,y,E;return u=v,(y=dz())===n&&(y=pz()),y!==n&&(te=u,y=Ip()),(u=y)===n&&(u=v,(y=fz())!==n&&(te=u,y=Lp()),(u=y)===n&&(u=v,(y=mz())!==n&&(te=u,y=ou()),(u=y)===n&&(u=v,(y=hz())!==n&&(te=u,y=us()),(u=y)===n&&(u=v,(y=bT())!==n&&(te=u,y=xi()),(u=y)===n&&(u=v,(y=vT())!==n&&(te=u,y=su()),(u=y)===n&&(u=v,(y=_T())!==n&&(te=u,y=Ya()),(u=y)===n&&(u=v,(y=gz())!==n?(ne(),jr()!==n?(ne(),(E=lu())!==n?(ne(),qr()!==n?(te=u,u=kp(E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)))))))),u}function NU(){var u,y,E,L,be;return u=v,iz()!==n?(ne(),y=v,jr()!==n?(ne(),E=aT(),ne(),(L=Bt())!==n?(ne(),f2()!==n?(ne(),(be=Bt())!==n?(ne(),qr()!==n?(te=y,y=Np(E,L,be)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),E=aT(),ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Op(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Rp(y)):(v=u,u=n)):(v=u,u=n),u}function aT(){var u,y;return u=v,(y=sz())===n&&(y=az())===n&&(y=lz()),y===n&&(y=null),te=u,u=y=Dp(y)}function OU(){var u,y,E,L;return u=v,oz()!==n?(ne(),y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),p2()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=Fp(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n),y===n&&(y=v,jr()!==n?(ne(),(E=Bt())!==n?(ne(),Xa()!==n?(ne(),(L=Bt())!==n?(ne(),qr()!==n?(te=y,y=$p(E,L)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)):(v=y,y=n)),y!==n?(te=u,u=Vp(y)):(v=u,u=n)):(v=u,u=n),u}function RU(){var u,y,E,L;return u=v,y=v,X++,E=yT(),X--,E===n?y=void 0:(v=y,y=n),y!==n&&(E=_z())!==n?(ne(),(L=XC())!==n?(te=u,u=Up(E,L)):(v=u,u=n)):(v=u,u=n),u}function lT(){var u,y;return u=v,(y=ST())===n&&(y=ET())===n&&(y=CT())===n&&(y=TT())===n&&(y=PT())===n&&(y=cu())===n&&(y=yz())===n&&(y=vz()),y!==n&&(te=u,y=zp(y)),u=y}function DU(){var u;return(u=d2())===n&&(u=YU())===n&&(u=jU())===n&&(u=GU())===n&&(u=BU())===n&&(u=FU())===n&&(u=VU())===n&&(u=$U()),u}function FU(){var u,y;return u=v,vT()!==n?(ne(),(y=au())!==n?(te=u,u=f(y)):(v=u,u=n)):(v=u,u=n),u}function $U(){var u,y;return u=v,_T()!==n?(ne(),(y=au())!==n?(te=u,u=p(y)):(v=u,u=n)):(v=u,u=n),u}function VU(){var u,y,E,L;return u=v,xT()!==n?(ne(),y=e.charAt(v),mo.test(y)?v++:(y=n,X===0&&Te(mn)),y!==n?(ne(),(E=au())!==n?(ne(),(L=cT())!==n?(te=u,u=w(y,E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,xT()!==n?(ne(),(y=au())!==n?(ne(),(E=cT())!==n?(te=u,u=_(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)),u}function cT(){var u,y,E;return u=v,(y=UU())!==n?(ne(),wz()!==n?(ne(),(E=zU())!==n?(te=u,u=C(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=WU()),u}function UU(){var u,y,E;return u=v,(y=Hm())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),qr()!==n?(te=u,u=T(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=Hm())!==n&&(te=u,y=I(y)),u=y),u}function zU(){var u,y,E,L;return u=v,(y=Hm())!==n&&(te=u,y=N(y)),(u=y)===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),Xa()!==n?(ne(),(L=S0())!==n?(ne(),qr()!==n?(te=u,u=D(E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),qr()!==n?(te=u,u=B(E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n&&(te=u,y=$()),u=y))),u}function WU(){var u,y,E,L;return u=v,(y=Hm())!==n?(ne(),jr()!==n?(ne(),(E=S0())!==n?(ne(),qr()!==n?(te=u,u=Q(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=Hm())!==n&&(te=u,y=ae(y)),(u=y)===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=E0())!==n?(ne(),Xa()!==n?(ne(),(L=S0())!==n?(ne(),qr()!==n?(te=u,u=ge(E,L)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n?(ne(),jr()!==n?(ne(),(E=S0())!==n?(ne(),qr()!==n?(te=u,u=he(E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u===n&&(u=v,(y=cu())!==n&&(te=u,y=ve()),u=y)))),u}function Hm(){var u,y;return u=v,(y=CT())!==n&&(te=u,y=Oe()),(u=y)===n&&(u=v,(y=TT())!==n&&(te=u,y=Ie()),(u=y)===n&&(u=v,(y=PT())!==n&&(te=u,y=Ue()),(u=y)===n&&(u=v,(y=ET())!==n&&(te=u,y=et()),(u=y)===n&&(u=v,(y=ST())!==n&&(te=u,y=st()),u=y)))),u}function S0(){var u,y;return u=v,(y=lu())!==n&&(te=u,y=qe(y)),u=y}function E0(){var u,y;return u=v,(y=lu())!==n&&(te=u,y=rt(y)),u=y}function BU(){var u,y;return u=v,bT()!==n?(ne(),(y=au())!==n?(te=u,u=Ar(y)):(v=u,u=n)):(v=u,u=n),u}function GU(){var u,y;return u=v,(y=QU())!==n&&(te=u,y=Lt()),u=y}function jU(){var u,y;return u=v,(y=KU())!==n&&(te=u,y=Kr()),(u=y)===n&&(u=v,(y=ez())!==n&&(te=u,y=Ln()),u=y),u}function au(){var u;return(u=d2())===n&&(u=u2()),u}function d2(){var u,y,E,L,be;if(u=v,e.charCodeAt(v)===39?(y=F,v++):(y=n,X===0&&Te(Da)),y===n&&(e.substr(v,2)===W?(y=W,v+=2):(y=n,X===0&&Te(Ac))),y!==n){for(E=[],L=v,e.substr(v,2)===z?(be=z,v+=2):(be=n,X===0&&Te(Ic)),be!==n&&(te=L,be=jn()),(L=be)===n&&(L=e.charAt(v),ho.test(L)?v++:(L=n,X===0&&Te(Lc)));L!==n;)E.push(L),L=v,e.substr(v,2)===z?(be=z,v+=2):(be=n,X===0&&Te(Ic)),be!==n&&(te=L,be=jn()),(L=be)===n&&(L=e.charAt(v),ho.test(L)?v++:(L=n,X===0&&Te(Lc)));e.charCodeAt(v)===39?(L=F,v++):(L=n,X===0&&Te(Da)),L!==n?(te=u,u=Js(E)):(v=u,u=n)}else v=u,u=n;return u}function qU(){var u;return(u=HU())===n&&(u=ZU()),u}function HU(){var u,y,E,L,be;if(u=v,A0()!==n)if(ne(),(y=Bt())!==n){for(ne(),E=[],L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);L!==n;)E.push(L),L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);(L=I0())!==n?(te=u,u=mt(y,E)):(v=u,u=n)}else v=u,u=n;else v=u,u=n;if(u===n)if(u=v,A0()!==n)if(ne(),(y=Bt())!==n){for(ne(),E=[],L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);L!==n;)E.push(L),L=v,(be=T0())!==n?(ne(),L=be):(v=L,L=n);(L=uT())!==n?(be=ne(),I0()!==n?(te=u,u=Ja(y,E,L)):(v=u,u=n)):(v=u,u=n)}else v=u,u=n;else v=u,u=n;return u}function ZU(){var u,y,E,L;if(u=v,A0()!==n){for(ne(),y=[],E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);E!==n;)y.push(E),E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);(E=I0())!==n?(te=u,u=hr(y)):(v=u,u=n)}else v=u,u=n;if(u===n)if(u=v,A0()!==n){for(ne(),y=[],E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);E!==n;)y.push(E),E=v,(L=C0())!==n?(ne(),E=L):(v=E,E=n);(E=uT())!==n?(L=ne(),I0()!==n?(te=u,u=Y_(y,E)):(v=u,u=n)):(v=u,u=n)}else v=u,u=n;return u}function C0(){var u,y,E;return u=v,MT()!==n?(ne(),(y=Bt())!==n?(ne(),AT()!==n?(ne(),(E=Bt())!==n?(te=u,u=J_(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u}function T0(){var u,y,E;return u=v,MT()!==n?(ne(),(y=Bt())!==n?(ne(),AT()!==n?(ne(),(E=Bt())!==n?(te=u,u=X_(y,E)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n)):(v=u,u=n),u}function uT(){var u,y;return u=v,bz()!==n?(ne(),(y=Bt())!==n?(te=u,u=Q_(y)):(v=u,u=n)):(v=u,u=n),u}function YU(){var u,y,E,L;return u=v,(y=JU())!==n?(E=v,X++,L=c2(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=K_(y)):(v=u,u=n)):(v=u,u=n),u}function JU(){var u,y,E,L;return u=v,(y=P0())!==n&&(E=dT())!==n&&(L=pT())!==n?(te=u,u=Xe(y,E,L)):(v=u,u=n),u===n&&(u=v,(y=P0())!==n&&(E=dT())!==n?(te=u,u=qm(y,E)):(v=u,u=n),u===n&&(u=v,(y=P0())!==n&&(E=pT())!==n?(te=u,u=oi(y,E)):(v=u,u=n),u===n&&(u=v,(y=P0())!==n&&(te=u,y=e2(y)),u=y))),u}function P0(){var u,y,E;return(u=lu())===n&&(u=v,y=e.charAt(v),mo.test(y)?v++:(y=n,X===0&&Te(mn)),y!==n&&(E=lu())!==n?(te=u,u=t2(y,E)):(v=u,u=n)),u}function dT(){var u,y,E;return u=v,e.charCodeAt(v)===46?(y=q,v++):(y=n,X===0&&Te(ss)),y!==n?((E=lu())===n&&(E=null),te=u,u=r2(E)):(v=u,u=n),u}function pT(){var u,y,E;return u=v,(y=XU())!==n&&(E=lu())!==n?(te=u,u=n2(y,E)):(v=u,u=n),u}function lu(){var u,y,E;if(u=v,y=[],(E=fT())!==n)for(;E!==n;)y.push(E),E=fT();else y=n;return y!==n&&(te=u,y=rr(y)),u=y}function fT(){var u;return u=e.charAt(v),Tc.test(u)?v++:(u=n,X===0&&Te(Fa)),u}function XU(){var u,y,E;return u=v,y=e.charAt(v),Od.test(y)?v++:(y=n,X===0&&Te(zd)),y!==n?(E=e.charAt(v),mo.test(E)?v++:(E=n,X===0&&Te(mn)),E===n&&(E=null),te=u,u=Ur(y,E)):(v=u,u=n),u}function QU(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===G?v+=4:(y=n,X===0&&Te(Wd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?u=y=[y,E]:(v=u,u=n)):(v=u,u=n),u}function KU(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Y?v+=4:(y=n,X===0&&Te(Bd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?u=y=[y,E]:(v=u,u=n)):(v=u,u=n),u}function ez(){var u,y,E,L;return u=v,(y=e.substr(v,5)).toLowerCase()===ie?v+=5:(y=n,X===0&&Te(kc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?u=y=[y,E]:(v=u,u=n)):(v=u,u=n),u}function p2(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===U?v+=2:(y=n,X===0&&Te(Gd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=zr()):(v=u,u=n)):(v=u,u=n),u}function mT(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===me?v+=2:(y=n,X===0&&Te(Nc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=yo()):(v=u,u=n)):(v=u,u=n),u}function hT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Ae?v+=4:(y=n,X===0&&Te(Oc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=en()):(v=u,u=n)):(v=u,u=n),u}function tz(){var u,y,E,L;return u=v,(y=e.substr(v,6)).toLowerCase()===Ee?v+=6:(y=n,X===0&&Te(Ws)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=tn()):(v=u,u=n)):(v=u,u=n),u}function Zm(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===Ne?v+=3:(y=n,X===0&&Te(Rc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=le()):(v=u,u=n)):(v=u,u=n),u}function M0(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===we?v+=3:(y=n,X===0&&Te($a)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Wr()):(v=u,u=n)):(v=u,u=n),u}function gT(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===ce?v+=2:(y=n,X===0&&Te(Dc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=hn()):(v=u,u=n)):(v=u,u=n),u}function wT(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===J?v+=7:(y=n,X===0&&Te(jd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Ir()):(v=u,u=n)):(v=u,u=n),u}function f2(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===ee?v+=4:(y=n,X===0&&Te(Va)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Ct()):(v=u,u=n)):(v=u,u=n),u}function rz(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===fe?v+=3:(y=n,X===0&&Te(qd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Jt()):(v=u,u=n)):(v=u,u=n),u}function nz(){var u,y,E,L;return u=v,(y=e.substr(v,9)).toLowerCase()===pe?v+=9:(y=n,X===0&&Te(Ua)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=qn()):(v=u,u=n)):(v=u,u=n),u}function yT(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===Se?v+=7:(y=n,X===0&&Te(Hd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=kn()):(v=u,u=n)):(v=u,u=n),u}function iz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===ye?v+=4:(y=n,X===0&&Te(Zd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=si()):(v=u,u=n)):(v=u,u=n),u}function oz(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===Fe?v+=8:(y=n,X===0&&Te(Yd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Sr()):(v=u,u=n)):(v=u,u=n),u}function vT(){var u,y,E,L;return u=v,(y=e.substr(v,9)).toLowerCase()===nt?v+=9:(y=n,X===0&&Te(Jd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Br()):(v=u,u=n)):(v=u,u=n),u}function bT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Et?v+=4:(y=n,X===0&&Te(Xd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=gn()):(v=u,u=n)):(v=u,u=n),u}function _T(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Tr?v+=4:(y=n,X===0&&Te(Fc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Gr()):(v=u,u=n)):(v=u,u=n),u}function sz(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===fr?v+=7:(y=n,X===0&&Te(Bs)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=kt()):(v=u,u=n)):(v=u,u=n),u}function az(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===mr?v+=8:(y=n,X===0&&Te(go)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=nr()):(v=u,u=n)):(v=u,u=n),u}function lz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===yi?v+=4:(y=n,X===0&&Te(za)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=wn()):(v=u,u=n)):(v=u,u=n),u}function cz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Gn?v+=4:(y=n,X===0&&Te(Gs)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Ye()):(v=u,u=n)):(v=u,u=n),u}function uz(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===In?v+=2:(y=n,X===0&&Te(bi)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=rn()):(v=u,u=n)):(v=u,u=n),u}function dz(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===ze?v+=7:(y=n,X===0&&Te(as)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=bt()):(v=u,u=n)):(v=u,u=n),u}function pz(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===Md?v+=3:(y=n,X===0&&Te(Qd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Lr()):(v=u,u=n)):(v=u,u=n),u}function fz(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===ts?v+=8:(y=n,X===0&&Te($c)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=vo()):(v=u,u=n)):(v=u,u=n),u}function mz(){var u,y,E,L;return u=v,(y=e.substr(v,5)).toLowerCase()===fo?v+=5:(y=n,X===0&&Te(Vc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=m()):(v=u,u=n)):(v=u,u=n),u}function hz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===wc?v+=4:(y=n,X===0&&Te(Wa)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=k()):(v=u,u=n)):(v=u,u=n),u}function gz(){var u,y,E,L;return u=v,(y=e.substr(v,7)).toLowerCase()===La?v+=7:(y=n,X===0&&Te(Kd)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Z()):(v=u,u=n)):(v=u,u=n),u}function wz(){var u,y,E,L;return u=v,(y=e.substr(v,2)).toLowerCase()===Vs?v+=2:(y=n,X===0&&Te(ep)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=se()):(v=u,u=n)):(v=u,u=n),u}function xT(){var u,y,E,L;return u=v,(y=e.substr(v,8)).toLowerCase()===Vi?v+=8:(y=n,X===0&&Te(Uc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=ue()):(v=u,u=n)):(v=u,u=n),u}function ST(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Ad?v+=4:(y=n,X===0&&Te(tp)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Pe()):(v=u,u=n)):(v=u,u=n),u}function yz(){var u,y,E,L;return u=v,(y=e.substr(v,13)).toLowerCase()===Us?v+=13:(y=n,X===0&&Te(rp)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=We()):(v=u,u=n)):(v=u,u=n),u}function vz(){var u,y,E,L;return u=v,(y=e.substr(v,15)).toLowerCase()===Gm?v+=15:(y=n,X===0&&Te(zc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=De()):(v=u,u=n)):(v=u,u=n),u}function ET(){var u,y,E,L;return u=v,(y=e.substr(v,5)).toLowerCase()===rs?v+=5:(y=n,X===0&&Te(Wc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=ct()):(v=u,u=n)):(v=u,u=n),u}function CT(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===ka?v+=3:(y=n,X===0&&Te(np)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=Nn()):(v=u,u=n)):(v=u,u=n),u}function TT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===yc?v+=4:(y=n,X===0&&Te(Ba)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=m0()):(v=u,u=n)):(v=u,u=n),u}function PT(){var u,y,E,L;return u=v,(y=e.substr(v,6)).toLowerCase()===vc?v+=6:(y=n,X===0&&Te(ip)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=h0()):(v=u,u=n)):(v=u,u=n),u}function cu(){var u,y,E,L;return u=v,(y=e.substr(v,6)).toLowerCase()===Pr?v+=6:(y=n,X===0&&Te(Bc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=g0()):(v=u,u=n)):(v=u,u=n),u}function A0(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Id?v+=4:(y=n,X===0&&Te(op)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=w0()):(v=u,u=n)):(v=u,u=n),u}function I0(){var u,y,E,L;return u=v,(y=e.substr(v,3)).toLowerCase()===ns?v+=3:(y=n,X===0&&Te(js)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=i2()):(v=u,u=n)):(v=u,u=n),u}function MT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Na?v+=4:(y=n,X===0&&Te(sp)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=y0()):(v=u,u=n)):(v=u,u=n),u}function AT(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===bc?v+=4:(y=n,X===0&&Te(Gc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=cU()):(v=u,u=n)):(v=u,u=n),u}function bz(){var u,y,E,L;return u=v,(y=e.substr(v,4)).toLowerCase()===Ld?v+=4:(y=n,X===0&&Te(jc)),y!==n?(E=v,X++,L=Ke(),X--,L===n?E=void 0:(v=E,E=n),E!==n?(te=u,u=uU()):(v=u,u=n)):(v=u,u=n),u}function Xa(){var u;return e.charCodeAt(v)===44?(u=_c,v++):(u=n,X===0&&Te(ap)),u}function jr(){var u;return e.charCodeAt(v)===40?(u=xc,v++):(u=n,X===0&&Te(qc)),u}function qr(){var u;return e.charCodeAt(v)===41?(u=Sc,v++):(u=n,X===0&&Te(Hc)),u}function ne(){var u,y;for(u=[],y=IT();y!==n;)u.push(y),y=IT();return u}function IT(){var u;return u=e.charAt(v),Pc.test(u)?v++:(u=n,X===0&&Te(lp)),u}function _z(){var u,y,E,L;if(u=v,(y=nT())!==n&&(te=u,y=dU(y)),(u=y)===n)if(u=v,e.charCodeAt(v)===96?(y=Ec,v++):(y=n,X===0&&Te(wo)),y!==n){if(E=[],L=e.charAt(v),Oa.test(L)?v++:(L=n,X===0&&Te(ls)),L!==n)for(;L!==n;)E.push(L),L=e.charAt(v),Oa.test(L)?v++:(L=n,X===0&&Te(ls));else E=n;E!==n?(e.charCodeAt(v)===96?(L=Ec,v++):(L=n,X===0&&Te(wo)),L!==n?(te=u,u=pU(E)):(v=u,u=n)):(v=u,u=n)}else v=u,u=n;return u}function xz(u,y,E){return{type:"unary-expression",location:E,operator:u,expr:y}}function LT(u,y,E,L,be){let ht={type:"binary-expression",location:be,operator:u,left:y,right:E};return L!==void 0&&(ht.escape=L),ht}function Si(u,...y){return{type:"expression-list",location:u,value:y}}function Ym(u,y){let E=u;for(let{op:L,expr:be,location:{end:ht}}of y)E=LT(L,E,be,void 0,{...E.location,end:ht});return E}function Sz(u){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(u)!==!0&&o2("Timestamp literal is invalid")}function Ez(u){/^(\d{1,2}):(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2})$|^(\d{1,2}):(\d{1,2}):(\d{1,2}).([0-9]+)$/.test(u)!==!0&&o2("Time literal is invalid")}function Cz(u){/^(\d{4})-(\d{1,2})-(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2}):(\d{1,2})(\.[0-9]+)?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})?[ ]{0,1}(\+|\-)(\d{1,2}):(\d{1,2})$|^(\d{4})-(\d{1,2})-(\d{1,2}) (\d{1,2}):(\d{1,2})$/.test(u)!==!0&&o2("Date literal is invalid")}if(r=s(),t.peg$library)return{peg$result:r,peg$currPos:v,peg$FAILED:n,peg$maxFailExpected:v0,peg$maxFailPos:bo};if(r!==n&&v===e.length)return r;throw r!==n&&v<e.length&&Te(fU()),hU(v0,bo<e.length?e.charAt(bo):null,bo<e.length?b0(bo,bo+1):b0(bo,bo))}function Vr(e,t){if(e!=null)switch(t(e),e.type){case"when-clause":Vr(e.operand,t),Vr(e.value,t);break;case"case-expression":for(let r of e.clauses)Vr(r,t);e.format==="simple"&&Vr(e.operand,t),e.else!==null&&Vr(e.else,t);break;case"expression-list":for(let r of e.value)Vr(r,t);break;case"unary-expression":Vr(e.expr,t);break;case"binary-expression":Vr(e.left,t),Vr(e.right,t);break;case"function":Vr(e.args,t);break;case"interval":Vr(e.value,t),Vr(e.qualifier,t);break;case"interval-qualifier":Vr(e.start,t),Vr(e.end,t)}}var B_,AV=O(()=>{ire(Cd,Error),Cd.prototype.format=function(e){var t="Error: "+this.message;if(this.location){var r,n=null;for(r=0;r<e.length;r++)if(e[r].source===this.location.source){n=e[r].text.split(/\r\n|\n|\r/g);break}var i=this.location.start,o=this.location.source&&typeof this.location.source.offset=="function"?this.location.source.offset(i):i,s=this.location.source+":"+o.line+":"+o.column;if(n){var l=this.location.end,a=FC("",o.line.toString().length," "),d=n[i.line-1],h=(i.line===l.line?l.column:d.length+1)-i.column||1;t+=`
35
35
  --> `+s+`
36
36
  `+a+` |
37
37
  `+o.line+" | "+d+`
38
38
  `+a+" | "+FC("",i.column-1," ")+FC("",h,"^")}else t+=`
39
- at `+s}return t},Cd.buildMessage=function(e,t){var r={literal:function(d){return'"'+i(d.text)+'"'},class:function(d){var h=d.parts.map(function(g){return Array.isArray(g)?o(g[0])+"-"+o(g[1]):o(g)});return"["+(d.inverted?"^":"")+h.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function n(d){return d.charCodeAt(0).toString(16).toUpperCase()}function i(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function s(d){return r[d.type](d)}function l(d){var h,g,b=d.map(s);if(b.sort(),b.length>0){for(h=1,g=1;h<b.length;h++)b[h-1]!==b[h]&&(b[g]=b[h],g++);b.length=g}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function a(d){return d?'"'+i(d)+'"':"end of input"}return"Expected "+l(e)+" but "+a(t)+" found."};B_=class{static parse(t){return ore(t)}}});var RV={};Qs(RV,{default:()=>$C});function LV(e){return e===!0}function VC(e){return Array.isArray(e)?e:[e]}function G_(e){return e!==null?e!==!0:null}function kV(e,t){return e!=null&&t!=null?e===!0&&t===!0:e!==!1&&t!==!1&&null}function NV(e,t){return e!=null&&t!=null?e===!0||t===!0:e===!0||t===!0||null}function UC(e,t,r){if(e==null)return null;let n=!1;for(let i of t)if(i==null)n=null;else{if(e===i){n=!0;break}if(W_(e)&&W_(i)&&(n=ni(e,i,"="),n))break}return n}function are(e,t){let r=t,n="",i=Td.Normal;for(let o=0;o<e.length;o++){let s=e.charAt(o);switch(i){case Td.Normal:s===r?i=Td.Escaped:IV.includes(s)?n+="\\"+s:n+=s==="%"?".*":s==="_"?".":s;break;case Td.Escaped:IV.includes(s)?n+="\\"+s:n+=s,i=Td.Normal}}return new RegExp("^"+n+"$","m")}function zC(e,t,r){return e==null?null:are(t,r).test(e)}function lre(e){return e&&typeof e.attributes=="object"}function OV(e,t,r,n){let i=n.getAttribute(e,t),o=r?.get(t);return i==null||o?.type!=="esriFieldTypeDate"&&o?.type!=="date"?i==null||o?.type!=="esriFieldTypeDateOnly"&&o?.type!=="date-only"?i==null||o?.type!=="esriFieldTypeTimeOnly"&&o?.type!=="time-only"?i==null||o?.type!=="esriFieldTypeTimestampOffset"&&o?.type!=="timestamp-offset"?i:new bn(i):Qr.fromReader(i):un.fromReader(i):$m(new Date(i),r?.getLuxonTimeZone(o.name)??Rt.utcInstance)}var sre,Wm,$C,IV,Td,p0,DV=O(()=>{tt();_$();wg();Al();MV();kC();n0();A_();yg();OC();t0();AV();Ed();Dn();sre=new Set(["current_timestamp","current_date","current_time"]),Wm=class{static makeBool(t){return LV(t)}static featureValue(t,r,n,i){return OV(t,r,n,i)}static equalsNull(t){return t===null}static applyLike(t,r,n){return zC(t,r,n)}static ensureArray(t){return VC(t)}static applyIn(t,r,n){return UC(t,r)}static currentTimestamp(t){return $m(new Date,t)}static currentDate(t){return un.fromNow(t)}static currentTime(t){let r=$m(new Date,t);return Qr.fromDateTime(r)}static makeSqlInterval(t,r,n){return xr.createFromValueAndQualifier(t,r,n)}static convertInterval(t){return t instanceof xr?t.valueInMilliseconds():t}static compare(t,r,n,i){return ni(r,n,t)}static calculate(t,r,n,i){return RC(t,r,n,i)}static evaluateTime(t){return r0(t)}static evaluateTimestamp(t,r,n){return Vm(t,r,n)}static evaluateDate(t,r){return Y3(t,r)}static evaluateFunction(t,r,n){return d0(t,r,n)}static lookup(t,r){let n=r[t];return n===void 0?null:n}static between(t,r,n){return t==null||r[0]==null||r[1]==null?null:ni(t,r[0],">=")&&ni(t,r[1],"<=")}static notbetween(t,r,n){return t==null||r[0]==null||r[1]==null?null:ni(t,r[0],"<")||ni(t,r[1],">")}static ternaryNot(t){return G_(t)}static ternaryAnd(t,r){return kV(t,r)}static ternaryOr(t,r){return NV(t,r)}},$C=class e{constructor(t,r,n="UTC",i=null){this.fieldsIndex=r,this.timeZone=n,this.currentUser=i,this.parameters={},this._hasDateFunctions=void 0,this.parseTree=B_.parse(t);let{isStandardized:o,isAggregate:s,currentUserRequired:l,referencedFieldNames:a}=this._extractExpressionInfo(r);this._referencedFieldNames=a,this.isStandardized=o,this.isAggregate=s,this.currentUserRequired=l}static convertValueToStorageFormat(t,r=null){if(r===null)return gi(t)?t.getTime():Ut(t)?t.toMillis():Wt(t)?t.toStorageFormat():Yt(t)?t.toStorageString():zt(t)?t.toStorageFormat():t;switch(r){case"date":return gi(t)?t.getTime():Ut(t)?t.toMillis():Wt(t)?t.toMilliseconds():zt(t)?t.toNumber():t;case"date-only":return gi(t)?un.fromDateJS(t).toString():Wt(t)?un.fromSqlTimeStampOffset(t).toString():Ut(t)?un.fromDateTime(t).toString():t;case"time-only":return gi(t)?Qr.fromDateJS(t).toStorageString():Ut(t)?Qr.fromDateTime(t).toStorageString():Wt(t)?Qr.fromSqlTimeStampOffset(t).toStorageString():Yt(t)?t.toStorageString():t;case"timestamp-offset":if(gi(t))return bn.fromJSDate(t).toStorageFormat();if(Ut(t))return bn.fromDateTime(t).toStorageFormat();if(Wt(t))return t.toStorageFormat()}return t}static create(t,r={}){return new e(t,r.fieldsIndex,r.timeZone??void 0,r.currentUser)}get fieldNames(){return this._referencedFieldNames}testSet(t,r=p0,n=this.currentUser){return!!this._evaluateNode(this.parseTree,null,r,t,n)}calculateValue(t,r=p0,n=this.currentUser){let i=this._evaluateNode(this.parseTree,t,r,null,n);return i instanceof xr?i.valueInMilliseconds()/864e5:i}calculateValueCompiled(t,r=p0,n=this.currentUser){return this.parseTree._compiledVersion!=null?this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null):fe("esri-csp-restrictions")?this.calculateValue(t,r):(this._compileMe(),this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null))}testFeature(t,r=p0,n=this.currentUser){return!!this._evaluateNode(this.parseTree,t,r,null,n)}testFeatureCompiled(t,r=p0,n=this.currentUser){return this.parseTree._compiledVersion!=null?!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null):fe("esri-csp-restrictions")?this.testFeature(t,r):(this._compileMe(),!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null))}get hasDateFunctions(){return this._hasDateFunctions!=null||(this._hasDateFunctions=!1,Vr(this.parseTree,t=>{t.type==="current-time"?this._hasDateFunctions=!0:t.type==="function"&&(this._hasDateFunctions=this._hasDateFunctions||sre.has(t.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){let t=new Set;return Vr(this.parseTree,r=>{r.type==="function"&&t.add(r.name.toLowerCase())}),Array.from(t)}getExpressions(){let t=new Map;return Vr(this.parseTree,r=>{if(r.type==="function"){let n=r.name.toLowerCase(),i=r.args.value[0];if(i.type==="column-reference"){let o=i.column,s=`${n}-${o}`;t.has(s)||t.set(s,{aggregateType:n,field:o})}}}),[...t.values()]}getVariables(){let t=new Set;return Vr(this.parseTree,r=>{r.type==="parameter"&&t.add(r.value.toLowerCase())}),Array.from(t)}_compileMe(){let t="return this.convertInterval("+this.evaluateNodeToJavaScript(this.parseTree)+")";this.parseTree._compiledVersion=new Function("feature","lookups","attributeAdapter","fieldsIndex","timeZone","currentUser",t).bind(Wm)}_extractExpressionInfo(t){let r=[],n=new Set,i=!0,o=!1,s=!1;return Vr(this.parseTree,l=>{switch(l.type){case"column-reference":{let a=t?.get(l.column),d,h;a?d=h=a.name??"":(h=l.column,d=h.toLowerCase()),n.has(d)||(n.add(d),r.push(h)),l.column=h;break}case"current-user":s=!0;break;case"function":{let{name:a,args:d}=l,h=d.value.length;i&&(i=CV(a,h)),o===!1&&(o=H3(a,h));break}}}),{referencedFieldNames:Array.from(r),isStandardized:i,isAggregate:o,currentUserRequired:s}}evaluateNodeToJavaScript(t){switch(t.type){case"interval":return"this.makeSqlInterval("+this.evaluateNodeToJavaScript(t.value)+", "+JSON.stringify(t.qualifier)+","+JSON.stringify(t.op)+")";case"case-expression":{let r="";if(t.format==="simple"){let n=this.evaluateNodeToJavaScript(t.operand);r="( ";for(let i=0;i<t.clauses.length;i++)r+=" (this.compare('=',"+n+","+this.evaluateNodeToJavaScript(t.clauses[i].operand)+") ? ("+this.evaluateNodeToJavaScript(t.clauses[i].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}else{r="( ";for(let n=0;n<t.clauses.length;n++)r+=" this.makeBool("+this.evaluateNodeToJavaScript(t.clauses[n].operand)+")===true ? ("+this.evaluateNodeToJavaScript(t.clauses[n].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}return r}case"parameter":return"this.lookup("+JSON.stringify(t.value.toLowerCase())+",lookups)";case"expression-list":{let r="[";for(let n of t.value)r!=="["&&(r+=","),r+=this.evaluateNodeToJavaScript(n);return r+="]",r}case"unary-expression":return"this.ternaryNot("+this.evaluateNodeToJavaScript(t.expr)+")";case"binary-expression":switch(t.operator){case"AND":return"this.ternaryAnd("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"OR":return"this.ternaryOr("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"IS":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return"this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")";case"ISNOT":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return"(!(this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")))";case"IN":return"this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone)";case"NOT IN":return"this.ternaryNot(this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone))";case"BETWEEN":return"this.between("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"NOTBETWEEN":return"this.notbetween("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"LIKE":return"this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+")";case"NOT LIKE":return"this.ternaryNot(this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+"))";case"<>":case"<":case">":case">=":case"<=":case"=":return"this.compare("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"*":case"-":case"+":case"/":case"||":return"this.calculate("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";default:throw new oe(K.UnsupportedOperator,{operator:t.operator})}case"null":case"boolean":case"string":case"number":return JSON.stringify(t.value);case"time":return"this.evaluateTime("+JSON.stringify(t.value)+")";case"date":return"this.evaluateDate("+JSON.stringify(t.value)+", 'unknown')";case"timestamp":return"this.evaluateTimestamp("+JSON.stringify(t.value)+", 'unknown')";case"current-time":return t.mode==="date"?"this.currentDate(timeZone)":t.mode==="time"?"this.currentTime(timeZone)":"this.currentTimestamp(timeZone)";case"current-user":return"currentUser";case"column-reference":return"this.featureValue(feature,"+JSON.stringify(t.column)+",fieldsIndex,attributeAdapter)";case"function":return"this.evaluateFunction("+JSON.stringify(t.name)+","+this.evaluateNodeToJavaScript(t.args)+", timeZone)"}throw new oe(K.UnsupportedSyntax,{node:t.type})}_evaluateNode(t,r,n,i,o){let s;switch(t.type){case"interval":{let l=this._evaluateNode(t.value,r,n,i,o);return xr.createFromValueAndQualifier(l,t.qualifier,t.op)}case"case-expression":if(t.format==="simple"){let l=this._evaluateNode(t.operand,r,n,i,o);for(let a=0;a<t.clauses.length;a++)if(ni(l,this._evaluateNode(t.clauses[a].operand,r,n,i,o),"=",this.timeZone))return this._evaluateNode(t.clauses[a].value,r,n,i,o);if(t.else!==null)return this._evaluateNode(t.else,r,n,i,o)}else{for(let l=0;l<t.clauses.length;l++)if(LV(this._evaluateNode(t.clauses[l].operand,r,n,i,o)))return this._evaluateNode(t.clauses[l].value,r,n,i,o);if(t.else!==null)return this._evaluateNode(t.else,r,n,i,o)}return null;case"parameter":return s=this.parameters[t.value.toLowerCase()],gi(s)?Ce.fromJSDate(s):s!=null&&typeof s=="object"&&"toDateTime"in s?s.toDateTime():s;case"expression-list":{let l=[];for(let a of t.value)l.push(this._evaluateNode(a,r,n,i,o));return l}case"unary-expression":return G_(this._evaluateNode(t.expr,r,n,i,o));case"binary-expression":switch(t.operator){case"AND":return kV(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o));case"OR":return NV(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o));case"IS":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i,o)===null;case"ISNOT":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i,o)!==null;case"IN":{let l=VC(this._evaluateNode(t.right,r,n,i,o));return UC(this._evaluateNode(t.left,r,n,i,o),l,this.timeZone)}case"NOT IN":{let l=VC(this._evaluateNode(t.right,r,n,i,o));return G_(UC(this._evaluateNode(t.left,r,n,i,o),l,this.timeZone))}case"BETWEEN":{let l=this._evaluateNode(t.left,r,n,i,o),a=this._evaluateNode(t.right,r,n,i,o);return l==null||a[0]==null||a[1]==null?null:ni(l,a[0],">=",this.timeZone)&&ni(l,a[1],"<=",this.timeZone)}case"NOTBETWEEN":{let l=this._evaluateNode(t.left,r,n,i,o),a=this._evaluateNode(t.right,r,n,i,o);return l==null||a[0]==null||a[1]==null?null:ni(l,a[0],"<",this.timeZone)||ni(l,a[1],">",this.timeZone)}case"LIKE":return zC(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),t.escape);case"NOT LIKE":return G_(zC(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),t.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return ni(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),t.operator,this.timeZone);case"-":case"+":case"*":case"/":case"||":return RC(t.operator,this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),this.timeZone)}case"null":case"boolean":case"string":case"number":return t.value;case"date":return t.parsedValue??(t.parsedValue=Y3(t.value,"unknown")),t.parsedValue;case"timestamp":return t.parsedValue??(t.parsedValue=Vm(t.value,"unknown")),t.parsedValue;case"time":return r0(t.value);case"current-time":return t.mode==="date"?Wm.currentDate(this.timeZone):t.mode==="time"?Wm.currentTime(this.timeZone):Wm.currentTimestamp(this.timeZone);case"current-user":return o??null;case"column-reference":return OV(r,t.column,this.fieldsIndex,n);case"data-type":return t.value;case"function":{if(this.isAggregate&&H3(t.name,t.args.value.length)){let a=[];for(let d of t.args?.value||[]){let h=[];for(let g of i||[])h.push(this._evaluateNode(d,g,n,null,o));a.push(h)}return w$(t.name,a)}let l=this._evaluateNode(t.args,r,n,i,o);return d0(t.name,l,this.timeZone)}}throw new oe(K.UnsupportedSyntax,{node:t.type})}};IV="-[]/{}()*+?.\\^$|";(function(e){e[e.Normal=0]="Normal",e[e.Escaped=1]="Escaped"})(Td||(Td={}));p0={getAttribute:(e,t)=>(lre(e)?e.attributes:e)[t]}});async function f0(e,t){let{default:r}=await Promise.resolve().then(()=>(DV(),RV));return r.create(e,{fieldsIndex:t})}var j_=O(()=>{});var FV=O(()=>{da();Ed();Dn()});var WC,$V=O(()=>{FV();(function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(WC||(WC={}))});var VV=O(()=>{});var UV=O(()=>{o0();zS();Fn();it();Xo()});function BV(e){return e==null?null:e.trim().replaceAll(ure,"_").replace(cre,"F$1")||null}function GV(e){let t=e.defaultValue;return t!==void 0&&mre(e,t)?t:e.nullable?null:void 0}function jV(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function dre(e){return e===null||jV(e)}function pre(e){return e===null||Number.isInteger(e)}function fre(){return!0}function mre(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=e.nullable?pre:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?dre:jV;break;case"string":case"esriFieldTypeString":r=e.nullable?SV:tr;break;default:r=fre}return arguments.length===1?r:r(t)}function ZV(e){return e!=null&&vre.has(e.type)}function YV(e){return e!=null&&(e.type==="date"||e.type==="esriFieldTypeDate")}function JV(e){return e!=null&&(e.type==="time-only"||e.type==="esriFieldTypeTimeOnly")}function BC(e){return e!=null&&(e.type==="oid"||e.type==="esriFieldTypeOID")}function GC(e){return e!=null&&(e.type==="global-id"||e.type==="esriFieldTypeGlobalID")}var cre,ure,qV,HV,_Ae,hre,gre,wre,yre,vre,zV,WV,xAe,SAe,XV=O(()=>{Fn();ws();k4();j_();$V();VV();UV();Ed();cre=/^([0-9_])/,ure=/[^a-z0-9_\u0080-\uffff]+/gi;qV=["integer","small-integer","big-integer"],HV=["single","double"],_Ae=[...qV,...HV],hre=["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"],gre=["esriFieldTypeSingle","esriFieldTypeDouble"],wre=new Set([...qV,...hre]),yre=new Set([...HV,...gre]),vre=DA(wre,yre);(function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})(zV||(zV={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(WV||(WV={}));xAe={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},SAe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE}});function bre(e){return"timeZone"in e}function _re(e){return"timeZone"in e}function xre(e){return"dateFieldsTimeZone"in e}function Pd(e){return e.trim().toLowerCase()}function QV(e){return BV(e)?.toLowerCase()??""}function KV(e){let t=new Map;if(!e.fields)return t;let r=e.datesInUnknownTimezone===!0,{timeInfo:n,editFieldsInfo:i}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=xre(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?fv(e.dateFieldsTimeReference):null,a=i?bre(i)?i.timeZone??l:i.dateFieldsTimeReference?fv(i.dateFieldsTimeReference):l??nm:null,d=n?_re(n)?n.timeZone??l:n.timeReference?fv(n.timeReference):l:null,h=new Map([[Pd(i?.creationDateField??""),a],[Pd(i?.editDateField??""),a],[Pd(o),d],[Pd(s),d]]);for(let{name:g,type:b}of e.fields)if(eU.has(b))t.set(g,$u);else if(b!=="date"&&b!=="esriFieldTypeDate")t.set(g,null);else if(r)t.set(g,$u);else{let S=h.get(Pd(g??""))??l;t.set(g,S)}return t}var Sre,Bm,eU,jC=O(()=>{Fn();Or();it();wy();hg();XV();Hg();Dn();Sre=new Map,Bm=class e{static fromJSON(t){return new e(t.fields,t.timeZoneByFieldName)}static fromLayer(t){return new e(t.fields??[],KV(t))}static fromLayerJSON(t){return new e(t.fields??[],KV(t))}constructor(t=[],r){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=t||[],this._timeZoneByFieldName=r?new Map(r):null;let n=[];for(let i of this.fields){let o=i?.name,s=QV(o);if(o&&s){let l=Pd(o);this._fieldsMap.set(o,i),this._fieldsMap.set(l,i),this._normalizedFieldsMap.set(s,i),n.push(`${l}:${i.type}:${this._timeZoneByFieldName?.get(o)}`),YV(i)?(this.dateFields.push(i),this._dateFieldsSet.add(i)):ZV(i)&&(this._numericFieldsSet.add(i),this.numericFields.push(i)),BC(i)||GC(i)||(i.editable=i.editable==null||!!i.editable,i.nullable=i.nullable==null||!!i.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let t of this.fields)BC(t)||GC(t)||t.nullable||GV(t)!==void 0||this._requiredFields.push(t)}return this._requiredFields}equals(t){return this.uid===t?.uid}has(t){return this.get(t)!=null}get(t){if(!t)return;let r=this._fieldsMap.get(t);return r||(r=this._fieldsMap.get(Pd(t))??this._normalizedFieldsMap.get(QV(t)),r&&this._fieldsMap.set(t,r),r)}getTimeZone(t){let r=this.get(t&&typeof t!="string"?t.name:t);return r?this._timeZoneByFieldName?this._timeZoneByFieldName.get(r.name):r.type==="date"||r.type==="esriFieldTypeDate"?(ot.getLogger("esri.layers.support.FieldsIndex").errorOnce(new je("getTimeZone:no-timezone-information",`no time zone information for field '${r.name}'`)),nm):eU.has(r.type)?$u:null:null}getLuxonTimeZone(t){let r=this.getTimeZone(t);return r?r===$u?Yr.instance:r===nm?Rt.utcInstance:Ff(Sre,r,()=>or.create(r)):null}isDateField(t){return this._dateFieldsSet.has(this.get(t))}isTimeOnlyField(t){return JV(this.get(t))}isNumericField(t){return this._numericFieldsSet.has(this.get(t))}normalizeFieldName(t){return this.get(t)?.name??void 0}toJSON(){return{fields:this.fields.map(t=>ut.isSerializable(t)?t.toJSON():t),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}};eU=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"])});var m2=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Jm.isErrorNoTelemetry(t)?new Jm(t.message+`
39
+ at `+s}return t},Cd.buildMessage=function(e,t){var r={literal:function(d){return'"'+i(d.text)+'"'},class:function(d){var h=d.parts.map(function(g){return Array.isArray(g)?o(g[0])+"-"+o(g[1]):o(g)});return"["+(d.inverted?"^":"")+h.join("")+"]"},any:function(){return"any character"},end:function(){return"end of input"},other:function(d){return d.description}};function n(d){return d.charCodeAt(0).toString(16).toUpperCase()}function i(d){return d.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function o(d){return d.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(h){return"\\x0"+n(h)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(h){return"\\x"+n(h)})}function s(d){return r[d.type](d)}function l(d){var h,g,b=d.map(s);if(b.sort(),b.length>0){for(h=1,g=1;h<b.length;h++)b[h-1]!==b[h]&&(b[g]=b[h],g++);b.length=g}switch(b.length){case 1:return b[0];case 2:return b[0]+" or "+b[1];default:return b.slice(0,-1).join(", ")+", or "+b[b.length-1]}}function a(d){return d?'"'+i(d)+'"':"end of input"}return"Expected "+l(e)+" but "+a(t)+" found."};B_=class{static parse(t){return ore(t)}}});var RV={};Qs(RV,{default:()=>$C});function LV(e){return e===!0}function VC(e){return Array.isArray(e)?e:[e]}function G_(e){return e!==null?e!==!0:null}function kV(e,t){return e!=null&&t!=null?e===!0&&t===!0:e!==!1&&t!==!1&&null}function NV(e,t){return e!=null&&t!=null?e===!0||t===!0:e===!0||t===!0||null}function UC(e,t,r){if(e==null)return null;let n=!1;for(let i of t)if(i==null)n=null;else{if(e===i){n=!0;break}if(W_(e)&&W_(i)&&(n=ni(e,i,"="),n))break}return n}function are(e,t){let r=t,n="",i=Td.Normal;for(let o=0;o<e.length;o++){let s=e.charAt(o);switch(i){case Td.Normal:s===r?i=Td.Escaped:IV.includes(s)?n+="\\"+s:n+=s==="%"?".*":s==="_"?".":s;break;case Td.Escaped:IV.includes(s)?n+="\\"+s:n+=s,i=Td.Normal}}return new RegExp("^"+n+"$","m")}function zC(e,t,r){return e==null?null:are(t,r).test(e)}function lre(e){return e&&typeof e.attributes=="object"}function OV(e,t,r,n){if("getAttributeSQL"in n)return n.getAttributeSQL(e,t);let i=n.getAttribute(e,t),o=r?.get(t);return i==null||o?.type!=="esriFieldTypeDate"&&o?.type!=="date"?i==null||o?.type!=="esriFieldTypeDateOnly"&&o?.type!=="date-only"?i==null||o?.type!=="esriFieldTypeTimeOnly"&&o?.type!=="time-only"?i==null||o?.type!=="esriFieldTypeTimestampOffset"&&o?.type!=="timestamp-offset"?i:new bn(i):Qr.fromReader(i):un.fromReader(i):$m(new Date(i),r?.getLuxonTimeZone(o.name)??Rt.utcInstance)}var sre,Wm,$C,IV,Td,p0,DV=O(()=>{tt();_$();wg();Al();MV();kC();n0();A_();yg();OC();t0();AV();Ed();Dn();sre=new Set(["current_timestamp","current_date","current_time"]),Wm=class{static makeBool(t){return LV(t)}static featureValue(t,r,n,i){return OV(t,r,n,i)}static equalsNull(t){return t===null}static applyLike(t,r,n){return zC(t,r,n)}static ensureArray(t){return VC(t)}static applyIn(t,r,n){return UC(t,r)}static currentTimestamp(t){return $m(new Date,t)}static currentDate(t){return un.fromNow(t)}static currentTime(t){let r=$m(new Date,t);return Qr.fromDateTime(r)}static makeSqlInterval(t,r,n){return xr.createFromValueAndQualifier(t,r,n)}static convertInterval(t){return t instanceof xr?t.valueInMilliseconds():t}static compare(t,r,n,i){return ni(r,n,t)}static calculate(t,r,n,i){return RC(t,r,n,i)}static evaluateTime(t){return r0(t)}static evaluateTimestamp(t,r,n){return Vm(t,r,n)}static evaluateDate(t,r){return Y3(t,r)}static evaluateFunction(t,r,n){return d0(t,r,n)}static lookup(t,r){let n=r[t];return n===void 0?null:n}static between(t,r,n){return t==null||r[0]==null||r[1]==null?null:ni(t,r[0],">=")&&ni(t,r[1],"<=")}static notbetween(t,r,n){return t==null||r[0]==null||r[1]==null?null:ni(t,r[0],"<")||ni(t,r[1],">")}static ternaryNot(t){return G_(t)}static ternaryAnd(t,r){return kV(t,r)}static ternaryOr(t,r){return NV(t,r)}},$C=class e{constructor(t,r,n="UTC",i=null){this.fieldsIndex=r,this.timeZone=n,this.currentUser=i,this.parameters={},this._hasDateFunctions=void 0,this.parseTree=B_.parse(t);let{isStandardized:o,isAggregate:s,currentUserRequired:l,referencedFieldNames:a}=this._extractExpressionInfo(r);this._referencedFieldNames=a,this.isStandardized=o,this.isAggregate=s,this.currentUserRequired=l}static convertValueToStorageFormat(t,r=null){if(r===null)return gi(t)?t.getTime():Ut(t)?t.toMillis():Wt(t)?t.toStorageFormat():Yt(t)?t.toStorageString():zt(t)?t.toStorageFormat():t;switch(r){case"date":return gi(t)?t.getTime():Ut(t)?t.toMillis():Wt(t)?t.toMilliseconds():zt(t)?t.toNumber():t;case"date-only":return gi(t)?un.fromDateJS(t).toString():Wt(t)?un.fromSqlTimeStampOffset(t).toString():Ut(t)?un.fromDateTime(t).toString():t;case"time-only":return gi(t)?Qr.fromDateJS(t).toStorageString():Ut(t)?Qr.fromDateTime(t).toStorageString():Wt(t)?Qr.fromSqlTimeStampOffset(t).toStorageString():Yt(t)?t.toStorageString():t;case"timestamp-offset":if(gi(t))return bn.fromJSDate(t).toStorageFormat();if(Ut(t))return bn.fromDateTime(t).toStorageFormat();if(Wt(t))return t.toStorageFormat()}return t}static create(t,r={}){return new e(t,r.fieldsIndex,r.timeZone??void 0,r.currentUser)}get fieldNames(){return this._referencedFieldNames}testSet(t,r=p0,n=this.currentUser){return!!this._evaluateNode(this.parseTree,null,r,t,n)}calculateValue(t,r=p0,n=this.currentUser){let i=this._evaluateNode(this.parseTree,t,r,null,n);return i instanceof xr?i.valueInMilliseconds()/864e5:i}calculateValueCompiled(t,r=p0,n=this.currentUser){return this.parseTree._compiledVersion!=null?this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null):de("esri-csp-restrictions")?this.calculateValue(t,r):(this._compileMe(),this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null))}testFeature(t,r=p0,n=this.currentUser){return!!this._evaluateNode(this.parseTree,t,r,null,n)}testFeatureCompiled(t,r=p0,n=this.currentUser){return this.parseTree._compiledVersion!=null?!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null):de("esri-csp-restrictions")?this.testFeature(t,r):(this._compileMe(),!!this.parseTree._compiledVersion(t,this.parameters,r,this.fieldsIndex,this.timeZone,n??null))}get hasDateFunctions(){return this._hasDateFunctions!=null||(this._hasDateFunctions=!1,Vr(this.parseTree,t=>{t.type==="current-time"?this._hasDateFunctions=!0:t.type==="function"&&(this._hasDateFunctions=this._hasDateFunctions||sre.has(t.name.toLowerCase()))})),this._hasDateFunctions}getFunctions(){let t=new Set;return Vr(this.parseTree,r=>{r.type==="function"&&t.add(r.name.toLowerCase())}),Array.from(t)}getExpressions(){let t=new Map;return Vr(this.parseTree,r=>{if(r.type==="function"){let n=r.name.toLowerCase(),i=r.args.value[0];if(i.type==="column-reference"){let o=i.column,s=`${n}-${o}`;t.has(s)||t.set(s,{aggregateType:n,field:o})}}}),[...t.values()]}getVariables(){let t=new Set;return Vr(this.parseTree,r=>{r.type==="parameter"&&t.add(r.value.toLowerCase())}),Array.from(t)}_compileMe(){let t="return this.convertInterval("+this.evaluateNodeToJavaScript(this.parseTree)+")";this.parseTree._compiledVersion=new Function("feature","lookups","attributeAdapter","fieldsIndex","timeZone","currentUser",t).bind(Wm)}_extractExpressionInfo(t){let r=[],n=new Set,i=!0,o=!1,s=!1;return Vr(this.parseTree,l=>{switch(l.type){case"column-reference":{let a=t?.get(l.column),d,h;a?d=h=a.name??"":(h=l.column,d=h.toLowerCase()),n.has(d)||(n.add(d),r.push(h)),l.column=h;break}case"current-user":s=!0;break;case"function":{let{name:a,args:d}=l,h=d.value.length;i&&(i=CV(a,h)),o===!1&&(o=H3(a,h));break}}}),{referencedFieldNames:Array.from(r),isStandardized:i,isAggregate:o,currentUserRequired:s}}evaluateNodeToJavaScript(t){switch(t.type){case"interval":return"this.makeSqlInterval("+this.evaluateNodeToJavaScript(t.value)+", "+JSON.stringify(t.qualifier)+","+JSON.stringify(t.op)+")";case"case-expression":{let r="";if(t.format==="simple"){let n=this.evaluateNodeToJavaScript(t.operand);r="( ";for(let i=0;i<t.clauses.length;i++)r+=" (this.compare('=',"+n+","+this.evaluateNodeToJavaScript(t.clauses[i].operand)+") ? ("+this.evaluateNodeToJavaScript(t.clauses[i].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}else{r="( ";for(let n=0;n<t.clauses.length;n++)r+=" this.makeBool("+this.evaluateNodeToJavaScript(t.clauses[n].operand)+")===true ? ("+this.evaluateNodeToJavaScript(t.clauses[n].value)+") : ";t.else!==null?r+=this.evaluateNodeToJavaScript(t.else):r+="null",r+=" )"}return r}case"parameter":return"this.lookup("+JSON.stringify(t.value.toLowerCase())+",lookups)";case"expression-list":{let r="[";for(let n of t.value)r!=="["&&(r+=","),r+=this.evaluateNodeToJavaScript(n);return r+="]",r}case"unary-expression":return"this.ternaryNot("+this.evaluateNodeToJavaScript(t.expr)+")";case"binary-expression":switch(t.operator){case"AND":return"this.ternaryAnd("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"OR":return"this.ternaryOr("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+" )";case"IS":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return"this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")";case"ISNOT":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return"(!(this.equalsNull("+this.evaluateNodeToJavaScript(t.left)+")))";case"IN":return"this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone)";case"NOT IN":return"this.ternaryNot(this.applyIn("+this.evaluateNodeToJavaScript(t.left)+",this.ensureArray("+this.evaluateNodeToJavaScript(t.right)+"), timeZone))";case"BETWEEN":return"this.between("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"NOTBETWEEN":return"this.notbetween("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"LIKE":return"this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+")";case"NOT LIKE":return"this.ternaryNot(this.applyLike("+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+","+JSON.stringify(t.escape)+"))";case"<>":case"<":case">":case">=":case"<=":case"=":return"this.compare("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";case"*":case"-":case"+":case"/":case"||":return"this.calculate("+JSON.stringify(t.operator)+","+this.evaluateNodeToJavaScript(t.left)+","+this.evaluateNodeToJavaScript(t.right)+", timeZone)";default:throw new oe(K.UnsupportedOperator,{operator:t.operator})}case"null":case"boolean":case"string":case"number":return JSON.stringify(t.value);case"time":return"this.evaluateTime("+JSON.stringify(t.value)+")";case"date":return"this.evaluateDate("+JSON.stringify(t.value)+", 'unknown')";case"timestamp":return"this.evaluateTimestamp("+JSON.stringify(t.value)+", 'unknown')";case"current-time":return t.mode==="date"?"this.currentDate(timeZone)":t.mode==="time"?"this.currentTime(timeZone)":"this.currentTimestamp(timeZone)";case"current-user":return"currentUser";case"column-reference":return"this.featureValue(feature,"+JSON.stringify(t.column)+",fieldsIndex,attributeAdapter)";case"function":return"this.evaluateFunction("+JSON.stringify(t.name)+","+this.evaluateNodeToJavaScript(t.args)+", timeZone)"}throw new oe(K.UnsupportedSyntax,{node:t.type})}_evaluateNode(t,r,n,i,o){let s;switch(t.type){case"interval":{let l=this._evaluateNode(t.value,r,n,i,o);return xr.createFromValueAndQualifier(l,t.qualifier,t.op)}case"case-expression":if(t.format==="simple"){let l=this._evaluateNode(t.operand,r,n,i,o);for(let a=0;a<t.clauses.length;a++)if(ni(l,this._evaluateNode(t.clauses[a].operand,r,n,i,o),"=",this.timeZone))return this._evaluateNode(t.clauses[a].value,r,n,i,o);if(t.else!==null)return this._evaluateNode(t.else,r,n,i,o)}else{for(let l=0;l<t.clauses.length;l++)if(LV(this._evaluateNode(t.clauses[l].operand,r,n,i,o)))return this._evaluateNode(t.clauses[l].value,r,n,i,o);if(t.else!==null)return this._evaluateNode(t.else,r,n,i,o)}return null;case"parameter":return s=this.parameters[t.value.toLowerCase()],gi(s)?Ce.fromJSDate(s):s!=null&&typeof s=="object"&&"toDateTime"in s?s.toDateTime():s;case"expression-list":{let l=[];for(let a of t.value)l.push(this._evaluateNode(a,r,n,i,o));return l}case"unary-expression":return G_(this._evaluateNode(t.expr,r,n,i,o));case"binary-expression":switch(t.operator){case"AND":return kV(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o));case"OR":return NV(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o));case"IS":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i,o)===null;case"ISNOT":if(t.right.type!=="null")throw new oe(K.UnsupportedIsRhs);return this._evaluateNode(t.left,r,n,i,o)!==null;case"IN":{let l=VC(this._evaluateNode(t.right,r,n,i,o));return UC(this._evaluateNode(t.left,r,n,i,o),l,this.timeZone)}case"NOT IN":{let l=VC(this._evaluateNode(t.right,r,n,i,o));return G_(UC(this._evaluateNode(t.left,r,n,i,o),l,this.timeZone))}case"BETWEEN":{let l=this._evaluateNode(t.left,r,n,i,o),a=this._evaluateNode(t.right,r,n,i,o);return l==null||a[0]==null||a[1]==null?null:ni(l,a[0],">=",this.timeZone)&&ni(l,a[1],"<=",this.timeZone)}case"NOTBETWEEN":{let l=this._evaluateNode(t.left,r,n,i,o),a=this._evaluateNode(t.right,r,n,i,o);return l==null||a[0]==null||a[1]==null?null:ni(l,a[0],"<",this.timeZone)||ni(l,a[1],">",this.timeZone)}case"LIKE":return zC(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),t.escape);case"NOT LIKE":return G_(zC(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),t.escape));case"<>":case"<":case">":case">=":case"<=":case"=":return ni(this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),t.operator,this.timeZone);case"-":case"+":case"*":case"/":case"||":return RC(t.operator,this._evaluateNode(t.left,r,n,i,o),this._evaluateNode(t.right,r,n,i,o),this.timeZone)}case"null":case"boolean":case"string":case"number":return t.value;case"date":return t.parsedValue??(t.parsedValue=Y3(t.value,"unknown")),t.parsedValue;case"timestamp":return t.parsedValue??(t.parsedValue=Vm(t.value,"unknown")),t.parsedValue;case"time":return r0(t.value);case"current-time":return t.mode==="date"?Wm.currentDate(this.timeZone):t.mode==="time"?Wm.currentTime(this.timeZone):Wm.currentTimestamp(this.timeZone);case"current-user":return o??null;case"column-reference":return OV(r,t.column,this.fieldsIndex,n);case"data-type":return t.value;case"function":{if(this.isAggregate&&H3(t.name,t.args.value.length)){let a=[];for(let d of t.args?.value||[]){let h=[];for(let g of i||[])h.push(this._evaluateNode(d,g,n,null,o));a.push(h)}return w$(t.name,a)}let l=this._evaluateNode(t.args,r,n,i,o);return d0(t.name,l,this.timeZone)}}throw new oe(K.UnsupportedSyntax,{node:t.type})}};IV="-[]/{}()*+?.\\^$|";(function(e){e[e.Normal=0]="Normal",e[e.Escaped=1]="Escaped"})(Td||(Td={}));p0={getAttribute:(e,t)=>(lre(e)?e.attributes:e)[t]}});async function f0(e,t){let{default:r}=await Promise.resolve().then(()=>(DV(),RV));return r.create(e,{fieldsIndex:t})}var j_=O(()=>{});var FV=O(()=>{da();Ed();Dn()});var WC,$V=O(()=>{FV();(function(e){e.VALUE_OUT_OF_RANGE="domain-validation-error::value-out-of-range",e.INVALID_CODED_VALUE="domain-validation-error::invalid-coded-value"})(WC||(WC={}))});var VV=O(()=>{});var UV=O(()=>{o0();zS();Fn();it();Xo()});function BV(e){return e==null?null:e.trim().replaceAll(ure,"_").replace(cre,"F$1")||null}function GV(e){let t=e.defaultValue;return t!==void 0&&mre(e,t)?t:e.nullable?null:void 0}function jV(e){return typeof e=="number"&&!isNaN(e)&&isFinite(e)}function dre(e){return e===null||jV(e)}function pre(e){return e===null||Number.isInteger(e)}function fre(){return!0}function mre(e,t){let r;switch(e.type){case"date":case"integer":case"long":case"small-integer":case"big-integer":case"esriFieldTypeDate":case"esriFieldTypeInteger":case"esriFieldTypeLong":case"esriFieldTypeSmallInteger":case"esriFieldTypeBigInteger":r=e.nullable?pre:Number.isInteger;break;case"double":case"single":case"esriFieldTypeSingle":case"esriFieldTypeDouble":r=e.nullable?dre:jV;break;case"string":case"esriFieldTypeString":r=e.nullable?SV:tr;break;default:r=fre}return arguments.length===1?r:r(t)}function ZV(e){return e!=null&&vre.has(e.type)}function YV(e){return e!=null&&(e.type==="date"||e.type==="esriFieldTypeDate")}function JV(e){return e!=null&&(e.type==="time-only"||e.type==="esriFieldTypeTimeOnly")}function BC(e){return e!=null&&(e.type==="oid"||e.type==="esriFieldTypeOID")}function GC(e){return e!=null&&(e.type==="global-id"||e.type==="esriFieldTypeGlobalID")}var cre,ure,qV,HV,_Ae,hre,gre,wre,yre,vre,zV,WV,xAe,SAe,XV=O(()=>{Fn();ws();k4();j_();$V();VV();UV();Ed();cre=/^([0-9_])/,ure=/[^a-z0-9_\u0080-\uffff]+/gi;qV=["integer","small-integer","big-integer"],HV=["single","double"],_Ae=[...qV,...HV],hre=["esriFieldTypeInteger","esriFieldTypeSmallInteger","esriFieldTypeBigInteger"],gre=["esriFieldTypeSingle","esriFieldTypeDouble"],wre=new Set([...qV,...hre]),yre=new Set([...HV,...gre]),vre=DA(wre,yre);(function(e){e.OUT_OF_RANGE="numeric-range-validation-error::out-of-range"})(zV||(zV={})),function(e){e.INVALID_TYPE="type-validation-error::invalid-type"}(WV||(WV={}));xAe={min:-Number.MAX_SAFE_INTEGER,max:Number.MAX_SAFE_INTEGER,isInteger:!0,rawMin:-Number.MAX_SAFE_INTEGER,rawMax:Number.MAX_SAFE_INTEGER},SAe={min:-Number.MAX_VALUE,max:Number.MAX_VALUE,isInteger:!1,rawMin:-Number.MAX_VALUE,rawMax:Number.MAX_VALUE}});function bre(e){return"timeZone"in e}function _re(e){return"timeZone"in e}function xre(e){return"dateFieldsTimeZone"in e}function Pd(e){return e.trim().toLowerCase()}function QV(e){return BV(e)?.toLowerCase()??""}function KV(e){let t=new Map;if(!e.fields)return t;let r=e.datesInUnknownTimezone===!0,{timeInfo:n,editFieldsInfo:i}=e,o=(n?"startField"in n?n.startField:n.startTimeField:"")??"",s=(n?"endField"in n?n.endField:n.endTimeField:"")??"",l=xre(e)?e.dateFieldsTimeZone??null:e.dateFieldsTimeReference?fv(e.dateFieldsTimeReference):null,a=i?bre(i)?i.timeZone??l:i.dateFieldsTimeReference?fv(i.dateFieldsTimeReference):l??nm:null,d=n?_re(n)?n.timeZone??l:n.timeReference?fv(n.timeReference):l:null,h=new Map([[Pd(i?.creationDateField??""),a],[Pd(i?.editDateField??""),a],[Pd(o),d],[Pd(s),d]]);for(let{name:g,type:b}of e.fields)if(eU.has(b))t.set(g,$u);else if(b!=="date"&&b!=="esriFieldTypeDate")t.set(g,null);else if(r)t.set(g,$u);else{let S=h.get(Pd(g??""))??l;t.set(g,S)}return t}var Sre,Bm,eU,jC=O(()=>{Fn();Or();it();wy();hg();XV();Hg();Dn();Sre=new Map,Bm=class e{static fromJSON(t){return new e(t.fields,t.timeZoneByFieldName)}static fromLayer(t){return new e(t.fields??[],KV(t))}static fromLayerJSON(t){return new e(t.fields??[],KV(t))}constructor(t=[],r){this._fieldsMap=new Map,this._normalizedFieldsMap=new Map,this._dateFieldsSet=new Set,this._numericFieldsSet=new Set,this._requiredFields=null,this.dateFields=[],this.numericFields=[],this.fields=t||[],this._timeZoneByFieldName=r?new Map(r):null;let n=[];for(let i of this.fields){let o=i?.name,s=QV(o);if(o&&s){let l=Pd(o);this._fieldsMap.set(o,i),this._fieldsMap.set(l,i),this._normalizedFieldsMap.set(s,i),n.push(`${l}:${i.type}:${this._timeZoneByFieldName?.get(o)}`),YV(i)?(this.dateFields.push(i),this._dateFieldsSet.add(i)):ZV(i)&&(this._numericFieldsSet.add(i),this.numericFields.push(i)),BC(i)||GC(i)||(i.editable=i.editable==null||!!i.editable,i.nullable=i.nullable==null||!!i.nullable)}}n.sort(),this.uid=n.join()}get requiredFields(){if(!this._requiredFields){this._requiredFields=[];for(let t of this.fields)BC(t)||GC(t)||t.nullable||GV(t)!==void 0||this._requiredFields.push(t)}return this._requiredFields}equals(t){return this.uid===t?.uid}has(t){return this.get(t)!=null}get(t){if(!t)return;let r=this._fieldsMap.get(t);return r||(r=this._fieldsMap.get(Pd(t))??this._normalizedFieldsMap.get(QV(t)),r&&this._fieldsMap.set(t,r),r)}getTimeZone(t){let r=this.get(t&&typeof t!="string"?t.name:t);return r?this._timeZoneByFieldName?this._timeZoneByFieldName.get(r.name):r.type==="date"||r.type==="esriFieldTypeDate"?(ot.getLogger("esri.layers.support.FieldsIndex").errorOnce(new je("getTimeZone:no-timezone-information",`no time zone information for field '${r.name}'`)),nm):eU.has(r.type)?$u:null:null}getLuxonTimeZone(t){let r=this.getTimeZone(t);return r?r===$u?Yr.instance:r===nm?Rt.utcInstance:Ff(Sre,r,()=>or.create(r)):null}isDateField(t){return this._dateFieldsSet.has(this.get(t))}isTimeOnlyField(t){return JV(this.get(t))}isNumericField(t){return this._numericFieldsSet.has(this.get(t))}normalizeFieldName(t){return this.get(t)?.name??void 0}toJSON(){return{fields:this.fields.map(t=>ut.isSerializable(t)?t.toJSON():t),timeZoneByFieldName:this._timeZoneByFieldName?Array.from(this._timeZoneByFieldName.entries()):null}}};eU=new Set(["time-only","date-only","timestamp-offset","esriFieldTypeDateOnly","esriFieldTypeTimeOnly","esriFieldTypeTimestampOffset"])});var m2=class{constructor(){this.listeners=[],this.unexpectedErrorHandler=function(t){setTimeout(()=>{throw t.stack?Jm.isErrorNoTelemetry(t)?new Jm(t.message+`
40
40
 
41
41
  `+t.stack):new Error(t.message+`
42
42
 
43
- `+t.stack):t},0)}}emit(t){this.listeners.forEach(r=>{r(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Pz=new m2;function Ks(e){Mz(e)||Pz.onUnexpectedError(e)}function g2(e){if(e instanceof Error){let{name:t,message:r}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:n,noTelemetry:Jm.isErrorNoTelemetry(e)}}return e}var h2="Canceled";function Mz(e){return e instanceof L0?!0:e instanceof Error&&e.name===h2&&e.message===h2}var L0=class extends Error{constructor(){super(h2),this.name=this.message}};var Jm=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let r=new e;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},kr=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function w2(e,t){let r=this,n=!1,i;return function(){if(n)return i;if(n=!0,t)try{i=e.apply(r,arguments)}finally{t()}else i=e.apply(r,arguments);return i}}var Bp;(function(e){function t(G){return G&&typeof G=="object"&&typeof G[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function n(){return r}e.empty=n;function*i(G){yield G}e.single=i;function o(G){return t(G)?G:i(G)}e.wrap=o;function s(G){return G||r}e.from=s;function*l(G){for(let Y=G.length-1;Y>=0;Y--)yield G[Y]}e.reverse=l;function a(G){return!G||G[Symbol.iterator]().next().done===!0}e.isEmpty=a;function d(G){return G[Symbol.iterator]().next().value}e.first=d;function h(G,Y){let ie=0;for(let U of G)if(Y(U,ie++))return!0;return!1}e.some=h;function g(G,Y){for(let ie of G)if(Y(ie))return ie}e.find=g;function*b(G,Y){for(let ie of G)Y(ie)&&(yield ie)}e.filter=b;function*S(G,Y){let ie=0;for(let U of G)yield Y(U,ie++)}e.map=S;function*P(G,Y){let ie=0;for(let U of G)yield*Y(U,ie++)}e.flatMap=P;function*A(...G){for(let Y of G)yield*Y}e.concat=A;function F(G,Y,ie){let U=ie;for(let me of G)U=Y(U,me);return U}e.reduce=F;function*W(G,Y,ie=G.length){for(Y<0&&(Y+=G.length),ie<0?ie+=G.length:ie>G.length&&(ie=G.length);Y<ie;Y++)yield G[Y]}e.slice=W;function z(G,Y=Number.POSITIVE_INFINITY){let ie=[];if(Y===0)return[ie,G];let U=G[Symbol.iterator]();for(let me=0;me<Y;me++){let Ae=U.next();if(Ae.done)return[ie,e.empty()];ie.push(Ae.value)}return[ie,{[Symbol.iterator](){return U}}]}e.consume=z;async function q(G){let Y=[];for await(let ie of G)Y.push(ie);return Promise.resolve(Y)}e.asyncToArray=q})(Bp||(Bp={}));var Iz=!1,Gp=null;function Lz(e){Gp=e}if(Iz){let e="__is_disposable_tracked__";Lz(new class{trackDisposable(t){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(r)},3e3)}setParent(t,r){if(t&&t!==Gi.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==Gi.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function v2(e){return Gp?.trackDisposable(e),e}function b2(e){Gp?.markAsDisposed(e)}function y2(e,t){Gp?.setParent(e,t)}function kz(e,t){if(Gp)for(let r of e)Gp.setParent(r,t)}function _2(e){if(Bp.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function RT(...e){let t=Qa(()=>_2(e));return kz(e,t),t}function Qa(e){let t=v2({dispose:w2(()=>{b2(t),e()})});return t}var k0=class k0{constructor(){this._toDispose=new Set,this._isDisposed=!1,v2(this)}dispose(){this._isDisposed||(b2(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{_2(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return y2(t,this),this._isDisposed?k0.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),y2(t,null))}};k0.DISABLE_DISPOSED_WARNING=!1;var du=k0,x2=class x2{constructor(){this._store=new du,v2(this),y2(this._store,this)}dispose(){b2(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};x2.None=Object.freeze({dispose(){}});var Gi=x2;var jp=class jp{constructor(t){this.element=t,this.next=jp.Undefined,this.prev=jp.Undefined}};jp.Undefined=new jp(void 0);var ir=jp,Xm=class{constructor(){this._first=ir.Undefined,this._last=ir.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ir.Undefined}clear(){let t=this._first;for(;t!==ir.Undefined;){let r=t.next;t.prev=ir.Undefined,t.next=ir.Undefined,t=r}this._first=ir.Undefined,this._last=ir.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){let n=new ir(t);if(this._first===ir.Undefined)this._first=n,this._last=n;else if(r){let o=this._last;this._last=n,n.prev=o,o.next=n}else{let o=this._first;this._first=n,n.next=o,o.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==ir.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==ir.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==ir.Undefined&&t.next!==ir.Undefined){let r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===ir.Undefined&&t.next===ir.Undefined?(this._first=ir.Undefined,this._last=ir.Undefined):t.next===ir.Undefined?(this._last=this._last.prev,this._last.next=ir.Undefined):t.prev===ir.Undefined&&(this._first=this._first.next,this._first.prev=ir.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==ir.Undefined;)yield t.element,t=t.next}};var Nz=globalThis.performance&&typeof globalThis.performance.now=="function",qp=class e{static create(t){return new e(t)}constructor(t){this._now=Nz&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Oz=!1,DT=!1,Rz=!1,Yp;(function(e){e.None=()=>Gi.None;function t(J){if(Rz){let{onDidAddListener:ee}=J,pe=Qm.create(),de=0;J.onDidAddListener=()=>{++de===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),pe.print()),ee?.()}}}function r(J,ee){return S(J,()=>{},0,void 0,!0,void 0,ee)}e.defer=r;function n(J){return(ee,pe=null,de)=>{let Se=!1,ye;return ye=J(Fe=>{if(!Se)return ye?ye.dispose():Se=!0,ee.call(pe,Fe)},null,de),Se&&ye.dispose(),ye}}e.once=n;function i(J,ee){return e.once(e.filter(J,ee))}e.onceIf=i;function o(J,ee,pe){return g((de,Se=null,ye)=>J(Fe=>de.call(Se,ee(Fe)),null,ye),pe)}e.map=o;function s(J,ee,pe){return g((de,Se=null,ye)=>J(Fe=>{ee(Fe),de.call(Se,Fe)},null,ye),pe)}e.forEach=s;function l(J,ee,pe){return g((de,Se=null,ye)=>J(Fe=>ee(Fe)&&de.call(Se,Fe),null,ye),pe)}e.filter=l;function a(J){return J}e.signal=a;function d(...J){return(ee,pe=null,de)=>{let Se=RT(...J.map(ye=>ye(Fe=>ee.call(pe,Fe))));return b(Se,de)}}e.any=d;function h(J,ee,pe,de){let Se=pe;return o(J,ye=>(Se=ee(Se,ye),Se),de)}e.reduce=h;function g(J,ee){let pe,de={onWillAddFirstListener(){pe=J(Se.fire,Se)},onDidRemoveLastListener(){pe?.dispose()}};ee||t(de);let Se=new Hr(de);return ee?.add(Se),Se.event}function b(J,ee){return ee instanceof Array?ee.push(J):ee&&ee.add(J),J}function S(J,ee,pe=100,de=!1,Se=!1,ye,Fe){let nt,Et,Tr,fr=0,mr,yi={leakWarningThreshold:ye,onWillAddFirstListener(){nt=J(In=>{fr++,Et=ee(Et,In),de&&!Tr&&(Gn.fire(Et),Et=void 0),mr=()=>{let ze=Et;Et=void 0,Tr=void 0,(!de||fr>1)&&Gn.fire(ze),fr=0},typeof pe=="number"?(clearTimeout(Tr),Tr=setTimeout(mr,pe)):Tr===void 0&&(Tr=0,queueMicrotask(mr))})},onWillRemoveListener(){Se&&fr>0&&mr?.()},onDidRemoveLastListener(){mr=void 0,nt.dispose()}};Fe||t(yi);let Gn=new Hr(yi);return Fe?.add(Gn),Gn.event}e.debounce=S;function P(J,ee=0,pe){return e.debounce(J,(de,Se)=>de?(de.push(Se),de):[Se],ee,void 0,!0,void 0,pe)}e.accumulate=P;function A(J,ee=(de,Se)=>de===Se,pe){let de=!0,Se;return l(J,ye=>{let Fe=de||!ee(ye,Se);return de=!1,Se=ye,Fe},pe)}e.latch=A;function F(J,ee,pe){return[e.filter(J,ee,pe),e.filter(J,de=>!ee(de),pe)]}e.split=F;function W(J,ee=!1,pe=[],de){let Se=pe.slice(),ye=J(Et=>{Se?Se.push(Et):nt.fire(Et)});de&&de.add(ye);let Fe=()=>{Se?.forEach(Et=>nt.fire(Et)),Se=null},nt=new Hr({onWillAddFirstListener(){ye||(ye=J(Et=>nt.fire(Et)),de&&de.add(ye))},onDidAddFirstListener(){Se&&(ee?setTimeout(Fe):Fe())},onDidRemoveLastListener(){ye&&ye.dispose(),ye=null}});return de&&de.add(nt),nt.event}e.buffer=W;function z(J,ee){return(de,Se,ye)=>{let Fe=ee(new G);return J(function(nt){let Et=Fe.evaluate(nt);Et!==q&&de.call(Se,Et)},void 0,ye)}}e.chain=z;let q=Symbol("HaltChainable");class G{constructor(){this.steps=[]}map(ee){return this.steps.push(ee),this}forEach(ee){return this.steps.push(pe=>(ee(pe),pe)),this}filter(ee){return this.steps.push(pe=>ee(pe)?pe:q),this}reduce(ee,pe){let de=pe;return this.steps.push(Se=>(de=ee(de,Se),de)),this}latch(ee=(pe,de)=>pe===de){let pe=!0,de;return this.steps.push(Se=>{let ye=pe||!ee(Se,de);return pe=!1,de=Se,ye?Se:q}),this}evaluate(ee){for(let pe of this.steps)if(ee=pe(ee),ee===q)break;return ee}}function Y(J,ee,pe=de=>de){let de=(...nt)=>Fe.fire(pe(...nt)),Se=()=>J.on(ee,de),ye=()=>J.removeListener(ee,de),Fe=new Hr({onWillAddFirstListener:Se,onDidRemoveLastListener:ye});return Fe.event}e.fromNodeEventEmitter=Y;function ie(J,ee,pe=de=>de){let de=(...nt)=>Fe.fire(pe(...nt)),Se=()=>J.addEventListener(ee,de),ye=()=>J.removeEventListener(ee,de),Fe=new Hr({onWillAddFirstListener:Se,onDidRemoveLastListener:ye});return Fe.event}e.fromDOMEventEmitter=ie;function U(J){return new Promise(ee=>n(J)(ee))}e.toPromise=U;function me(J){let ee=new Hr;return J.then(pe=>{ee.fire(pe)},()=>{ee.fire(void 0)}).finally(()=>{ee.dispose()}),ee.event}e.fromPromise=me;function Ae(J,ee){return J(pe=>ee.fire(pe))}e.forward=Ae;function Ee(J,ee,pe){return ee(pe),J(de=>ee(de))}e.runAndSubscribe=Ee;class Ne{constructor(ee,pe){this._observable=ee,this._counter=0,this._hasChanged=!1;let de={onWillAddFirstListener:()=>{ee.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{ee.removeObserver(this)}};pe||t(de),this.emitter=new Hr(de),pe&&pe.add(this.emitter)}beginUpdate(ee){this._counter++}handlePossibleChange(ee){}handleChange(ee,pe){this._hasChanged=!0}endUpdate(ee){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function we(J,ee){return new Ne(J,ee).emitter.event}e.fromObservable=we;function ce(J){return(ee,pe,de)=>{let Se=0,ye=!1,Fe={beginUpdate(){Se++},endUpdate(){Se--,Se===0&&(J.reportChanges(),ye&&(ye=!1,ee.call(pe)))},handlePossibleChange(){},handleChange(){ye=!0}};J.addObserver(Fe),J.reportChanges();let nt={dispose(){J.removeObserver(Fe)}};return de instanceof du?de.add(nt):Array.isArray(de)&&de.push(nt),nt}}e.fromObservableLight=ce})(Yp||(Yp={}));var Hp=class Hp{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Hp._idPool++}`,Hp.all.add(this)}start(t){this._stopWatch=new qp,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};Hp.all=new Set,Hp._idPool=0;var S2=Hp,FT=-1,O0=class O0{constructor(t,r,n=(O0._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=r,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,r){let n=this.threshold;if(n<=0||r<n)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let[o,s]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${s}):`;console.warn(l),console.warn(o);let a=new C2(l,o);this._errorHandler(a)}return()=>{let o=this._stacks.get(t.value)||0;this._stacks.set(t.value,o-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,r=0;for(let[n,i]of this._stacks)(!t||r<i)&&(t=[n,i],r=i);return t}};O0._idPool=1;var E2=O0,Qm=class e{static create(){let t=new Error;return new e(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
43
+ `+t.stack):t},0)}}emit(t){this.listeners.forEach(r=>{r(t)})}onUnexpectedError(t){this.unexpectedErrorHandler(t),this.emit(t)}onUnexpectedExternalError(t){this.unexpectedErrorHandler(t)}},Pz=new m2;function Ks(e){Mz(e)||Pz.onUnexpectedError(e)}function g2(e){if(e instanceof Error){let{name:t,message:r}=e,n=e.stacktrace||e.stack;return{$isError:!0,name:t,message:r,stack:n,noTelemetry:Jm.isErrorNoTelemetry(e)}}return e}var h2="Canceled";function Mz(e){return e instanceof L0?!0:e instanceof Error&&e.name===h2&&e.message===h2}var L0=class extends Error{constructor(){super(h2),this.name=this.message}};var Jm=class e extends Error{constructor(t){super(t),this.name="CodeExpectedError"}static fromError(t){if(t instanceof e)return t;let r=new e;return r.message=t.message,r.stack=t.stack,r}static isErrorNoTelemetry(t){return t.name==="CodeExpectedError"}},kr=class e extends Error{constructor(t){super(t||"An unexpected bug occurred."),Object.setPrototypeOf(this,e.prototype)}};function w2(e,t){let r=this,n=!1,i;return function(){if(n)return i;if(n=!0,t)try{i=e.apply(r,arguments)}finally{t()}else i=e.apply(r,arguments);return i}}var Bp;(function(e){function t(G){return G&&typeof G=="object"&&typeof G[Symbol.iterator]=="function"}e.is=t;let r=Object.freeze([]);function n(){return r}e.empty=n;function*i(G){yield G}e.single=i;function o(G){return t(G)?G:i(G)}e.wrap=o;function s(G){return G||r}e.from=s;function*l(G){for(let Y=G.length-1;Y>=0;Y--)yield G[Y]}e.reverse=l;function a(G){return!G||G[Symbol.iterator]().next().done===!0}e.isEmpty=a;function d(G){return G[Symbol.iterator]().next().value}e.first=d;function h(G,Y){let ie=0;for(let U of G)if(Y(U,ie++))return!0;return!1}e.some=h;function g(G,Y){for(let ie of G)if(Y(ie))return ie}e.find=g;function*b(G,Y){for(let ie of G)Y(ie)&&(yield ie)}e.filter=b;function*S(G,Y){let ie=0;for(let U of G)yield Y(U,ie++)}e.map=S;function*P(G,Y){let ie=0;for(let U of G)yield*Y(U,ie++)}e.flatMap=P;function*A(...G){for(let Y of G)yield*Y}e.concat=A;function F(G,Y,ie){let U=ie;for(let me of G)U=Y(U,me);return U}e.reduce=F;function*W(G,Y,ie=G.length){for(Y<0&&(Y+=G.length),ie<0?ie+=G.length:ie>G.length&&(ie=G.length);Y<ie;Y++)yield G[Y]}e.slice=W;function z(G,Y=Number.POSITIVE_INFINITY){let ie=[];if(Y===0)return[ie,G];let U=G[Symbol.iterator]();for(let me=0;me<Y;me++){let Ae=U.next();if(Ae.done)return[ie,e.empty()];ie.push(Ae.value)}return[ie,{[Symbol.iterator](){return U}}]}e.consume=z;async function q(G){let Y=[];for await(let ie of G)Y.push(ie);return Promise.resolve(Y)}e.asyncToArray=q})(Bp||(Bp={}));var Iz=!1,Gp=null;function Lz(e){Gp=e}if(Iz){let e="__is_disposable_tracked__";Lz(new class{trackDisposable(t){let r=new Error("Potentially leaked disposable").stack;setTimeout(()=>{t[e]||console.log(r)},3e3)}setParent(t,r){if(t&&t!==Gi.None)try{t[e]=!0}catch{}}markAsDisposed(t){if(t&&t!==Gi.None)try{t[e]=!0}catch{}}markAsSingleton(t){}})}function v2(e){return Gp?.trackDisposable(e),e}function b2(e){Gp?.markAsDisposed(e)}function y2(e,t){Gp?.setParent(e,t)}function kz(e,t){if(Gp)for(let r of e)Gp.setParent(r,t)}function _2(e){if(Bp.is(e)){let t=[];for(let r of e)if(r)try{r.dispose()}catch(n){t.push(n)}if(t.length===1)throw t[0];if(t.length>1)throw new AggregateError(t,"Encountered errors while disposing of store");return Array.isArray(e)?[]:e}else if(e)return e.dispose(),e}function RT(...e){let t=Qa(()=>_2(e));return kz(e,t),t}function Qa(e){let t=v2({dispose:w2(()=>{b2(t),e()})});return t}var k0=class k0{constructor(){this._toDispose=new Set,this._isDisposed=!1,v2(this)}dispose(){this._isDisposed||(b2(this),this._isDisposed=!0,this.clear())}get isDisposed(){return this._isDisposed}clear(){if(this._toDispose.size!==0)try{_2(this._toDispose)}finally{this._toDispose.clear()}}add(t){if(!t)return t;if(t===this)throw new Error("Cannot register a disposable on itself!");return y2(t,this),this._isDisposed?k0.DISABLE_DISPOSED_WARNING||console.warn(new Error("Trying to add a disposable to a DisposableStore that has already been disposed of. The added object will be leaked!").stack):this._toDispose.add(t),t}deleteAndLeak(t){t&&this._toDispose.has(t)&&(this._toDispose.delete(t),y2(t,null))}};k0.DISABLE_DISPOSED_WARNING=!1;var du=k0,x2=class x2{constructor(){this._store=new du,v2(this),y2(this._store,this)}dispose(){b2(this),this._store.dispose()}_register(t){if(t===this)throw new Error("Cannot register a disposable on itself!");return this._store.add(t)}};x2.None=Object.freeze({dispose(){}});var Gi=x2;var jp=class jp{constructor(t){this.element=t,this.next=jp.Undefined,this.prev=jp.Undefined}};jp.Undefined=new jp(void 0);var ir=jp,Xm=class{constructor(){this._first=ir.Undefined,this._last=ir.Undefined,this._size=0}get size(){return this._size}isEmpty(){return this._first===ir.Undefined}clear(){let t=this._first;for(;t!==ir.Undefined;){let r=t.next;t.prev=ir.Undefined,t.next=ir.Undefined,t=r}this._first=ir.Undefined,this._last=ir.Undefined,this._size=0}unshift(t){return this._insert(t,!1)}push(t){return this._insert(t,!0)}_insert(t,r){let n=new ir(t);if(this._first===ir.Undefined)this._first=n,this._last=n;else if(r){let o=this._last;this._last=n,n.prev=o,o.next=n}else{let o=this._first;this._first=n,n.next=o,o.prev=n}this._size+=1;let i=!1;return()=>{i||(i=!0,this._remove(n))}}shift(){if(this._first!==ir.Undefined){let t=this._first.element;return this._remove(this._first),t}}pop(){if(this._last!==ir.Undefined){let t=this._last.element;return this._remove(this._last),t}}_remove(t){if(t.prev!==ir.Undefined&&t.next!==ir.Undefined){let r=t.prev;r.next=t.next,t.next.prev=r}else t.prev===ir.Undefined&&t.next===ir.Undefined?(this._first=ir.Undefined,this._last=ir.Undefined):t.next===ir.Undefined?(this._last=this._last.prev,this._last.next=ir.Undefined):t.prev===ir.Undefined&&(this._first=this._first.next,this._first.prev=ir.Undefined);this._size-=1}*[Symbol.iterator](){let t=this._first;for(;t!==ir.Undefined;)yield t.element,t=t.next}};var Nz=globalThis.performance&&typeof globalThis.performance.now=="function",qp=class e{static create(t){return new e(t)}constructor(t){this._now=Nz&&t===!1?Date.now:globalThis.performance.now.bind(globalThis.performance),this._startTime=this._now(),this._stopTime=-1}stop(){this._stopTime=this._now()}reset(){this._startTime=this._now(),this._stopTime=-1}elapsed(){return this._stopTime!==-1?this._stopTime-this._startTime:this._now()-this._startTime}};var Oz=!1,DT=!1,Rz=!1,Yp;(function(e){e.None=()=>Gi.None;function t(J){if(Rz){let{onDidAddListener:ee}=J,fe=Qm.create(),pe=0;J.onDidAddListener=()=>{++pe===2&&(console.warn("snapshotted emitter LIKELY used public and SHOULD HAVE BEEN created with DisposableStore. snapshotted here"),fe.print()),ee?.()}}}function r(J,ee){return S(J,()=>{},0,void 0,!0,void 0,ee)}e.defer=r;function n(J){return(ee,fe=null,pe)=>{let Se=!1,ye;return ye=J(Fe=>{if(!Se)return ye?ye.dispose():Se=!0,ee.call(fe,Fe)},null,pe),Se&&ye.dispose(),ye}}e.once=n;function i(J,ee){return e.once(e.filter(J,ee))}e.onceIf=i;function o(J,ee,fe){return g((pe,Se=null,ye)=>J(Fe=>pe.call(Se,ee(Fe)),null,ye),fe)}e.map=o;function s(J,ee,fe){return g((pe,Se=null,ye)=>J(Fe=>{ee(Fe),pe.call(Se,Fe)},null,ye),fe)}e.forEach=s;function l(J,ee,fe){return g((pe,Se=null,ye)=>J(Fe=>ee(Fe)&&pe.call(Se,Fe),null,ye),fe)}e.filter=l;function a(J){return J}e.signal=a;function d(...J){return(ee,fe=null,pe)=>{let Se=RT(...J.map(ye=>ye(Fe=>ee.call(fe,Fe))));return b(Se,pe)}}e.any=d;function h(J,ee,fe,pe){let Se=fe;return o(J,ye=>(Se=ee(Se,ye),Se),pe)}e.reduce=h;function g(J,ee){let fe,pe={onWillAddFirstListener(){fe=J(Se.fire,Se)},onDidRemoveLastListener(){fe?.dispose()}};ee||t(pe);let Se=new Hr(pe);return ee?.add(Se),Se.event}function b(J,ee){return ee instanceof Array?ee.push(J):ee&&ee.add(J),J}function S(J,ee,fe=100,pe=!1,Se=!1,ye,Fe){let nt,Et,Tr,fr=0,mr,yi={leakWarningThreshold:ye,onWillAddFirstListener(){nt=J(In=>{fr++,Et=ee(Et,In),pe&&!Tr&&(Gn.fire(Et),Et=void 0),mr=()=>{let ze=Et;Et=void 0,Tr=void 0,(!pe||fr>1)&&Gn.fire(ze),fr=0},typeof fe=="number"?(clearTimeout(Tr),Tr=setTimeout(mr,fe)):Tr===void 0&&(Tr=0,queueMicrotask(mr))})},onWillRemoveListener(){Se&&fr>0&&mr?.()},onDidRemoveLastListener(){mr=void 0,nt.dispose()}};Fe||t(yi);let Gn=new Hr(yi);return Fe?.add(Gn),Gn.event}e.debounce=S;function P(J,ee=0,fe){return e.debounce(J,(pe,Se)=>pe?(pe.push(Se),pe):[Se],ee,void 0,!0,void 0,fe)}e.accumulate=P;function A(J,ee=(pe,Se)=>pe===Se,fe){let pe=!0,Se;return l(J,ye=>{let Fe=pe||!ee(ye,Se);return pe=!1,Se=ye,Fe},fe)}e.latch=A;function F(J,ee,fe){return[e.filter(J,ee,fe),e.filter(J,pe=>!ee(pe),fe)]}e.split=F;function W(J,ee=!1,fe=[],pe){let Se=fe.slice(),ye=J(Et=>{Se?Se.push(Et):nt.fire(Et)});pe&&pe.add(ye);let Fe=()=>{Se?.forEach(Et=>nt.fire(Et)),Se=null},nt=new Hr({onWillAddFirstListener(){ye||(ye=J(Et=>nt.fire(Et)),pe&&pe.add(ye))},onDidAddFirstListener(){Se&&(ee?setTimeout(Fe):Fe())},onDidRemoveLastListener(){ye&&ye.dispose(),ye=null}});return pe&&pe.add(nt),nt.event}e.buffer=W;function z(J,ee){return(pe,Se,ye)=>{let Fe=ee(new G);return J(function(nt){let Et=Fe.evaluate(nt);Et!==q&&pe.call(Se,Et)},void 0,ye)}}e.chain=z;let q=Symbol("HaltChainable");class G{constructor(){this.steps=[]}map(ee){return this.steps.push(ee),this}forEach(ee){return this.steps.push(fe=>(ee(fe),fe)),this}filter(ee){return this.steps.push(fe=>ee(fe)?fe:q),this}reduce(ee,fe){let pe=fe;return this.steps.push(Se=>(pe=ee(pe,Se),pe)),this}latch(ee=(fe,pe)=>fe===pe){let fe=!0,pe;return this.steps.push(Se=>{let ye=fe||!ee(Se,pe);return fe=!1,pe=Se,ye?Se:q}),this}evaluate(ee){for(let fe of this.steps)if(ee=fe(ee),ee===q)break;return ee}}function Y(J,ee,fe=pe=>pe){let pe=(...nt)=>Fe.fire(fe(...nt)),Se=()=>J.on(ee,pe),ye=()=>J.removeListener(ee,pe),Fe=new Hr({onWillAddFirstListener:Se,onDidRemoveLastListener:ye});return Fe.event}e.fromNodeEventEmitter=Y;function ie(J,ee,fe=pe=>pe){let pe=(...nt)=>Fe.fire(fe(...nt)),Se=()=>J.addEventListener(ee,pe),ye=()=>J.removeEventListener(ee,pe),Fe=new Hr({onWillAddFirstListener:Se,onDidRemoveLastListener:ye});return Fe.event}e.fromDOMEventEmitter=ie;function U(J){return new Promise(ee=>n(J)(ee))}e.toPromise=U;function me(J){let ee=new Hr;return J.then(fe=>{ee.fire(fe)},()=>{ee.fire(void 0)}).finally(()=>{ee.dispose()}),ee.event}e.fromPromise=me;function Ae(J,ee){return J(fe=>ee.fire(fe))}e.forward=Ae;function Ee(J,ee,fe){return ee(fe),J(pe=>ee(pe))}e.runAndSubscribe=Ee;class Ne{constructor(ee,fe){this._observable=ee,this._counter=0,this._hasChanged=!1;let pe={onWillAddFirstListener:()=>{ee.addObserver(this),this._observable.reportChanges()},onDidRemoveLastListener:()=>{ee.removeObserver(this)}};fe||t(pe),this.emitter=new Hr(pe),fe&&fe.add(this.emitter)}beginUpdate(ee){this._counter++}handlePossibleChange(ee){}handleChange(ee,fe){this._hasChanged=!0}endUpdate(ee){this._counter--,this._counter===0&&(this._observable.reportChanges(),this._hasChanged&&(this._hasChanged=!1,this.emitter.fire(this._observable.get())))}}function we(J,ee){return new Ne(J,ee).emitter.event}e.fromObservable=we;function ce(J){return(ee,fe,pe)=>{let Se=0,ye=!1,Fe={beginUpdate(){Se++},endUpdate(){Se--,Se===0&&(J.reportChanges(),ye&&(ye=!1,ee.call(fe)))},handlePossibleChange(){},handleChange(){ye=!0}};J.addObserver(Fe),J.reportChanges();let nt={dispose(){J.removeObserver(Fe)}};return pe instanceof du?pe.add(nt):Array.isArray(pe)&&pe.push(nt),nt}}e.fromObservableLight=ce})(Yp||(Yp={}));var Hp=class Hp{constructor(t){this.listenerCount=0,this.invocationCount=0,this.elapsedOverall=0,this.durations=[],this.name=`${t}_${Hp._idPool++}`,Hp.all.add(this)}start(t){this._stopWatch=new qp,this.listenerCount=t}stop(){if(this._stopWatch){let t=this._stopWatch.elapsed();this.durations.push(t),this.elapsedOverall+=t,this.invocationCount+=1,this._stopWatch=void 0}}};Hp.all=new Set,Hp._idPool=0;var S2=Hp,FT=-1,O0=class O0{constructor(t,r,n=(O0._idPool++).toString(16).padStart(3,"0")){this._errorHandler=t,this.threshold=r,this.name=n,this._warnCountdown=0}dispose(){this._stacks?.clear()}check(t,r){let n=this.threshold;if(n<=0||r<n)return;this._stacks||(this._stacks=new Map);let i=this._stacks.get(t.value)||0;if(this._stacks.set(t.value,i+1),this._warnCountdown-=1,this._warnCountdown<=0){this._warnCountdown=n*.5;let[o,s]=this.getMostFrequentStack(),l=`[${this.name}] potential listener LEAK detected, having ${r} listeners already. MOST frequent listener (${s}):`;console.warn(l),console.warn(o);let a=new C2(l,o);this._errorHandler(a)}return()=>{let o=this._stacks.get(t.value)||0;this._stacks.set(t.value,o-1)}}getMostFrequentStack(){if(!this._stacks)return;let t,r=0;for(let[n,i]of this._stacks)(!t||r<i)&&(t=[n,i],r=i);return t}};O0._idPool=1;var E2=O0,Qm=class e{static create(){let t=new Error;return new e(t.stack??"")}constructor(t){this.value=t}print(){console.warn(this.value.split(`
44
44
  `).slice(2).join(`
45
45
  `))}},C2=class extends Error{constructor(t,r){super(t),this.name="ListenerLeakError",this.stack=r}},T2=class extends Error{constructor(t,r){super(t),this.name="ListenerRefusalError",this.stack=r}},Zp=class{constructor(t){this.value=t}},Dz=2,Fz=(e,t)=>{if(e instanceof Zp)t(e);else for(let r=0;r<e.length;r++){let n=e[r];n&&t(n)}},N0;if(Oz){let e=[];setInterval(()=>{e.length!==0&&(console.warn("[LEAKING LISTENERS] GC'ed these listeners that were NOT yet disposed:"),console.warn(e.join(`
46
46
  `)),e.length=0)},3e3),N0=new FinalizationRegistry(t=>{typeof t=="string"&&e.push(t)})}var Hr=class{constructor(t){this._size=0,this._options=t,this._leakageMon=FT>0||this._options?.leakWarningThreshold?new E2(t?.onListenerError??Ks,this._options?.leakWarningThreshold??FT):void 0,this._perfMon=this._options?._profName?new S2(this._options._profName):void 0,this._deliveryQueue=this._options?.deliveryQueue}dispose(){if(!this._disposed){if(this._disposed=!0,this._deliveryQueue?.current===this&&this._deliveryQueue.reset(),this._listeners){if(DT){let t=this._listeners;queueMicrotask(()=>{Fz(t,r=>r.stack?.print())})}this._listeners=void 0,this._size=0}this._options?.onDidRemoveLastListener?.(),this._leakageMon?.dispose()}}get event(){return this._event??(this._event=(t,r,n)=>{if(this._leakageMon&&this._size>this._leakageMon.threshold**2){let a=`[${this._leakageMon.name}] REFUSES to accept new listeners because it exceeded its threshold by far (${this._size} vs ${this._leakageMon.threshold})`;console.warn(a);let d=this._leakageMon.getMostFrequentStack()??["UNKNOWN stack",-1],h=new T2(`${a}. HINT: Stack shows most frequent listener (${d[1]}-times)`,d[0]);return(this._options?.onListenerError||Ks)(h),Gi.None}if(this._disposed)return Gi.None;r&&(t=t.bind(r));let i=new Zp(t),o,s;this._leakageMon&&this._size>=Math.ceil(this._leakageMon.threshold*.2)&&(i.stack=Qm.create(),o=this._leakageMon.check(i.stack,this._size+1)),DT&&(i.stack=s??Qm.create()),this._listeners?this._listeners instanceof Zp?(this._deliveryQueue??(this._deliveryQueue=new P2),this._listeners=[this._listeners,i]):this._listeners.push(i):(this._options?.onWillAddFirstListener?.(this),this._listeners=i,this._options?.onDidAddFirstListener?.(this)),this._size++;let l=Qa(()=>{N0?.unregister(l),o?.(),this._removeListener(i)});if(n instanceof du?n.add(l):Array.isArray(n)&&n.push(l),N0){let a=new Error().stack.split(`